using System; using System.IO; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509 { // Token: 0x02001851 RID: 6225 [Token(Token = "0x2001851")] [StructLayout(3)] public class X509Extension { // Token: 0x0600A7E2 RID: 42978 RVA: 0x00270F7C File Offset: 0x0026F17C [Token(Token = "0x600A7E2")] [Address(RVA = "0x277B4C0", Offset = "0x2779EC0", VA = "0x18277B4C0")] public X509Extension(DerBoolean critical, Asn1OctetString value) { /* An exception occurred when decompiling this method (0600A7E2) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Extension::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerBoolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_20: stloc:ArgumentNullException(var_1_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("critical"))) } 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.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: 0x0600A7E3 RID: 42979 RVA: 0x00270FB4 File Offset: 0x0026F1B4 [Token(Token = "0x600A7E3")] [Address(RVA = "0xB628E0", Offset = "0xB612E0", VA = "0x180B628E0")] public X509Extension(bool critical, Asn1OctetString value) { this.critical = critical; this.value = value; } // Token: 0x17001A59 RID: 6745 // (get) Token: 0x0600A7E4 RID: 42980 RVA: 0x00270FD8 File Offset: 0x0026F1D8 [Token(Token = "0x17001A59")] public bool IsCritical { [Token(Token = "0x600A7E4")] [Address(RVA = "0x559440", Offset = "0x557E40", VA = "0x180559440")] get { return this.critical; } } // Token: 0x17001A5A RID: 6746 // (get) Token: 0x0600A7E5 RID: 42981 RVA: 0x00270FEC File Offset: 0x0026F1EC [Token(Token = "0x17001A5A")] public Asn1OctetString Value { [Token(Token = "0x600A7E5")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this.value; } } // Token: 0x0600A7E6 RID: 42982 RVA: 0x00271000 File Offset: 0x0026F200 [Token(Token = "0x600A7E6")] [Address(RVA = "0x277B4B0", Offset = "0x2779EB0", VA = "0x18277B4B0")] public Asn1Encodable GetParsedValue() { /* An exception occurred when decompiling this method (0600A7E6) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Extension::GetParsedValue() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:Asn1Object(var_0_06, call:Asn1Object(X509Extension::ConvertValueToObject, ldloc:X509Extension(this))) } 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: 0x0600A7E7 RID: 42983 RVA: 0x00271014 File Offset: 0x0026F214 [Token(Token = "0x600A7E7")] [Address(RVA = "0x277B470", Offset = "0x2779E70", VA = "0x18277B470", Slot = "2")] public override int GetHashCode() { this.value.Finalize(); if (!this.critical) { } throw new NullReferenceException(); } // Token: 0x0600A7E8 RID: 42984 RVA: 0x0027103C File Offset: 0x0026F23C [Token(Token = "0x600A7E8")] [Address(RVA = "0x277B3A0", Offset = "0x2779DA0", VA = "0x18277B3A0", Slot = "0")] public override bool Equals(object obj) { if (obj != 0 && obj != 0) { Asn1OctetString asn1OctetString = this.value; bool flag; return flag; } throw new NullReferenceException(); } // Token: 0x0600A7E9 RID: 42985 RVA: 0x00271064 File Offset: 0x0026F264 [Token(Token = "0x600A7E9")] [Address(RVA = "0x277B2E0", Offset = "0x2779CE0", VA = "0x18277B2E0")] public static Asn1Object ConvertValueToObject(X509Extension ext) { Stream octetStream = ext.value.GetOctetStream(); Asn1Object asn1Object; return asn1Object; } // Token: 0x04006D03 RID: 27907 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006D03")] internal bool critical; // Token: 0x04006D04 RID: 27908 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006D04")] internal Asn1OctetString value; } }