using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp { // Token: 0x0200204C RID: 8268 [Token(Token = "0x200204C")] public class RevRepContent : Asn1Encodable { // Token: 0x0600CF61 RID: 53089 RVA: 0x002F29FC File Offset: 0x002F0BFC [Token(Token = "0x600CF61")] [Address(RVA = "0x2FF3D80", Offset = "0x2FF2D80", VA = "0x182FF3D80")] private RevRepContent(Asn1Sequence seq) { Asn1SequenceParser parser = seq.Parser; Asn1Sequence asn1Sequence; this.status = asn1Sequence; Asn1Encodable asn1Encodable; if ((uint)1 < asn1Encodable) { Asn1SequenceParser parser2 = seq.Parser; Asn1TaggedObject asn1TaggedObject; int tagNo = asn1TaggedObject.tagNo; Asn1Sequence instance = Asn1Sequence.GetInstance(asn1TaggedObject, true); if (tagNo != 0) { this.crls = instance; } this.revCerts = instance; } } // Token: 0x0600CF62 RID: 53090 RVA: 0x002F2A58 File Offset: 0x002F0C58 [Token(Token = "0x600CF62")] [Address(RVA = "0x2FF37A0", Offset = "0x2FF27A0", VA = "0x182FF37A0")] public static RevRepContent GetInstance(object obj) { /* An exception occurred when decompiling this method (0600CF62) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_53: stloc:string(var_10_59, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_11_71, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_59)), 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: 0x0600CF63 RID: 53091 RVA: 0x002F2AD8 File Offset: 0x002F0CD8 [Token(Token = "0x600CF63")] [Address(RVA = "0x2FF3B50", Offset = "0x2FF2B50", VA = "0x182FF3B50", Slot = "6")] public virtual PkiStatusInfo[] GetStatus() { Asn1Sequence asn1Sequence = this.status; Asn1Encodable asn1Encodable; PkiStatusInfo[] array = new PkiStatusInfo[asn1Encodable]; int num = 0; if (num != array.Length) { Asn1SequenceParser parser = this.status.Parser; PkiStatusInfo pkiStatusInfo; if (pkiStatusInfo != 0) { } num++; array[0] = pkiStatusInfo; } return array; } // Token: 0x0600CF64 RID: 53092 RVA: 0x002F2B24 File Offset: 0x002F0D24 [Token(Token = "0x600CF64")] [Address(RVA = "0x2FF3A30", Offset = "0x2FF2A30", VA = "0x182FF3A30", Slot = "7")] public virtual CertId[] GetRevCerts() { if (this.revCerts != 0) { Asn1Encodable asn1Encodable; CertId[] array = new CertId[asn1Encodable]; int num = 0; if (num != array.Length) { Asn1SequenceParser parser = this.revCerts.Parser; CertId certId; if (certId != 0) { } num++; array[0] = certId; } return array; } throw new ArrayTypeMismatchException(); } // Token: 0x0600CF65 RID: 53093 RVA: 0x002F2B74 File Offset: 0x002F0D74 [Token(Token = "0x600CF65")] [Address(RVA = "0x2FF3680", Offset = "0x2FF2680", VA = "0x182FF3680", Slot = "8")] public virtual CertificateList[] GetCrls() { if (this.crls != 0) { Asn1Encodable asn1Encodable; CertificateList[] array = new CertificateList[asn1Encodable]; int num = 0; if (num != array.Length) { Asn1SequenceParser parser = this.crls.Parser; CertificateList certificateList; if (certificateList != 0) { } num++; array[0] = certificateList; } return array; } throw new ArrayTypeMismatchException(); } // Token: 0x0600CF66 RID: 53094 RVA: 0x002F2BC4 File Offset: 0x002F0DC4 [Token(Token = "0x600CF66")] [Address(RVA = "0x2FF3C60", Offset = "0x2FF2C60", VA = "0x182FF3C60", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[1]; Asn1Sequence asn1Sequence = this.status; if (asn1Sequence != 0) { } array[0] = asn1Sequence; Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array); Asn1Sequence asn1Sequence2 = this.revCerts; int num = 0; this.AddOptional(asn1EncodableVector, num, asn1Sequence2); Asn1Sequence asn1Sequence3 = this.crls; this.AddOptional(asn1EncodableVector, 1, asn1Sequence3); DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x0600CF67 RID: 53095 RVA: 0x002F2C28 File Offset: 0x002F0E28 [Token(Token = "0x600CF67")] [Address(RVA = "0x2FF3580", Offset = "0x2FF2580", VA = "0x182FF3580")] private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj) { if (obj != 0) { Asn1Encodable[] array = new Asn1Encodable[1]; DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj); if (derTaggedObject != 0) { } array[0] = derTaggedObject; v.Add(array); } } // Token: 0x0400836B RID: 33643 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400836B")] private readonly Asn1Sequence status; // Token: 0x0400836C RID: 33644 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400836C")] private readonly Asn1Sequence revCerts; // Token: 0x0400836D RID: 33645 [FieldOffset(Offset = "0x20")] [Token(Token = "0x400836D")] private readonly Asn1Sequence crls; } }