using System; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp { // Token: 0x02001F4C RID: 8012 [Token(Token = "0x2001F4C")] public class CertResponse : Asn1Encodable { // Token: 0x0600CAB1 RID: 51889 RVA: 0x002E6E98 File Offset: 0x002E5098 [Token(Token = "0x600CAB1")] [Address(RVA = "0x2649740", Offset = "0x2648540", VA = "0x182649740")] private CertResponse(Asn1Sequence seq) { Asn1SequenceParser parser = seq.Parser; DerInteger derInteger; this.certReqId = derInteger; Asn1SequenceParser parser2 = seq.Parser; PkiStatusInfo pkiStatusInfo; this.status = pkiStatusInfo; Asn1Encodable asn1Encodable; if (asn1Encodable != (ulong)3L) { Asn1SequenceParser parser3 = seq.Parser; CertifiedKeyPair certifiedKeyPair; this.certifiedKeyPair = certifiedKeyPair; Asn1SequenceParser parser4 = seq.Parser; Asn1OctetString asn1OctetString; this.rspInfo = asn1OctetString; return; } Asn1SequenceParser parser5 = seq.Parser; if (parser5 == 0 || parser5 != 0) { } CertifiedKeyPair certifiedKeyPair2; this.certifiedKeyPair = certifiedKeyPair2; } // Token: 0x0600CAB2 RID: 51890 RVA: 0x002E6F14 File Offset: 0x002E5114 [Token(Token = "0x600CAB2")] [Address(RVA = "0x2649330", Offset = "0x2648130", VA = "0x182649330")] public static CertResponse GetInstance(object obj) { /* An exception occurred when decompiling this method (0600CAB2) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_22: stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_28)), ldstr:string("obj"))) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } // Token: 0x0600CAB3 RID: 51891 RVA: 0x002E6F64 File Offset: 0x002E5164 [Token(Token = "0x600CAB3")] [Address(RVA = "0x26498D0", Offset = "0x26486D0", VA = "0x1826498D0")] public CertResponse(DerInteger certReqId, PkiStatusInfo status) { /* An exception occurred when decompiling this method (0600CAB3) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_38: stloc:ArgumentNullException(var_2_42, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status"))) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } // Token: 0x0600CAB4 RID: 51892 RVA: 0x002E6FB4 File Offset: 0x002E51B4 [Token(Token = "0x600CAB4")] [Address(RVA = "0x26499A0", Offset = "0x26487A0", VA = "0x1826499A0")] public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo) { /* An exception occurred when decompiling this method (0600CAB4) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_36: stloc:ArgumentNullException(var_1_40, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status"))) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } // Token: 0x1700201D RID: 8221 // (get) Token: 0x0600CAB5 RID: 51893 RVA: 0x002E7004 File Offset: 0x002E5204 [Token(Token = "0x1700201D")] public virtual DerInteger CertReqID { [Token(Token = "0x600CAB5")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")] get { return this.certReqId; } } // Token: 0x1700201E RID: 8222 // (get) Token: 0x0600CAB6 RID: 51894 RVA: 0x002E7018 File Offset: 0x002E5218 [Token(Token = "0x1700201E")] public virtual PkiStatusInfo Status { [Token(Token = "0x600CAB6")] [Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")] get { return this.status; } } // Token: 0x1700201F RID: 8223 // (get) Token: 0x0600CAB7 RID: 51895 RVA: 0x002E702C File Offset: 0x002E522C [Token(Token = "0x1700201F")] public virtual CertifiedKeyPair CertifiedKeyPair { [Token(Token = "0x600CAB7")] [Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")] get { return this.certifiedKeyPair; } } // Token: 0x0600CAB8 RID: 51896 RVA: 0x002E7040 File Offset: 0x002E5240 [Token(Token = "0x600CAB8")] [Address(RVA = "0x2649520", Offset = "0x2648320", VA = "0x182649520", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[2]; DerInteger derInteger = this.certReqId; if (derInteger != 0) { } array[0] = derInteger; PkiStatusInfo pkiStatusInfo = this.status; if (pkiStatusInfo != 0) { } array[1] = pkiStatusInfo; Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array); Asn1Encodable[] array2 = new Asn1Encodable[2]; CertifiedKeyPair certifiedKeyPair = this.certifiedKeyPair; if (certifiedKeyPair != 0) { } array2[0] = certifiedKeyPair; Asn1OctetString asn1OctetString = this.rspInfo; if (asn1OctetString != 0) { } array2[1] = asn1OctetString; asn1EncodableVector.AddOptional(array2); DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x040080FB RID: 33019 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40080FB")] private readonly DerInteger certReqId; // Token: 0x040080FC RID: 33020 [FieldOffset(Offset = "0x18")] [Token(Token = "0x40080FC")] private readonly PkiStatusInfo status; // Token: 0x040080FD RID: 33021 [FieldOffset(Offset = "0x20")] [Token(Token = "0x40080FD")] private readonly CertifiedKeyPair certifiedKeyPair; // Token: 0x040080FE RID: 33022 [FieldOffset(Offset = "0x28")] [Token(Token = "0x40080FE")] private readonly Asn1OctetString rspInfo; } }