m
This commit is contained in:
+101
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A54 RID: 6740
|
||||
[Token(Token = "0x2001A54")]
|
||||
public class PkixAttrCertPathBuilder
|
||||
{
|
||||
// Token: 0x06009EC7 RID: 40647 RVA: 0x0020ABCC File Offset: 0x00208DCC
|
||||
[Token(Token = "0x6009EC7")]
|
||||
[Address(RVA = "0x64AF50", Offset = "0x649F50", VA = "0x18064AF50", Slot = "4")]
|
||||
public virtual PkixCertPathBuilderResult Build(PkixBuilderParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009EC7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathBuilderResult BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixAttrCertPathBuilder::Build(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixBuilderParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_130:
|
||||
stloc:PkixCertPathBuilderException(var_20_13C, newobj:PkixCertPathBuilderException(PkixCertPathBuilderException::.ctor, ldstr:string("Possible certificate chain could not be validated."), ldloc:NullReferenceException[exp:Exception](var_19)))
|
||||
}
|
||||
|
||||
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: 0x06009EC8 RID: 40648 RVA: 0x0020AD18 File Offset: 0x00208F18
|
||||
[Token(Token = "0x6009EC8")]
|
||||
[Address(RVA = "0x64A9C0", Offset = "0x6499C0", VA = "0x18064A9C0")]
|
||||
private PkixCertPathBuilderResult Build(IX509AttributeCertificate attrCert, X509Certificate tbvCert, PkixBuilderParameters pkixParams, IList tbvPath)
|
||||
{
|
||||
int num = 0;
|
||||
PkixAttrCertPathValidator pkixAttrCertPathValidator = new PkixAttrCertPathValidator();
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
PkixCertPathValidatorUtilities.AddAdditionalStoresFromAltNames(tbvCert, pkixParams);
|
||||
HashSet hashSet = new HashSet();
|
||||
ICollection collection = PkixCertPathValidatorUtilities.FindIssuerCerts(tbvCert, pkixParams);
|
||||
if (collection == 0)
|
||||
{
|
||||
PkixCertPathBuilderResult pkixCertPathBuilderResult;
|
||||
if (collection != 0)
|
||||
{
|
||||
bool flag2;
|
||||
while (flag2)
|
||||
{
|
||||
}
|
||||
while (pkixCertPathBuilderResult == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (pkixCertPathBuilderResult != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_3F;
|
||||
}
|
||||
}
|
||||
Exception ex = new Exception("No issuer certificate for certificate in certification path found.");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
IL_3F:
|
||||
Exception ex2;
|
||||
ex2._className = ex2;
|
||||
PkixCertPathBuilderResult pkixCertPathBuilderResult2;
|
||||
if (pkixCertPathBuilderResult2 == 0)
|
||||
{
|
||||
}
|
||||
return pkixCertPathBuilderResult2;
|
||||
}
|
||||
|
||||
// Token: 0x06009EC9 RID: 40649 RVA: 0x0020ADD4 File Offset: 0x00208FD4
|
||||
[Token(Token = "0x6009EC9")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public PkixAttrCertPathBuilder()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04006A90 RID: 27280
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A90")]
|
||||
private Exception certPathException;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user