using System; using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509 { // Token: 0x02001EC0 RID: 7872 [Token(Token = "0x2001EC0")] public class AdmissionSyntax : Asn1Encodable { // Token: 0x0600C6E9 RID: 50921 RVA: 0x002D7774 File Offset: 0x002D5974 [Token(Token = "0x600C6E9")] [Address(RVA = "0x2832EC0", Offset = "0x2831CC0", VA = "0x182832EC0")] public static AdmissionSyntax GetInstance(object obj) { /* An exception occurred when decompiling this method (0600C6E9) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.AdmissionSyntax BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.AdmissionSyntax::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_42: stloc:string(var_9_48, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_10_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_48)), 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 1660 */; } // Token: 0x0600C6EA RID: 50922 RVA: 0x002D77E4 File Offset: 0x002D59E4 [Token(Token = "0x600C6EA")] [Address(RVA = "0x2833350", Offset = "0x2832150", VA = "0x182833350")] private AdmissionSyntax(Asn1Sequence seq) { Asn1Encodable asn1Encodable; if (asn1Encodable == (ulong)1L) { Asn1SequenceParser parser = seq.Parser; Asn1Sequence asn1Sequence; this.contentsOfAdmissions = asn1Sequence; return; } Asn1SequenceParser parser2 = seq.Parser; GeneralName generalName; this.admissionAuthority = generalName; throw new NullReferenceException(); } // Token: 0x0600C6EB RID: 50923 RVA: 0x002D7820 File Offset: 0x002D5A20 [Token(Token = "0x600C6EB")] [Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")] public AdmissionSyntax(GeneralName admissionAuthority, Asn1Sequence contentsOfAdmissions) { this.admissionAuthority = admissionAuthority; this.contentsOfAdmissions = contentsOfAdmissions; } // Token: 0x0600C6EC RID: 50924 RVA: 0x002D7844 File Offset: 0x002D5A44 [Token(Token = "0x600C6EC")] [Address(RVA = "0x28331B0", Offset = "0x2831FB0", VA = "0x1828331B0", Slot = "5")] public override Asn1Object ToAsn1Object() { Asn1EncodableVector asn1EncodableVector; if (this.admissionAuthority != (ulong)0L) { Asn1Encodable[] array = new Asn1Encodable[1]; GeneralName generalName = this.admissionAuthority; if (generalName != 0) { } array[0] = generalName; asn1EncodableVector.Add(array); } Asn1Encodable[] array2 = new Asn1Encodable[1]; Asn1Sequence asn1Sequence = this.contentsOfAdmissions; if (asn1Sequence != 0) { } array2[0] = asn1Sequence; asn1EncodableVector.Add(array2); DerSequence derSequence = new DerSequence(asn1EncodableVector); throw new NullReferenceException(); } // Token: 0x17001F0E RID: 7950 // (get) Token: 0x0600C6ED RID: 50925 RVA: 0x002D78B0 File Offset: 0x002D5AB0 [Token(Token = "0x17001F0E")] public virtual GeneralName AdmissionAuthority { [Token(Token = "0x600C6ED")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")] get { return this.admissionAuthority; } } // Token: 0x0600C6EE RID: 50926 RVA: 0x002D78C4 File Offset: 0x002D5AC4 [Token(Token = "0x600C6EE")] [Address(RVA = "0x2832D90", Offset = "0x2831B90", VA = "0x182832D90", Slot = "7")] public virtual Admissions[] GetContentsOfAdmissions() { Asn1Sequence asn1Sequence = this.contentsOfAdmissions; Asn1Encodable asn1Encodable; Admissions[] array = new Admissions[asn1Encodable]; int num = 0; Asn1Sequence asn1Sequence2 = this.contentsOfAdmissions; Asn1Encodable asn1Encodable2; if (num < asn1Encodable2) { Asn1SequenceParser parser = this.contentsOfAdmissions.Parser; Admissions admissions; if (admissions != 0) { } num++; array[0] = admissions; Asn1Sequence asn1Sequence3 = this.contentsOfAdmissions; } return array; } // Token: 0x04007EAD RID: 32429 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007EAD")] private readonly GeneralName admissionAuthority; // Token: 0x04007EAE RID: 32430 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007EAE")] private readonly Asn1Sequence contentsOfAdmissions; } }