using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp { // Token: 0x02001EA3 RID: 7843 [Token(Token = "0x2001EA3")] public class CertStatus : Asn1Encodable, IAsn1Choice { // Token: 0x0600C64B RID: 50763 RVA: 0x002D4C14 File Offset: 0x002D2E14 [Token(Token = "0x600C64B")] [Address(RVA = "0x2BBD310", Offset = "0x2BBC110", VA = "0x182BBD310")] public CertStatus() { this.tagNo = (int)((ulong)0L); DerNull instance = DerNull.Instance; this.value = instance; } // Token: 0x0600C64C RID: 50764 RVA: 0x002D4C40 File Offset: 0x002D2E40 [Token(Token = "0x600C64C")] [Address(RVA = "0x188C780", Offset = "0x188B580", VA = "0x18188C780")] public CertStatus(RevokedInfo info) { this.tagNo = (int)((ulong)1L); this.value = info; } // Token: 0x0600C64D RID: 50765 RVA: 0x002D4C64 File Offset: 0x002D2E64 [Token(Token = "0x600C64D")] [Address(RVA = "0x188DD00", Offset = "0x188CB00", VA = "0x18188DD00")] public CertStatus(int tagNo, Asn1Encodable value) { this.tagNo = tagNo; this.value = value; } // Token: 0x0600C64E RID: 50766 RVA: 0x002D4C88 File Offset: 0x002D2E88 [Token(Token = "0x600C64E")] [Address(RVA = "0x2BBD390", Offset = "0x2BBC190", VA = "0x182BBD390")] 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: 0x0600C64F RID: 50767 RVA: 0x002D4D0C File Offset: 0x002D2F0C [Token(Token = "0x600C64F")] [Address(RVA = "0x2BBCFC0", Offset = "0x2BBBDC0", VA = "0x182BBCFC0")] 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: 0x17001EE6 RID: 7910 // (get) Token: 0x0600C650 RID: 50768 RVA: 0x002D4DBC File Offset: 0x002D2FBC [Token(Token = "0x17001EE6")] public int TagNo { [Token(Token = "0x600C650")] [Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")] get { return this.tagNo; } } // Token: 0x17001EE7 RID: 7911 // (get) Token: 0x0600C651 RID: 50769 RVA: 0x002D4DD0 File Offset: 0x002D2FD0 [Token(Token = "0x17001EE7")] public Asn1Encodable Status { [Token(Token = "0x600C651")] [Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")] get { return this.value; } } // Token: 0x0600C652 RID: 50770 RVA: 0x002D4DE4 File Offset: 0x002D2FE4 [Token(Token = "0x600C652")] [Address(RVA = "0x2BBD2A0", Offset = "0x2BBC0A0", VA = "0x182BBD2A0", Slot = "5")] public override Asn1Object ToAsn1Object() { /* An exception occurred when decompiling this method (0600C652) 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: 0x04007DF1 RID: 32241 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007DF1")] private readonly int tagNo; // Token: 0x04007DF2 RID: 32242 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007DF2")] private readonly Asn1Encodable value; } }