using System; using System.Collections; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities; using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections; using BestHTTP.SecureProtocol.Org.BouncyCastle.X509; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix { // Token: 0x02001A58 RID: 6744 [Token(Token = "0x2001A58")] public class PkixCertPathBuilder { // Token: 0x06009EE2 RID: 40674 RVA: 0x0020B3A4 File Offset: 0x002095A4 [Token(Token = "0x6009EE2")] [Address(RVA = "0x64C410", Offset = "0x64B410", VA = "0x18064C410", Slot = "4")] public virtual PkixCertPathBuilderResult Build(PkixBuilderParameters pkixParams) { int num; ICollection collection; do { num = 0; HashSet hashSet = new HashSet(); IList additionalStores = pkixParams.GetAdditionalStores(); } while (collection != 0); PkixCertPathBuilderResult pkixCertPathBuilderResult; if (Platform.CreateArrayList() != 0) { while (pkixCertPathBuilderResult == 0) { } } if (pkixCertPathBuilderResult != 0) { } if (num == 0 && (pkixCertPathBuilderResult != 0 || this.certPathException == pkixCertPathBuilderResult)) { return pkixCertPathBuilderResult; } throw new NullReferenceException(); } // Token: 0x06009EE3 RID: 40675 RVA: 0x0020B468 File Offset: 0x00209668 [Token(Token = "0x6009EE3")] [Address(RVA = "0x64CA50", Offset = "0x64BA50", VA = "0x18064CA50", Slot = "5")] protected virtual PkixCertPathBuilderResult Build(X509Certificate tbvCert, PkixBuilderParameters pkixParams, IList tbvPath) { PkixCertPathValidator pkixCertPathValidator = new PkixCertPathValidator(); bool flag; int count; if (!flag) { PkixCertPathValidatorUtilities.AddAdditionalStoresFromAltNames(tbvCert, pkixParams); HashSet hashSet = new HashSet(); ICollection collection = PkixCertPathValidatorUtilities.FindIssuerCerts(tbvCert, pkixParams); if (hashSet.GetEnumerator() == 0) { count = hashSet.Count; PkixCertPathBuilderResult pkixCertPathBuilderResult; if (count != 0) { while (pkixCertPathBuilderResult == 0) { } } int num = 0; if (pkixCertPathBuilderResult != 0) { } if (num == 0) { goto IL_4A; } } Exception ex = new Exception("No issuer certificate for certificate in certification path found."); throw new NullReferenceException(); } IL_4A: PkixCertPath pkixCertPath = new PkixCertPath(tbvPath); int stringLength = count.ToString().m_stringLength; PkixCertPathBuilderResult pkixCertPathBuilderResult2; return pkixCertPathBuilderResult2; } // Token: 0x06009EE4 RID: 40676 RVA: 0x0020B550 File Offset: 0x00209750 [Token(Token = "0x6009EE4")] [Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")] public PkixCertPathBuilder() { } // Token: 0x04006A95 RID: 27285 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4006A95")] private Exception certPathException; } }