using System; using System.Collections; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf { // Token: 0x02001916 RID: 6422 [Token(Token = "0x2001916")] [StructLayout(3)] public class RevocationValues : Asn1Encodable { // Token: 0x0600AC48 RID: 44104 RVA: 0x002848DC File Offset: 0x00282ADC [Token(Token = "0x600AC48")] [Address(RVA = "0x1DF7730", Offset = "0x1DF6130", VA = "0x181DF7730")] public static RevocationValues GetInstance(object obj) { /* An exception occurred when decompiling this method (0600AC48) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.RevocationValues BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.RevocationValues::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_2: brtrue(IL_00, ceq:bool(ldloc:object(obj), ldc.i4:int32[exp:object](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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846 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: 0x0600AC49 RID: 44105 RVA: 0x0028490C File Offset: 0x00282B0C [Token(Token = "0x600AC49")] [Address(RVA = "0x1DF7F00", Offset = "0x1DF6900", VA = "0x181DF7F00")] private RevocationValues(Asn1Sequence seq) { for (;;) { int num = 0; base..ctor(); if (seq != 0) { uint num2; if (seq.GetEnumerator() != 0) { Asn1Object asn1Object; if (asn1Object != 0) { OtherRevVals instance; if (asn1Object != 0) { if (asn1Object != (ulong)1L) { goto IL_A1; } instance = OtherRevVals.GetInstance(asn1Object); this.otherRevVals = instance; } if (instance != 0) { BasicOcspResponse instance2 = BasicOcspResponse.GetInstance(instance.ToAsn1Object()); } num2 += (uint)1; if (num2 != (uint)0) { } if (num2 != (uint)(-1)) { this.ocspVals = instance; } if (num != 0) { goto IL_BE; } } int num3; CertificateList instance3 = CertificateList.GetInstance(num3); num2 += (uint)1; if (num2 != (uint)0) { } if (num2 != (uint)(-1)) { this.crlVals = num2; } if (num != 0) { goto IL_D0; } } num2 += (uint)1; if (num2 != (uint)0) { } if (num2 != (uint)(-1)) { } if (num == 0) { break; } } } return; IL_A1: ArgumentException ex = new ArgumentException("Illegal tag in RevocationValues", "seq"); throw new NullReferenceException(); IL_BE: throw new NullReferenceException(); IL_D0: throw new NullReferenceException(); } // Token: 0x0600AC4A RID: 44106 RVA: 0x002849FC File Offset: 0x00282BFC [Token(Token = "0x600AC4A")] [Address(RVA = "0x1DF7E40", Offset = "0x1DF6840", VA = "0x181DF7E40")] public RevocationValues(CertificateList[] crlVals, BasicOcspResponse[] ocspVals, OtherRevVals otherRevVals) { if (crlVals != 0) { DerSequence derSequence = new DerSequence(crlVals); this.crlVals = derSequence; } if (ocspVals != 0) { DerSequence derSequence2 = new DerSequence(ocspVals); this.ocspVals = derSequence2; } this.otherRevVals = otherRevVals; } // Token: 0x0600AC4B RID: 44107 RVA: 0x00284A3C File Offset: 0x00282C3C [Token(Token = "0x600AC4B")] [Address(RVA = "0x1DF7C70", Offset = "0x1DF6670", VA = "0x181DF7C70")] public RevocationValues(IEnumerable crlVals, IEnumerable ocspVals, OtherRevVals otherRevVals) { /* An exception occurred when decompiling this method (0600AC4B) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.RevocationValues::.ctor(System.Collections.IEnumerable,System.Collections.IEnumerable,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.OtherRevVals) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_77: stloc:ArgumentException(var_5_86, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Must contain only 'CertificateList' objects"), ldstr:string("crlVals"))) } 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: 0x0600AC4C RID: 44108 RVA: 0x00284AD0 File Offset: 0x00282CD0 [Token(Token = "0x600AC4C")] [Address(RVA = "0x1DF75E0", Offset = "0x1DF5FE0", VA = "0x181DF75E0")] public CertificateList[] GetCrlVals() { Asn1Sequence asn1Sequence = this.crlVals; Asn1Encodable asn1Encodable; CertificateList[] array = new CertificateList[asn1Encodable]; int num = 0; Asn1Sequence asn1Sequence2 = this.crlVals; Asn1Encodable asn1Encodable2; if (num < asn1Encodable2) { Asn1SequenceParser parser = this.crlVals.Parser; CertificateList certificateList; if (certificateList != 0) { } num++; array[0] = certificateList; Asn1Sequence asn1Sequence3 = this.crlVals; } return array; } // Token: 0x0600AC4D RID: 44109 RVA: 0x00284B28 File Offset: 0x00282D28 [Token(Token = "0x600AC4D")] [Address(RVA = "0x1DF7830", Offset = "0x1DF6230", VA = "0x181DF7830")] public BasicOcspResponse[] GetOcspVals() { Asn1Sequence asn1Sequence = this.ocspVals; Asn1Encodable asn1Encodable; BasicOcspResponse[] array = new BasicOcspResponse[asn1Encodable]; int num = 0; Asn1Sequence asn1Sequence2 = this.ocspVals; Asn1Encodable asn1Encodable2; if (num < asn1Encodable2) { Asn1SequenceParser parser = this.ocspVals.Parser; BasicOcspResponse basicOcspResponse; if (basicOcspResponse != 0) { } num++; array[0] = basicOcspResponse; Asn1Sequence asn1Sequence3 = this.ocspVals; } return array; } // Token: 0x17001B4C RID: 6988 // (get) Token: 0x0600AC4E RID: 44110 RVA: 0x00284B80 File Offset: 0x00282D80 [Token(Token = "0x17001B4C")] public OtherRevVals OtherRevVals { [Token(Token = "0x600AC4E")] [Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")] get { return this.otherRevVals; } } // Token: 0x0600AC4F RID: 44111 RVA: 0x00284B94 File Offset: 0x00282D94 [Token(Token = "0x600AC4F")] [Address(RVA = "0x1DF7980", Offset = "0x1DF6380", VA = "0x181DF7980", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1EncodableVector asn1EncodableVector; if (this.crlVals != (ulong)0L) { Asn1Encodable[] array = new Asn1Encodable[1]; Asn1Sequence asn1Sequence = this.crlVals; int num; DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, asn1Sequence); num = 0; if (derTaggedObject != 0) { } array[0] = derTaggedObject; asn1EncodableVector.Add(array); } if (this.ocspVals != (ulong)0L) { Asn1Encodable[] array2 = new Asn1Encodable[1]; Asn1Sequence asn1Sequence2 = this.ocspVals; DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, asn1Sequence2); if (derTaggedObject2 != 0) { } array2[0] = derTaggedObject2; asn1EncodableVector.Add(array2); } if (this.otherRevVals != (ulong)0L) { Asn1Encodable[] array3 = new Asn1Encodable[1]; Asn1Object asn1Object = this.otherRevVals.ToAsn1Object(); DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, asn1Object); if (derTaggedObject3 != 0) { } array3[0] = derTaggedObject3; asn1EncodableVector.Add(array3); } DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x04007160 RID: 29024 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4007160")] private readonly Asn1Sequence crlVals; // Token: 0x04007161 RID: 29025 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4007161")] private readonly Asn1Sequence ocspVals; // Token: 0x04007162 RID: 29026 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4007162")] private readonly OtherRevVals otherRevVals; } }