141 lines
8.9 KiB
C#
141 lines
8.9 KiB
C#
using System;
|
|
using System.Text;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
|
{
|
|
// Token: 0x02001A5E RID: 6750
|
|
[Token(Token = "0x2001A5E")]
|
|
public class PkixCertPathValidatorResult
|
|
{
|
|
// Token: 0x17001978 RID: 6520
|
|
// (get) Token: 0x06009EFB RID: 40699 RVA: 0x0020B9F0 File Offset: 0x00209BF0
|
|
[Token(Token = "0x17001978")]
|
|
public PkixPolicyNode PolicyTree
|
|
{
|
|
[Token(Token = "0x6009EFB")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.policyTree;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001979 RID: 6521
|
|
// (get) Token: 0x06009EFC RID: 40700 RVA: 0x0020BA04 File Offset: 0x00209C04
|
|
[Token(Token = "0x17001979")]
|
|
public TrustAnchor TrustAnchor
|
|
{
|
|
[Token(Token = "0x6009EFC")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.trustAnchor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700197A RID: 6522
|
|
// (get) Token: 0x06009EFD RID: 40701 RVA: 0x0020BA18 File Offset: 0x00209C18
|
|
[Token(Token = "0x1700197A")]
|
|
public AsymmetricKeyParameter SubjectPublicKey
|
|
{
|
|
[Token(Token = "0x6009EFD")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.subjectPublicKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009EFE RID: 40702 RVA: 0x0020BA2C File Offset: 0x00209C2C
|
|
[Token(Token = "0x6009EFE")]
|
|
[Address(RVA = "0x64D3A0", Offset = "0x64C3A0", VA = "0x18064D3A0")]
|
|
public PkixCertPathValidatorResult(TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009EFE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathValidatorResult::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.TrustAnchor,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixPolicyNode,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2F:
|
|
stloc:NullReferenceException(var_1_39, newobj:NullReferenceException(NullReferenceException::.ctor, ldstr:string("trustAnchor must be non-null")))
|
|
}
|
|
|
|
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: 0x06009EFF RID: 40703 RVA: 0x0020BA74 File Offset: 0x00209C74
|
|
[Token(Token = "0x6009EFF")]
|
|
[Address(RVA = "0x64D1E0", Offset = "0x64C1E0", VA = "0x18064D1E0")]
|
|
public object Clone()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009EFF)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathValidatorResult::Clone()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:TrustAnchor(var_0_06, ldfld:TrustAnchor(PkixCertPathValidatorResult::trustAnchor, ldloc:PkixCertPathValidatorResult(this)))
|
|
stloc:PkixPolicyNode(var_1_0D, ldfld:PkixPolicyNode(PkixCertPathValidatorResult::policyTree, ldloc:PkixCertPathValidatorResult(this)))
|
|
stloc:AsymmetricKeyParameter(var_2_14, ldfld:AsymmetricKeyParameter(PkixCertPathValidatorResult::subjectPublicKey, ldloc:PkixCertPathValidatorResult(this)))
|
|
stloc:PkixCertPathValidatorResult(var_3_1D, newobj:PkixCertPathValidatorResult(PkixCertPathValidatorResult::.ctor, ldloc:TrustAnchor(var_0_06), ldloc:PkixPolicyNode(var_1_0D), ldloc:AsymmetricKeyParameter(var_2_14)))
|
|
}
|
|
|
|
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: 0x06009F00 RID: 40704 RVA: 0x0020BAA0 File Offset: 0x00209CA0
|
|
[Token(Token = "0x6009F00")]
|
|
[Address(RVA = "0x64D260", Offset = "0x64C260", VA = "0x18064D260", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
StringBuilder stringBuilder = new StringBuilder();
|
|
StringBuilder stringBuilder2 = stringBuilder.Append("PKIXCertPathValidatorResult: [ \n");
|
|
StringBuilder stringBuilder3 = stringBuilder.Append(" Trust Anchor: ");
|
|
TrustAnchor trustAnchor = this.trustAnchor;
|
|
StringBuilder stringBuilder4 = stringBuilder3.Append(trustAnchor);
|
|
StringBuilder stringBuilder5 = stringBuilder.Append(" Policy Tree: ");
|
|
PkixPolicyNode pkixPolicyNode = this.policyTree;
|
|
StringBuilder stringBuilder6 = stringBuilder5.Append(pkixPolicyNode);
|
|
StringBuilder stringBuilder7 = stringBuilder.Append(" Subject Public Key: ");
|
|
AsymmetricKeyParameter asymmetricKeyParameter = this.subjectPublicKey;
|
|
StringBuilder stringBuilder8 = stringBuilder7.Append(asymmetricKeyParameter).Append("\n]");
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006A9A RID: 27290
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006A9A")]
|
|
private TrustAnchor trustAnchor;
|
|
|
|
// Token: 0x04006A9B RID: 27291
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006A9B")]
|
|
private PkixPolicyNode policyTree;
|
|
|
|
// Token: 0x04006A9C RID: 27292
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006A9C")]
|
|
private AsymmetricKeyParameter subjectPublicKey;
|
|
}
|
|
}
|