143 lines
9.0 KiB
C#
143 lines
9.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
|
{
|
|
// Token: 0x020013A1 RID: 5025
|
|
[Token(Token = "0x20013A1")]
|
|
[StructLayout(3)]
|
|
public class PkixCertPathValidatorResult
|
|
{
|
|
// Token: 0x170014DA RID: 5338
|
|
// (get) Token: 0x06007F53 RID: 32595 RVA: 0x001AB310 File Offset: 0x001A9510
|
|
[Token(Token = "0x170014DA")]
|
|
public PkixPolicyNode PolicyTree
|
|
{
|
|
[Token(Token = "0x6007F53")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.policyTree;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170014DB RID: 5339
|
|
// (get) Token: 0x06007F54 RID: 32596 RVA: 0x001AB324 File Offset: 0x001A9524
|
|
[Token(Token = "0x170014DB")]
|
|
public TrustAnchor TrustAnchor
|
|
{
|
|
[Token(Token = "0x6007F54")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.trustAnchor;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170014DC RID: 5340
|
|
// (get) Token: 0x06007F55 RID: 32597 RVA: 0x001AB338 File Offset: 0x001A9538
|
|
[Token(Token = "0x170014DC")]
|
|
public AsymmetricKeyParameter SubjectPublicKey
|
|
{
|
|
[Token(Token = "0x6007F55")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.subjectPublicKey;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007F56 RID: 32598 RVA: 0x001AB34C File Offset: 0x001A954C
|
|
[Token(Token = "0x6007F56")]
|
|
[Address(RVA = "0x4EBBE0", Offset = "0x4EA5E0", VA = "0x1804EBBE0")]
|
|
public PkixCertPathValidatorResult(TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007F56)
|
|
|
|
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: 0x06007F57 RID: 32599 RVA: 0x001AB394 File Offset: 0x001A9594
|
|
[Token(Token = "0x6007F57")]
|
|
[Address(RVA = "0x4EBA20", Offset = "0x4EA420", VA = "0x1804EBA20")]
|
|
public object Clone()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007F57)
|
|
|
|
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: 0x06007F58 RID: 32600 RVA: 0x001AB3C0 File Offset: 0x001A95C0
|
|
[Token(Token = "0x6007F58")]
|
|
[Address(RVA = "0x4EBAA0", Offset = "0x4EA4A0", VA = "0x1804EBAA0", 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: 0x04005A9E RID: 23198
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4005A9E")]
|
|
private TrustAnchor trustAnchor;
|
|
|
|
// Token: 0x04005A9F RID: 23199
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4005A9F")]
|
|
private PkixPolicyNode policyTree;
|
|
|
|
// Token: 0x04005AA0 RID: 23200
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4005AA0")]
|
|
private AsymmetricKeyParameter subjectPublicKey;
|
|
}
|
|
}
|