using System; using System.Collections; using System.Runtime.InteropServices; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections; using BestHTTP.SecureProtocol.Org.BouncyCastle.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix { // Token: 0x02001397 RID: 5015 [Token(Token = "0x2001397")] [StructLayout(3)] public class PkixAttrCertPathBuilder { // Token: 0x06007F1F RID: 32543 RVA: 0x001AA510 File Offset: 0x001A8710 [Token(Token = "0x6007F1F")] [Address(RVA = "0x4E96B0", Offset = "0x4E80B0", VA = "0x1804E96B0", Slot = "4")] public virtual PkixCertPathBuilderResult Build(PkixBuilderParameters pkixParams) { /* An exception occurred when decompiling this method (06007F1F) 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_13A: stloc:PkixCertPathBuilderException(var_20_146, 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: 0x06007F20 RID: 32544 RVA: 0x001AA664 File Offset: 0x001A8864 [Token(Token = "0x6007F20")] [Address(RVA = "0x4E9100", Offset = "0x4E7B00", VA = "0x1804E9100")] 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 != -1) { } if (num == 0) { goto IL_43; } } Exception ex = new Exception("No issuer certificate for certificate in certification path found."); throw new NullReferenceException(); } IL_43: string text = num.ToString(); Exception ex2; ex2._className = ex2; PkixCertPathBuilderResult pkixCertPathBuilderResult2; if (pkixCertPathBuilderResult2 == 0) { } return pkixCertPathBuilderResult2; } // Token: 0x06007F21 RID: 32545 RVA: 0x001AA72C File Offset: 0x001A892C [Token(Token = "0x6007F21")] [Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")] public PkixAttrCertPathBuilder() { } // Token: 0x04005A94 RID: 23188 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4005A94")] private Exception certPathException; } }