using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess { // Token: 0x02001FBC RID: 8124 [Token(Token = "0x2001FBC")] [Obsolete] public class OtherSigningCertificate : Asn1Encodable { // Token: 0x0600CB5F RID: 52063 RVA: 0x002E2FC0 File Offset: 0x002E11C0 [Token(Token = "0x600CB5F")] [Address(RVA = "0x2EB5400", Offset = "0x2EB4400", VA = "0x182EB5400")] public static OtherSigningCertificate GetInstance(object o) { /* An exception occurred when decompiling this method (0600CB5F) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherSigningCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherSigningCertificate::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_39: stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(o))) stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'OtherSigningCertificate' factory : "), ldloc:string(var_9_3F), ldstr:string(".")))) } 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: 0x0600CB60 RID: 52064 RVA: 0x002E3028 File Offset: 0x002E1228 [Token(Token = "0x600CB60")] [Address(RVA = "0x2EB5DE0", Offset = "0x2EB4DE0", VA = "0x182EB5DE0")] public OtherSigningCertificate(Asn1Sequence seq) { Asn1SequenceParser parser = seq.Parser; Asn1Sequence asn1Sequence; this.certs = asn1Sequence; Asn1Encodable asn1Encodable; if (asn1Encodable > (ulong)1L) { Asn1SequenceParser parser2 = seq.Parser; Asn1Sequence asn1Sequence2; this.policies = asn1Sequence2; } } // Token: 0x0600CB61 RID: 52065 RVA: 0x002E3068 File Offset: 0x002E1268 [Token(Token = "0x600CB61")] [Address(RVA = "0x2EB5C90", Offset = "0x2EB4C90", VA = "0x182EB5C90")] public OtherSigningCertificate(OtherCertID otherCertID) { DerSequence derSequence = new DerSequence(otherCertID); this.certs = derSequence; } // Token: 0x0600CB62 RID: 52066 RVA: 0x002E308C File Offset: 0x002E128C [Token(Token = "0x600CB62")] [Address(RVA = "0x2EB4F80", Offset = "0x2EB3F80", VA = "0x182EB4F80")] public OtherCertID[] GetCerts() { Asn1Sequence asn1Sequence = this.certs; Asn1Encodable asn1Encodable; OtherCertID[] array = new OtherCertID[asn1Encodable]; int num = 0; Asn1Sequence asn1Sequence2 = this.certs; Asn1Encodable asn1Encodable2; if (num != asn1Encodable2) { Asn1SequenceParser parser = this.certs.Parser; OtherCertID otherCertID; if (otherCertID != 0) { } num++; array[0] = otherCertID; Asn1Sequence asn1Sequence3 = this.certs; } return array; } // Token: 0x0600CB63 RID: 52067 RVA: 0x002E30E4 File Offset: 0x002E12E4 [Token(Token = "0x600CB63")] [Address(RVA = "0x2EB5710", Offset = "0x2EB4710", VA = "0x182EB5710")] public PolicyInformation[] GetPolicies() { if (this.policies != 0) { Asn1Encodable asn1Encodable; PolicyInformation[] array = new PolicyInformation[asn1Encodable]; int num = 0; Asn1Sequence asn1Sequence = this.policies; Asn1Encodable asn1Encodable2; if (num != asn1Encodable2) { Asn1SequenceParser parser = this.policies.Parser; PolicyInformation policyInformation; if (policyInformation != 0) { } num++; array[0] = policyInformation; Asn1Sequence asn1Sequence2 = this.policies; } return array; } throw new NullReferenceException(); } // Token: 0x0600CB64 RID: 52068 RVA: 0x002E3140 File Offset: 0x002E1340 [Token(Token = "0x600CB64")] [Address(RVA = "0x2EB59B0", Offset = "0x2EB49B0", VA = "0x182EB59B0", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1Encodable[] array = new Asn1Encodable[1]; Asn1Sequence asn1Sequence = this.certs; if (asn1Sequence != 0) { } array[0] = asn1Sequence; Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array); if (this.policies != (ulong)0L) { Asn1Encodable[] array2 = new Asn1Encodable[1]; Asn1Sequence asn1Sequence2 = this.policies; if (asn1Sequence2 != 0) { } array2[0] = asn1Sequence2; asn1EncodableVector.Add(array2); } DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x04008121 RID: 33057 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4008121")] private Asn1Sequence certs; // Token: 0x04008122 RID: 33058 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4008122")] private Asn1Sequence policies; } }