oh dear
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: 0x02001974 RID: 6516
|
||||
[Token(Token = "0x2001974")]
|
||||
public class PkixAttrCertPathBuilder
|
||||
{
|
||||
// Token: 0x06009AF9 RID: 39673 RVA: 0x00201B34 File Offset: 0x001FFD34
|
||||
[Token(Token = "0x6009AF9")]
|
||||
[Address(RVA = "0x1CC8A70", Offset = "0x1CC7870", VA = "0x181CC8A70", Slot = "4")]
|
||||
public virtual PkixCertPathBuilderResult Build(PkixBuilderParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009AF9)
|
||||
|
||||
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: 0x06009AFA RID: 39674 RVA: 0x00201C80 File Offset: 0x001FFE80
|
||||
[Token(Token = "0x6009AFA")]
|
||||
[Address(RVA = "0x1CC84E0", Offset = "0x1CC72E0", VA = "0x181CC84E0")]
|
||||
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: 0x06009AFB RID: 39675 RVA: 0x00201D3C File Offset: 0x001FFF3C
|
||||
[Token(Token = "0x6009AFB")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public PkixAttrCertPathBuilder()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040068D7 RID: 26839
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40068D7")]
|
||||
private Exception certPathException;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user