using System; using System.IO; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509 { // Token: 0x02001F0E RID: 7950 [Token(Token = "0x2001F0E")] public class X509Extension { // Token: 0x0600C78A RID: 51082 RVA: 0x002D1D4C File Offset: 0x002CFF4C [Token(Token = "0x600C78A")] [Address(RVA = "0x2E8E8F0", Offset = "0x2E8D8F0", VA = "0x182E8E8F0")] public X509Extension(DerBoolean critical, Asn1OctetString value) { /* An exception occurred when decompiling this method (0600C78A) 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: 0x0600C78B RID: 51083 RVA: 0x002D1D84 File Offset: 0x002CFF84 [Token(Token = "0x600C78B")] [Address(RVA = "0x752440", Offset = "0x751440", VA = "0x180752440")] public X509Extension(bool critical, Asn1OctetString value) { this.critical = critical; this.value = value; } // Token: 0x17001EF7 RID: 7927 // (get) Token: 0x0600C78C RID: 51084 RVA: 0x002D1DA8 File Offset: 0x002CFFA8 [Token(Token = "0x17001EF7")] public bool IsCritical { [Token(Token = "0x600C78C")] [Address(RVA = "0x4944B0", Offset = "0x4934B0", VA = "0x1804944B0")] get { return this.critical; } } // Token: 0x17001EF8 RID: 7928 // (get) Token: 0x0600C78D RID: 51085 RVA: 0x002D1DBC File Offset: 0x002CFFBC [Token(Token = "0x17001EF8")] public Asn1OctetString Value { [Token(Token = "0x600C78D")] [Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")] get { return this.value; } } // Token: 0x0600C78E RID: 51086 RVA: 0x002D1DD0 File Offset: 0x002CFFD0 [Token(Token = "0x600C78E")] [Address(RVA = "0x2E8E8E0", Offset = "0x2E8D8E0", VA = "0x182E8E8E0")] public Asn1Encodable GetParsedValue() { /* An exception occurred when decompiling this method (0600C78E) 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: 0x0600C78F RID: 51087 RVA: 0x002D1DE4 File Offset: 0x002CFFE4 [Token(Token = "0x600C78F")] [Address(RVA = "0x2E8E8A0", Offset = "0x2E8D8A0", VA = "0x182E8E8A0", Slot = "2")] public override int GetHashCode() { this.value.Finalize(); if (!this.critical) { } throw new NullReferenceException(); } // Token: 0x0600C790 RID: 51088 RVA: 0x002D1E0C File Offset: 0x002D000C [Token(Token = "0x600C790")] [Address(RVA = "0x2E8E7D0", Offset = "0x2E8D7D0", VA = "0x182E8E7D0", 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: 0x0600C791 RID: 51089 RVA: 0x002D1E34 File Offset: 0x002D0034 [Token(Token = "0x600C791")] [Address(RVA = "0x2E8E710", Offset = "0x2E8D710", VA = "0x182E8E710")] public static Asn1Object ConvertValueToObject(X509Extension ext) { Stream octetStream = ext.value.GetOctetStream(); Asn1Object asn1Object; return asn1Object; } // Token: 0x04007CFF RID: 31999 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4007CFF")] internal bool critical; // Token: 0x04007D00 RID: 32000 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4007D00")] internal Asn1OctetString value; } }