using System; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp { // Token: 0x020018C6 RID: 6342 [Token(Token = "0x20018C6")] [StructLayout(3)] public class CertStatus : Asn1Encodable, IAsn1Choice { // Token: 0x0600AA71 RID: 43633 RVA: 0x0027C708 File Offset: 0x0027A908 [Token(Token = "0x600AA71")] [Address(RVA = "0x27CAE50", Offset = "0x27C9850", VA = "0x1827CAE50")] public CertStatus() { this.tagNo = (int)((ulong)0L); DerNull instance = DerNull.Instance; this.value = instance; } // Token: 0x0600AA72 RID: 43634 RVA: 0x0027C734 File Offset: 0x0027A934 [Token(Token = "0x600AA72")] [Address(RVA = "0x1EDFA50", Offset = "0x1EDE450", VA = "0x181EDFA50")] public CertStatus(RevokedInfo info) { this.tagNo = (int)((ulong)1L); this.value = info; } // Token: 0x0600AA73 RID: 43635 RVA: 0x0027C758 File Offset: 0x0027A958 [Token(Token = "0x600AA73")] [Address(RVA = "0x894530", Offset = "0x892F30", VA = "0x180894530")] public CertStatus(int tagNo, Asn1Encodable value) { this.tagNo = tagNo; this.value = value; } // Token: 0x0600AA74 RID: 43636 RVA: 0x0027C77C File Offset: 0x0027A97C [Token(Token = "0x600AA74")] [Address(RVA = "0x27CAED0", Offset = "0x27C98D0", VA = "0x1827CAED0")] public CertStatus(Asn1TaggedObject choice) { int num = choice.tagNo; this.tagNo = num; int num2 = choice.tagNo; if (num2 == 0) { DerNull instance = DerNull.Instance; this.value = instance; return; } if (num2 == 0 || num2 == 1) { int num3 = 0; RevokedInfo instance2 = RevokedInfo.GetInstance(Asn1Sequence.GetInstance(choice, num3 != 0)); this.value = instance2; return; } throw new NullReferenceException(); } // Token: 0x0600AA75 RID: 43637 RVA: 0x0027C800 File Offset: 0x0027AA00 [Token(Token = "0x600AA75")] [Address(RVA = "0x27CAB00", Offset = "0x27C9500", VA = "0x1827CAB00")] public static CertStatus GetInstance(object obj) { while (obj != 0) { if (obj == 0) { if (obj == 0) { break; } CertStatus certStatus = new CertStatus(); int num = 0; if (obj != 0) { certStatus.tagNo = num; if (certStatus != 0) { if (certStatus != 0 && certStatus != (ulong)1L) { IL_81: throw new NullReferenceException(); } Asn1Sequence asn1Sequence; RevokedInfo instance = RevokedInfo.GetInstance(asn1Sequence); } DerNull instance2 = DerNull.Instance; certStatus.value = instance2; return certStatus; } } else { if (obj == 0 || obj != 0) { break; } break; } } string typeName = Platform.GetTypeName(obj); string text = "unknown object in factory: " + typeName; ArgumentException ex = new ArgumentException(text, "obj"); goto IL_81; } // Token: 0x17001AE5 RID: 6885 // (get) Token: 0x0600AA76 RID: 43638 RVA: 0x0027C8B0 File Offset: 0x0027AAB0 [Token(Token = "0x17001AE5")] public int TagNo { [Token(Token = "0x600AA76")] [Address(RVA = "0x3C1C50", Offset = "0x3C0650", VA = "0x1803C1C50")] get { return this.tagNo; } } // Token: 0x17001AE6 RID: 6886 // (get) Token: 0x0600AA77 RID: 43639 RVA: 0x0027C8C4 File Offset: 0x0027AAC4 [Token(Token = "0x17001AE6")] public Asn1Encodable Status { [Token(Token = "0x600AA77")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.value; } } // Token: 0x0600AA78 RID: 43640 RVA: 0x0027C8D8 File Offset: 0x0027AAD8 [Token(Token = "0x600AA78")] [Address(RVA = "0x27CADE0", Offset = "0x27C97E0", VA = "0x1827CADE0", Slot = "5")] public override Asn1Object ToAsn1Object() { /* An exception occurred when decompiling this method (0600AA78) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.CertStatus::ToAsn1Object() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:int32(var_0_06, ldfld:int32(CertStatus::tagNo, ldloc:CertStatus(this))) stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(CertStatus::value, ldloc:CertStatus(this))) stloc:DerTaggedObject(var_2_17, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:int32[exp:bool](var_4), ldloc:int32(var_0_06), ldloc:Asn1Encodable(var_1_0D))) stloc:int32(var_4, ldc.i4:int32(0)) } 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: 0x04006FAE RID: 28590 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006FAE")] private readonly int tagNo; // Token: 0x04006FAF RID: 28591 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006FAF")] private readonly Asn1Encodable value; } }