using System; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf { // Token: 0x0200191A RID: 6426 [Token(Token = "0x200191A")] [StructLayout(3)] public class SignerAttribute : Asn1Encodable { // Token: 0x0600AC64 RID: 44132 RVA: 0x0028514C File Offset: 0x0028334C [Token(Token = "0x600AC64")] [Address(RVA = "0x1DF99E0", Offset = "0x1DF83E0", VA = "0x181DF99E0")] public static SignerAttribute GetInstance(object obj) { /* An exception occurred when decompiling this method (0600AC64) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.SignerAttribute BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.SignerAttribute::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_29: stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in 'SignerAttribute' factory: "), ldloc:string(var_6_2F)), 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: 0x0600AC65 RID: 44133 RVA: 0x002851A4 File Offset: 0x002833A4 [Token(Token = "0x600AC65")] [Address(RVA = "0x1DF9D40", Offset = "0x1DF8740", VA = "0x181DF9D40")] private SignerAttribute(object obj) { do { base..ctor(); } while (obj == 0 || obj == 0); AttributeCertificate attributeCertificate; this.certifiedAttributes = attributeCertificate; } // Token: 0x0600AC66 RID: 44134 RVA: 0x002851E8 File Offset: 0x002833E8 [Token(Token = "0x600AC66")] [Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")] public SignerAttribute(Asn1Sequence claimedAttributes) { this.claimedAttributes = claimedAttributes; } // Token: 0x0600AC67 RID: 44135 RVA: 0x00285204 File Offset: 0x00283404 [Token(Token = "0x600AC67")] [Address(RVA = "0x9BBBE0", Offset = "0x9BA5E0", VA = "0x1809BBBE0")] public SignerAttribute(AttributeCertificate certifiedAttributes) { this.certifiedAttributes = certifiedAttributes; } // Token: 0x17001B52 RID: 6994 // (get) Token: 0x0600AC68 RID: 44136 RVA: 0x00285220 File Offset: 0x00283420 [Token(Token = "0x17001B52")] public virtual Asn1Sequence ClaimedAttributes { [Token(Token = "0x600AC68")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")] get { return this.claimedAttributes; } } // Token: 0x17001B53 RID: 6995 // (get) Token: 0x0600AC69 RID: 44137 RVA: 0x00285234 File Offset: 0x00283434 [Token(Token = "0x17001B53")] public virtual AttributeCertificate CertifiedAttributes { [Token(Token = "0x600AC69")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")] get { return this.certifiedAttributes; } } // Token: 0x0600AC6A RID: 44138 RVA: 0x00285248 File Offset: 0x00283448 [Token(Token = "0x600AC6A")] [Address(RVA = "0x1DF9B80", Offset = "0x1DF8580", VA = "0x181DF9B80", Slot = "5")] public override Asn1Object ToAsn1Object() { if (this.claimedAttributes == (ulong)0L) { Asn1Encodable[] array = new Asn1Encodable[1]; AttributeCertificate attributeCertificate = this.certifiedAttributes; if (new DerTaggedObject(1, attributeCertificate) != 0) { } } Asn1Encodable[] array2 = new Asn1Encodable[1]; Asn1Sequence asn1Sequence = this.claimedAttributes; int num; DerTaggedObject derTaggedObject = new DerTaggedObject(num, asn1Sequence); num = 0; if (derTaggedObject != 0) { } array2[0] = derTaggedObject; Asn1EncodableVector asn1EncodableVector; asn1EncodableVector.Add(array2); DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x04007169 RID: 29033 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4007169")] private Asn1Sequence claimedAttributes; // Token: 0x0400716A RID: 29034 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400716A")] private AttributeCertificate certifiedAttributes; } }