Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

148 lines
8.6 KiB
C#

using System;
using System.IO;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001E2E RID: 7726
[Token(Token = "0x2001E2E")]
public class X509Extension
{
// Token: 0x0600C3BC RID: 50108 RVA: 0x002C94D0 File Offset: 0x002C76D0
[Token(Token = "0x600C3BC")]
[Address(RVA = "0x2B472C0", Offset = "0x2B460C0", VA = "0x182B472C0")]
public X509Extension(DerBoolean critical, Asn1OctetString value)
{
/*
An exception occurred when decompiling this method (0600C3BC)
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 1660
*/;
}
// Token: 0x0600C3BD RID: 50109 RVA: 0x002C9508 File Offset: 0x002C7708
[Token(Token = "0x600C3BD")]
[Address(RVA = "0x631740", Offset = "0x630540", VA = "0x180631740")]
public X509Extension(bool critical, Asn1OctetString value)
{
this.critical = critical;
this.value = value;
}
// Token: 0x17001E5A RID: 7770
// (get) Token: 0x0600C3BE RID: 50110 RVA: 0x002C952C File Offset: 0x002C772C
[Token(Token = "0x17001E5A")]
public bool IsCritical
{
[Token(Token = "0x600C3BE")]
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0")]
get
{
return this.critical;
}
}
// Token: 0x17001E5B RID: 7771
// (get) Token: 0x0600C3BF RID: 50111 RVA: 0x002C9540 File Offset: 0x002C7740
[Token(Token = "0x17001E5B")]
public Asn1OctetString Value
{
[Token(Token = "0x600C3BF")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.value;
}
}
// Token: 0x0600C3C0 RID: 50112 RVA: 0x002C9554 File Offset: 0x002C7754
[Token(Token = "0x600C3C0")]
[Address(RVA = "0x2B472B0", Offset = "0x2B460B0", VA = "0x182B472B0")]
public Asn1Encodable GetParsedValue()
{
/*
An exception occurred when decompiling this method (0600C3C0)
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 1660
*/;
}
// Token: 0x0600C3C1 RID: 50113 RVA: 0x002C9568 File Offset: 0x002C7768
[Token(Token = "0x600C3C1")]
[Address(RVA = "0x2B47270", Offset = "0x2B46070", VA = "0x182B47270", Slot = "2")]
public override int GetHashCode()
{
this.value.Finalize();
if (!this.critical)
{
}
throw new NullReferenceException();
}
// Token: 0x0600C3C2 RID: 50114 RVA: 0x002C9590 File Offset: 0x002C7790
[Token(Token = "0x600C3C2")]
[Address(RVA = "0x2B471A0", Offset = "0x2B45FA0", VA = "0x182B471A0", 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: 0x0600C3C3 RID: 50115 RVA: 0x002C95B8 File Offset: 0x002C77B8
[Token(Token = "0x600C3C3")]
[Address(RVA = "0x2B470E0", Offset = "0x2B45EE0", VA = "0x182B470E0")]
public static Asn1Object ConvertValueToObject(X509Extension ext)
{
Stream octetStream = ext.value.GetOctetStream();
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x04007B46 RID: 31558
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007B46")]
internal bool critical;
// Token: 0x04007B47 RID: 31559
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007B47")]
internal Asn1OctetString value;
}
}