This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,76 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001972 RID: 6514
[Token(Token = "0x2001972")]
public class CertStatus
{
// Token: 0x170018D2 RID: 6354
// (get) Token: 0x06009AF0 RID: 39664 RVA: 0x00201AB0 File Offset: 0x001FFCB0
// (set) Token: 0x06009AF1 RID: 39665 RVA: 0x00201AC4 File Offset: 0x001FFCC4
[Token(Token = "0x170018D2")]
public DateTimeObject RevocationDate
{
[Token(Token = "0x6009AF0")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.revocationDate;
}
[Token(Token = "0x6009AF1")]
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
set
{
this.revocationDate = value;
}
}
// Token: 0x170018D3 RID: 6355
// (get) Token: 0x06009AF2 RID: 39666 RVA: 0x00201AD8 File Offset: 0x001FFCD8
// (set) Token: 0x06009AF3 RID: 39667 RVA: 0x00201AEC File Offset: 0x001FFCEC
[Token(Token = "0x170018D3")]
public int Status
{
[Token(Token = "0x6009AF2")]
[Address(RVA = "0x3FA560", Offset = "0x3F9360", VA = "0x1803FA560")]
get
{
return this.status;
}
[Token(Token = "0x6009AF3")]
[Address(RVA = "0x536480", Offset = "0x535280", VA = "0x180536480")]
set
{
this.status = value;
}
}
// Token: 0x06009AF4 RID: 39668 RVA: 0x00201B00 File Offset: 0x001FFD00
[Token(Token = "0x6009AF4")]
[Address(RVA = "0x1CBC190", Offset = "0x1CBAF90", VA = "0x181CBC190")]
public CertStatus()
{
}
// Token: 0x040068D3 RID: 26835
[Token(Token = "0x40068D3")]
public const int Unrevoked = 11;
// Token: 0x040068D4 RID: 26836
[Token(Token = "0x40068D4")]
public const int Undetermined = 12;
// Token: 0x040068D5 RID: 26837
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40068D5")]
private int status = (int)((ulong)11L);
// Token: 0x040068D6 RID: 26838
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40068D6")]
private DateTimeObject revocationDate;
}
}
@@ -0,0 +1,35 @@
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: 0x02001973 RID: 6515
[Token(Token = "0x2001973")]
public abstract class PkixAttrCertChecker
{
// Token: 0x06009AF5 RID: 39669
[Token(Token = "0x6009AF5")]
[Address(Slot = "4")]
public abstract ISet GetSupportedExtensions();
// Token: 0x06009AF6 RID: 39670
[Token(Token = "0x6009AF6")]
[Address(Slot = "5")]
public abstract void Check(IX509AttributeCertificate attrCert, PkixCertPath certPath, PkixCertPath holderCertPath, ICollection unresolvedCritExts);
// Token: 0x06009AF7 RID: 39671
[Token(Token = "0x6009AF7")]
[Address(Slot = "6")]
public abstract PkixAttrCertChecker Clone();
// Token: 0x06009AF8 RID: 39672 RVA: 0x00201B20 File Offset: 0x001FFD20
[Token(Token = "0x6009AF8")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected PkixAttrCertChecker()
{
}
}
}
@@ -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 1660
*/;
}
// 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;
}
}
@@ -0,0 +1,38 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001975 RID: 6517
[Token(Token = "0x2001975")]
public class PkixAttrCertPathValidator
{
// Token: 0x06009AFC RID: 39676 RVA: 0x00201D50 File Offset: 0x001FFF50
[Token(Token = "0x6009AFC")]
[Address(RVA = "0x1CC9340", Offset = "0x1CC8140", VA = "0x181CC9340", Slot = "4")]
public virtual PkixCertPathValidatorResult Validate(PkixCertPath certPath, PkixParameters pkixParams)
{
PkixCertPathValidatorResult pkixCertPathValidatorResult;
byte[] array;
do
{
PkixCertPath pkixCertPath = Rfc3281CertPathUtilities.ProcessAttrCert1(0, pkixParams);
pkixCertPathValidatorResult = Rfc3281CertPathUtilities.ProcessAttrCert2(certPath, pkixParams);
if (array == 0)
{
}
}
while (array == 0);
int num = 0;
DateTime validCertDateFromValidityModel = PkixCertPathValidatorUtilities.GetValidCertDateFromValidityModel(pkixParams, num, -1);
return pkixCertPathValidatorResult;
}
// Token: 0x06009AFD RID: 39677 RVA: 0x00201D98 File Offset: 0x001FFF98
[Token(Token = "0x6009AFD")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public PkixAttrCertPathValidator()
{
}
}
}
@@ -0,0 +1,152 @@
using System;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001976 RID: 6518
[Token(Token = "0x2001976")]
public class PkixBuilderParameters : PkixParameters
{
// Token: 0x06009AFE RID: 39678 RVA: 0x00201DAC File Offset: 0x001FFFAC
[Token(Token = "0x6009AFE")]
[Address(RVA = "0x1CC97F0", Offset = "0x1CC85F0", VA = "0x181CC97F0")]
public static PkixBuilderParameters GetInstance(PkixParameters pkixParams)
{
PkixBuilderParameters pkixBuilderParameters;
object obj = pkixBuilderParameters.Clone();
return pkixBuilderParameters;
}
// Token: 0x06009AFF RID: 39679 RVA: 0x00201DC8 File Offset: 0x001FFFC8
[Token(Token = "0x6009AFF")]
[Address(RVA = "0x1CC9BC0", Offset = "0x1CC89C0", VA = "0x181CC9BC0")]
public PkixBuilderParameters(ISet trustAnchors, IX509Selector targetConstraints)
{
HashSet hashSet = new HashSet();
this.excludedCerts = hashSet;
base..ctor(trustAnchors);
}
// Token: 0x170018D4 RID: 6356
// (get) Token: 0x06009B00 RID: 39680 RVA: 0x00201DF4 File Offset: 0x001FFFF4
// (set) Token: 0x06009B01 RID: 39681 RVA: 0x00201E08 File Offset: 0x00200008
[Token(Token = "0x170018D4")]
public virtual int MaxPathLength
{
[Token(Token = "0x6009B00")]
[Address(RVA = "0x73F5C0", Offset = "0x73E3C0", VA = "0x18073F5C0", Slot = "48")]
get
{
return this.maxPathLength;
}
[Token(Token = "0x6009B01")]
[Address(RVA = "0x1CC9C60", Offset = "0x1CC8A60", VA = "0x181CC9C60", Slot = "49")]
set
{
this.maxPathLength = value;
}
}
// Token: 0x06009B02 RID: 39682 RVA: 0x00201E28 File Offset: 0x00200028
[Token(Token = "0x6009B02")]
[Address(RVA = "0x1CC9790", Offset = "0x1CC8590", VA = "0x181CC9790", Slot = "50")]
public virtual ISet GetExcludedCerts()
{
/*
An exception occurred when decompiling this method (06009B02)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixBuilderParameters::GetExcludedCerts()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixBuilderParameters::excludedCerts, ldloc:PkixBuilderParameters(this))))
}
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 1660
*/;
}
// Token: 0x06009B03 RID: 39683 RVA: 0x00201E40 File Offset: 0x00200040
[Token(Token = "0x6009B03")]
[Address(RVA = "0x1CC98E0", Offset = "0x1CC86E0", VA = "0x181CC98E0", Slot = "51")]
public virtual void SetExcludedCerts(ISet excludedCerts)
{
if (excludedCerts != 0)
{
HashSet hashSet = new HashSet(excludedCerts);
this.excludedCerts = hashSet;
return;
}
HashSet hashSet2 = new HashSet();
}
// Token: 0x06009B04 RID: 39684 RVA: 0x00201E68 File Offset: 0x00200068
[Token(Token = "0x6009B04")]
[Address(RVA = "0x1CC9970", Offset = "0x1CC8770", VA = "0x181CC9970", Slot = "26")]
protected override void SetParams(PkixParameters parameters)
{
int num;
do
{
base.SetParams(parameters);
if (parameters == 0 || parameters == 0)
{
return;
}
num = 0;
}
while (parameters == 0);
this.maxPathLength = num;
HashSet hashSet;
this.excludedCerts = hashSet;
}
// Token: 0x06009B05 RID: 39685 RVA: 0x00201E9C File Offset: 0x0020009C
[Token(Token = "0x6009B05")]
[Address(RVA = "0x1CC96D0", Offset = "0x1CC84D0", VA = "0x181CC96D0", Slot = "25")]
public override object Clone()
{
PkixBuilderParameters pkixBuilderParameters;
object obj = pkixBuilderParameters.Clone();
throw new NullReferenceException();
}
// Token: 0x06009B06 RID: 39686 RVA: 0x00201EB8 File Offset: 0x002000B8
[Token(Token = "0x6009B06")]
[Address(RVA = "0x1CC9A80", Offset = "0x1CC8880", VA = "0x181CC9A80", Slot = "3")]
public override string ToString()
{
string newLine = Platform.NewLine;
StringBuilder stringBuilder = new StringBuilder();
string text = "PkixBuilderParameters [" + newLine;
StringBuilder stringBuilder2 = stringBuilder.Append(text);
string text2 = base.ToString();
StringBuilder stringBuilder3 = stringBuilder.Append(text2);
StringBuilder stringBuilder4 = stringBuilder.Append(" Maximum Path Length: ");
string text3 = newLine + "]" + newLine;
StringBuilder stringBuilder5 = stringBuilder.Append(text3);
throw new NullReferenceException();
}
// Token: 0x040068D8 RID: 26840
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40068D8")]
private int maxPathLength = (int)((ulong)5L);
// Token: 0x040068D9 RID: 26841
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x40068D9")]
private ISet excludedCerts;
}
}
@@ -0,0 +1,364 @@
using System;
using System.Collections;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using BestHTTP.SecureProtocol.Org.BouncyCastle.OpenSsl;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security.Certificates;
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: 0x02001977 RID: 6519
[Token(Token = "0x2001977")]
public class PkixCertPath
{
// Token: 0x06009B08 RID: 39688 RVA: 0x00201F48 File Offset: 0x00200148
[Token(Token = "0x6009B08")]
[Address(RVA = "0x1CD1D30", Offset = "0x1CD0B30", VA = "0x181CD1D30")]
private static IList SortCerts(IList certs)
{
IList list2;
int num2;
for (;;)
{
int num = 0;
if ((uint)1 == (uint)num)
{
goto IL_7B;
}
if (num != 0)
{
bool flag;
if (flag)
{
}
IList list = Platform.CreateArrayList(flag ? 1 : 0);
list2 = Platform.CreateArrayList(certs);
num2 = 0;
if (num2 >= list2)
{
goto IL_58;
}
if (list2 != 0)
{
bool flag2;
while (!flag2)
{
}
}
if (-1 != 0)
{
}
if (list2 == 0)
{
break;
}
}
}
if (18446744073709551615UL != (ulong)(-1L))
{
}
if ((ulong)1L == 0UL)
{
}
num2++;
IL_58:
int num3 = 0;
if (0 != -1)
{
int num4 = 0;
bool flag3;
if (num4 < -1 && !flag3)
{
num4++;
}
num3++;
}
return list2;
IL_7B:
throw new NullReferenceException();
}
// Token: 0x06009B09 RID: 39689 RVA: 0x00201FD8 File Offset: 0x002001D8
[Token(Token = "0x6009B09")]
[Address(RVA = "0x1CD2660", Offset = "0x1CD1460", VA = "0x181CD2660")]
public PkixCertPath(ICollection certificates)
{
IList list = PkixCertPath.SortCerts(Platform.CreateArrayList(certificates));
this.certificates = list;
}
// Token: 0x06009B0A RID: 39690 RVA: 0x00202000 File Offset: 0x00200200
[Token(Token = "0x6009B0A")]
[Address(RVA = "0x1CD2700", Offset = "0x1CD1500", VA = "0x181CD2700")]
public PkixCertPath(Stream inStream)
{
}
// Token: 0x06009B0B RID: 39691 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009B0B")]
[Address(RVA = "0x1CD2750", Offset = "0x1CD1550", VA = "0x181CD2750")]
public PkixCertPath(Stream inStream, string encoding)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x170018D5 RID: 6357
// (get) Token: 0x06009B0C RID: 39692 RVA: 0x00202010 File Offset: 0x00200210
[Token(Token = "0x170018D5")]
public virtual IEnumerable Encodings
{
[Token(Token = "0x6009B0C")]
[Address(RVA = "0x1CD2E20", Offset = "0x1CD1C20", VA = "0x181CD2E20", Slot = "4")]
get
{
/*
An exception occurred when decompiling this method (06009B0C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerable BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath::get_Encodings()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:EnumerableProxy(var_0_0A, newobj:EnumerableProxy(EnumerableProxy::.ctor, ldsfld:IList[exp:IEnumerable](PkixCertPath::certPathEncodings)))
}
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 1660
*/;
}
}
// Token: 0x06009B0D RID: 39693 RVA: 0x00202028 File Offset: 0x00200228
[Token(Token = "0x6009B0D")]
[Address(RVA = "0x1CD11B0", Offset = "0x1CCFFB0", VA = "0x181CD11B0", Slot = "0")]
public override bool Equals(object obj)
{
while (this != obj)
{
byte[] array;
if (obj != 0 && obj != 0 && array == null)
{
if (array != 0)
{
if (object.Equals(array, array))
{
continue;
}
}
}
break;
}
return true;
}
// Token: 0x06009B0E RID: 39694 RVA: 0x00202060 File Offset: 0x00200260
[Token(Token = "0x6009B0E")]
[Address(RVA = "0x4E7FC0", Offset = "0x4E6DC0", VA = "0x1804E7FC0", Slot = "2")]
public override int GetHashCode()
{
byte[] array;
OVRMesh.JAAHPDGFADH jaahpdgfadh = ((OVRMesh.PJPHJNNOBBH)array).POCDCJMHEGL();
throw new NullReferenceException();
}
// Token: 0x06009B0F RID: 39695 RVA: 0x0020207C File Offset: 0x0020027C
[Token(Token = "0x6009B0F")]
[Address(RVA = "0x1CD1370", Offset = "0x1CD0170", VA = "0x181CD1370", Slot = "5")]
public virtual byte[] GetEncoded()
{
int num;
byte[] array;
do
{
num = 0;
string text = this.ToString();
if (text != 0)
{
while (text == 0)
{
}
while (text == 0)
{
}
if (text == 0)
{
goto IL_2F;
}
}
if (array != 0)
{
}
}
while (num != 0);
if (num != -1)
{
return array;
}
throw new NullReferenceException();
IL_2F:
throw new NullReferenceException();
}
// Token: 0x06009B10 RID: 39696 RVA: 0x002020C0 File Offset: 0x002002C0
[Token(Token = "0x6009B10")]
[Address(RVA = "0x1CD1530", Offset = "0x1CD0330", VA = "0x181CD1530", Slot = "6")]
public virtual byte[] GetEncoded(string encoding)
{
int num3;
int num4;
Asn1EncodableVector asn1EncodableVector;
Asn1Encodable[] array;
int num5;
Asn1Encodable[] array2;
for (;;)
{
if (!Platform.EqualsIgnoreCase(encoding, "PkiPath"))
{
if (!Platform.EqualsIgnoreCase(encoding, "PKCS7"))
{
if (!Platform.EqualsIgnoreCase(encoding, "PEM"))
{
goto IL_1AA;
}
PemWriter pemWriter = new PemWriter(new StreamWriter(new MemoryStream()));
int num = 0;
IList list = this.certificates;
if (num != pemWriter)
{
IList list2 = this.certificates;
pemWriter.WriteObject(pemWriter);
num++;
}
TextWriter writer = pemWriter.writer;
}
int num2;
ContentInfo contentInfo = new ContentInfo(PkcsObjectIdentifiers.Data, num2);
num3 = 0;
num2 = 0;
num4 = 0;
IList list3 = this.certificates;
if (num4 == asn1EncodableVector)
{
goto IL_E4;
}
array = new Asn1Encodable[1];
IList list4 = this.certificates;
if (num4 < list3)
{
num4 += num4;
num4++;
}
if (array == 0)
{
num4 += num4;
}
if (array != 0)
{
break;
}
}
else
{
IList list5 = this.certificates;
num5 = 0;
array2 = new Asn1Encodable[1];
IList list6 = this.certificates;
if (num5 < list5)
{
num5 += num5;
num5++;
}
if (num5 == 0)
{
num5 += num5;
num5 += 19;
}
if (num5 != 0)
{
goto Block_10;
}
}
}
Asn1Object asn1Object;
if (asn1Object != 0)
{
}
array[0] = asn1Object;
asn1EncodableVector.Add(array);
num4++;
IL_E4:
DerInteger derInteger = new DerInteger(1);
DerSet derSet = new DerSet();
DerSet derSet2 = new DerSet(asn1EncodableVector);
DerSet derSet3 = new DerSet();
SignedData signedData = new SignedData(derInteger, derSet, num3, derSet2, num4, derSet3);
ContentInfo contentInfo2 = new ContentInfo(PkcsObjectIdentifiers.SignedData, signedData);
return this.ToDerEncoded(contentInfo2);
Block_10:
Asn1Object asn1Object2 = this.ToAsn1Object(num5);
if (asn1Object2 != 0)
{
}
array2[0] = asn1Object2;
Asn1EncodableVector asn1EncodableVector2;
asn1EncodableVector2.Add(array2);
DerSequence derSequence = new DerSequence(asn1EncodableVector2);
throw new NullReferenceException();
IL_1AA:
string text;
CertificateEncodingException ex = new CertificateEncodingException(text);
throw new NullReferenceException();
}
// Token: 0x170018D6 RID: 6358
// (get) Token: 0x06009B11 RID: 39697 RVA: 0x002022AC File Offset: 0x002004AC
[Token(Token = "0x170018D6")]
public virtual IList Certificates
{
[Token(Token = "0x6009B11")]
[Address(RVA = "0x1CD2E10", Offset = "0x1CD1C10", VA = "0x181CD2E10", Slot = "7")]
get
{
return CollectionUtilities.ReadOnly(this.certificates);
}
}
// Token: 0x06009B12 RID: 39698 RVA: 0x002022C4 File Offset: 0x002004C4
[Token(Token = "0x6009B12")]
[Address(RVA = "0x1CD2440", Offset = "0x1CD1240", VA = "0x181CD2440")]
private Asn1Object ToAsn1Object(X509Certificate cert)
{
AsymmetricKeyParameter publicKey = cert.GetPublicKey();
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x06009B13 RID: 39699 RVA: 0x002022E0 File Offset: 0x002004E0
[Token(Token = "0x6009B13")]
[Address(RVA = "0x1CD24F0", Offset = "0x1CD12F0", VA = "0x181CD24F0")]
private byte[] ToDerEncoded(Asn1Encodable obj)
{
return obj.GetEncoded("DER");
}
// Token: 0x040068DA RID: 26842
[Token(Token = "0x40068DA")]
internal static readonly IList certPathEncodings = CollectionUtilities.ReadOnly(Platform.CreateArrayList());
// Token: 0x040068DB RID: 26843
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40068DB")]
private readonly IList certificates;
}
}
@@ -0,0 +1,99 @@
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: 0x02001978 RID: 6520
[Token(Token = "0x2001978")]
public class PkixCertPathBuilder
{
// Token: 0x06009B14 RID: 39700 RVA: 0x0020230C File Offset: 0x0020050C
[Token(Token = "0x6009B14")]
[Address(RVA = "0x1CC9F30", Offset = "0x1CC8D30", VA = "0x181CC9F30", 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: 0x06009B15 RID: 39701 RVA: 0x002023D0 File Offset: 0x002005D0
[Token(Token = "0x6009B15")]
[Address(RVA = "0x1CCA570", Offset = "0x1CC9370", VA = "0x181CCA570", 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: 0x06009B16 RID: 39702 RVA: 0x002024B8 File Offset: 0x002006B8
[Token(Token = "0x6009B16")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public PkixCertPathBuilder()
{
}
// Token: 0x040068DC RID: 26844
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40068DC")]
private Exception certPathException;
}
}
@@ -0,0 +1,35 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001979 RID: 6521
[Token(Token = "0x2001979")]
[Serializable]
public class PkixCertPathBuilderException : GeneralSecurityException
{
// Token: 0x06009B17 RID: 39703 RVA: 0x002024CC File Offset: 0x002006CC
[Token(Token = "0x6009B17")]
[Address(RVA = "0x1B15680", Offset = "0x1B14480", VA = "0x181B15680")]
public PkixCertPathBuilderException()
{
}
// Token: 0x06009B18 RID: 39704 RVA: 0x002024E0 File Offset: 0x002006E0
[Token(Token = "0x6009B18")]
[Address(RVA = "0x1B15670", Offset = "0x1B14470", VA = "0x181B15670")]
public PkixCertPathBuilderException(string message)
: base(message)
{
}
// Token: 0x06009B19 RID: 39705 RVA: 0x002024F4 File Offset: 0x002006F4
[Token(Token = "0x6009B19")]
[Address(RVA = "0x1B15660", Offset = "0x1B14460", VA = "0x181B15660")]
public PkixCertPathBuilderException(string message, Exception exception)
: base(message, exception)
{
}
}
}
@@ -0,0 +1,77 @@
using System;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x0200197A RID: 6522
[Token(Token = "0x200197A")]
public class PkixCertPathBuilderResult : PkixCertPathValidatorResult
{
// Token: 0x06009B1A RID: 39706 RVA: 0x0020250C File Offset: 0x0020070C
[Token(Token = "0x6009B1A")]
[Address(RVA = "0x1CC9E80", Offset = "0x1CC8C80", VA = "0x181CC9E80")]
public PkixCertPathBuilderResult(PkixCertPath certPath, TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
{
/*
An exception occurred when decompiling this method (06009B1A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathBuilderResult::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,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_0C:
stloc:ArgumentNullException(var_1_16, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certPath")))
}
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 1660
*/;
}
// Token: 0x170018D7 RID: 6359
// (get) Token: 0x06009B1B RID: 39707 RVA: 0x00202530 File Offset: 0x00200730
[Token(Token = "0x170018D7")]
public PkixCertPath CertPath
{
[Token(Token = "0x6009B1B")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return this.certPath;
}
}
// Token: 0x06009B1C RID: 39708 RVA: 0x00202544 File Offset: 0x00200744
[Token(Token = "0x6009B1C")]
[Address(RVA = "0x1CC9CE0", Offset = "0x1CC8AE0", VA = "0x181CC9CE0", Slot = "3")]
public override string ToString()
{
StringBuilder stringBuilder = new StringBuilder();
StringBuilder stringBuilder2 = stringBuilder.Append("SimplePKIXCertPathBuilderResult: [\n");
StringBuilder stringBuilder3 = stringBuilder.Append(" Certification Path: ");
PkixCertPath pkixCertPath = this.certPath;
StringBuilder stringBuilder4 = stringBuilder3.Append(pkixCertPath);
StringBuilder stringBuilder5 = stringBuilder.Append(" Trust Anchor: ");
int hashCode = this.trustAnchor.trustedCert.SerialNumber.GetHashCode();
StringBuilder stringBuilder6 = stringBuilder.Append(" Subject Public Key: ");
AsymmetricKeyParameter subjectPublicKey = this.subjectPublicKey;
StringBuilder stringBuilder7 = stringBuilder6.Append(subjectPublicKey).Append("\n]");
throw new NullReferenceException();
}
// Token: 0x040068DD RID: 26845
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40068DD")]
private PkixCertPath certPath;
}
}
@@ -0,0 +1,47 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x0200197B RID: 6523
[Token(Token = "0x200197B")]
public abstract class PkixCertPathChecker
{
// Token: 0x06009B1D RID: 39709 RVA: 0x002025D4 File Offset: 0x002007D4
[Token(Token = "0x6009B1D")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
protected PkixCertPathChecker()
{
}
// Token: 0x06009B1E RID: 39710
[Token(Token = "0x6009B1E")]
[Address(Slot = "4")]
public abstract void Init(bool forward);
// Token: 0x06009B1F RID: 39711
[Token(Token = "0x6009B1F")]
[Address(Slot = "5")]
public abstract bool IsForwardCheckingSupported();
// Token: 0x06009B20 RID: 39712
[Token(Token = "0x6009B20")]
[Address(Slot = "6")]
public abstract ISet GetSupportedExtensions();
// Token: 0x06009B21 RID: 39713
[Token(Token = "0x6009B21")]
[Address(Slot = "7")]
public abstract void Check(X509Certificate cert, ISet unresolvedCritExts);
// Token: 0x06009B22 RID: 39714 RVA: 0x002025E8 File Offset: 0x002007E8
[Token(Token = "0x6009B22")]
[Address(RVA = "0x6A0DF0", Offset = "0x69FBF0", VA = "0x1806A0DF0", Slot = "8")]
public virtual object Clone()
{
return base.MemberwiseClone();
}
}
}
@@ -0,0 +1,135 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
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: 0x0200197C RID: 6524
[Token(Token = "0x200197C")]
public class PkixCertPathValidator
{
// Token: 0x06009B23 RID: 39715 RVA: 0x002025FC File Offset: 0x002007FC
[Token(Token = "0x6009B23")]
[Address(RVA = "0x1CCFD20", Offset = "0x1CCEB20", VA = "0x181CCFD20", Slot = "4")]
public virtual PkixCertPathValidatorResult Validate(PkixCertPath certPath, PkixParameters paramsPkix)
{
for (;;)
{
byte[] array;
if (array != 0)
{
if (array == 0)
{
}
int num = 0;
TrustAnchor trustAnchor;
if (array != 0 && trustAnchor != 0)
{
int num2 = 0;
PkixCertPathValidator.CheckCertificate(trustAnchor.trustedCert);
IList[] array2 = new IList[num2];
if (num < array2.Length)
{
break;
}
HashSet hashSet = new HashSet();
IList list = Platform.CreateArrayList();
HashSet hashSet2 = new HashSet();
string any_POLICY = Rfc3280CertPathUtilities.ANY_POLICY;
int num3;
ulong num4;
PkixPolicyNode pkixPolicyNode = new PkixPolicyNode(list, num3, hashSet, num, hashSet2, any_POLICY, num4 != 0UL);
num3 = 0;
IList list2 = array2[0];
PkixNameConstraintValidator pkixNameConstraintValidator = new PkixNameConstraintValidator();
HashSet hashSet3 = new HashSet();
pkixNameConstraintValidator.excludedSubtreesDN = hashSet3;
HashSet hashSet4 = new HashSet();
pkixNameConstraintValidator.excludedSubtreesDNS = hashSet4;
HashSet hashSet5 = new HashSet();
pkixNameConstraintValidator.excludedSubtreesEmail = hashSet5;
HashSet hashSet6 = new HashSet();
pkixNameConstraintValidator.excludedSubtreesURI = hashSet6;
HashSet hashSet7 = new HashSet();
pkixNameConstraintValidator.excludedSubtreesIP = hashSet7;
HashSet hashSet8 = new HashSet();
if (hashSet7 == 0)
{
}
hashSet7.Clear();
PkixPolicyNode pkixPolicyNode2;
if (pkixPolicyNode2 == (ulong)1L && pkixPolicyNode2 == 0)
{
goto IL_1F3;
}
int num5;
if (num5 == 0)
{
HashSet hashSet9 = new HashSet();
}
DerObjectIdentifier keyUsage = X509Extensions.KeyUsage;
DerObjectIdentifier certificatePolicies = X509Extensions.CertificatePolicies;
DerObjectIdentifier policyMappings = X509Extensions.PolicyMappings;
DerObjectIdentifier inhibitAnyPolicy = X509Extensions.InhibitAnyPolicy;
DerObjectIdentifier issuingDistributionPoint = X509Extensions.IssuingDistributionPoint;
DerObjectIdentifier deltaCrlIndicator = X509Extensions.DeltaCrlIndicator;
DerObjectIdentifier policyConstraints = X509Extensions.PolicyConstraints;
DerObjectIdentifier basicConstraints = X509Extensions.BasicConstraints;
DerObjectIdentifier subjectAlternativeName = X509Extensions.SubjectAlternativeName;
DerObjectIdentifier nameConstraints = X509Extensions.NameConstraints;
AsymmetricKeyParameter asymmetricKeyParameter;
AlgorithmIdentifier algorithmIdentifier = PkixCertPathValidatorUtilities.GetAlgorithmIdentifier(asymmetricKeyParameter);
int num6;
if (num6 == 0)
{
HashSet hashSet10 = new HashSet();
}
DerObjectIdentifier keyUsage2 = X509Extensions.KeyUsage;
DerObjectIdentifier certificatePolicies2 = X509Extensions.CertificatePolicies;
DerObjectIdentifier policyMappings2 = X509Extensions.PolicyMappings;
DerObjectIdentifier inhibitAnyPolicy2 = X509Extensions.InhibitAnyPolicy;
DerObjectIdentifier issuingDistributionPoint2 = X509Extensions.IssuingDistributionPoint;
DerObjectIdentifier deltaCrlIndicator2 = X509Extensions.DeltaCrlIndicator;
DerObjectIdentifier policyConstraints2 = X509Extensions.PolicyConstraints;
DerObjectIdentifier basicConstraints2 = X509Extensions.BasicConstraints;
DerObjectIdentifier subjectAlternativeName2 = X509Extensions.SubjectAlternativeName;
DerObjectIdentifier nameConstraints2 = X509Extensions.NameConstraints;
DerObjectIdentifier crlDistributionPoints = X509Extensions.CrlDistributionPoints;
PkixPolicyNode pkixPolicyNode3;
if (pkixPolicyNode3 != 0)
{
PkixCertPathValidatorResult pkixCertPathValidatorResult;
return pkixCertPathValidatorResult;
}
}
}
}
IList list3 = Platform.CreateArrayList();
throw new ArrayTypeMismatchException();
IL_1F3:
throw new NullReferenceException();
}
// Token: 0x06009B24 RID: 39716 RVA: 0x00202804 File Offset: 0x00200A04
[Token(Token = "0x6009B24")]
[Address(RVA = "0x1CCFC60", Offset = "0x1CCEA60", VA = "0x181CCFC60")]
internal static void CheckCertificate(X509Certificate cert)
{
Asn1OctetString asn1OctetString;
TbsCertificateStructure instance = TbsCertificateStructure.GetInstance(asn1OctetString.str);
}
// Token: 0x06009B25 RID: 39717 RVA: 0x0020282C File Offset: 0x00200A2C
[Token(Token = "0x6009B25")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public PkixCertPathValidator()
{
}
}
}
@@ -0,0 +1,112 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x0200197D RID: 6525
[Token(Token = "0x200197D")]
[Serializable]
public class PkixCertPathValidatorException : GeneralSecurityException
{
// Token: 0x06009B26 RID: 39718 RVA: 0x00202840 File Offset: 0x00200A40
[Token(Token = "0x6009B26")]
[Address(RVA = "0x1CCAAE0", Offset = "0x1CC98E0", VA = "0x181CCAAE0")]
public PkixCertPathValidatorException()
{
}
// Token: 0x06009B27 RID: 39719 RVA: 0x00202864 File Offset: 0x00200A64
[Token(Token = "0x6009B27")]
[Address(RVA = "0x1CCAB40", Offset = "0x1CC9940", VA = "0x181CCAB40")]
public PkixCertPathValidatorException(string message)
: base(message)
{
}
// Token: 0x06009B28 RID: 39720 RVA: 0x00202888 File Offset: 0x00200A88
[Token(Token = "0x6009B28")]
[Address(RVA = "0x1CCAB00", Offset = "0x1CC9900", VA = "0x181CCAB00")]
public PkixCertPathValidatorException(string message, Exception cause)
: base(message)
{
this.cause = cause;
}
// Token: 0x06009B29 RID: 39721 RVA: 0x002028B4 File Offset: 0x00200AB4
[Token(Token = "0x6009B29")]
[Address(RVA = "0x1CCAB60", Offset = "0x1CC9960", VA = "0x181CCAB60")]
public PkixCertPathValidatorException(string message, Exception cause, PkixCertPath certPath, int index)
: base(message)
{
if (certPath == 0)
{
}
if (certPath != 0)
{
}
this.cause = cause;
this.certPath = certPath;
this.index = 0;
}
// Token: 0x170018D8 RID: 6360
// (get) Token: 0x06009B2A RID: 39722 RVA: 0x0020290C File Offset: 0x00200B0C
[Token(Token = "0x170018D8")]
public override string Message
{
[Token(Token = "0x6009B2A")]
[Address(RVA = "0x1CCACA0", Offset = "0x1CC9AA0", VA = "0x181CCACA0", Slot = "5")]
get
{
string message = base.Message;
if (message == 0 && this.cause == 0)
{
return message;
}
return message;
}
}
// Token: 0x170018D9 RID: 6361
// (get) Token: 0x06009B2B RID: 39723 RVA: 0x00202930 File Offset: 0x00200B30
[Token(Token = "0x170018D9")]
public PkixCertPath CertPath
{
[Token(Token = "0x6009B2B")]
[Address(RVA = "0x44EC40", Offset = "0x44DA40", VA = "0x18044EC40")]
get
{
return this.certPath;
}
}
// Token: 0x170018DA RID: 6362
// (get) Token: 0x06009B2C RID: 39724 RVA: 0x00202944 File Offset: 0x00200B44
[Token(Token = "0x170018DA")]
public int Index
{
[Token(Token = "0x6009B2C")]
[Address(RVA = "0x46E090", Offset = "0x46CE90", VA = "0x18046E090")]
get
{
return this.index;
}
}
// Token: 0x040068DE RID: 26846
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x40068DE")]
private Exception cause;
// Token: 0x040068DF RID: 26847
[FieldOffset(Offset = "0x90")]
[Token(Token = "0x40068DF")]
private PkixCertPath certPath;
// Token: 0x040068E0 RID: 26848
[FieldOffset(Offset = "0x98")]
[Token(Token = "0x40068E0")]
private int index = (int)((ulong)4294967295L);
}
}
@@ -0,0 +1,140 @@
using System;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x0200197E RID: 6526
[Token(Token = "0x200197E")]
public class PkixCertPathValidatorResult
{
// Token: 0x170018DB RID: 6363
// (get) Token: 0x06009B2D RID: 39725 RVA: 0x00202958 File Offset: 0x00200B58
[Token(Token = "0x170018DB")]
public PkixPolicyNode PolicyTree
{
[Token(Token = "0x6009B2D")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.policyTree;
}
}
// Token: 0x170018DC RID: 6364
// (get) Token: 0x06009B2E RID: 39726 RVA: 0x0020296C File Offset: 0x00200B6C
[Token(Token = "0x170018DC")]
public TrustAnchor TrustAnchor
{
[Token(Token = "0x6009B2E")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.trustAnchor;
}
}
// Token: 0x170018DD RID: 6365
// (get) Token: 0x06009B2F RID: 39727 RVA: 0x00202980 File Offset: 0x00200B80
[Token(Token = "0x170018DD")]
public AsymmetricKeyParameter SubjectPublicKey
{
[Token(Token = "0x6009B2F")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.subjectPublicKey;
}
}
// Token: 0x06009B30 RID: 39728 RVA: 0x00202994 File Offset: 0x00200B94
[Token(Token = "0x6009B30")]
[Address(RVA = "0x1CCAEB0", Offset = "0x1CC9CB0", VA = "0x181CCAEB0")]
public PkixCertPathValidatorResult(TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
{
/*
An exception occurred when decompiling this method (06009B30)
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 1660
*/;
}
// Token: 0x06009B31 RID: 39729 RVA: 0x002029DC File Offset: 0x00200BDC
[Token(Token = "0x6009B31")]
[Address(RVA = "0x1CCACF0", Offset = "0x1CC9AF0", VA = "0x181CCACF0")]
public object Clone()
{
/*
An exception occurred when decompiling this method (06009B31)
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 1660
*/;
}
// Token: 0x06009B32 RID: 39730 RVA: 0x00202A08 File Offset: 0x00200C08
[Token(Token = "0x6009B32")]
[Address(RVA = "0x1CCAD70", Offset = "0x1CC9B70", VA = "0x181CCAD70", 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: 0x040068E1 RID: 26849
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40068E1")]
private TrustAnchor trustAnchor;
// Token: 0x040068E2 RID: 26850
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40068E2")]
private PkixPolicyNode policyTree;
// Token: 0x040068E3 RID: 26851
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40068E3")]
private AsymmetricKeyParameter subjectPublicKey;
}
}
@@ -0,0 +1,890 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x0200197F RID: 6527
[Token(Token = "0x200197F")]
public class PkixCertPathValidatorUtilities
{
// Token: 0x06009B33 RID: 39731 RVA: 0x00202A94 File Offset: 0x00200C94
[Token(Token = "0x6009B33")]
[Address(RVA = "0x1CCBD30", Offset = "0x1CCAB30", VA = "0x181CCBD30")]
internal static TrustAnchor FindTrustAnchor(X509Certificate cert, ISet trustAnchors)
{
/*
An exception occurred when decompiling this method (06009B33)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.TrustAnchor BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathValidatorUtilities::FindTrustAnchor(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_95:
stloc:Exception(var_9_A0, newobj:Exception(Exception::.ctor, ldstr:string("TrustAnchor found but certificate validation failed."), ldloc:int32[exp:Exception](var_1_03)))
}
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 1660
*/;
}
// Token: 0x06009B34 RID: 39732 RVA: 0x00202B44 File Offset: 0x00200D44
[Token(Token = "0x6009B34")]
[Address(RVA = "0x1CCE1E0", Offset = "0x1CCCFE0", VA = "0x181CCE1E0")]
internal static bool IsIssuerTrustAnchor(X509Certificate cert, ISet trustAnchors)
{
/*
An exception occurred when decompiling this method (06009B34)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathValidatorUtilities::IsIssuerTrustAnchor(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:TrustAnchor(var_0_07, call:TrustAnchor(PkixCertPathValidatorUtilities::FindTrustAnchor, ldloc:X509Certificate(cert), ldloc:ISet(trustAnchors)))
}
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 1660
*/;
}
// Token: 0x06009B35 RID: 39733 RVA: 0x00202B5C File Offset: 0x00200D5C
[Token(Token = "0x6009B35")]
[Address(RVA = "0x1CCB130", Offset = "0x1CC9F30", VA = "0x181CCB130")]
internal static void AddAdditionalStoresFromAltNames(X509Certificate cert, PkixParameters pkixParams)
{
while (cert.GetSubjectAlternativeNames() != 0)
{
ICollection subjectAlternativeNames = cert.GetSubjectAlternativeNames();
if (subjectAlternativeNames == 0)
{
break;
}
if (subjectAlternativeNames != 0)
{
int num;
while (num == 0)
{
}
if (num == 0 || num != 0)
{
break;
}
}
}
}
// Token: 0x06009B36 RID: 39734 RVA: 0x00202B90 File Offset: 0x00200D90
[Token(Token = "0x6009B36")]
[Address(RVA = "0x1CCE0C0", Offset = "0x1CCCEC0", VA = "0x181CCE0C0")]
internal static DateTime GetValidDate(PkixParameters paramsPKIX)
{
return DateTime.UtcNow;
}
// Token: 0x06009B37 RID: 39735 RVA: 0x00202BAC File Offset: 0x00200DAC
[Token(Token = "0x6009B37")]
[Address(RVA = "0x1CCD540", Offset = "0x1CCC340", VA = "0x181CCD540")]
internal static X509Name GetIssuerPrincipal(object cert)
{
for (;;)
{
if (cert == 0)
{
if (cert != 0 && cert != 0)
{
break;
}
}
else if (cert != 0 && cert != 0)
{
goto Block_4;
}
}
X509Name[] array;
return array[0];
Block_4:
throw new NullReferenceException();
}
// Token: 0x06009B38 RID: 39736 RVA: 0x00202BE4 File Offset: 0x00200DE4
[Token(Token = "0x6009B38")]
[Address(RVA = "0x1CCE270", Offset = "0x1CCD070", VA = "0x181CCE270")]
internal static bool IsSelfIssued(X509Certificate cert)
{
X509Name issuerDN = cert.IssuerDN;
BigInteger serialNumber = cert.SerialNumber;
bool flag;
return flag;
}
// Token: 0x06009B39 RID: 39737 RVA: 0x00202C08 File Offset: 0x00200E08
[Token(Token = "0x6009B39")]
[Address(RVA = "0x1CCC0E0", Offset = "0x1CCAEE0", VA = "0x181CCC0E0")]
internal static AlgorithmIdentifier GetAlgorithmIdentifier(AsymmetricKeyParameter key)
{
return SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(key).algID;
}
// Token: 0x06009B3A RID: 39738 RVA: 0x00202C28 File Offset: 0x00200E28
[Token(Token = "0x6009B3A")]
[Address(RVA = "0x1CCE140", Offset = "0x1CCCF40", VA = "0x181CCE140")]
internal static bool IsAnyPolicy(ISet policySet)
{
bool flag;
return policySet == 0 || flag;
}
// Token: 0x06009B3B RID: 39739 RVA: 0x00202C3C File Offset: 0x00200E3C
[Token(Token = "0x6009B3B")]
[Address(RVA = "0x1CCAF90", Offset = "0x1CC9D90", VA = "0x181CCAF90")]
internal static void AddAdditionalStoreFromLocation(string location, PkixParameters pkixParams)
{
if (pkixParams.GetStores() != 0)
{
if (!Platform.StartsWith(location, "ldap://"))
{
}
string text = location.Substring(7);
}
}
// Token: 0x06009B3C RID: 39740 RVA: 0x00202CAC File Offset: 0x00200EAC
[Token(Token = "0x6009B3C")]
[Address(RVA = "0x1CCDC70", Offset = "0x1CCCA70", VA = "0x181CCDC70")]
private static BigInteger GetSerialNumber(object cert)
{
while ((cert == 0 && (cert == 0 || cert == 0)) || cert == 0 || cert == 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06009B3D RID: 39741 RVA: 0x00202CE0 File Offset: 0x00200EE0
[Token(Token = "0x6009B3D")]
[Address(RVA = "0x1CCDA70", Offset = "0x1CCC870", VA = "0x181CCDA70")]
internal static ISet GetQualifierSet(Asn1Sequence qualifiers)
{
int num;
do
{
num = 0;
HashSet hashSet = new HashSet();
if (qualifiers == 0)
{
break;
}
IEnumerator enumerator = qualifiers.GetEnumerator();
if (enumerator != 0)
{
if (enumerator == 0)
{
}
if (enumerator == 0)
{
goto IL_36;
}
}
PolicyQualifierInfo policyQualifierInfo;
if (policyQualifierInfo != 0)
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_36:
throw new NullReferenceException();
}
// Token: 0x06009B3E RID: 39742 RVA: 0x00202D28 File Offset: 0x00200F28
[Token(Token = "0x6009B3E")]
[Address(RVA = "0x1CCF590", Offset = "0x1CCE390", VA = "0x181CCF590")]
internal static PkixPolicyNode RemovePolicyNode(PkixPolicyNode validPolicyTree, IList[] policyNodes, PkixPolicyNode _node)
{
if (validPolicyTree != 0)
{
PkixCertPathValidatorUtilities.RemovePolicyNodeRecurse(policyNodes, _node);
return validPolicyTree;
}
throw new NullReferenceException();
}
// Token: 0x06009B3F RID: 39743 RVA: 0x00202D70 File Offset: 0x00200F70
[Token(Token = "0x6009B3F")]
[Address(RVA = "0x1CCF350", Offset = "0x1CCE150", VA = "0x181CCF350")]
private static void RemovePolicyNodeRecurse(IList[] policyNodes, PkixPolicyNode _node)
{
int num;
do
{
num = 0;
string text = _node.ToString();
IList list = policyNodes[text];
if (_node.ValidPolicy == 0)
{
break;
}
int depth = _node.Depth;
int num2;
if (depth != 0)
{
if (depth == 0)
{
}
num2 = 0;
if (depth == 0)
{
goto IL_40;
}
}
if (num2 != 0)
{
}
}
while (num != 0);
return;
IL_40:
throw new NullReferenceException();
}
// Token: 0x06009B40 RID: 39744 RVA: 0x00202DC4 File Offset: 0x00200FC4
[Token(Token = "0x6009B40")]
[Address(RVA = "0x1CCE2D0", Offset = "0x1CCD0D0", VA = "0x181CCE2D0")]
internal static void PrepareNextCertB1(int i, IList[] policyNodes, string id_p, IDictionary m_idp, X509Certificate cert)
{
IList list = policyNodes[i];
bool flag;
while (!flag)
{
}
}
// Token: 0x06009B41 RID: 39745 RVA: 0x00202E68 File Offset: 0x00201068
[Token(Token = "0x6009B41")]
[Address(RVA = "0x1CCEA30", Offset = "0x1CCD830", VA = "0x181CCEA30")]
internal static PkixPolicyNode PrepareNextCertB2(int i, IList[] policyNodes, string id_p, PkixPolicyNode validPolicyTree)
{
int num;
do
{
num = 0;
IList list = Platform.CreateArrayList(policyNodes[i]);
if (list != 0)
{
if (list == 0)
{
continue;
}
bool flag;
if (!flag)
{
num++;
}
IList list2 = policyNodes[i];
int num2 = i - 1;
IList list3 = policyNodes[num2];
PkixPolicyNode pkixPolicyNode;
if (num < num2 && pkixPolicyNode != 0)
{
num++;
}
}
}
while (num != 0);
return validPolicyTree;
}
// Token: 0x06009B42 RID: 39746 RVA: 0x00202EC8 File Offset: 0x002010C8
[Token(Token = "0x6009B42")]
[Address(RVA = "0x1CCC180", Offset = "0x1CCAF80", VA = "0x181CCC180")]
internal static void GetCertStatus(DateTime validDate, X509Crl crl, object cert, CertStatus certStatus)
{
Asn1Object asn1Object;
do
{
if (asn1Object == 0)
{
}
}
while (asn1Object == 0);
X509Crl x509Crl = new X509Crl(CertificateList.GetInstance(asn1Object));
BigInteger serialNumber = PkixCertPathValidatorUtilities.GetSerialNumber(cert);
if (x509Crl.NextUpdate != 0)
{
int num = 0;
if (!PkixCertPathValidatorUtilities.GetIssuerPrincipal(cert).Equivalent(num, true))
{
int version = crl.Version;
bool flag;
if (!flag)
{
return;
}
}
bool flag2;
DerEnumerated instance;
if (flag2)
{
Asn1Object asn1Object2;
instance = DerEnumerated.GetInstance(asn1Object2);
}
DateTime dateTime;
if (instance < dateTime)
{
if (instance == 0)
{
goto IL_B7;
}
BigInteger value = instance.Value;
int num2 = 0;
if (!value.TestBit(num2) && !instance.Value.TestBit(1) && !instance.Value.TestBit(2) && !instance.Value.TestBit(8))
{
return;
}
}
if (instance != 0)
{
goto IL_C0;
}
IL_B7:
certStatus.status = (int)((ulong)0L);
IL_C0:
int sign = instance.Value.sign;
certStatus.status = sign;
DateTime dateTime2;
DateTimeObject dateTimeObject = new DateTimeObject(dateTime2);
certStatus.revocationDate = dateTimeObject;
}
}
// Token: 0x06009B43 RID: 39747 RVA: 0x00202FD0 File Offset: 0x002011D0
[Token(Token = "0x6009B43")]
[Address(RVA = "0x1CCD6F0", Offset = "0x1CCC4F0", VA = "0x181CCD6F0")]
internal static AsymmetricKeyParameter GetNextWorkingKey(IList certs, int index)
{
int num;
int num2;
int num3;
for (;;)
{
num = 0;
if (num == 0 || num == 0)
{
goto IL_35;
}
num2 = 0;
if (num != 0)
{
num3 = index + 1;
if (num3 < num2 && num2 != 0)
{
break;
}
}
}
if (num2 == 0)
{
num3++;
}
DsaPublicKeyParameters dsaPublicKeyParameters = new DsaPublicKeyParameters(num, num2);
IL_35:
throw new NullReferenceException();
}
// Token: 0x06009B44 RID: 39748 RVA: 0x00203018 File Offset: 0x00201218
[Token(Token = "0x6009B44")]
[Address(RVA = "0x1CCDE10", Offset = "0x1CCCC10", VA = "0x181CCDE10")]
internal static DateTime GetValidCertDateFromValidityModel(PkixParameters paramsPkix, PkixCertPath certPath, int index)
{
if (index > 0 && index == 0)
{
DerGeneralizedTime instance = DerGeneralizedTime.GetInstance(IsisMttObjectIdentifiers.IdIsisMtt);
if (instance != 0)
{
return instance.ToDateTime();
}
}
return PkixCertPathValidatorUtilities.GetValidDate(paramsPkix);
}
// Token: 0x06009B45 RID: 39749 RVA: 0x00203050 File Offset: 0x00201250
[Token(Token = "0x6009B45")]
[Address(RVA = "0x1CCB840", Offset = "0x1CCA640", VA = "0x181CCB840")]
internal static ICollection FindCertificates(X509CertStoreSelector certSelect, IList certStores)
{
int num;
do
{
num = 0;
HashSet hashSet = new HashSet();
if (hashSet != 0)
{
if (hashSet != 0 && hashSet == 0)
{
goto IL_4F;
}
if (hashSet != 0)
{
}
if ((uint)(-1) != 0U)
{
}
if (num != 0)
{
goto IL_43;
}
if ((ulong)((uint)(-1)) != (ulong)(-1L))
{
}
}
if ((uint)(-1) != 0U)
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_43:
throw new NullReferenceException();
IL_4F:
throw new NullReferenceException();
}
// Token: 0x06009B46 RID: 39750 RVA: 0x002030B4 File Offset: 0x002012B4
[Token(Token = "0x6009B46")]
[Address(RVA = "0x1CCCB60", Offset = "0x1CCB960", VA = "0x181CCCB60")]
internal static void GetCrlIssuersFromDistributionPoint(DistributionPoint dp, ICollection issuerPrincipals, X509CrlStoreSelector selector, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06009B46)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathValidatorUtilities::GetCrlIssuersFromDistributionPoint(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPoint,System.Collections.ICollection,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CrlStoreSelector,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_AD:
stloc:Exception(var_8_B7, newobj:Exception(Exception::.ctor, ldstr:string("CRL issuer is omitted from distribution point but no distributionPoint field present.")))
}
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 1660
*/;
}
// Token: 0x06009B47 RID: 39751 RVA: 0x0020317C File Offset: 0x0020137C
[Token(Token = "0x6009B47")]
[Address(RVA = "0x1CCC5E0", Offset = "0x1CCB3E0", VA = "0x181CCC5E0")]
internal static ISet GetCompleteCrls(DistributionPoint dp, object cert, DateTime currentDate, PkixParameters paramsPKIX)
{
for (;;)
{
X509CrlStoreSelector x509CrlStoreSelector = new X509CrlStoreSelector();
HashSet hashSet = new HashSet();
if (cert != 0)
{
if (cert != 0)
{
if (cert == 0 || cert == 0)
{
continue;
}
}
}
IL_29:
X509Name issuerPrincipal = PkixCertPathValidatorUtilities.GetIssuerPrincipal(cert);
PkixCertPathValidatorUtilities.GetCrlIssuersFromDistributionPoint(dp, hashSet, x509CrlStoreSelector, paramsPKIX);
if (cert == 0)
{
goto IL_59;
}
if (cert == 0)
{
int num = 0;
if (cert == 0)
{
goto IL_59;
}
if (num != 0)
{
x509CrlStoreSelector.attrCertChecking = num;
goto IL_59;
}
continue;
}
IL_6D:
int num2 = 0;
if (cert != 0)
{
x509CrlStoreSelector.certificateChecking = cert;
goto IL_7B;
}
continue;
IL_59:
x509CrlStoreSelector.completeCrlEnabled = true;
if (PkixCertPathValidatorUtilities.CrlUtilities.ToString() == 0)
{
goto IL_6D;
}
IL_7B:
if (num2 == 0)
{
break;
}
continue;
goto IL_29;
}
throw new IndexOutOfRangeException();
}
// Token: 0x06009B48 RID: 39752 RVA: 0x00203224 File Offset: 0x00201424
[Token(Token = "0x6009B48")]
[Address(RVA = "0x1CCCF40", Offset = "0x1CCBD40", VA = "0x181CCCF40")]
internal static ISet GetDeltaCrls(DateTime currentDate, PkixParameters paramsPKIX, X509Crl completeCRL)
{
int num;
do
{
num = 0;
X509CrlStoreSelector x509CrlStoreSelector = new X509CrlStoreSelector();
IList list = Platform.CreateArrayList();
int version = completeCRL.Version;
x509CrlStoreSelector.Issuers = list;
DerObjectIdentifier crlNumber = X509Extensions.CrlNumber;
Asn1Object extensionValue = PkixCertPathValidatorUtilities.GetExtensionValue(completeCRL, crlNumber);
if (extensionValue != 0)
{
BigInteger positiveValue = DerInteger.GetInstance(extensionValue).PositiveValue;
}
DerObjectIdentifier issuingDistributionPoint = X509Extensions.IssuingDistributionPoint;
Asn1Object extensionValue2 = PkixCertPathValidatorUtilities.GetExtensionValue(completeCRL, issuingDistributionPoint);
byte[] derEncoded;
if (extensionValue2 != 0)
{
derEncoded = extensionValue2.GetDerEncoded();
}
if (num == 0)
{
}
BigInteger one = BigInteger.One;
BigInteger bigInteger;
x509CrlStoreSelector.minCrlNumber = bigInteger;
x509CrlStoreSelector.IssuingDistributionPoint = derEncoded;
x509CrlStoreSelector.issuingDistributionPointEnabled = true;
x509CrlStoreSelector.maxBaseCrlNumber = num;
string text = PkixCertPathValidatorUtilities.CrlUtilities.ToString();
HashSet hashSet = new HashSet();
bool flag;
if (hashSet != 0)
{
if (hashSet == 0)
{
}
if (hashSet == 0)
{
goto IL_CD;
}
while (!flag)
{
}
}
if (flag)
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_CD:
throw new NullReferenceException();
}
// Token: 0x06009B49 RID: 39753 RVA: 0x00203304 File Offset: 0x00201504
[Token(Token = "0x6009B49")]
[Address(RVA = "0x1CCFBC0", Offset = "0x1CCE9C0", VA = "0x181CCFBC0")]
private static bool isDeltaCrl(X509Crl crl)
{
ISet nonCriticalExtensionOids = crl.GetNonCriticalExtensionOids();
DerObjectIdentifier deltaCrlIndicator = X509Extensions.DeltaCrlIndicator;
throw new NullReferenceException();
}
// Token: 0x06009B4A RID: 39754 RVA: 0x00203324 File Offset: 0x00201524
[Token(Token = "0x6009B4A")]
[Address(RVA = "0x1CCB530", Offset = "0x1CCA330", VA = "0x181CCB530")]
internal static ICollection FindCertificates(X509AttrCertStoreSelector certSelect, IList certStores)
{
int num;
do
{
num = 0;
HashSet hashSet = new HashSet();
if (hashSet != 0)
{
if (hashSet != 0 && hashSet == 0)
{
goto IL_4F;
}
if (hashSet != 0)
{
}
if ((uint)(-1) != 0U)
{
}
if (num != 0)
{
goto IL_43;
}
if ((ulong)((uint)(-1)) != (ulong)(-1L))
{
}
}
if ((uint)(-1) != 0U)
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_43:
throw new NullReferenceException();
IL_4F:
throw new NullReferenceException();
}
// Token: 0x06009B4B RID: 39755 RVA: 0x00203388 File Offset: 0x00201588
[Token(Token = "0x6009B4B")]
[Address(RVA = "0x1CCB320", Offset = "0x1CCA120", VA = "0x181CCB320")]
internal static void AddAdditionalStoresFromCrlDistributionPoint(CrlDistPoint crldp, PkixParameters pkixParams)
{
if (crldp != 0)
{
DistributionPoint[] distributionPoints = crldp.GetDistributionPoints();
int num = 0;
int num2 = 0;
int length = distributionPoints.Length;
if (num2 < length)
{
DistributionPointName distributionPoint = distributionPoints[num].distributionPoint;
if (distributionPoint != 0 && distributionPoint.type == 0)
{
GeneralName[] names = GeneralNames.GetInstance(distributionPoint.name).GetNames();
int num3 = 0;
if (num3 < names.Length)
{
GeneralName generalName = names[num3];
if (generalName.tag == 6)
{
PkixCertPathValidatorUtilities.AddAdditionalStoreFromLocation(DerIA5String.GetInstance(generalName.obj).GetString(), pkixParams);
}
num3++;
}
}
num++;
}
}
}
// Token: 0x06009B4C RID: 39756 RVA: 0x00203430 File Offset: 0x00201630
[Token(Token = "0x6009B4C")]
[Address(RVA = "0x1CCEE00", Offset = "0x1CCDC00", VA = "0x181CCEE00")]
internal static bool ProcessCertD1i(int index, IList[] policyNodes, DerObjectIdentifier pOid, ISet pq)
{
int num;
int num2;
do
{
num = index - 1;
IList list = policyNodes[num];
num2 = 0;
if (0 >= num)
{
goto IL_40;
}
}
while (num == 0);
num2++;
HashSet hashSet = new HashSet();
IList list2 = Platform.CreateArrayList();
string identifier = pOid.identifier;
IList list3 = policyNodes[index];
return true;
IL_40:
throw new NullReferenceException();
}
// Token: 0x06009B4D RID: 39757 RVA: 0x00203484 File Offset: 0x00201684
[Token(Token = "0x6009B4D")]
[Address(RVA = "0x1CCF090", Offset = "0x1CCDE90", VA = "0x181CCF090")]
internal static void ProcessCertD1ii(int index, IList[] policyNodes, DerObjectIdentifier _poid, ISet _pq)
{
int num;
int num2;
do
{
num = index - 1;
IList list = policyNodes[num];
num2 = 0;
if (0 >= num)
{
return;
}
if (num == 0)
{
}
}
while (num == 0);
string any_POLICY = PkixCertPathValidatorUtilities.ANY_POLICY;
bool flag;
if (!flag)
{
num2++;
}
HashSet hashSet = new HashSet();
IList list2 = Platform.CreateArrayList();
string identifier = _poid.identifier;
IList list3 = policyNodes[index];
}
// Token: 0x06009B4E RID: 39758 RVA: 0x002034E8 File Offset: 0x002016E8
[Token(Token = "0x6009B4E")]
[Address(RVA = "0x1CCBB50", Offset = "0x1CCA950", VA = "0x181CCBB50")]
internal static ICollection FindIssuerCerts(X509Certificate cert, PkixBuilderParameters pkixParams)
{
X509CertStoreSelector x509CertStoreSelector = new X509CertStoreSelector();
HashSet hashSet = new HashSet();
BigInteger serialNumber = cert.SerialNumber;
x509CertStoreSelector.subject = serialNumber;
IList additionalStores = pkixParams.GetAdditionalStores();
ICollection collection = PkixCertPathValidatorUtilities.FindCertificates(x509CertStoreSelector, additionalStores);
throw new NullReferenceException();
}
// Token: 0x06009B4F RID: 39759 RVA: 0x00203538 File Offset: 0x00201738
[Token(Token = "0x6009B4F")]
[Address(RVA = "0x1CCD460", Offset = "0x1CCC260", VA = "0x181CCD460")]
internal static Asn1Object GetExtensionValue(IX509Extension ext, DerObjectIdentifier oid)
{
int num = 0;
num += num;
num++;
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x06009B50 RID: 39760 RVA: 0x00203560 File Offset: 0x00201760
[Token(Token = "0x6009B50")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public PkixCertPathValidatorUtilities()
{
}
// Token: 0x06009B51 RID: 39761 RVA: 0x00203574 File Offset: 0x00201774
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009B51")]
[Address(RVA = "0x1CCF6D0", Offset = "0x1CCE4D0", VA = "0x181CCF6D0")]
static PkixCertPathValidatorUtilities()
{
string[] array = new string[11];
if ("unspecified" != 0)
{
}
array[0] = "unspecified";
if ("keyCompromise" != 0)
{
}
array[1] = "keyCompromise";
if ("cACompromise" != 0)
{
}
array[2] = "cACompromise";
if ("affiliationChanged" != 0)
{
}
array[3] = "affiliationChanged";
if ("superseded" != 0)
{
}
array[4] = "superseded";
if ("cessationOfOperation" != 0)
{
}
array[5] = "cessationOfOperation";
if ("certificateHold" != 0)
{
}
array[6] = "certificateHold";
if ("unknown" != 0)
{
}
array[7] = "unknown";
if ("removeFromCRL" != 0)
{
}
array[8] = "removeFromCRL";
if ("privilegeWithdrawn" != 0)
{
}
array[9] = "privilegeWithdrawn";
if ("aACompromise" != 0)
{
}
array[10] = "aACompromise";
PkixCertPathValidatorUtilities.crlReasons = array;
}
// Token: 0x040068E4 RID: 26852
[Token(Token = "0x40068E4")]
private static readonly PkixCrlUtilities CrlUtilities = new PkixCrlUtilities();
// Token: 0x040068E5 RID: 26853
[Token(Token = "0x40068E5")]
internal static readonly string ANY_POLICY = "2.5.29.32.0";
// Token: 0x040068E6 RID: 26854
[Token(Token = "0x40068E6")]
internal static readonly string CRL_NUMBER = X509Extensions.CrlNumber.identifier;
// Token: 0x040068E7 RID: 26855
[Token(Token = "0x40068E7")]
internal static readonly int KEY_CERT_SIGN;
// Token: 0x040068E8 RID: 26856
[Token(Token = "0x40068E8")]
internal static readonly int CRL_SIGN;
// Token: 0x040068E9 RID: 26857
[Token(Token = "0x40068E9")]
internal static readonly string[] crlReasons;
}
}
@@ -0,0 +1,86 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001980 RID: 6528
[Token(Token = "0x2001980")]
public class PkixCrlUtilities
{
// Token: 0x06009B52 RID: 39762 RVA: 0x00203698 File Offset: 0x00201898
[Token(Token = "0x6009B52")]
[Address(RVA = "0x1CD2EB0", Offset = "0x1CD1CB0", VA = "0x181CD2EB0", Slot = "4")]
public virtual ISet FindCrls(X509CrlStoreSelector crlselect, PkixParameters paramsPkix, DateTime currentDate)
{
int num = 0;
HashSet hashSet = new HashSet();
IList additionalStores = paramsPkix.GetAdditionalStores();
ICollection collection = this.FindCrls(crlselect, additionalStores);
HashSet hashSet2 = new HashSet();
num += num;
num++;
ulong num2;
num2 += (ulong)1L;
int i;
while (i <= 0)
{
}
X509Certificate certificateChecking = crlselect.certificateChecking;
if (certificateChecking == 0)
{
}
DateTime notBefore = certificateChecking.NotBefore;
int num3;
if (num3 != 0)
{
}
if (num == 0)
{
throw new NullReferenceException();
}
throw new NullReferenceException();
}
// Token: 0x06009B53 RID: 39763 RVA: 0x00203714 File Offset: 0x00201914
[Token(Token = "0x6009B53")]
[Address(RVA = "0x1CD3500", Offset = "0x1CD2300", VA = "0x181CD3500", Slot = "5")]
public virtual ISet FindCrls(X509CrlStoreSelector crlselect, PkixParameters paramsPkix)
{
HashSet hashSet = new HashSet();
IList additionalStores = paramsPkix.GetAdditionalStores();
ICollection collection = this.FindCrls(crlselect, additionalStores);
throw new NullReferenceException();
}
// Token: 0x06009B54 RID: 39764 RVA: 0x00203744 File Offset: 0x00201944
[Token(Token = "0x6009B54")]
[Address(RVA = "0x1CD32C0", Offset = "0x1CD20C0", VA = "0x181CD32C0")]
private ICollection FindCrls(X509CrlStoreSelector crlSelect, IList crlStores)
{
Exception ex;
do
{
HashSet hashSet = new HashSet();
if (hashSet != 0 && hashSet != 0 && hashSet == 0)
{
goto IL_30;
}
}
while (ex == 0 || 0 != 0 || ex != 0);
throw new NullReferenceException();
IL_30:
throw new NullReferenceException();
}
// Token: 0x06009B55 RID: 39765 RVA: 0x00203788 File Offset: 0x00201988
[Token(Token = "0x6009B55")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public PkixCrlUtilities()
{
}
}
}
@@ -0,0 +1,1877 @@
using System;
using System.Collections;
using System.IO;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001981 RID: 6529
[Token(Token = "0x2001981")]
public class PkixNameConstraintValidator
{
// Token: 0x06009B56 RID: 39766 RVA: 0x0020379C File Offset: 0x0020199C
[Token(Token = "0x6009B56")]
[Address(RVA = "0x1CD8040", Offset = "0x1CD6E40", VA = "0x181CD8040")]
public PkixNameConstraintValidator()
{
HashSet hashSet = new HashSet();
this.excludedSubtreesDN = hashSet;
HashSet hashSet2 = new HashSet();
this.excludedSubtreesDNS = hashSet2;
HashSet hashSet3 = new HashSet();
this.excludedSubtreesEmail = hashSet3;
HashSet hashSet4 = new HashSet();
this.excludedSubtreesURI = hashSet4;
HashSet hashSet5 = new HashSet();
this.excludedSubtreesIP = hashSet5;
base..ctor();
}
// Token: 0x06009B57 RID: 39767 RVA: 0x002037F4 File Offset: 0x002019F4
[Token(Token = "0x6009B57")]
[Address(RVA = "0x1CD7CD0", Offset = "0x1CD6AD0", VA = "0x181CD7CD0")]
private static bool WithinDNSubtree(Asn1Sequence dns, Asn1Sequence subtree)
{
Asn1SequenceParser parser = subtree.Parser;
if (dns.Parser != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06009B58 RID: 39768 RVA: 0x00203818 File Offset: 0x00201A18
[Token(Token = "0x6009B58")]
[Address(RVA = "0x1CD3E60", Offset = "0x1CD2C60", VA = "0x181CD3E60")]
public void CheckPermittedDN(Asn1Sequence dns)
{
Asn1Encodable asn1Encodable;
if (this.permittedSubtreesDN != 0 && asn1Encodable != 0)
{
bool flag;
while (!flag)
{
}
}
}
// Token: 0x06009B59 RID: 39769 RVA: 0x00203848 File Offset: 0x00201A48
[Token(Token = "0x6009B59")]
[Address(RVA = "0x1CD37D0", Offset = "0x1CD25D0", VA = "0x181CD37D0")]
public void CheckExcludedDN(Asn1Sequence dns)
{
/*
An exception occurred when decompiling this method (06009B59)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::CheckExcludedDN(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:PkixNameConstraintValidatorException(var_3_1C, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("Subject distinguished name is from an excluded subtree")))
}
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 1660
*/;
}
// Token: 0x06009B5A RID: 39770 RVA: 0x00203874 File Offset: 0x00201A74
[Token(Token = "0x6009B5A")]
[Address(RVA = "0x1CD3D40", Offset = "0x1CD2B40", VA = "0x181CD3D40")]
private void CheckPermittedDN(ISet permitted, Asn1Sequence dns)
{
Asn1Encodable asn1Encodable;
if (permitted != 0 && asn1Encodable != 0)
{
bool flag;
while (!flag)
{
}
}
}
// Token: 0x06009B5B RID: 39771 RVA: 0x002038A0 File Offset: 0x00201AA0
[Token(Token = "0x6009B5B")]
[Address(RVA = "0x1CD3920", Offset = "0x1CD2720", VA = "0x181CD3920")]
private void CheckExcludedDN(ISet excluded, Asn1Sequence dns)
{
/*
An exception occurred when decompiling this method (06009B5B)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::CheckExcludedDN(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_0B:
stloc:PkixNameConstraintValidatorException(var_2_15, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("Subject distinguished name is from an excluded subtree")))
}
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 1660
*/;
}
// Token: 0x06009B5C RID: 39772 RVA: 0x002038C4 File Offset: 0x00201AC4
[Token(Token = "0x6009B5C")]
[Address(RVA = "0x1CD4F40", Offset = "0x1CD3D40", VA = "0x181CD4F40")]
private ISet IntersectDN(ISet permitted, ISet dns)
{
Asn1Sequence asn1Sequence;
for (;;)
{
HashSet hashSet = new HashSet();
if (hashSet == 0)
{
goto IL_43;
}
if (hashSet != 0 && hashSet != 0)
{
IDictionary impl = hashSet.impl;
if (permitted == 0)
{
break;
}
while (asn1Sequence == 0)
{
}
if (PkixNameConstraintValidator.WithinDNSubtree(asn1Sequence, asn1Sequence) || PkixNameConstraintValidator.WithinDNSubtree(asn1Sequence, asn1Sequence))
{
break;
}
}
}
while (asn1Sequence == 0)
{
}
IL_43:
throw new NullReferenceException();
}
// Token: 0x06009B5D RID: 39773 RVA: 0x0020391C File Offset: 0x00201B1C
[Token(Token = "0x6009B5D")]
[Address(RVA = "0x1CD7450", Offset = "0x1CD6250", VA = "0x181CD7450")]
private ISet UnionDN(ISet excluded, Asn1Sequence dn)
{
int num;
do
{
HashSet hashSet = new HashSet();
num = 0;
if (num < excluded)
{
num += num;
num++;
}
int num2 = 0;
if (hashSet == 0)
{
goto IL_52;
}
if (num < num2)
{
num += num;
num++;
}
if (num == 0)
{
num += 19;
num++;
num += 19;
}
}
while (num == 0);
if (PkixNameConstraintValidator.WithinDNSubtree(dn, num) || !PkixNameConstraintValidator.WithinDNSubtree(num, dn))
{
}
IL_52:
if (dn != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06009B5E RID: 39774 RVA: 0x00203984 File Offset: 0x00201B84
[Token(Token = "0x6009B5E")]
[Address(RVA = "0x1CD51B0", Offset = "0x1CD3FB0", VA = "0x181CD51B0")]
private ISet IntersectEmail(ISet permitted, ISet emails)
{
HashSet hashSet;
string @string;
for (;;)
{
hashSet = new HashSet();
if (hashSet == 0)
{
goto IL_4C;
}
if (hashSet != 0 && hashSet != 0)
{
IDictionary impl = hashSet.impl;
DerIA5String derIA5String;
@string = derIA5String.GetString();
if (permitted == 0)
{
break;
}
while (@string == 0)
{
}
if (@string == 0 || @string != 0)
{
goto IL_3C;
}
}
}
IL_47:
while (@string == 0)
{
}
goto IL_4C;
IL_3C:
this.intersectEmail(@string, @string, hashSet);
goto IL_47;
IL_4C:
throw new NullReferenceException();
}
// Token: 0x06009B5F RID: 39775 RVA: 0x002039E4 File Offset: 0x00201BE4
[Token(Token = "0x6009B5F")]
[Address(RVA = "0x1CD76D0", Offset = "0x1CD64D0", VA = "0x181CD76D0")]
private ISet UnionEmail(ISet excluded, string email)
{
HashSet hashSet;
int num;
do
{
hashSet = new HashSet();
num = 0;
if (num < excluded)
{
num += num;
num++;
}
int num2 = 0;
if (hashSet == 0)
{
goto IL_4D;
}
if (num < num2)
{
num += num;
num++;
}
}
while (num != 0 && num == 0);
this.unionEmail(num, email, hashSet);
num += num;
num += 19;
num += num;
num++;
num += 19;
IL_4D:
if (email != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06009B60 RID: 39776 RVA: 0x00203A48 File Offset: 0x00201C48
[Token(Token = "0x6009B60")]
[Address(RVA = "0x1CD5900", Offset = "0x1CD4700", VA = "0x181CD5900")]
private ISet IntersectIP(ISet permitted, ISet ips)
{
HashSet hashSet;
do
{
hashSet = new HashSet();
if (hashSet == 0)
{
goto IL_34;
}
}
while (hashSet == 0 || hashSet == 0);
IDictionary impl = hashSet.impl;
Asn1OctetString asn1OctetString;
Stream octetStream = asn1OctetString.GetOctetStream();
if (permitted != 0)
{
while (octetStream == 0)
{
}
}
while (octetStream == 0)
{
}
IL_34:
throw new NullReferenceException();
}
// Token: 0x06009B61 RID: 39777 RVA: 0x00203A90 File Offset: 0x00201C90
[Token(Token = "0x6009B61")]
[Address(RVA = "0x1CD79A0", Offset = "0x1CD67A0", VA = "0x181CD79A0")]
private ISet UnionIP(ISet excluded, byte[] ip)
{
int num;
do
{
HashSet hashSet = new HashSet();
num = 0;
if (num < excluded)
{
num += num;
num++;
}
int num2 = 0;
if (hashSet == 0)
{
goto IL_57;
}
if (num < num2)
{
num += num;
num++;
}
if (num == 0)
{
num += 19;
num++;
num += 19;
}
}
while (num == 0);
HashSet hashSet2 = new HashSet();
bool flag;
if (!flag)
{
}
if (num < hashSet2)
{
num += num;
num++;
}
hashSet2 += hashSet2;
IL_57:
if (ip != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06009B62 RID: 39778 RVA: 0x00203B00 File Offset: 0x00201D00
[Token(Token = "0x6009B62")]
[Address(RVA = "0x1CD78E0", Offset = "0x1CD66E0", VA = "0x181CD78E0")]
private ISet UnionIPRange(byte[] ipWithSubmask1, byte[] ipWithSubmask2)
{
HashSet hashSet = new HashSet();
if (!Arrays.AreEqual(ipWithSubmask1, ipWithSubmask2))
{
}
throw new NullReferenceException();
}
// Token: 0x06009B63 RID: 39779 RVA: 0x00203B24 File Offset: 0x00201D24
[Token(Token = "0x6009B63")]
[Address(RVA = "0x1CD5530", Offset = "0x1CD4330", VA = "0x181CD5530")]
private ISet IntersectIPRange(byte[] ipWithSubmask1, byte[] ipWithSubmask2)
{
int length = ipWithSubmask2.Length;
if (ipWithSubmask1.Length == length)
{
byte[][] array = this.ExtractIPsAndSubnetMasks(ipWithSubmask1, ipWithSubmask2);
int length2 = array.Length;
byte[] array2 = array[1];
byte[] array3 = array[3];
byte[] array4 = array[2];
byte[] array5 = array[0];
byte[][] array6 = this.MinMaxIPs(array5, array2, array4, array3);
int length3 = array6.Length;
byte[] array7 = array6[1];
byte[] array8 = array6[3];
int num = 0;
int num2 = 0;
int length4 = array7.Length;
if (num2 < length4)
{
num++;
}
byte[] array9 = array6[2];
byte[] array10 = PkixNameConstraintValidator.Max(array6[0], array9);
if (Arrays.AreEqual(array10, array8) || !Arrays.AreEqual(PkixNameConstraintValidator.Max(array10, array8), array10))
{
int length5 = array6.Length;
byte[] array11 = array6[2];
byte[] array12 = PkixNameConstraintValidator.Or(array6[0], array11);
byte[] array13 = PkixNameConstraintValidator.Or(array2, array3);
HashSet hashSet = new HashSet();
int num3 = 0;
int length6 = array12.Length;
byte[] array14 = new byte[num3];
int num4 = 0;
int num5 = 0;
Array.Copy(array12, num5, array14, num4, length6);
int num6 = 0;
Array.Copy(array13, num6, array14, length6, length6);
}
}
HashSet hashSet2 = new HashSet();
throw new NullReferenceException();
}
// Token: 0x06009B64 RID: 39780 RVA: 0x00203C7C File Offset: 0x00201E7C
[Token(Token = "0x6009B64")]
[Address(RVA = "0x1CD6150", Offset = "0x1CD4F50", VA = "0x181CD6150")]
private byte[] IpWithSubnetMask(byte[] ip, byte[] subnetMask)
{
int length = ip.Length;
byte[] array = new byte[ip];
int num = 0;
int num2 = 0;
Array.Copy(ip, num2, array, num, length);
int num3 = 0;
Array.Copy(subnetMask, num3, array, length, length);
return array;
}
// Token: 0x06009B65 RID: 39781 RVA: 0x00203CBC File Offset: 0x00201EBC
[Token(Token = "0x6009B65")]
[Address(RVA = "0x1CD4A40", Offset = "0x1CD3840", VA = "0x181CD4A40")]
private byte[][] ExtractIPsAndSubnetMasks(byte[] ipWithSubmask1, byte[] ipWithSubmask2)
{
int num = ipWithSubmask1.Length;
num -= ipWithSubmask1;
byte[] array = new byte[num];
byte[] array2 = new byte[num];
int num2 = 0;
int num3 = 0;
Array.Copy(ipWithSubmask1, num3, array, num2, num);
int num4 = 0;
Array.Copy(ipWithSubmask1, num, array2, num4, num);
byte[] array3 = new byte[num];
byte[] array4 = new byte[num];
int num5 = 0;
int num6 = 0;
Array.Copy(ipWithSubmask2, num6, array3, num5, num);
int num7 = 0;
Array.Copy(ipWithSubmask2, num, array4, num7, num);
byte[][] array5 = new byte[0][];
if (array != 0)
{
}
array5[0] = array;
if (array2 != 0)
{
}
array5[1] = array2;
if (array3 != 0)
{
}
array5[2] = array3;
if (array4 != 0)
{
}
array5[3] = array4;
return array5;
}
// Token: 0x06009B66 RID: 39782 RVA: 0x00203D80 File Offset: 0x00201F80
[Token(Token = "0x6009B66")]
[Address(RVA = "0x1CD6550", Offset = "0x1CD5350", VA = "0x181CD6550")]
private byte[][] MinMaxIPs(byte[] ip1, byte[] subnetmask1, byte[] ip2, byte[] subnetmask2)
{
int length = ip1.Length;
byte[] array = new byte[length];
byte[] array2 = new byte[length];
byte[] array3 = new byte[length];
byte[] array4 = new byte[length];
int num = 0;
if (length > 0)
{
num++;
}
byte[][] array5 = new byte[4][];
if (array != 0)
{
}
array5[0] = array;
if (array2 != 0)
{
}
array5[1] = array2;
if (array3 != 0)
{
}
array5[2] = array3;
if (array4 != 0)
{
}
array5[3] = array4;
return array5;
}
// Token: 0x06009B67 RID: 39783 RVA: 0x00203E04 File Offset: 0x00202004
[Token(Token = "0x6009B67")]
[Address(RVA = "0x1CD3F80", Offset = "0x1CD2D80", VA = "0x181CD3F80")]
private void CheckPermittedEmail(ISet permitted, string email)
{
/*
An exception occurred when decompiling this method (06009B67)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::CheckPermittedEmail(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_25:
stloc:PkixNameConstraintValidatorException(var_1_2F, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("Subject email address is not from a permitted subtree.")))
}
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.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 1660
*/;
}
// Token: 0x06009B68 RID: 39784 RVA: 0x00203E40 File Offset: 0x00202040
[Token(Token = "0x6009B68")]
[Address(RVA = "0x1CD3A70", Offset = "0x1CD2870", VA = "0x181CD3A70")]
private void CheckExcludedEmail(ISet excluded, string email)
{
/*
An exception occurred when decompiling this method (06009B68)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::CheckExcludedEmail(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:PkixNameConstraintValidatorException(var_1_1C, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("Email address is from an excluded subtree.")))
}
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 1660
*/;
}
// Token: 0x06009B69 RID: 39785 RVA: 0x00203E6C File Offset: 0x0020206C
[Token(Token = "0x6009B69")]
[Address(RVA = "0x1CD40B0", Offset = "0x1CD2EB0", VA = "0x181CD40B0")]
private void CheckPermittedIP(ISet permitted, byte[] ip)
{
if (permitted != 0)
{
bool flag;
while (!flag)
{
}
}
}
// Token: 0x06009B6A RID: 39786 RVA: 0x00203E9C File Offset: 0x0020209C
[Token(Token = "0x6009B6A")]
[Address(RVA = "0x1CD8270", Offset = "0x1CD7070", VA = "0x181CD8270")]
private void checkExcludedIP(ISet excluded, byte[] ip)
{
/*
An exception occurred when decompiling this method (06009B6A)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::checkExcludedIP(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_05:
stloc:PkixNameConstraintValidatorException(var_1_0F, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("IP is from an excluded subtree.")))
}
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 1660
*/;
}
// Token: 0x06009B6B RID: 39787 RVA: 0x00203EB8 File Offset: 0x002020B8
[Token(Token = "0x6009B6B")]
[Address(RVA = "0x1CD6200", Offset = "0x1CD5000", VA = "0x181CD6200")]
private bool IsIPConstrained(byte[] ip, byte[] constraint)
{
int num = constraint.Length;
int length = ip.Length;
num -= ip;
if (length == num)
{
byte[] array = new byte[length];
int num2 = 0;
int num3 = 0;
Array.Copy(constraint, length, array, num3, length);
byte[] array2 = new byte[length];
byte[] array3 = new byte[length];
if (length > 0)
{
num2++;
}
return Arrays.AreEqual(array2, array3);
}
throw new NullReferenceException();
}
// Token: 0x06009B6C RID: 39788 RVA: 0x00203F1C File Offset: 0x0020211C
[Token(Token = "0x6009B6C")]
[Address(RVA = "0x1CD4560", Offset = "0x1CD3360", VA = "0x181CD4560")]
private bool EmailIsConstrained(string email, string constraint)
{
string text;
for (;;)
{
int num2;
int num = num2 + 1;
text = email.Substring(num);
int num3;
if (num3 == -1)
{
break;
}
string text3;
string text2 = Platform.ToUpperInvariant(text3);
string text4 = Platform.ToUpperInvariant(constraint);
if (!text2.Equals(text4))
{
goto IL_65;
}
}
int num4 = 0;
char c = constraint[num4];
if (this.WithinDomain(text, constraint))
{
return true;
}
IL_65:
throw new NullReferenceException();
}
// Token: 0x06009B6D RID: 39789 RVA: 0x00203F94 File Offset: 0x00202194
[Token(Token = "0x6009B6D")]
[Address(RVA = "0x1CD7DF0", Offset = "0x1CD6BF0", VA = "0x181CD7DF0")]
private bool WithinDomain(string testDomain, string domain)
{
uint num3;
for (;;)
{
if (Platform.StartsWith(domain, "."))
{
string text = domain.Substring(1);
}
uint num;
char[] array = new char[] { (char)num };
string[] array2 = domain.Split(array);
char[] array3 = new char[array];
array3[0] = (char)num;
string[] array4 = testDomain.Split(array3);
int num2 = array4.Length;
int length = array2.Length;
string text2;
if (num2 > length)
{
num2 -= length;
int length2 = array2.Length;
if (num3 >= (uint)length2)
{
goto IL_CE;
}
int length3 = array4.Length;
if (num3 != (uint)(-1))
{
text2 = array4[(int)num3];
string text3 = array2[(int)num3];
if (Platform.EqualsIgnoreCase(text2, text3))
{
break;
}
}
}
IL_AB:
int num4 = num2 - 1;
if (!text2.Equals(""))
{
break;
}
continue;
goto IL_AB;
}
num3 += (uint)1;
IL_CE:
throw new NullReferenceException();
}
// Token: 0x06009B6E RID: 39790 RVA: 0x00204074 File Offset: 0x00202274
[Token(Token = "0x6009B6E")]
[Address(RVA = "0x1CD3BA0", Offset = "0x1CD29A0", VA = "0x181CD3BA0")]
private void CheckPermittedDNS(ISet permitted, string dns)
{
/*
An exception occurred when decompiling this method (06009B6E)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::CheckPermittedDNS(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_3D:
stloc:PkixNameConstraintValidatorException(var_3_47, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("DNS is not from a permitted subtree.")))
}
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.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 1660
*/;
}
// Token: 0x06009B6F RID: 39791 RVA: 0x002040C8 File Offset: 0x002022C8
[Token(Token = "0x6009B6F")]
[Address(RVA = "0x1CD8110", Offset = "0x1CD6F10", VA = "0x181CD8110")]
private void checkExcludedDNS(ISet excluded, string dns)
{
/*
An exception occurred when decompiling this method (06009B6F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::checkExcludedDNS(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1C:
stloc:PkixNameConstraintValidatorException(var_1_26, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("DNS is from an excluded subtree.")))
}
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 1660
*/;
}
// Token: 0x06009B70 RID: 39792 RVA: 0x002040FC File Offset: 0x002022FC
[Token(Token = "0x6009B70")]
[Address(RVA = "0x1CDA0B0", Offset = "0x1CD8EB0", VA = "0x181CDA0B0")]
private void unionEmail(string email1, string email2, ISet union)
{
int num;
if (num == -1)
{
if (!Platform.StartsWith(email1, "."))
{
int num2;
if (num2 != -1 || (!Platform.StartsWith(email2, ".") && Platform.EqualsIgnoreCase(email1, email2)) || !this.WithinDomain(email1, email2))
{
}
int num4;
int num3 = num4 + 1;
string text = email2.Substring(num3);
}
int num5;
if (num5 == -1)
{
if (!Platform.StartsWith(email2, "."))
{
bool flag = this.WithinDomain(email2, email1);
}
if (!this.WithinDomain(email1, email2) && !Platform.EqualsIgnoreCase(email1, email2))
{
bool flag2 = this.WithinDomain(email2, email1);
}
}
int num7;
int num6 = num7 + 1;
string text2 = email2.Substring(num6);
bool flag3 = this.WithinDomain(text2, email1);
}
int num9;
int num8 = num9 + 1;
string text3 = email1.Substring(num8);
int num10;
while (num10 != -1)
{
}
if (!Platform.StartsWith(email2, "."))
{
bool flag4 = Platform.EqualsIgnoreCase(text3, email2);
}
throw new NullReferenceException();
}
// Token: 0x06009B71 RID: 39793 RVA: 0x002041DC File Offset: 0x002023DC
[Token(Token = "0x6009B71")]
[Address(RVA = "0x1CDA650", Offset = "0x1CD9450", VA = "0x181CDA650")]
private void unionURI(string email1, string email2, ISet union)
{
int num;
if (num == -1)
{
if (!Platform.StartsWith(email1, "."))
{
int num2;
if (num2 != -1 || (!Platform.StartsWith(email2, ".") && Platform.EqualsIgnoreCase(email1, email2)) || !this.WithinDomain(email1, email2))
{
}
int num4;
int num3 = num4 + 1;
string text = email2.Substring(num3);
}
int num5;
if (num5 == -1)
{
if (!Platform.StartsWith(email2, "."))
{
bool flag = this.WithinDomain(email2, email1);
}
if (!this.WithinDomain(email1, email2) && !Platform.EqualsIgnoreCase(email1, email2))
{
bool flag2 = this.WithinDomain(email2, email1);
}
}
int num7;
int num6 = num7 + 1;
string text2 = email2.Substring(num6);
bool flag3 = this.WithinDomain(text2, email1);
}
int num9;
int num8 = num9 + 1;
string text3 = email1.Substring(num8);
int num10;
while (num10 != -1)
{
}
if (!Platform.StartsWith(email2, "."))
{
bool flag4 = Platform.EqualsIgnoreCase(text3, email2);
}
throw new NullReferenceException();
}
// Token: 0x06009B72 RID: 39794 RVA: 0x002042BC File Offset: 0x002024BC
[Token(Token = "0x6009B72")]
[Address(RVA = "0x1CD9290", Offset = "0x1CD8090", VA = "0x181CD9290")]
private ISet intersectDNS(ISet permitted, ISet dnss)
{
string @string;
for (;;)
{
HashSet hashSet = new HashSet();
if (hashSet == 0)
{
goto IL_58;
}
if (hashSet != 0 && hashSet != 0)
{
IDictionary impl = hashSet.impl;
DerIA5String derIA5String;
@string = derIA5String.GetString();
if (permitted == 0)
{
break;
}
while (@string == 0)
{
}
if ((@string == 0 || @string != 0) && (this.WithinDomain(@string, @string) || this.WithinDomain(@string, @string)))
{
break;
}
}
}
while (@string == 0)
{
}
IL_58:
throw new NullReferenceException();
}
// Token: 0x06009B73 RID: 39795 RVA: 0x00204328 File Offset: 0x00202528
[Token(Token = "0x6009B73")]
[Address(RVA = "0x1CD9E40", Offset = "0x1CD8C40", VA = "0x181CD9E40")]
protected ISet unionDNS(ISet excluded, string dns)
{
int num;
do
{
HashSet hashSet = new HashSet();
num = 0;
if (num < excluded)
{
num += num;
num++;
}
int num2 = 0;
if (hashSet == 0)
{
goto IL_44;
}
if (num < num2)
{
num += num;
num++;
}
}
while (num != 0 && num == 0);
if (this.WithinDomain(num, dns) || !this.WithinDomain(dns, num))
{
}
IL_44:
if (dns != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06009B74 RID: 39796 RVA: 0x00204384 File Offset: 0x00202584
[Token(Token = "0x6009B74")]
[Address(RVA = "0x1CD9520", Offset = "0x1CD8320", VA = "0x181CD9520")]
private void intersectEmail(string email1, string email2, ISet intersect)
{
int num;
while (num == -1)
{
if (!Platform.StartsWith(email1, "."))
{
int num2;
if (num2 == -1)
{
if (!Platform.StartsWith(email2, "."))
{
if (Platform.EqualsIgnoreCase(email1, email2))
{
}
return;
}
bool flag = this.WithinDomain(email1, email2);
}
int num4;
int num3 = num4 + 1;
bool flag2 = Platform.EqualsIgnoreCase(email2.Substring(num3), email1);
}
int num5;
if (num5 == -1)
{
if (!Platform.StartsWith(email2, "."))
{
}
if (this.WithinDomain(email1, email2) || Platform.EqualsIgnoreCase(email1, email2))
{
continue;
}
}
int num7;
int num6 = num7 + 1;
string text = email2.Substring(num6);
if (this.WithinDomain(text, email1))
{
break;
}
}
int num9;
int num8 = num9 + 1;
string text2 = email1.Substring(num8);
int num10;
while (num10 != -1)
{
}
if (!Platform.StartsWith(email2, "."))
{
}
bool flag3 = this.WithinDomain(text2, email2);
throw new NullReferenceException();
}
// Token: 0x06009B75 RID: 39797 RVA: 0x0020445C File Offset: 0x0020265C
[Token(Token = "0x6009B75")]
[Address(RVA = "0x1CD83B0", Offset = "0x1CD71B0", VA = "0x181CD83B0")]
private void checkExcludedURI(ISet excluded, string uri)
{
/*
An exception occurred when decompiling this method (06009B75)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::checkExcludedURI(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_12:
stloc:PkixNameConstraintValidatorException(var_1_1C, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("URI is from an excluded subtree.")))
}
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 1660
*/;
}
// Token: 0x06009B76 RID: 39798 RVA: 0x00204488 File Offset: 0x00202688
[Token(Token = "0x6009B76")]
[Address(RVA = "0x1CD9880", Offset = "0x1CD8680", VA = "0x181CD9880")]
private ISet intersectURI(ISet permitted, ISet uris)
{
HashSet hashSet;
string @string;
for (;;)
{
hashSet = new HashSet();
if (hashSet == 0)
{
goto IL_4C;
}
if (hashSet != 0 && hashSet != 0)
{
IDictionary impl = hashSet.impl;
DerIA5String derIA5String;
@string = derIA5String.GetString();
if (permitted == 0)
{
break;
}
while (@string == 0)
{
}
if (@string == 0 || @string != 0)
{
goto IL_3C;
}
}
}
IL_47:
while (@string == 0)
{
}
goto IL_4C;
IL_3C:
this.intersectURI(@string, @string, hashSet);
goto IL_47;
IL_4C:
throw new NullReferenceException();
}
// Token: 0x06009B77 RID: 39799 RVA: 0x002044E8 File Offset: 0x002026E8
[Token(Token = "0x6009B77")]
[Address(RVA = "0x1CDA440", Offset = "0x1CD9240", VA = "0x181CDA440")]
private ISet unionURI(ISet excluded, string uri)
{
HashSet hashSet;
int num;
do
{
hashSet = new HashSet();
num = 0;
if (num < excluded)
{
num += num;
num++;
}
int num2 = 0;
if (hashSet == 0)
{
goto IL_4D;
}
if (num < num2)
{
num += num;
num++;
}
}
while (num != 0 && num == 0);
this.unionURI(num, uri, hashSet);
num += num;
num += 19;
num += num;
num++;
num += 19;
IL_4D:
if (uri != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06009B78 RID: 39800 RVA: 0x0020454C File Offset: 0x0020274C
[Token(Token = "0x6009B78")]
[Address(RVA = "0x1CD9AE0", Offset = "0x1CD88E0", VA = "0x181CD9AE0")]
private void intersectURI(string email1, string email2, ISet intersect)
{
int num;
while (num == -1)
{
if (!Platform.StartsWith(email1, "."))
{
int num2;
if (num2 == -1)
{
if (!Platform.StartsWith(email2, "."))
{
if (Platform.EqualsIgnoreCase(email1, email2))
{
}
return;
}
bool flag = this.WithinDomain(email1, email2);
}
int num4;
int num3 = num4 + 1;
bool flag2 = Platform.EqualsIgnoreCase(email2.Substring(num3), email1);
}
int num5;
if (num5 == -1)
{
if (!Platform.StartsWith(email2, "."))
{
}
if (this.WithinDomain(email1, email2) || Platform.EqualsIgnoreCase(email1, email2))
{
continue;
}
}
int num7;
int num6 = num7 + 1;
string text = email2.Substring(num6);
if (this.WithinDomain(text, email1))
{
break;
}
}
int num9;
int num8 = num9 + 1;
string text2 = email1.Substring(num8);
int num10;
while (num10 != -1)
{
}
if (!Platform.StartsWith(email2, "."))
{
}
bool flag3 = this.WithinDomain(text2, email2);
throw new NullReferenceException();
}
// Token: 0x06009B79 RID: 39801 RVA: 0x00204624 File Offset: 0x00202824
[Token(Token = "0x6009B79")]
[Address(RVA = "0x1CD4200", Offset = "0x1CD3000", VA = "0x181CD4200")]
private void CheckPermittedURI(ISet permitted, string uri)
{
/*
An exception occurred when decompiling this method (06009B79)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::CheckPermittedURI(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,System.String)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_25:
stloc:PkixNameConstraintValidatorException(var_1_2F, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("URI is not from a permitted subtree.")))
}
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.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 1660
*/;
}
// Token: 0x06009B7A RID: 39802 RVA: 0x00204660 File Offset: 0x00202860
[Token(Token = "0x6009B7A")]
[Address(RVA = "0x1CD63F0", Offset = "0x1CD51F0", VA = "0x181CD63F0")]
private bool IsUriConstrained(string uri, string constraint)
{
string text;
for (;;)
{
text = PkixNameConstraintValidator.ExtractHostFromURL(uri);
if (Platform.StartsWith(constraint, "."))
{
break;
}
if (!Platform.EqualsIgnoreCase(text, constraint))
{
return;
}
}
if (this.WithinDomain(text, constraint))
{
return true;
}
}
// Token: 0x06009B7B RID: 39803 RVA: 0x0020469C File Offset: 0x0020289C
[Token(Token = "0x6009B7B")]
[Address(RVA = "0x1CD48C0", Offset = "0x1CD36C0", VA = "0x181CD48C0")]
private static string ExtractHostFromURL(string url)
{
string text4;
int num10;
do
{
int num2;
int num = num2 + 1;
string text = url.Substring(num);
if (Platform.IndexOf(text, "//") != -1)
{
}
int num3;
string text2;
if (num3 != -1)
{
int num4 = 0;
int num5;
text2 = text.Substring(num4, num5);
}
int num7;
int num6 = num7 + 1;
string text3 = text2.Substring(num6);
int num9;
int num8 = num9 + 1;
text4 = text3.Substring(num8);
}
while (num10 == -1);
int num11 = 0;
int num12;
return text4.Substring(num11, num12);
}
// Token: 0x06009B7C RID: 39804 RVA: 0x00204714 File Offset: 0x00202914
[Token(Token = "0x6009B7C")]
[Address(RVA = "0x1CD8BA0", Offset = "0x1CD79A0", VA = "0x181CD8BA0")]
public void checkPermitted(GeneralName name)
{
/*
An exception occurred when decompiling this method (06009B7C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::checkPermitted(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_182:
stloc:PkixNameConstraintValidatorException(var_29_18C, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("IP is not from a permitted subtree.")))
}
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.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 1660
*/;
}
// Token: 0x06009B7D RID: 39805 RVA: 0x002048B0 File Offset: 0x00202AB0
[Token(Token = "0x6009B7D")]
[Address(RVA = "0x1CD84E0", Offset = "0x1CD72E0", VA = "0x181CD84E0")]
public void checkExcluded(GeneralName name)
{
/*
An exception occurred when decompiling this method (06009B7D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::checkExcluded(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_14C:
stloc:PkixNameConstraintValidatorException(var_19_156, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("Email address is from an excluded subtree.")))
}
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.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.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.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 1660
*/;
}
// Token: 0x06009B7E RID: 39806 RVA: 0x00204A14 File Offset: 0x00202C14
[Token(Token = "0x6009B7E")]
[Address(RVA = "0x1CD5B50", Offset = "0x1CD4950", VA = "0x181CD5B50")]
public void IntersectPermittedSubtree(Asn1Sequence permitted)
{
IDictionary dictionary = Platform.CreateHashtable();
int num = 0;
num += num;
num++;
int num2 = 0;
if (dictionary != 0)
{
if (num < num2)
{
num += num;
num++;
}
int tag = GeneralSubtree.GetInstance(num).baseName.tag;
uint num3;
if (num < (int)num3)
{
num += num;
num++;
}
if (num == 0)
{
HashSet hashSet = new HashSet();
}
}
if (num < dictionary)
{
num += num;
num++;
}
int num4 = 0;
if (num != 0)
{
if (num < num4)
{
num += num;
num++;
}
int i = num;
while (i > 6)
{
}
i += 19;
i++;
i += 19;
ISet set;
this.permittedSubtreesEmail = set;
ISet set2 = this.permittedSubtreesDNS;
ISet set3 = this.intersectDNS(set2, set);
this.permittedSubtreesDNS = set3;
ISet set4 = this.permittedSubtreesDN;
ISet set5 = this.IntersectDN(set4, set3);
this.permittedSubtreesDN = set5;
ISet set6 = this.permittedSubtreesURI;
ISet set7 = this.intersectURI(set6, set5);
this.permittedSubtreesURI = set7;
ISet set8 = this.permittedSubtreesIP;
ISet set9 = this.IntersectIP(set8, set7);
this.permittedSubtreesIP = set9;
}
}
// Token: 0x06009B7F RID: 39807 RVA: 0x00204B30 File Offset: 0x00202D30
[Token(Token = "0x6009B7F")]
[Address(RVA = "0x1CD4CC0", Offset = "0x1CD3AC0", VA = "0x181CD4CC0")]
private string ExtractNameAsString(GeneralName name)
{
Asn1Object asn1Object = DerIA5String.GetInstance(name.obj).ToAsn1Object();
throw new NullReferenceException();
}
// Token: 0x06009B80 RID: 39808 RVA: 0x00204B54 File Offset: 0x00202D54
[Token(Token = "0x6009B80")]
[Address(RVA = "0x1CD5400", Offset = "0x1CD4200", VA = "0x181CD5400")]
public void IntersectEmptyPermittedSubtree(int nameType)
{
int num = nameType - 1;
if (num <= 6)
{
HashSet hashSet = new HashSet();
this.permittedSubtreesEmail = hashSet;
return;
}
}
// Token: 0x06009B81 RID: 39809 RVA: 0x00204BB8 File Offset: 0x00202DB8
[Token(Token = "0x6009B81")]
[Address(RVA = "0x1CD3610", Offset = "0x1CD2410", VA = "0x181CD3610")]
public void AddExcludedSubtree(GeneralSubtree subtree)
{
GeneralName baseName = subtree.baseName;
if (baseName.tag <= 6)
{
ISet set = this.excludedSubtreesEmail;
string text = this.ExtractNameAsString(baseName);
ISet set2 = this.UnionEmail(set, text);
this.excludedSubtreesEmail = set2;
}
}
// Token: 0x06009B82 RID: 39810 RVA: 0x00204C70 File Offset: 0x00202E70
[Token(Token = "0x6009B82")]
[Address(RVA = "0x1CD64D0", Offset = "0x1CD52D0", VA = "0x181CD64D0")]
private static byte[] Max(byte[] ip1, byte[] ip2)
{
int num = 0;
int length = ip1.Length;
if (num < length)
{
num++;
return ip1;
}
return ip2;
}
// Token: 0x06009B83 RID: 39811 RVA: 0x00204C98 File Offset: 0x00202E98
[Token(Token = "0x6009B83")]
[Address(RVA = "0x1CD6950", Offset = "0x1CD5750", VA = "0x181CD6950")]
private static byte[] Min(byte[] ip1, byte[] ip2)
{
int num = 0;
int length = ip1.Length;
if (num < length)
{
num++;
return ip1;
}
return ip2;
}
// Token: 0x06009B84 RID: 39812 RVA: 0x00204CC0 File Offset: 0x00202EC0
[Token(Token = "0x6009B84")]
[Address(RVA = "0x1CD4490", Offset = "0x1CD3290", VA = "0x181CD4490")]
private static int CompareTo(byte[] ip1, byte[] ip2)
{
if (!Arrays.AreEqual(ip1, ip2))
{
bool flag = Arrays.AreEqual(PkixNameConstraintValidator.Max(ip1, ip2), ip1);
return -1;
}
return 0;
}
// Token: 0x06009B85 RID: 39813 RVA: 0x00204CE8 File Offset: 0x00202EE8
[Token(Token = "0x6009B85")]
[Address(RVA = "0x1CD69D0", Offset = "0x1CD57D0", VA = "0x181CD69D0")]
private static byte[] Or(byte[] ip1, byte[] ip2)
{
byte[] array = new byte[ip1.Length];
int num = 0;
int length = ip1.Length;
if (num < length)
{
num++;
}
return array;
}
// Token: 0x06009B86 RID: 39814 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009B86")]
[Address(RVA = "0x1CD4E00", Offset = "0x1CD3C00", VA = "0x181CD4E00")]
[Obsolete]
public int HashCode()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009B87 RID: 39815 RVA: 0x00204D1C File Offset: 0x00202F1C
[Token(Token = "0x6009B87")]
[Address(RVA = "0x1CD4D00", Offset = "0x1CD3B00", VA = "0x181CD4D00", Slot = "2")]
public override int GetHashCode()
{
ISet set = this.excludedSubtreesDN;
int num = this.HashCollection(set);
ISet set2 = this.excludedSubtreesDNS;
int num2 = this.HashCollection(set2);
ISet set3 = this.excludedSubtreesEmail;
int num3 = this.HashCollection(set3);
ISet set4 = this.excludedSubtreesIP;
int num4 = this.HashCollection(set4);
ISet set5 = this.excludedSubtreesURI;
int num5 = this.HashCollection(set5);
ISet set6 = this.permittedSubtreesDN;
int num6 = this.HashCollection(set6);
ISet set7 = this.permittedSubtreesDNS;
int num7 = this.HashCollection(set7);
ISet set8 = this.permittedSubtreesEmail;
int num8 = this.HashCollection(set8);
ISet set9 = this.permittedSubtreesIP;
int num9 = this.HashCollection(set9);
ISet set10 = this.permittedSubtreesURI;
int num10 = this.HashCollection(set10);
num10 += num9;
num10 += num8;
num10 += num7;
num10 += num6;
num10 += num5;
num10 += num4;
return num10 + num3;
}
// Token: 0x06009B88 RID: 39816 RVA: 0x00204E0C File Offset: 0x0020300C
[Token(Token = "0x6009B88")]
[Address(RVA = "0x1CD4E20", Offset = "0x1CD3C20", VA = "0x181CD4E20")]
private int HashCollection(ICollection coll)
{
if (coll != 0)
{
int num = 0;
int num2;
return num + num2;
}
return 0;
}
// Token: 0x06009B89 RID: 39817 RVA: 0x00204E2C File Offset: 0x0020302C
[Token(Token = "0x6009B89")]
[Address(RVA = "0x1CD46F0", Offset = "0x1CD34F0", VA = "0x181CD46F0", Slot = "0")]
public override bool Equals(object o)
{
while (o != 0 && o != 0)
{
if (o != 0)
{
bool flag;
bool flag2;
bool flag3;
bool flag4;
bool flag5;
bool flag6;
bool flag7;
bool flag8;
bool flag9;
if (flag && flag2 && flag3 && flag4 && flag5 && flag6 && flag7 && flag8 && flag9)
{
bool flag10;
return flag10;
}
return;
}
}
}
// Token: 0x06009B8A RID: 39818 RVA: 0x00204E7C File Offset: 0x0020307C
[Token(Token = "0x6009B8A")]
[Address(RVA = "0x1CD4330", Offset = "0x1CD3130", VA = "0x181CD4330")]
private bool CollectionsAreEqual(ICollection coll1, ICollection coll2)
{
if (coll1 != coll2 && coll1 != 0 && coll2 != 0)
{
bool flag;
while (!flag)
{
}
}
return true;
}
// Token: 0x06009B8B RID: 39819 RVA: 0x00204EA0 File Offset: 0x002030A0
[Token(Token = "0x6009B8B")]
[Address(RVA = "0x1CD6AA0", Offset = "0x1CD58A0", VA = "0x181CD6AA0")]
private bool SpecialEquals(object o1, object o2)
{
if (o1 != o2)
{
if (o1 != 0 && o2 != 0)
{
bool flag;
return flag;
}
}
return true;
}
// Token: 0x06009B8C RID: 39820 RVA: 0x00204EC0 File Offset: 0x002030C0
[Token(Token = "0x6009B8C")]
[Address(RVA = "0x1CD6EF0", Offset = "0x1CD5CF0", VA = "0x181CD6EF0")]
private string StringifyIP(byte[] ip)
{
int num = 0;
int num2 = ip.Length;
num2 -= ip;
if (num < num2)
{
string text = "" + num + ".";
num++;
}
string text3;
string text2 = text3 + "/";
int num3 = ip.Length;
num3 -= "/";
string text4;
if (num3 < ip.Length)
{
text4 = text2 + num3 + ".";
num3++;
}
int stringLength = text4.m_stringLength;
int num4 = 0;
return text4.Substring(num4, stringLength);
}
// Token: 0x06009B8D RID: 39821 RVA: 0x00204F54 File Offset: 0x00203154
[Token(Token = "0x6009B8D")]
[Address(RVA = "0x1CD6BA0", Offset = "0x1CD59A0", VA = "0x181CD6BA0")]
private string StringifyIPCollection(ISet ips)
{
string text6;
int stringLength3;
do
{
string text = "" + "[";
int num = 0;
if (num < ips)
{
num += num;
num++;
}
int num2 = 0;
if (text != 0)
{
if (num < num2)
{
num += num;
num++;
}
if (num == 0)
{
num += 19;
num++;
num += 19;
}
if (num == 0)
{
continue;
}
uint num3;
num3 -= typeof(byte[]).TypeHandle;
string text2;
if (num < (int)num3)
{
text2 = "" + num + ".";
num++;
}
int stringLength = text2.m_stringLength;
int num4 = 0;
string text3 = text2.Substring(num4, stringLength) + "/";
text3 -= "/";
string text4 = text3 + text3 + ".";
int stringLength2 = text4.m_stringLength;
int num5 = 0;
string text5 = text4.Substring(num5, stringLength2);
text6 = text + text5 + ",";
}
stringLength3 = text6.m_stringLength;
}
while (stringLength3 <= 1);
int num6 = 0;
return text6.Substring(num6, stringLength3) + "]";
}
// Token: 0x06009B8E RID: 39822 RVA: 0x00205060 File Offset: 0x00203260
[Token(Token = "0x6009B8E")]
[Address(RVA = "0x1CD7050", Offset = "0x1CD5E50", VA = "0x181CD7050", Slot = "3")]
public override string ToString()
{
string text20;
for (;;)
{
string text = "" + "permitted:\n";
if (this.permittedSubtreesDN != (ulong)0L)
{
string text2 = text + "DN:\n";
ISet set = this.permittedSubtreesDN;
string text3 = text2 + text2 + "\n";
}
string text5;
if (this.permittedSubtreesDNS != (ulong)0L)
{
string text4 = text + "DNS:\n";
ISet set2 = this.permittedSubtreesDNS;
text5 = text4 + text4 + "\n";
}
string text7;
if (this.permittedSubtreesEmail != (ulong)0L)
{
string text6 = text5 + "Email:\n";
ISet set3 = this.permittedSubtreesEmail;
text7 = text6 + text6 + "\n";
}
string text9;
if (this.permittedSubtreesURI != (ulong)0L)
{
string text8 = text7 + "URI:\n";
ISet set4 = this.permittedSubtreesURI;
text9 = text8 + text8 + "\n";
}
if (this.permittedSubtreesIP != (ulong)0L)
{
string text10 = text9 + "IP:\n";
ISet set5 = this.permittedSubtreesIP;
string text11 = this.StringifyIPCollection(set5);
string text12 = text10 + text11 + "\n" + "excluded:\n";
ISet set6 = this.excludedSubtreesDN;
string text14;
if (text12 == 0)
{
string text13 = text12 + "DN:\n";
ISet set7 = this.excludedSubtreesDN;
text14 = text13 + text13 + "\n";
}
ISet set8 = this.excludedSubtreesDNS;
string text16;
if (text14 == 0)
{
string text15 = text14 + "DNS:\n";
ISet set9 = this.excludedSubtreesDNS;
text16 = text15 + text15 + "\n";
}
ISet set10 = this.excludedSubtreesEmail;
string text18;
if (text16 == 0)
{
string text17 = text16 + "Email:\n";
ISet set11 = this.excludedSubtreesEmail;
text18 = text17 + text17 + "\n";
}
ISet set12 = this.excludedSubtreesURI;
if (text18 == 0)
{
string text19 = text18 + "URI:\n";
ISet set13 = this.excludedSubtreesURI;
text20 = text19 + text19 + "\n";
}
ISet set14 = this.excludedSubtreesIP;
if (text20 == 0)
{
break;
}
}
}
string text21 = text20 + "IP:\n";
ISet set15 = this.excludedSubtreesIP;
string text22 = this.StringifyIPCollection(set15);
return text21 + text22 + "\n";
}
// Token: 0x040068EA RID: 26858
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40068EA")]
private ISet excludedSubtreesDN;
// Token: 0x040068EB RID: 26859
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40068EB")]
private ISet excludedSubtreesDNS;
// Token: 0x040068EC RID: 26860
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40068EC")]
private ISet excludedSubtreesEmail;
// Token: 0x040068ED RID: 26861
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40068ED")]
private ISet excludedSubtreesURI;
// Token: 0x040068EE RID: 26862
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40068EE")]
private ISet excludedSubtreesIP;
// Token: 0x040068EF RID: 26863
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40068EF")]
private ISet permittedSubtreesDN;
// Token: 0x040068F0 RID: 26864
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40068F0")]
private ISet permittedSubtreesDNS;
// Token: 0x040068F1 RID: 26865
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x40068F1")]
private ISet permittedSubtreesEmail;
// Token: 0x040068F2 RID: 26866
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x40068F2")]
private ISet permittedSubtreesURI;
// Token: 0x040068F3 RID: 26867
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x40068F3")]
private ISet permittedSubtreesIP;
}
}
@@ -0,0 +1,19 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001982 RID: 6530
[Token(Token = "0x2001982")]
[Serializable]
public class PkixNameConstraintValidatorException : Exception
{
// Token: 0x06009B8F RID: 39823 RVA: 0x00205294 File Offset: 0x00203494
[Token(Token = "0x6009B8F")]
[Address(RVA = "0x19B3180", Offset = "0x19B1F80", VA = "0x1819B3180")]
public PkixNameConstraintValidatorException(string msg)
: base(msg)
{
}
}
}
@@ -0,0 +1,945 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001983 RID: 6531
[Token(Token = "0x2001983")]
public class PkixParameters
{
// Token: 0x06009B90 RID: 39824 RVA: 0x002052A8 File Offset: 0x002034A8
[Token(Token = "0x6009B90")]
[Address(RVA = "0x19B5130", Offset = "0x19B3F30", VA = "0x1819B5130")]
public PkixParameters(ISet trustAnchors)
{
ISet set = this.GetTrustAnchors();
HashSet hashSet = new HashSet();
this.initialPolicies = hashSet;
IList list = Platform.CreateArrayList();
this.certPathCheckers = list;
IList list2 = Platform.CreateArrayList();
this.stores = list2;
IList list3 = Platform.CreateArrayList();
this.additionalStores = list3;
HashSet hashSet2 = new HashSet();
this.trustedACIssuers = hashSet2;
HashSet hashSet3 = new HashSet();
this.necessaryACAttributes = hashSet3;
HashSet hashSet4 = new HashSet();
this.prohibitedACAttributes = hashSet4;
HashSet hashSet5 = new HashSet();
this.attrCertCheckers = hashSet5;
}
// Token: 0x170018DE RID: 6366
// (get) Token: 0x06009B91 RID: 39825 RVA: 0x0020534C File Offset: 0x0020354C
// (set) Token: 0x06009B92 RID: 39826 RVA: 0x00205360 File Offset: 0x00203560
[Token(Token = "0x170018DE")]
public virtual bool IsRevocationEnabled
{
[Token(Token = "0x6009B91")]
[Address(RVA = "0x494270", Offset = "0x493070", VA = "0x180494270", Slot = "4")]
get
{
return this.revocationEnabled;
}
[Token(Token = "0x6009B92")]
[Address(RVA = "0x494500", Offset = "0x493300", VA = "0x180494500", Slot = "5")]
set
{
this.revocationEnabled = value;
}
}
// Token: 0x170018DF RID: 6367
// (get) Token: 0x06009B93 RID: 39827 RVA: 0x00205374 File Offset: 0x00203574
// (set) Token: 0x06009B94 RID: 39828 RVA: 0x00205388 File Offset: 0x00203588
[Token(Token = "0x170018DF")]
public virtual bool IsExplicitPolicyRequired
{
[Token(Token = "0x6009B93")]
[Address(RVA = "0x43A970", Offset = "0x439770", VA = "0x18043A970", Slot = "6")]
get
{
return this.explicitPolicyRequired;
}
[Token(Token = "0x6009B94")]
[Address(RVA = "0x43ABB0", Offset = "0x4399B0", VA = "0x18043ABB0", Slot = "7")]
set
{
this.explicitPolicyRequired = value;
}
}
// Token: 0x170018E0 RID: 6368
// (get) Token: 0x06009B95 RID: 39829 RVA: 0x0020539C File Offset: 0x0020359C
// (set) Token: 0x06009B96 RID: 39830 RVA: 0x002053B0 File Offset: 0x002035B0
[Token(Token = "0x170018E0")]
public virtual bool IsAnyPolicyInhibited
{
[Token(Token = "0x6009B95")]
[Address(RVA = "0x43AAA0", Offset = "0x4398A0", VA = "0x18043AAA0", Slot = "8")]
get
{
return this.anyPolicyInhibited;
}
[Token(Token = "0x6009B96")]
[Address(RVA = "0x43ACB0", Offset = "0x439AB0", VA = "0x18043ACB0", Slot = "9")]
set
{
this.anyPolicyInhibited = value;
}
}
// Token: 0x170018E1 RID: 6369
// (get) Token: 0x06009B97 RID: 39831 RVA: 0x002053C4 File Offset: 0x002035C4
// (set) Token: 0x06009B98 RID: 39832 RVA: 0x002053D8 File Offset: 0x002035D8
[Token(Token = "0x170018E1")]
public virtual bool IsPolicyMappingInhibited
{
[Token(Token = "0x6009B97")]
[Address(RVA = "0x718510", Offset = "0x717310", VA = "0x180718510", Slot = "10")]
get
{
return this.policyMappingInhibited;
}
[Token(Token = "0x6009B98")]
[Address(RVA = "0x718A40", Offset = "0x717840", VA = "0x180718A40", Slot = "11")]
set
{
this.policyMappingInhibited = value;
}
}
// Token: 0x170018E2 RID: 6370
// (get) Token: 0x06009B99 RID: 39833 RVA: 0x002053EC File Offset: 0x002035EC
// (set) Token: 0x06009B9A RID: 39834 RVA: 0x00205400 File Offset: 0x00203600
[Token(Token = "0x170018E2")]
public virtual bool IsPolicyQualifiersRejected
{
[Token(Token = "0x6009B99")]
[Address(RVA = "0x19B5270", Offset = "0x19B4070", VA = "0x1819B5270", Slot = "12")]
get
{
return this.policyQualifiersRejected;
}
[Token(Token = "0x6009B9A")]
[Address(RVA = "0x19B5280", Offset = "0x19B4080", VA = "0x1819B5280", Slot = "13")]
set
{
this.policyQualifiersRejected = value;
}
}
// Token: 0x170018E3 RID: 6371
// (get) Token: 0x06009B9B RID: 39835 RVA: 0x00205414 File Offset: 0x00203614
// (set) Token: 0x06009B9C RID: 39836 RVA: 0x00205428 File Offset: 0x00203628
[Token(Token = "0x170018E3")]
public virtual DateTimeObject Date
{
[Token(Token = "0x6009B9B")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "14")]
get
{
return this.date;
}
[Token(Token = "0x6009B9C")]
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210", Slot = "15")]
set
{
this.date = value;
}
}
// Token: 0x06009B9D RID: 39837 RVA: 0x0020543C File Offset: 0x0020363C
[Token(Token = "0x6009B9D")]
[Address(RVA = "0x19B3AF0", Offset = "0x19B28F0", VA = "0x1819B3AF0", Slot = "16")]
public virtual ISet GetTrustAnchors()
{
/*
An exception occurred when decompiling this method (06009B9D)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::GetTrustAnchors()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixParameters::trustAnchors, ldloc:PkixParameters(this))))
}
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 1660
*/;
}
// Token: 0x06009B9E RID: 39838 RVA: 0x00205454 File Offset: 0x00203654
[Token(Token = "0x6009B9E")]
[Address(RVA = "0x19B4C70", Offset = "0x19B3A70", VA = "0x1819B4C70", Slot = "17")]
public virtual void SetTrustAnchors(ISet tas)
{
/*
An exception occurred when decompiling this method (06009B9E)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::SetTrustAnchors(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_50:
stloc:ArgumentException(var_5_5F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("non-empty set required"), ldstr:string("value")))
}
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 1660
*/;
}
// Token: 0x06009B9F RID: 39839 RVA: 0x002054C4 File Offset: 0x002036C4
[Token(Token = "0x6009B9F")]
[Address(RVA = "0x19B39D0", Offset = "0x19B27D0", VA = "0x1819B39D0", Slot = "18")]
public virtual X509CertStoreSelector GetTargetCertConstraints()
{
for (;;)
{
IX509Selector ix509Selector = this.certSelector;
if (ix509Selector == 0 || ix509Selector != 0)
{
return;
}
}
}
// Token: 0x06009BA0 RID: 39840 RVA: 0x002054E8 File Offset: 0x002036E8
[Token(Token = "0x6009BA0")]
[Address(RVA = "0x19B4B30", Offset = "0x19B3930", VA = "0x1819B4B30", Slot = "19")]
public virtual void SetTargetCertConstraints(IX509Selector selector)
{
if (selector != 0)
{
return;
}
int num = 0;
this.certSelector = num;
}
// Token: 0x06009BA1 RID: 39841 RVA: 0x00205504 File Offset: 0x00203704
[Token(Token = "0x6009BA1")]
[Address(RVA = "0x19B3830", Offset = "0x19B2630", VA = "0x1819B3830", Slot = "20")]
public virtual ISet GetInitialPolicies()
{
/*
An exception occurred when decompiling this method (06009BA1)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::GetInitialPolicies()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_11:
stloc:HashSet(var_2_17, newobj:HashSet(HashSet::.ctor, ldloc:ISet[exp:IEnumerable](var_0_06)))
}
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 1660
*/;
}
// Token: 0x06009BA2 RID: 39842 RVA: 0x00205528 File Offset: 0x00203728
[Token(Token = "0x6009BA2")]
[Address(RVA = "0x19B4090", Offset = "0x19B2E90", VA = "0x1819B4090", Slot = "21")]
public virtual void SetInitialPolicies(ISet initialPolicies)
{
int num;
do
{
num = 0;
HashSet hashSet = new HashSet();
this.initialPolicies = hashSet;
if (initialPolicies == 0)
{
break;
}
if (hashSet != 0)
{
if (num < hashSet)
{
num += num;
num++;
}
while (num == 0)
{
}
if (num == 0)
{
goto IL_4A;
}
ISet set = this.initialPolicies;
num++;
num += 19;
}
if (num != 0)
{
}
}
while (num != 0);
return;
IL_4A:
throw new NullReferenceException();
}
// Token: 0x06009BA3 RID: 39843 RVA: 0x00205584 File Offset: 0x00203784
[Token(Token = "0x6009BA3")]
[Address(RVA = "0x19B3DF0", Offset = "0x19B2BF0", VA = "0x1819B3DF0", Slot = "22")]
public virtual void SetCertPathCheckers(IList checkers)
{
int num;
do
{
num = 0;
IList list = Platform.CreateArrayList();
this.certPathCheckers = list;
if (checkers == 0)
{
break;
}
if (list != 0)
{
if (num < list)
{
num += num;
num++;
}
if (num == 0)
{
num++;
num += 19;
}
if (num == 0)
{
goto IL_71;
}
IList list2 = this.certPathCheckers;
if (num < num)
{
num += num;
num++;
}
bool flag;
flag += flag;
num += 2;
num += 19;
}
if (num != 0)
{
}
}
while (num != 0);
return;
IL_71:
throw new NullReferenceException();
}
// Token: 0x06009BA4 RID: 39844 RVA: 0x00205608 File Offset: 0x00203808
[Token(Token = "0x6009BA4")]
[Address(RVA = "0x19B3590", Offset = "0x19B2390", VA = "0x1819B3590", Slot = "23")]
public virtual IList GetCertPathCheckers()
{
int num;
IList list;
do
{
num = 0;
list = Platform.CreateArrayList();
IList list2 = this.certPathCheckers;
if (list != 0)
{
if (num < list)
{
num += num;
num++;
}
ulong num2;
num2 += (ulong)1L;
if (list == 0)
{
goto IL_5B;
}
if (num < list)
{
num += num;
num++;
}
num += 2;
num += 19;
}
if (num != 0)
{
}
}
while (num != 0);
return list;
IL_5B:
throw new NullReferenceException();
}
// Token: 0x06009BA5 RID: 39845 RVA: 0x0020567C File Offset: 0x0020387C
[Token(Token = "0x6009BA5")]
[Address(RVA = "0x19B3250", Offset = "0x19B2050", VA = "0x1819B3250", Slot = "24")]
public virtual void AddCertPathChecker(PkixCertPathChecker checker)
{
if (checker != 0)
{
IList list = this.certPathCheckers;
}
}
// Token: 0x06009BA6 RID: 39846 RVA: 0x0020569C File Offset: 0x0020389C
[Token(Token = "0x6009BA6")]
[Address(RVA = "0x19B3330", Offset = "0x19B2130", VA = "0x1819B3330", Slot = "25")]
public virtual object Clone()
{
/*
An exception occurred when decompiling this method (06009BA6)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::Clone()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stfld:bool(PkixParameters::revocationEnabled, ldloc:PkixParameters(var_0), ldc.i4:bool(1))
stfld:bool(PkixParameters::policyQualifiersRejected, ldloc:PkixParameters(var_0), ldc.i4:bool(1))
stloc:ISet(var_1_14, callvirt:ISet(PkixParameters::GetTrustAnchors, ldloc:PkixParameters(var_0)))
stloc:HashSet(var_2_1A, newobj:HashSet(HashSet::.ctor))
stfld:ISet(PkixParameters::initialPolicies, ldloc:PkixParameters(var_0), ldloc:HashSet[exp:ISet](var_2_1A))
stloc:IList(var_4_29, call:IList(Platform::CreateArrayList))
stfld:IList(PkixParameters::certPathCheckers, ldloc:PkixParameters(var_0), ldloc:IList(var_4_29))
stloc:IList(var_6_3B, call:IList(Platform::CreateArrayList))
stfld:IList(PkixParameters::stores, ldloc:PkixParameters(var_0), ldloc:IList(var_6_3B))
stloc:IList(var_8_4D, call:IList(Platform::CreateArrayList))
stfld:IList(PkixParameters::additionalStores, ldloc:PkixParameters(var_0), ldloc:IList(var_8_4D))
stloc:HashSet(var_9_5C, newobj:HashSet(HashSet::.ctor))
stfld:ISet(PkixParameters::trustedACIssuers, ldloc:PkixParameters(var_0), ldloc:HashSet[exp:ISet](var_9_5C))
stloc:HashSet(var_10_6B, newobj:HashSet(HashSet::.ctor))
stfld:ISet(PkixParameters::necessaryACAttributes, ldloc:PkixParameters(var_0), ldloc:HashSet[exp:ISet](var_10_6B))
stloc:HashSet(var_11_7A, newobj:HashSet(HashSet::.ctor))
stfld:ISet(PkixParameters::prohibitedACAttributes, ldloc:PkixParameters(var_0), ldloc:HashSet[exp:ISet](var_11_7A))
stloc:HashSet(var_12_89, newobj:HashSet(HashSet::.ctor))
stfld:ISet(PkixParameters::attrCertCheckers, ldloc:PkixParameters(var_0), ldloc:HashSet[exp:ISet](var_12_89))
stloc:object(var_13_99, callvirt:object(PkixParameters::Clone, ldloc:PkixParameters(var_0)))
}
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 1660
*/;
}
// Token: 0x06009BA7 RID: 39847 RVA: 0x00205744 File Offset: 0x00203944
[Token(Token = "0x6009BA7")]
[Address(RVA = "0x19B4420", Offset = "0x19B3220", VA = "0x1819B4420", Slot = "26")]
protected virtual void SetParams(PkixParameters parameters)
{
bool flag2;
do
{
DateTimeObject dateTimeObject = this.Date;
bool isAnyPolicyInhibited = this.IsAnyPolicyInhibited;
bool isExplicitPolicyRequired = this.IsExplicitPolicyRequired;
bool isPolicyMappingInhibited = this.IsPolicyMappingInhibited;
string text = parameters.ToString();
bool isRevocationEnabled = this.IsRevocationEnabled;
ISet set = this.GetInitialPolicies();
bool isPolicyQualifiersRejected = this.IsPolicyQualifiersRejected;
X509CertStoreSelector targetCertConstraints = this.GetTargetCertConstraints();
ISet set2 = this.GetTrustAnchors();
int num = parameters.validityModel;
this.validityModel = num;
bool flag = parameters.useDeltas;
this.useDeltas = flag;
flag2 = parameters.additionalLocationsEnabled;
this.additionalLocationsEnabled = flag2;
if (parameters.selector == 0)
{
}
}
while (flag2 && !flag2);
this.selector = flag2;
IList list = Platform.CreateArrayList(parameters.stores);
this.stores = list;
IList list2 = Platform.CreateArrayList(parameters.additionalStores);
this.additionalStores = list2;
HashSet hashSet = new HashSet(parameters.trustedACIssuers);
this.trustedACIssuers = hashSet;
HashSet hashSet2 = new HashSet(parameters.prohibitedACAttributes);
this.prohibitedACAttributes = hashSet2;
HashSet hashSet3 = new HashSet(parameters.necessaryACAttributes);
this.necessaryACAttributes = hashSet3;
HashSet hashSet4 = new HashSet(parameters.attrCertCheckers);
this.attrCertCheckers = hashSet4;
}
// Token: 0x170018E4 RID: 6372
// (get) Token: 0x06009BA8 RID: 39848 RVA: 0x00205870 File Offset: 0x00203A70
// (set) Token: 0x06009BA9 RID: 39849 RVA: 0x00205884 File Offset: 0x00203A84
[Token(Token = "0x170018E4")]
public virtual bool IsUseDeltasEnabled
{
[Token(Token = "0x6009BA8")]
[Address(RVA = "0x774EC0", Offset = "0x773CC0", VA = "0x180774EC0", Slot = "27")]
get
{
return this.useDeltas;
}
[Token(Token = "0x6009BA9")]
[Address(RVA = "0x774EB0", Offset = "0x773CB0", VA = "0x180774EB0", Slot = "28")]
set
{
this.useDeltas = value;
}
}
// Token: 0x170018E5 RID: 6373
// (get) Token: 0x06009BAA RID: 39850 RVA: 0x00205898 File Offset: 0x00203A98
// (set) Token: 0x06009BAB RID: 39851 RVA: 0x002058AC File Offset: 0x00203AAC
[Token(Token = "0x170018E5")]
public virtual int ValidityModel
{
[Token(Token = "0x6009BAA")]
[Address(RVA = "0x404240", Offset = "0x403040", VA = "0x180404240", Slot = "29")]
get
{
return this.validityModel;
}
[Token(Token = "0x6009BAB")]
[Address(RVA = "0x6E19B0", Offset = "0x6E07B0", VA = "0x1806E19B0", Slot = "30")]
set
{
this.validityModel = value;
}
}
// Token: 0x06009BAC RID: 39852 RVA: 0x002058C0 File Offset: 0x00203AC0
[Token(Token = "0x6009BAC")]
[Address(RVA = "0x19B4920", Offset = "0x19B3720", VA = "0x1819B4920", Slot = "31")]
public virtual void SetStores(IList stores)
{
int num;
do
{
num = 0;
if (stores == 0)
{
goto IL_11;
}
}
while (num != 0);
IList list = Platform.CreateArrayList(stores);
IL_11:
IList list2 = Platform.CreateArrayList();
this.stores = list2;
}
// Token: 0x06009BAD RID: 39853 RVA: 0x00205910 File Offset: 0x00203B10
[Token(Token = "0x6009BAD")]
[Address(RVA = "0x19B32D0", Offset = "0x19B20D0", VA = "0x1819B32D0", Slot = "32")]
public virtual void AddStore(IX509Store store)
{
if (store != 0)
{
IList list = this.stores;
}
}
// Token: 0x06009BAE RID: 39854 RVA: 0x00205930 File Offset: 0x00203B30
[Token(Token = "0x6009BAE")]
[Address(RVA = "0x19B31F0", Offset = "0x19B1FF0", VA = "0x1819B31F0", Slot = "33")]
public virtual void AddAdditionalStore(IX509Store store)
{
if (store != 0)
{
IList list = this.additionalStores;
}
}
// Token: 0x06009BAF RID: 39855 RVA: 0x00205950 File Offset: 0x00203B50
[Token(Token = "0x6009BAF")]
[Address(RVA = "0x19B34D0", Offset = "0x19B22D0", VA = "0x1819B34D0", Slot = "34")]
public virtual IList GetAdditionalStores()
{
return Platform.CreateArrayList(this.additionalStores);
}
// Token: 0x06009BB0 RID: 39856 RVA: 0x00205968 File Offset: 0x00203B68
[Token(Token = "0x6009BB0")]
[Address(RVA = "0x19B3970", Offset = "0x19B2770", VA = "0x1819B3970", Slot = "35")]
public virtual IList GetStores()
{
return Platform.CreateArrayList(this.stores);
}
// Token: 0x170018E6 RID: 6374
// (get) Token: 0x06009BB1 RID: 39857 RVA: 0x00205980 File Offset: 0x00203B80
[Token(Token = "0x170018E6")]
public virtual bool IsAdditionalLocationsEnabled
{
[Token(Token = "0x6009BB1")]
[Address(RVA = "0x40FFA0", Offset = "0x40EDA0", VA = "0x18040FFA0", Slot = "36")]
get
{
return this.additionalLocationsEnabled;
}
}
// Token: 0x06009BB2 RID: 39858 RVA: 0x00205994 File Offset: 0x00203B94
[Token(Token = "0x6009BB2")]
[Address(RVA = "0x410010", Offset = "0x40EE10", VA = "0x180410010", Slot = "37")]
public virtual void SetAdditionalLocationsEnabled(bool enabled)
{
this.additionalLocationsEnabled = enabled;
}
// Token: 0x06009BB3 RID: 39859 RVA: 0x002059A8 File Offset: 0x00203BA8
[Token(Token = "0x6009BB3")]
[Address(RVA = "0x19B3A70", Offset = "0x19B2870", VA = "0x1819B3A70", Slot = "38")]
public virtual IX509Selector GetTargetConstraints()
{
while (this.selector != 0)
{
}
}
// Token: 0x06009BB4 RID: 39860 RVA: 0x002059C0 File Offset: 0x00203BC0
[Token(Token = "0x6009BB4")]
[Address(RVA = "0x19B4BD0", Offset = "0x19B39D0", VA = "0x1819B4BD0", Slot = "39")]
public virtual void SetTargetConstraints(IX509Selector selector)
{
if (selector == 0)
{
int num = 0;
this.selector = num;
return;
}
}
// Token: 0x06009BB5 RID: 39861 RVA: 0x002059DC File Offset: 0x00203BDC
[Token(Token = "0x6009BB5")]
[Address(RVA = "0x19B3B50", Offset = "0x19B2950", VA = "0x1819B3B50", Slot = "40")]
public virtual ISet GetTrustedACIssuers()
{
/*
An exception occurred when decompiling this method (06009BB5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::GetTrustedACIssuers()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixParameters::trustedACIssuers, ldloc:PkixParameters(this))))
}
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 1660
*/;
}
// Token: 0x06009BB6 RID: 39862 RVA: 0x002059F4 File Offset: 0x00203BF4
[Token(Token = "0x6009BB6")]
[Address(RVA = "0x19B4EF0", Offset = "0x19B3CF0", VA = "0x1819B4EF0", Slot = "41")]
public virtual void SetTrustedACIssuers(ISet trustedACIssuers)
{
int num;
do
{
num = 0;
if (trustedACIssuers == 0)
{
goto IL_13;
}
}
while (num != 0);
HashSet hashSet = new HashSet(trustedACIssuers);
IL_13:
HashSet hashSet2 = new HashSet();
this.trustedACIssuers = hashSet2;
}
// Token: 0x06009BB7 RID: 39863 RVA: 0x00205A44 File Offset: 0x00203C44
[Token(Token = "0x6009BB7")]
[Address(RVA = "0x19B38B0", Offset = "0x19B26B0", VA = "0x1819B38B0", Slot = "42")]
public virtual ISet GetNecessaryACAttributes()
{
/*
An exception occurred when decompiling this method (06009BB7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::GetNecessaryACAttributes()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixParameters::necessaryACAttributes, ldloc:PkixParameters(this))))
}
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 1660
*/;
}
// Token: 0x06009BB8 RID: 39864 RVA: 0x00205A5C File Offset: 0x00203C5C
[Token(Token = "0x6009BB8")]
[Address(RVA = "0x19B4270", Offset = "0x19B3070", VA = "0x1819B4270", Slot = "43")]
public virtual void SetNecessaryACAttributes(ISet necessaryACAttributes)
{
int num;
do
{
num = 0;
if (necessaryACAttributes == 0)
{
goto IL_11;
}
}
while (num != 0);
HashSet hashSet = new HashSet(necessaryACAttributes);
IL_11:
HashSet hashSet2 = new HashSet();
this.necessaryACAttributes = hashSet2;
}
// Token: 0x06009BB9 RID: 39865 RVA: 0x00205A98 File Offset: 0x00203C98
[Token(Token = "0x6009BB9")]
[Address(RVA = "0x19B3910", Offset = "0x19B2710", VA = "0x1819B3910", Slot = "44")]
public virtual ISet GetProhibitedACAttributes()
{
/*
An exception occurred when decompiling this method (06009BB9)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::GetProhibitedACAttributes()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixParameters::prohibitedACAttributes, ldloc:PkixParameters(this))))
}
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 1660
*/;
}
// Token: 0x06009BBA RID: 39866 RVA: 0x00205AB0 File Offset: 0x00203CB0
[Token(Token = "0x6009BBA")]
[Address(RVA = "0x19B4770", Offset = "0x19B3570", VA = "0x1819B4770", Slot = "45")]
public virtual void SetProhibitedACAttributes(ISet prohibitedACAttributes)
{
int num;
do
{
num = 0;
if (prohibitedACAttributes == 0)
{
goto IL_11;
}
}
while (num != 0);
HashSet hashSet = new HashSet(prohibitedACAttributes);
IL_11:
HashSet hashSet2 = new HashSet();
this.prohibitedACAttributes = hashSet2;
}
// Token: 0x06009BBB RID: 39867 RVA: 0x00205AEC File Offset: 0x00203CEC
[Token(Token = "0x6009BBB")]
[Address(RVA = "0x19B3530", Offset = "0x19B2330", VA = "0x1819B3530", Slot = "46")]
public virtual ISet GetAttrCertCheckers()
{
/*
An exception occurred when decompiling this method (06009BBB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::GetAttrCertCheckers()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixParameters::attrCertCheckers, ldloc:PkixParameters(this))))
}
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 1660
*/;
}
// Token: 0x06009BBC RID: 39868 RVA: 0x00205B04 File Offset: 0x00203D04
[Token(Token = "0x6009BBC")]
[Address(RVA = "0x19B3BB0", Offset = "0x19B29B0", VA = "0x1819B3BB0", Slot = "47")]
public virtual void SetAttrCertCheckers(ISet attrCertCheckers)
{
int num;
do
{
num = 0;
if (attrCertCheckers == 0)
{
goto IL_13;
}
}
while (num != 0);
HashSet hashSet = new HashSet(attrCertCheckers);
IL_13:
HashSet hashSet2 = new HashSet();
this.attrCertCheckers = hashSet2;
}
// Token: 0x040068F4 RID: 26868
[Token(Token = "0x40068F4")]
public const int PkixValidityModel = 0;
// Token: 0x040068F5 RID: 26869
[Token(Token = "0x40068F5")]
public const int ChainValidityModel = 1;
// Token: 0x040068F6 RID: 26870
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40068F6")]
private ISet trustAnchors;
// Token: 0x040068F7 RID: 26871
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40068F7")]
private DateTimeObject date;
// Token: 0x040068F8 RID: 26872
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40068F8")]
private IList certPathCheckers;
// Token: 0x040068F9 RID: 26873
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x40068F9")]
private bool revocationEnabled = true;
// Token: 0x040068FA RID: 26874
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x40068FA")]
private ISet initialPolicies;
// Token: 0x040068FB RID: 26875
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x40068FB")]
private bool explicitPolicyRequired;
// Token: 0x040068FC RID: 26876
[FieldOffset(Offset = "0x39")]
[Token(Token = "0x40068FC")]
private bool anyPolicyInhibited;
// Token: 0x040068FD RID: 26877
[FieldOffset(Offset = "0x3A")]
[Token(Token = "0x40068FD")]
private bool policyMappingInhibited;
// Token: 0x040068FE RID: 26878
[FieldOffset(Offset = "0x3B")]
[Token(Token = "0x40068FE")]
private bool policyQualifiersRejected = true;
// Token: 0x040068FF RID: 26879
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x40068FF")]
private IX509Selector certSelector;
// Token: 0x04006900 RID: 26880
[FieldOffset(Offset = "0x48")]
[Token(Token = "0x4006900")]
private IList stores;
// Token: 0x04006901 RID: 26881
[FieldOffset(Offset = "0x50")]
[Token(Token = "0x4006901")]
private IX509Selector selector;
// Token: 0x04006902 RID: 26882
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4006902")]
private bool additionalLocationsEnabled;
// Token: 0x04006903 RID: 26883
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4006903")]
private IList additionalStores;
// Token: 0x04006904 RID: 26884
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x4006904")]
private ISet trustedACIssuers;
// Token: 0x04006905 RID: 26885
[FieldOffset(Offset = "0x70")]
[Token(Token = "0x4006905")]
private ISet necessaryACAttributes;
// Token: 0x04006906 RID: 26886
[FieldOffset(Offset = "0x78")]
[Token(Token = "0x4006906")]
private ISet prohibitedACAttributes;
// Token: 0x04006907 RID: 26887
[FieldOffset(Offset = "0x80")]
[Token(Token = "0x4006907")]
private ISet attrCertCheckers;
// Token: 0x04006908 RID: 26888
[FieldOffset(Offset = "0x88")]
[Token(Token = "0x4006908")]
private int validityModel;
// Token: 0x04006909 RID: 26889
[FieldOffset(Offset = "0x8C")]
[Token(Token = "0x4006909")]
private bool useDeltas;
}
}
@@ -0,0 +1,374 @@
using System;
using System.Collections;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001984 RID: 6532
[Token(Token = "0x2001984")]
public class PkixPolicyNode
{
// Token: 0x170018E7 RID: 6375
// (get) Token: 0x06009BBD RID: 39869 RVA: 0x00205B54 File Offset: 0x00203D54
[Token(Token = "0x170018E7")]
public virtual int Depth
{
[Token(Token = "0x6009BBD")]
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720", Slot = "4")]
get
{
return this.mDepth;
}
}
// Token: 0x170018E8 RID: 6376
// (get) Token: 0x06009BBE RID: 39870 RVA: 0x00205B68 File Offset: 0x00203D68
[Token(Token = "0x170018E8")]
public virtual IEnumerable Children
{
[Token(Token = "0x6009BBE")]
[Address(RVA = "0x19B5B20", Offset = "0x19B4920", VA = "0x1819B5B20", Slot = "5")]
get
{
/*
An exception occurred when decompiling this method (06009BBE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerable BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixPolicyNode::get_Children()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:EnumerableProxy(var_0_0B, newobj:EnumerableProxy(EnumerableProxy::.ctor, ldfld:IList[exp:IEnumerable](PkixPolicyNode::mChildren, ldloc:PkixPolicyNode(this))))
}
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 1660
*/;
}
}
// Token: 0x170018E9 RID: 6377
// (get) Token: 0x06009BBF RID: 39871 RVA: 0x00205B80 File Offset: 0x00203D80
// (set) Token: 0x06009BC0 RID: 39872 RVA: 0x00205B94 File Offset: 0x00203D94
[Token(Token = "0x170018E9")]
public virtual bool IsCritical
{
[Token(Token = "0x6009BBF")]
[Address(RVA = "0x4363F0", Offset = "0x4351F0", VA = "0x1804363F0", Slot = "6")]
get
{
return this.mCritical;
}
[Token(Token = "0x6009BC0")]
[Address(RVA = "0x4366B0", Offset = "0x4354B0", VA = "0x1804366B0", Slot = "7")]
set
{
this.mCritical = value;
}
}
// Token: 0x170018EA RID: 6378
// (get) Token: 0x06009BC1 RID: 39873 RVA: 0x00205BA8 File Offset: 0x00203DA8
[Token(Token = "0x170018EA")]
public virtual ISet PolicyQualifiers
{
[Token(Token = "0x6009BC1")]
[Address(RVA = "0x19B5C30", Offset = "0x19B4A30", VA = "0x1819B5C30", Slot = "8")]
get
{
/*
An exception occurred when decompiling this method (06009BC1)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixPolicyNode::get_PolicyQualifiers()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixPolicyNode::mPolicyQualifiers, ldloc:PkixPolicyNode(this))))
}
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 1660
*/;
}
}
// Token: 0x170018EB RID: 6379
// (get) Token: 0x06009BC2 RID: 39874 RVA: 0x00205BC0 File Offset: 0x00203DC0
[Token(Token = "0x170018EB")]
public virtual string ValidPolicy
{
[Token(Token = "0x6009BC2")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0", Slot = "9")]
get
{
return this.mValidPolicy;
}
}
// Token: 0x170018EC RID: 6380
// (get) Token: 0x06009BC3 RID: 39875 RVA: 0x00205BD4 File Offset: 0x00203DD4
[Token(Token = "0x170018EC")]
public virtual bool HasChildren
{
[Token(Token = "0x6009BC3")]
[Address(RVA = "0x19B5BE0", Offset = "0x19B49E0", VA = "0x1819B5BE0", Slot = "10")]
get
{
IList list = this.mChildren;
bool flag;
return flag;
}
}
// Token: 0x170018ED RID: 6381
// (get) Token: 0x06009BC4 RID: 39876 RVA: 0x00205BF0 File Offset: 0x00203DF0
// (set) Token: 0x06009BC5 RID: 39877 RVA: 0x00205C08 File Offset: 0x00203E08
[Token(Token = "0x170018ED")]
public virtual ISet ExpectedPolicies
{
[Token(Token = "0x6009BC4")]
[Address(RVA = "0x19B5B80", Offset = "0x19B4980", VA = "0x1819B5B80", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (06009BC4)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixPolicyNode::get_ExpectedPolicies()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixPolicyNode::mExpectedPolicies, ldloc:PkixPolicyNode(this))))
}
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 1660
*/;
}
[Token(Token = "0x6009BC5")]
[Address(RVA = "0x19B5C90", Offset = "0x19B4A90", VA = "0x1819B5C90", Slot = "12")]
set
{
HashSet hashSet = new HashSet(value);
this.mExpectedPolicies = hashSet;
}
}
// Token: 0x170018EE RID: 6382
// (get) Token: 0x06009BC6 RID: 39878 RVA: 0x00205C24 File Offset: 0x00203E24
// (set) Token: 0x06009BC7 RID: 39879 RVA: 0x00205C38 File Offset: 0x00203E38
[Token(Token = "0x170018EE")]
public virtual PkixPolicyNode Parent
{
[Token(Token = "0x6009BC6")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "13")]
get
{
return this.mParent;
}
[Token(Token = "0x6009BC7")]
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60", Slot = "14")]
set
{
this.mParent = value;
}
}
// Token: 0x06009BC8 RID: 39880 RVA: 0x00205C4C File Offset: 0x00203E4C
[Token(Token = "0x6009BC8")]
[Address(RVA = "0x19B5A40", Offset = "0x19B4840", VA = "0x1819B5A40")]
public PkixPolicyNode(IList children, int depth, ISet expectedPolicies, PkixPolicyNode parent, ISet policyQualifiers, string validPolicy, bool critical)
{
if (children != 0)
{
IList list = Platform.CreateArrayList(children);
}
IList list2 = Platform.CreateArrayList();
this.mChildren = list2;
this.mParent = 0;
this.mPolicyQualifiers = 0;
this.mValidPolicy = 0;
this.mDepth = depth;
this.mExpectedPolicies = expectedPolicies;
this.mCritical = false;
}
// Token: 0x06009BC9 RID: 39881 RVA: 0x00205CA4 File Offset: 0x00203EA4
[Token(Token = "0x6009BC9")]
[Address(RVA = "0x19B5290", Offset = "0x19B4090", VA = "0x1819B5290", Slot = "15")]
public virtual void AddChild(PkixPolicyNode child)
{
PkixPolicyNode parent = child.Parent;
IList list = this.mChildren;
throw new NullReferenceException();
}
// Token: 0x06009BCA RID: 39882 RVA: 0x00205CC4 File Offset: 0x00203EC4
[Token(Token = "0x6009BCA")]
[Address(RVA = "0x19B5640", Offset = "0x19B4440", VA = "0x1819B5640", Slot = "16")]
public virtual void RemoveChild(PkixPolicyNode child)
{
IList list = this.mChildren;
throw new NullReferenceException();
}
// Token: 0x06009BCB RID: 39883 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009BCB")]
[Address(RVA = "0x19B59F0", Offset = "0x19B47F0", VA = "0x1819B59F0", Slot = "3")]
public override string ToString()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009BCC RID: 39884 RVA: 0x00205CE0 File Offset: 0x00203EE0
[Token(Token = "0x6009BCC")]
[Address(RVA = "0x19B56A0", Offset = "0x19B44A0", VA = "0x1819B56A0", Slot = "17")]
public virtual string ToString(string indent)
{
StringBuilder stringBuilder;
for (;;)
{
int num = 0;
stringBuilder = new StringBuilder();
StringBuilder stringBuilder2 = stringBuilder.Append(indent);
string text = this.mValidPolicy;
StringBuilder stringBuilder3 = stringBuilder.Append(text);
StringBuilder stringBuilder4 = stringBuilder.Append(" {");
string newLine = Platform.NewLine;
StringBuilder stringBuilder5 = stringBuilder.Append(newLine);
IList list = this.mChildren;
if (stringBuilder5 != 0)
{
if (num < stringBuilder5)
{
num += num;
num++;
}
if (stringBuilder5 == 0)
{
}
if (stringBuilder5 == 0)
{
goto IL_BF;
}
string text2 = indent + " ";
if (stringBuilder.Append(text2) != 0)
{
}
if (num == 0)
{
break;
}
}
}
StringBuilder stringBuilder6 = stringBuilder.Append(indent);
StringBuilder stringBuilder7 = stringBuilder.Append("}");
string newLine2 = Platform.NewLine;
StringBuilder stringBuilder8 = stringBuilder.Append(newLine2);
int hashCode = stringBuilder.GetHashCode();
throw new NullReferenceException();
IL_BF:
throw new NullReferenceException();
}
// Token: 0x06009BCD RID: 39885 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009BCD")]
[Address(RVA = "0x5DF310", Offset = "0x5DE110", VA = "0x1805DF310", Slot = "18")]
public virtual object Clone()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009BCE RID: 39886 RVA: 0x00205DB4 File Offset: 0x00203FB4
[Token(Token = "0x6009BCE")]
[Address(RVA = "0x19B5310", Offset = "0x19B4110", VA = "0x1819B5310", Slot = "19")]
public virtual PkixPolicyNode Copy()
{
int num;
PkixPolicyNode pkixPolicyNode;
do
{
num = 0;
IList list = Platform.CreateArrayList();
HashSet hashSet = new HashSet(this.mExpectedPolicies);
HashSet hashSet2 = new HashSet(this.mPolicyQualifiers);
string text = this.mValidPolicy;
IList list2 = pkixPolicyNode.mChildren;
if (pkixPolicyNode != 0)
{
if (num < pkixPolicyNode)
{
num += num;
num++;
}
num++;
num += 19;
ulong num2;
num = (int)((ulong)num + num2);
if (num == 0 || num == 0)
{
goto IL_7B;
}
}
}
while (num != 0);
return pkixPolicyNode;
IL_7B:
throw new NullReferenceException();
}
// Token: 0x0400690A RID: 26890
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400690A")]
protected IList mChildren;
// Token: 0x0400690B RID: 26891
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x400690B")]
protected int mDepth;
// Token: 0x0400690C RID: 26892
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400690C")]
protected ISet mExpectedPolicies;
// Token: 0x0400690D RID: 26893
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400690D")]
protected PkixPolicyNode mParent;
// Token: 0x0400690E RID: 26894
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400690E")]
protected ISet mPolicyQualifiers;
// Token: 0x0400690F RID: 26895
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400690F")]
protected string mValidPolicy;
// Token: 0x04006910 RID: 26896
[FieldOffset(Offset = "0x40")]
[Token(Token = "0x4006910")]
protected bool mCritical;
}
}
@@ -0,0 +1,100 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001985 RID: 6533
[Token(Token = "0x2001985")]
internal class ReasonsMask
{
// Token: 0x06009BCF RID: 39887 RVA: 0x00205E48 File Offset: 0x00204048
[Token(Token = "0x6009BCF")]
[Address(RVA = "0x445B90", Offset = "0x444990", VA = "0x180445B90")]
internal ReasonsMask(int reasons)
{
this._reasons = reasons;
}
// Token: 0x06009BD0 RID: 39888 RVA: 0x00205E64 File Offset: 0x00204064
[Token(Token = "0x6009BD0")]
[Address(RVA = "0x19B5FA0", Offset = "0x19B4DA0", VA = "0x1819B5FA0")]
internal ReasonsMask()
{
this._reasons = (int)((ulong)0L);
}
// Token: 0x06009BD1 RID: 39889 RVA: 0x00205E80 File Offset: 0x00204080
[Token(Token = "0x6009BD1")]
[Address(RVA = "0x19B5D00", Offset = "0x19B4B00", VA = "0x1819B5D00")]
internal void AddReasons(ReasonsMask mask)
{
int padBits = new ReasonFlags(mask._reasons).PadBits;
this._reasons = padBits;
}
// Token: 0x170018EF RID: 6383
// (get) Token: 0x06009BD2 RID: 39890 RVA: 0x00205EAC File Offset: 0x002040AC
[Token(Token = "0x170018EF")]
internal bool IsAllReasons
{
[Token(Token = "0x6009BD2")]
[Address(RVA = "0x19B5FC0", Offset = "0x19B4DC0", VA = "0x1819B5FC0")]
get
{
int reasons = this._reasons;
ReasonsMask allReasons = ReasonsMask.AllReasons;
return reasons == allReasons._reasons;
}
}
// Token: 0x06009BD3 RID: 39891 RVA: 0x00205ED8 File Offset: 0x002040D8
[Token(Token = "0x6009BD3")]
[Address(RVA = "0x19B5E40", Offset = "0x19B4C40", VA = "0x1819B5E40")]
internal ReasonsMask Intersect(ReasonsMask mask)
{
ReasonsMask reasonsMask = new ReasonsMask();
reasonsMask._reasons = (int)((ulong)0L);
int padBits = new ReasonFlags(mask._reasons).PadBits;
reasonsMask.AddReasons(new ReasonsMask
{
_reasons = padBits
});
return reasonsMask;
}
// Token: 0x06009BD4 RID: 39892 RVA: 0x00205F20 File Offset: 0x00204120
[Token(Token = "0x6009BD4")]
[Address(RVA = "0x19B5DA0", Offset = "0x19B4BA0", VA = "0x1819B5DA0")]
internal bool HasNewReasons(ReasonsMask mask)
{
int padBits = new ReasonFlags(mask._reasons).PadBits;
throw new NullReferenceException();
}
// Token: 0x170018F0 RID: 6384
// (get) Token: 0x06009BD5 RID: 39893 RVA: 0x00205F44 File Offset: 0x00204144
[Token(Token = "0x170018F0")]
public ReasonFlags Reasons
{
[Token(Token = "0x6009BD5")]
[Address(RVA = "0x19B6030", Offset = "0x19B4E30", VA = "0x1819B6030")]
get
{
return new ReasonFlags(this._reasons);
}
}
// Token: 0x04006911 RID: 26897
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006911")]
private int _reasons;
// Token: 0x04006912 RID: 26898
[Token(Token = "0x4006912")]
internal static readonly ReasonsMask AllReasons = new ReasonsMask
{
_reasons = (int)((ulong)33023L)
};
}
}
@@ -0,0 +1,1513 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001986 RID: 6534
[Token(Token = "0x2001986")]
public class Rfc3280CertPathUtilities
{
// Token: 0x06009BD7 RID: 39895 RVA: 0x00205F84 File Offset: 0x00204184
[Token(Token = "0x6009BD7")]
[Address(RVA = "0x19BC7C0", Offset = "0x19BB5C0", VA = "0x1819BC7C0")]
internal static void ProcessCrlB2(DistributionPoint dp, object cert, X509Crl crl)
{
for (;;)
{
DerObjectIdentifier issuingDistributionPoint = X509Extensions.IssuingDistributionPoint;
IssuingDistributionPoint instance = IssuingDistributionPoint.GetInstance(PkixCertPathValidatorUtilities.GetExtensionValue(crl, issuingDistributionPoint));
if (instance == 0)
{
return;
}
if (instance._distributionPoint != (ulong)0L)
{
DistributionPointName distributionPoint = IssuingDistributionPoint.GetInstance(instance)._distributionPoint;
IList list = Platform.CreateArrayList();
if (distributionPoint.type != 0)
{
goto IL_70;
}
GeneralName[] names = GeneralNames.GetInstance(distributionPoint.name).GetNames();
int num = 0;
int length = names.Length;
if (num < length)
{
num++;
goto IL_70;
}
IL_73:
Asn1EncodableVector asn1EncodableVector;
int num2;
if (distributionPoint.type == 1)
{
asn1EncodableVector = new Asn1EncodableVector(Array.Empty<Asn1Encodable>());
int version = crl.Version;
byte[] array;
IEnumerator enumerator = Asn1Sequence.GetInstance(Asn1Object.FromByteArray(array)).GetEnumerator();
if (enumerator != 0)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
if (num2 < enumerator)
{
num2 += num2;
num2++;
}
if (array2 != 0)
{
ulong num3;
num3 += (ulong)1L;
if (array2 == 0 || array2 == 0)
{
goto IL_2B3;
}
}
array2[0] = num2;
asn1EncodableVector.Add(array2);
}
Asn1Encodable[] array3 = new Asn1Encodable[1];
Asn1Encodable name = distributionPoint.name;
if (name != 0)
{
}
array3[0] = name;
asn1EncodableVector.Add(array3);
GeneralName generalName = new GeneralName(X509Name.GetInstance(new DerSequence(asn1EncodableVector)));
}
if (asn1EncodableVector == 0)
{
uint num4;
if (num4 == (uint)0)
{
continue;
}
GeneralName[] array4;
int length2 = array4.Length;
if (num2 >= length2)
{
continue;
}
if (num2 != 0)
{
goto IL_25A;
}
num2++;
}
GeneralNames generalNames;
GeneralName[] names2;
if (num2 == 0)
{
IList v = asn1EncodableVector.v;
names2 = generalNames.GetNames();
}
GeneralName[] array6;
int num5;
if (names2 == (ulong)1L)
{
if (generalNames == 0)
{
GeneralName[] array5 = new GeneralName[names2];
X509Name x509Name;
GeneralName generalName2 = new GeneralName(x509Name);
if (generalName2 != 0)
{
}
array5[0] = generalName2;
}
int length3 = array6.Length;
if (num2 < length3)
{
break;
}
num5 = 0;
}
if (array6 == 0)
{
continue;
}
int length4 = array6.Length;
if (num5 >= length4)
{
continue;
}
if (length4 == 0)
{
num5++;
}
goto IL_25A;
IL_70:
num2 = 0;
goto IL_73;
}
IL_25A:
if (cert != 0)
{
}
Asn1Object asn1Object;
BasicConstraints instance2 = BasicConstraints.GetInstance(asn1Object);
if ((!instance._onlyContainsUserCerts || instance2 == 0 || !instance2.IsCA()) && (!instance._onlyContainsCACerts || (instance2 != 0 && instance2.IsCA())) && !instance._onlyContainsAttributeCerts)
{
return;
}
}
int num6;
IEnumerator enumerator2 = Asn1Sequence.GetInstance(num6).GetEnumerator();
Asn1EncodableVector asn1EncodableVector2 = new Asn1EncodableVector(Array.Empty<Asn1Encodable>());
if (asn1EncodableVector2 != 0)
{
Asn1Encodable[] array7 = new Asn1Encodable[1];
throw new ArrayTypeMismatchException();
}
ArrayTypeMismatchException ex;
string className = ex._className;
throw new ArrayTypeMismatchException();
IL_2B3:
throw new IndexOutOfRangeException();
}
// Token: 0x06009BD8 RID: 39896 RVA: 0x0020625C File Offset: 0x0020445C
[Token(Token = "0x6009BD8")]
[Address(RVA = "0x19BA460", Offset = "0x19B9260", VA = "0x1819BA460")]
internal static void ProcessCertBC(PkixCertPath certPath, int index, PkixNameConstraintValidator nameConstraintValidator)
{
GeneralNames instance2;
int num3;
for (;;)
{
int num = 0;
byte[] array;
if (array == 0)
{
}
int num2 = 0;
if (array != 0)
{
num2 -= index;
bool flag;
if (flag)
{
}
byte[] array2;
Asn1Sequence instance = Asn1Sequence.GetInstance(new Asn1InputStream(array2).ReadObject());
nameConstraintValidator.CheckPermittedDN(instance);
nameConstraintValidator.CheckExcludedDN(instance);
Asn1Object asn1Object;
instance2 = GeneralNames.GetInstance(asn1Object);
X509Name instance3 = X509Name.GetInstance(instance);
DerObjectIdentifier emailAddress = X509Name.EmailAddress;
IList valueList = instance3.GetValueList(emailAddress);
GeneralName generalName;
if (valueList != 0)
{
if (valueList != 0 && valueList == 0)
{
goto IL_D3;
}
generalName = new GeneralName(1, num);
nameConstraintValidator.checkPermitted(generalName);
nameConstraintValidator.checkExcluded(generalName);
}
num3 = 0;
if (generalName != 0)
{
}
if (num == 0)
{
break;
}
}
}
if (instance2 != 0)
{
GeneralName[] names = instance2.GetNames();
if (num3 < names.Length)
{
GeneralName generalName2 = names[num3];
nameConstraintValidator.checkPermitted(generalName2);
nameConstraintValidator.checkExcluded(generalName2);
num3++;
}
}
return;
IL_D3:
throw new NullReferenceException();
}
// Token: 0x06009BD9 RID: 39897 RVA: 0x00206344 File Offset: 0x00204544
[Token(Token = "0x6009BD9")]
[Address(RVA = "0x19B82D0", Offset = "0x19B70D0", VA = "0x1819B82D0")]
internal static void PrepareNextCertA(PkixCertPath certPath, int index)
{
/*
An exception occurred when decompiling this method (06009BD9)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::PrepareNextCertA(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_8F:
stloc:PkixCertPathValidatorException(var_20_9D, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("IssuerDomainPolicy is anyPolicy"), ldloc:int32[exp:Exception](var_22), ldloc:PkixCertPath(certPath), ldloc:int32(index)))
stloc:int32(var_22, ldc.i4:int32(0))
}
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.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 1660
*/;
}
// Token: 0x06009BDA RID: 39898 RVA: 0x002063F4 File Offset: 0x002045F4
[Token(Token = "0x6009BDA")]
[Address(RVA = "0x19BAAB0", Offset = "0x19B98B0", VA = "0x1819BAAB0")]
internal static PkixPolicyNode ProcessCertD(PkixCertPath certPath, int index, ISet acceptablePolicies, PkixPolicyNode validPolicyTree, IList[] policyNodes, int inhibitAnyPolicy)
{
byte[] array;
ISet qualifierSet2;
for (;;)
{
if (array == 0)
{
}
if (array != 0)
{
array -= index;
Asn1Object asn1Object;
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
if (instance == 0)
{
goto IL_1C5;
}
HashSet hashSet = new HashSet();
IEnumerator enumerator = instance.GetEnumerator();
DerObjectIdentifier policyIdentifier;
bool flag;
if (enumerator != 0)
{
PolicyInformation policyInformation;
policyIdentifier = policyInformation.policyIdentifier;
string any_POLICY = Rfc3280CertPathUtilities.ANY_POLICY;
string identifier = policyIdentifier.identifier;
if (any_POLICY.Equals(identifier))
{
continue;
}
ISet qualifierSet = PkixCertPathValidatorUtilities.GetQualifierSet(policyInformation.policyQualifiers);
while (flag)
{
}
}
if (flag)
{
}
if (policyIdentifier != 0)
{
goto IL_1EF;
}
if (enumerator != (ulong)(-1L))
{
}
HashSet hashSet2;
if (!flag)
{
hashSet2 = new HashSet();
if (hashSet2 != 0)
{
while (hashSet2 == 0)
{
}
}
if (hashSet2 != 0)
{
}
if (hashSet2 != 0)
{
goto IL_201;
}
if (hashSet2 != (ulong)(-1L))
{
}
}
bool flag2;
if (hashSet2 >= array || !flag2)
{
break;
}
IEnumerator enumerator2 = instance.GetEnumerator();
IList list;
if (enumerator2 != 0)
{
string any_POLICY2 = Rfc3280CertPathUtilities.ANY_POLICY;
PolicyInformation policyInformation2;
string identifier2 = policyInformation2.policyIdentifier.identifier;
if (!any_POLICY2.Equals(identifier2))
{
continue;
}
Asn1Sequence policyQualifiers = policyInformation2.policyQualifiers;
qualifierSet2 = PkixCertPathValidatorUtilities.GetQualifierSet(policyQualifiers);
byte b = array[policyQualifiers];
if (0 < qualifierSet2 && qualifierSet2 != 0)
{
if (qualifierSet2 != 0 && qualifierSet2 != 0 && qualifierSet2 == 0)
{
goto IL_201;
}
while (qualifierSet2 == 0)
{
}
bool flag3;
while (!flag3)
{
}
if (hashSet2 != 0)
{
}
if (hashSet2 != 0)
{
goto IL_213;
}
if (hashSet2 != (ulong)(-1L))
{
}
ulong num;
while (num != (ulong)0L)
{
}
HashSet hashSet3 = new HashSet();
list = Platform.CreateArrayList();
int length = array.Length;
byte b2 = array[hashSet3];
}
}
if (list != 0)
{
}
if (enumerator2 == 0)
{
break;
}
}
}
int num2 = 0;
byte b3 = array[qualifierSet2];
PkixPolicyNode pkixPolicyNode;
if (num2 < qualifierSet2 && (qualifierSet2 != 0 || pkixPolicyNode != 0))
{
num2++;
}
DerObjectIdentifier certificatePolicies = X509Extensions.CertificatePolicies;
int length2 = array.Length;
byte b4 = array[qualifierSet2];
if (num2 < qualifierSet2)
{
num2++;
}
IL_1C5:
throw new NullReferenceException();
IL_1EF:
throw new NullReferenceException();
IL_201:
throw new NullReferenceException();
IL_213:
throw new IndexOutOfRangeException();
}
// Token: 0x06009BDB RID: 39899 RVA: 0x00206680 File Offset: 0x00204880
[Token(Token = "0x6009BDB")]
[Address(RVA = "0x19BC410", Offset = "0x19BB210", VA = "0x1819BC410")]
internal static void ProcessCrlB1(DistributionPoint dp, object cert, X509Crl crl)
{
/*
An exception occurred when decompiling this method (06009BDB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::ProcessCrlB1(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPoint,System.Object,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Crl)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_99:
stloc:Exception(var_14_A3, newobj:Exception(Exception::.ctor, ldstr:string("Cannot find matching CRL issuer for certificate.")))
}
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 1660
*/;
}
// Token: 0x06009BDC RID: 39900 RVA: 0x00206734 File Offset: 0x00204934
[Token(Token = "0x6009BDC")]
[Address(RVA = "0x19BD9D0", Offset = "0x19BC7D0", VA = "0x1819BD9D0")]
internal static ReasonsMask ProcessCrlD(X509Crl crl, DistributionPoint dp)
{
DerObjectIdentifier issuingDistributionPoint = X509Extensions.IssuingDistributionPoint;
IssuingDistributionPoint instance = IssuingDistributionPoint.GetInstance(PkixCertPathValidatorUtilities.GetExtensionValue(crl, issuingDistributionPoint));
if (instance != 0)
{
ReasonFlags onlySomeReasons = instance._onlySomeReasons;
if (onlySomeReasons != 0)
{
ReasonFlags reasons = dp.reasons;
if (reasons != 0)
{
int padBits = reasons.PadBits;
ReasonsMask reasonsMask = new ReasonsMask();
reasonsMask._reasons = padBits;
int padBits2 = instance._onlySomeReasons.PadBits;
return reasonsMask.Intersect(new ReasonsMask
{
_reasons = padBits2
});
}
if (onlySomeReasons != 0)
{
goto IL_7B;
}
}
}
if (dp.reasons == (ulong)0L)
{
goto IL_C4;
}
IL_7B:
ReasonFlags reasons2 = dp.reasons;
if (reasons2 != 0)
{
int num = reasons2.PadBits;
new ReasonsMask()._reasons = num;
}
ReasonsMask allReasons = ReasonsMask.AllReasons;
if (instance != 0)
{
int num = instance._onlySomeReasons.PadBits;
new ReasonsMask()._reasons = num;
}
IL_C4:
return ReasonsMask.AllReasons;
}
// Token: 0x06009BDD RID: 39901 RVA: 0x00206818 File Offset: 0x00204A18
[Token(Token = "0x6009BDD")]
[Address(RVA = "0x19BDCF0", Offset = "0x19BCAF0", VA = "0x1819BDCF0")]
internal static ISet ProcessCrlF(X509Crl crl, object cert, X509Certificate defaultCRLSignCert, AsymmetricKeyParameter defaultCRLSignKey, PkixParameters paramsPKIX, IList certPathCerts)
{
Exception ex;
do
{
X509CertStoreSelector x509CertStoreSelector = new X509CertStoreSelector();
int version = crl.Version;
x509CertStoreSelector.subject = version;
IList list = Platform.CreateArrayList();
ICollection collection = PkixCertPathValidatorUtilities.FindCertificates(x509CertStoreSelector, list);
CollectionUtilities.AddRange(list, collection);
ICollection collection2;
CollectionUtilities.AddRange(list, collection2);
IList list2 = Platform.CreateArrayList();
IList list3 = Platform.CreateArrayList();
if (list3 != 0)
{
if (list3 == 0)
{
continue;
}
PkixCertPathBuilder pkixCertPathBuilder = new PkixCertPathBuilder();
new X509CertStoreSelector().certificate = list3;
PkixBuilderParameters pkixBuilderParameters;
if (pkixBuilderParameters == 0)
{
bool isRevocationEnabled = pkixBuilderParameters.IsRevocationEnabled;
}
bool isRevocationEnabled2 = pkixBuilderParameters.IsRevocationEnabled;
string text = pkixCertPathBuilder.ToString();
}
HashSet hashSet = new HashSet();
int num = 0;
if (0 < hashSet)
{
if (hashSet == 0 || hashSet == 0)
{
continue;
}
int crl_SIGN = Rfc3280CertPathUtilities.CRL_SIGN;
ex = new Exception("Issuer certificate key usage extension does not permit CRL signing.");
num++;
num++;
}
}
while ((ex == 0 && ex == 0) || (ex == 0 && ex != 0));
throw new NullReferenceException();
}
// Token: 0x06009BDE RID: 39902 RVA: 0x00206950 File Offset: 0x00204B50
[Token(Token = "0x6009BDE")]
[Address(RVA = "0x19BE560", Offset = "0x19BD360", VA = "0x1819BE560")]
internal static AsymmetricKeyParameter ProcessCrlG(X509Crl crl, ISet keys)
{
/*
An exception occurred when decompiling this method (06009BDE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::ProcessCrlG(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Crl,BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:Exception(var_3_3B, newobj:Exception(Exception::.ctor, ldstr:string("Cannot verify CRL."), ldloc:int32[exp:Exception](var_0_01)))
}
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 1660
*/;
}
// Token: 0x06009BDF RID: 39903 RVA: 0x00206998 File Offset: 0x00204B98
[Token(Token = "0x6009BDF")]
[Address(RVA = "0x19BE7A0", Offset = "0x19BD5A0", VA = "0x1819BE7A0")]
internal static X509Crl ProcessCrlH(ISet deltaCrls, AsymmetricKeyParameter key)
{
/*
An exception occurred when decompiling this method (06009BDF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Crl BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::ProcessCrlH(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_2F:
stloc:Exception(var_4_3A, newobj:Exception(Exception::.ctor, ldstr:string("Cannot verify delta CRL."), ldloc:int32[exp:Exception](var_0_01)))
}
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 1660
*/;
}
// Token: 0x06009BE0 RID: 39904 RVA: 0x002069E0 File Offset: 0x00204BE0
[Token(Token = "0x6009BE0")]
[Address(RVA = "0x19B6090", Offset = "0x19B4E90", VA = "0x1819B6090")]
private static void CheckCrl(DistributionPoint dp, PkixParameters paramsPKIX, X509Certificate cert, DateTime validDate, X509Certificate defaultCRLSignCert, AsymmetricKeyParameter defaultCRLSignKey, CertStatus certStatus, ReasonsMask reasonMask, IList certPathCerts)
{
DateTime utcNow = DateTime.UtcNow;
bool flag;
bool flag2;
if (PkixCertPathValidatorUtilities.GetCompleteCrls(dp, cert, utcNow, paramsPKIX) != 0 && !flag && flag2)
{
int num = 0;
ISet set;
AsymmetricKeyParameter asymmetricKeyParameter;
X509Crl x509Crl = Rfc3280CertPathUtilities.ProcessCrlH(set, asymmetricKeyParameter);
DateTime notBefore = cert.NotBefore;
if (asymmetricKeyParameter.privateKey)
{
asymmetricKeyParameter.privateKey = true;
}
DerObjectIdentifier issuingDistributionPoint = X509Extensions.IssuingDistributionPoint;
DerObjectIdentifier deltaCrlIndicator = X509Extensions.DeltaCrlIndicator;
if (typeof(X509Extensions).TypeHandle == 0)
{
Exception ex = new Exception("CRL contains unsupported critical extensions.");
throw new NullReferenceException();
}
if (num != 0)
{
DerObjectIdentifier issuingDistributionPoint2 = X509Extensions.IssuingDistributionPoint;
DerObjectIdentifier deltaCrlIndicator2 = X509Extensions.DeltaCrlIndicator;
if (typeof(X509Extensions).TypeHandle == 0)
{
Exception ex2 = new Exception("Delta CRL contains unsupported critical extension.");
throw new NullReferenceException();
}
}
}
}
// Token: 0x06009BE1 RID: 39905 RVA: 0x00206AD4 File Offset: 0x00204CD4
[Token(Token = "0x6009BE1")]
[Address(RVA = "0x19B6820", Offset = "0x19B5620", VA = "0x1819B6820")]
protected static void CheckCrls(PkixParameters paramsPKIX, X509Certificate cert, DateTime validDate, X509Certificate sign, AsymmetricKeyParameter workingPublicKey, IList certPathCerts)
{
CertStatus certStatus;
do
{
DerObjectIdentifier crlDistributionPoints = X509Extensions.CrlDistributionPoints;
CrlDistPoint instance = CrlDistPoint.GetInstance(PkixCertPathValidatorUtilities.GetExtensionValue(cert, crlDistributionPoints));
int num = 0;
PkixCertPathValidatorUtilities.AddAdditionalStoresFromCrlDistributionPoint(instance, paramsPKIX);
certStatus = new CertStatus();
int num2 = 0;
ReasonsMask reasonsMask;
reasonsMask.FieldGetter(num2, num, sign);
reasonsMask._reasons = (int)((ulong)0L);
if (instance != 0)
{
DistributionPoint[] distributionPoints = instance.GetDistributionPoints();
if (distributionPoints != 0)
{
int num3 = 0;
if (num3 < distributionPoints.Length && certStatus.status == 11 && !reasonsMask.IsAllReasons)
{
DistributionPoint distributionPoint = distributionPoints[num3];
num3++;
}
}
}
if (certStatus.status == 11 && !reasonsMask.IsAllReasons)
{
BigInteger serialNumber = cert.SerialNumber;
byte[] array;
Asn1Object asn1Object = new Asn1InputStream(array).ReadObject();
GeneralNames generalNames = new GeneralNames(new GeneralName(4, asn1Object));
int num4;
DistributionPointName distributionPointName = new DistributionPointName(num4, generalNames);
num4 = 0;
int num5;
int num6;
DistributionPoint distributionPoint2 = new DistributionPoint(distributionPointName, num5, num6);
num6 = 0;
num5 = 0;
}
if (certStatus.status != 11)
{
break;
}
if (!reasonsMask.IsAllReasons && certStatus.status == 11)
{
certStatus.status = (int)((ulong)12L);
}
}
while (certStatus.status == 12);
DateTimeObject revocationDate = certStatus.revocationDate;
}
// Token: 0x06009BE2 RID: 39906 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6009BE2")]
[Address(RVA = "0x19B6F30", Offset = "0x19B5D30", VA = "0x1819B6F30")]
internal static PkixPolicyNode PrepareCertB(PkixCertPath certPath, int index, IList[] policyNodes, PkixPolicyNode validPolicyTree, int policyMapping)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06009BE3 RID: 39907 RVA: 0x00206C04 File Offset: 0x00204E04
[Token(Token = "0x6009BE3")]
[Address(RVA = "0x19BC0C0", Offset = "0x19BAEC0", VA = "0x1819BC0C0")]
internal static ISet[] ProcessCrlA1ii(DateTime currentDate, PkixParameters paramsPKIX, X509Certificate cert, X509Crl crl)
{
HashSet hashSet = new HashSet();
X509CrlStoreSelector x509CrlStoreSelector = new X509CrlStoreSelector();
x509CrlStoreSelector.certificateChecking = cert;
IList list = Platform.CreateArrayList();
int version = crl.Version;
x509CrlStoreSelector.Issuers = list;
x509CrlStoreSelector.completeCrlEnabled = true;
string text = Rfc3280CertPathUtilities.CrlUtilities.ToString();
if (text != 0)
{
ISet deltaCrls = PkixCertPathValidatorUtilities.GetDeltaCrls(currentDate, paramsPKIX, crl);
}
ISet[] array = new ISet[2];
if (text != 0)
{
}
array[0] = text;
if (hashSet != 0)
{
}
array[1] = hashSet;
return array;
}
// Token: 0x06009BE4 RID: 39908 RVA: 0x00206C90 File Offset: 0x00204E90
[Token(Token = "0x6009BE4")]
[Address(RVA = "0x19BBDB0", Offset = "0x19BABB0", VA = "0x1819BBDB0")]
internal static ISet ProcessCrlA1i(DateTime currentDate, PkixParameters paramsPKIX, X509Certificate cert, X509Crl crl)
{
if (new HashSet() != 0)
{
DerObjectIdentifier freshestCrl = X509Extensions.FreshestCrl;
CrlDistPoint instance = CrlDistPoint.GetInstance(PkixCertPathValidatorUtilities.GetExtensionValue(cert, freshestCrl));
if (instance == 0)
{
DerObjectIdentifier freshestCrl2 = X509Extensions.FreshestCrl;
if (CrlDistPoint.GetInstance(PkixCertPathValidatorUtilities.GetExtensionValue(crl, freshestCrl2)) == 0)
{
goto IL_44;
}
}
PkixCertPathValidatorUtilities.AddAdditionalStoresFromCrlDistributionPoint(instance, paramsPKIX);
ISet deltaCrls = PkixCertPathValidatorUtilities.GetDeltaCrls(currentDate, paramsPKIX, crl);
}
IL_44:
throw new NullReferenceException();
}
// Token: 0x06009BE5 RID: 39909 RVA: 0x00206CEC File Offset: 0x00204EEC
[Token(Token = "0x6009BE5")]
[Address(RVA = "0x19BBD10", Offset = "0x19BAB10", VA = "0x1819BBD10")]
internal static void ProcessCertF(PkixCertPath certPath, int index, PkixPolicyNode validPolicyTree, int explicitPolicy)
{
/*
An exception occurred when decompiling this method (06009BE5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::ProcessCertF(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixPolicyNode,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_05:
stloc:PkixCertPathValidatorException(var_0_12, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("No valid policy tree found when one expected."), ldloc:int32[exp:Exception](var_1), ldloc:PkixCertPath(certPath), ldloc:int32(index)))
stloc:int32(var_1, ldc.i4:int32(0))
}
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 1660
*/;
}
// Token: 0x06009BE6 RID: 39910 RVA: 0x00206D10 File Offset: 0x00204F10
[Token(Token = "0x6009BE6")]
[Address(RVA = "0x19B9EB0", Offset = "0x19B8CB0", VA = "0x1819B9EB0")]
internal static void ProcessCertA(PkixCertPath certPath, PkixParameters paramsPKIX, int index, AsymmetricKeyParameter workingPublicKey, X509Name workingIssuerName, X509Certificate sign)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
DateTime validCertDateFromValidityModel = PkixCertPathValidatorUtilities.GetValidCertDateFromValidityModel(paramsPKIX, certPath, index);
if (paramsPKIX.ToString() != 0)
{
DateTime validCertDateFromValidityModel2 = PkixCertPathValidatorUtilities.GetValidCertDateFromValidityModel(paramsPKIX, certPath, index);
}
X509Name issuerPrincipal = PkixCertPathValidatorUtilities.GetIssuerPrincipal(array);
bool flag;
if (flag)
{
return;
}
object[] array2 = new object[5];
throw new NullReferenceException();
}
// Token: 0x06009BE7 RID: 39911 RVA: 0x00206DD0 File Offset: 0x00204FD0
[Token(Token = "0x6009BE7")]
[Address(RVA = "0x19B8DE0", Offset = "0x19B7BE0", VA = "0x1819B8DE0")]
internal static int PrepareNextCertI1(PkixCertPath certPath, int index, int explicitPolicy)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
Asn1Object asn1Object;
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
if (instance != 0 && instance.GetEnumerator() != 0)
{
Asn1TaggedObject asn1TaggedObject;
if (asn1TaggedObject.tagNo != 0)
{
}
int num = 0;
return DerInteger.GetInstance(asn1TaggedObject, num != 0).Value.IntValue;
}
return explicitPolicy;
}
// Token: 0x06009BE8 RID: 39912 RVA: 0x00206E48 File Offset: 0x00205048
[Token(Token = "0x6009BE8")]
[Address(RVA = "0x19B9090", Offset = "0x19B7E90", VA = "0x1819B9090")]
internal static int PrepareNextCertI2(PkixCertPath certPath, int index, int policyMapping)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
Asn1Object asn1Object;
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
if (instance != 0 && instance.GetEnumerator() != 0)
{
Asn1TaggedObject asn1TaggedObject;
if (asn1TaggedObject.tagNo != 1)
{
}
int num = 0;
return DerInteger.GetInstance(asn1TaggedObject, num != 0).Value.IntValue;
}
return policyMapping;
}
// Token: 0x06009BE9 RID: 39913 RVA: 0x00206EC0 File Offset: 0x002050C0
[Token(Token = "0x6009BE9")]
[Address(RVA = "0x19B86F0", Offset = "0x19B74F0", VA = "0x1819B86F0")]
internal static void PrepareNextCertG(PkixCertPath certPath, int index, PkixNameConstraintValidator nameConstraintValidator)
{
byte[] array;
int num;
do
{
if (array == 0)
{
}
num = 0;
}
while (array == 0);
Asn1Object asn1Object;
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
NameConstraints nameConstraints;
if (instance != 0)
{
nameConstraints = new NameConstraints(instance);
}
if (nameConstraints != 0)
{
Asn1Sequence permitted = nameConstraints.permitted;
if (permitted != 0)
{
nameConstraintValidator.IntersectPermittedSubtree(permitted);
}
Asn1Sequence excluded = nameConstraints.excluded;
if (excluded != 0)
{
IEnumerator enumerator = excluded.GetEnumerator();
if (enumerator != 0)
{
if (num < enumerator)
{
num += num;
num++;
}
GeneralSubtree generalSubtree;
nameConstraintValidator.AddExcludedSubtree(generalSubtree);
generalSubtree += generalSubtree;
}
}
}
}
// Token: 0x06009BEA RID: 39914 RVA: 0x00206F60 File Offset: 0x00205160
[Token(Token = "0x6009BEA")]
[Address(RVA = "0x19B9340", Offset = "0x19B8140", VA = "0x1819B9340")]
internal static int PrepareNextCertJ(PkixCertPath certPath, int index, int inhibitAnyPolicy)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
Asn1Object asn1Object;
DerInteger instance = DerInteger.GetInstance(asn1Object);
if (instance != 0)
{
int intValue = instance.Value.IntValue;
if (intValue < inhibitAnyPolicy)
{
return intValue;
}
}
return inhibitAnyPolicy;
}
// Token: 0x06009BEB RID: 39915 RVA: 0x00206FA8 File Offset: 0x002051A8
[Token(Token = "0x6009BEB")]
[Address(RVA = "0x19B9520", Offset = "0x19B8320", VA = "0x1819B9520")]
internal static void PrepareNextCertK(PkixCertPath certPath, int index)
{
/*
An exception occurred when decompiling this method (06009BEB)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::PrepareNextCertK(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,System.Int32)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:PkixCertPathValidatorException(var_6_3A, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Not a CA certificate")))
}
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 1660
*/;
}
// Token: 0x06009BEC RID: 39916 RVA: 0x00206FF0 File Offset: 0x002051F0
[Token(Token = "0x6009BEC")]
[Address(RVA = "0x19B9730", Offset = "0x19B8530", VA = "0x1819B9730")]
internal static int PrepareNextCertL(PkixCertPath certPath, int index, int maxPathLength)
{
for (;;)
{
byte[] array;
if (array == 0)
{
}
if (array != 0)
{
bool flag;
if (flag)
{
break;
}
if (maxPathLength > 0)
{
goto Block_2;
}
}
}
return maxPathLength;
Block_2:
throw new NullReferenceException();
}
// Token: 0x06009BED RID: 39917 RVA: 0x00207018 File Offset: 0x00205218
[Token(Token = "0x6009BED")]
[Address(RVA = "0x19B9890", Offset = "0x19B8690", VA = "0x1819B9890")]
internal static int PrepareNextCertM(PkixCertPath certPath, int index, int maxPathLength)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
Asn1Object asn1Object;
BasicConstraints instance = BasicConstraints.GetInstance(asn1Object);
if (instance != 0)
{
BigInteger pathLenConstraint = instance.PathLenConstraint;
if (pathLenConstraint != 0)
{
int intValue = pathLenConstraint.IntValue;
}
}
return maxPathLength;
}
// Token: 0x06009BEE RID: 39918 RVA: 0x00207060 File Offset: 0x00205260
[Token(Token = "0x6009BEE")]
[Address(RVA = "0x19B9A60", Offset = "0x19B8860", VA = "0x1819B9A60")]
internal static void PrepareNextCertN(PkixCertPath certPath, int index)
{
for (;;)
{
if ("{il2cpp array field local2->}" == typeof(X509Certificate).TypeHandle)
{
}
byte[] array;
if (array != 0)
{
if ("{il2cpp array field local2->}" == typeof(X509Certificate).TypeHandle)
{
}
if (array != 0)
{
break;
}
}
}
int key_CERT_SIGN = Rfc3280CertPathUtilities.KEY_CERT_SIGN;
}
// Token: 0x06009BEF RID: 39919 RVA: 0x002070A0 File Offset: 0x002052A0
[Token(Token = "0x6009BEF")]
[Address(RVA = "0x19B9C20", Offset = "0x19B8A20", VA = "0x1819B9C20")]
internal static void PrepareNextCertO(PkixCertPath certPath, int index, ISet criticalExtensions, IList pathCheckers)
{
/*
An exception occurred when decompiling this method (06009BEF)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::PrepareNextCertO(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,System.Collections.IList)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_33:
stloc:PkixCertPathValidatorException(var_6_41, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Certificate has unsupported critical extension."), ldloc:int32[exp:Exception](var_8), ldloc:PkixCertPath(certPath), ldloc:int32(index)))
stloc:int32(var_8, ldc.i4:int32(0))
}
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 1660
*/;
}
// Token: 0x06009BF0 RID: 39920 RVA: 0x002070F4 File Offset: 0x002052F4
[Token(Token = "0x6009BF0")]
[Address(RVA = "0x19B8A80", Offset = "0x19B7880", VA = "0x1819B8A80")]
internal static int PrepareNextCertH1(PkixCertPath certPath, int index, int explicitPolicy)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
bool flag;
if (!flag && explicitPolicy != 0)
{
return explicitPolicy - 1;
}
return explicitPolicy;
}
// Token: 0x06009BF1 RID: 39921 RVA: 0x00207124 File Offset: 0x00205324
[Token(Token = "0x6009BF1")]
[Address(RVA = "0x19B8BA0", Offset = "0x19B79A0", VA = "0x1819B8BA0")]
internal static int PrepareNextCertH2(PkixCertPath certPath, int index, int policyMapping)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
bool flag;
if (!flag && policyMapping != 0)
{
return policyMapping - 1;
}
return policyMapping;
}
// Token: 0x06009BF2 RID: 39922 RVA: 0x00207154 File Offset: 0x00205354
[Token(Token = "0x6009BF2")]
[Address(RVA = "0x19B8CC0", Offset = "0x19B7AC0", VA = "0x1819B8CC0")]
internal static int PrepareNextCertH3(PkixCertPath certPath, int index, int inhibitAnyPolicy)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
bool flag;
if (!flag && inhibitAnyPolicy != 0)
{
return inhibitAnyPolicy - 1;
}
return inhibitAnyPolicy;
}
// Token: 0x06009BF3 RID: 39923 RVA: 0x00207184 File Offset: 0x00205384
[Token(Token = "0x6009BF3")]
[Address(RVA = "0x19BEB60", Offset = "0x19BD960", VA = "0x1819BEB60")]
internal static int WrapupCertA(int explicitPolicy, X509Certificate cert)
{
if (PkixCertPathValidatorUtilities.IsSelfIssued(cert) || explicitPolicy == 0)
{
}
return explicitPolicy;
}
// Token: 0x06009BF4 RID: 39924 RVA: 0x002071A0 File Offset: 0x002053A0
[Token(Token = "0x6009BF4")]
[Address(RVA = "0x19BEBD0", Offset = "0x19BD9D0", VA = "0x1819BEBD0")]
internal static int WrapupCertB(PkixCertPath certPath, int index, int explicitPolicy)
{
for (;;)
{
byte[] array;
if (array == 0)
{
}
if (array != 0)
{
Asn1Object asn1Object;
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
if (instance == 0)
{
return explicitPolicy;
}
IEnumerator enumerator = instance.GetEnumerator();
if (enumerator == 0)
{
return explicitPolicy;
}
if (enumerator != 0)
{
break;
}
}
}
DerInteger derInteger;
int intValue = derInteger.Value.IntValue;
while (intValue != 0)
{
}
return intValue;
}
// Token: 0x06009BF5 RID: 39925 RVA: 0x0020720C File Offset: 0x0020540C
[Token(Token = "0x6009BF5")]
[Address(RVA = "0x19BEED0", Offset = "0x19BDCD0", VA = "0x1819BEED0")]
internal static void WrapupCertF(PkixCertPath certPath, int index, IList pathCheckers, ISet criticalExtensions)
{
/*
An exception occurred when decompiling this method (06009BF5)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::WrapupCertF(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,System.Int32,System.Collections.IList,BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_20:
stloc:PkixCertPathValidatorException(var_5_2E, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Certificate has unsupported critical extension"), ldloc:int32[exp:Exception](var_7), ldloc:PkixCertPath(certPath), ldloc:int32(index)))
stloc:int32(var_7, ldc.i4:int32(0))
}
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 1660
*/;
}
// Token: 0x06009BF6 RID: 39926 RVA: 0x0020724C File Offset: 0x0020544C
[Token(Token = "0x6009BF6")]
[Address(RVA = "0x19BF130", Offset = "0x19BDF30", VA = "0x1819BF130")]
internal static PkixPolicyNode WrapupCertG(PkixCertPath certPath, PkixParameters paramsPKIX, ISet userInitialPolicySet, int index, IList[] policyNodes, PkixPolicyNode validPolicyTree, ISet acceptablePolicies)
{
for (;;)
{
uint num3;
if (!PkixCertPathValidatorUtilities.IsAnyPolicy(userInitialPolicySet))
{
HashSet hashSet = new HashSet();
int num = 0;
int num2 = 0;
if (num2 < hashSet)
{
string any_POLICY = Rfc3280CertPathUtilities.ANY_POLICY;
bool isEmpty = hashSet.IsEmpty;
bool flag;
if (flag)
{
string any_POLICY2 = Rfc3280CertPathUtilities.ANY_POLICY;
bool flag2;
while (flag2)
{
}
num3 += (uint)1;
if (num3 != (uint)0)
{
}
if (any_POLICY2 != 0)
{
continue;
}
if (num3 != (uint)(-1))
{
}
}
num2++;
}
num++;
if (hashSet != 0 && hashSet.IsEmpty)
{
continue;
}
PkixPolicyNode pkixPolicyNode;
if (pkixPolicyNode == 0)
{
break;
}
int i = 0;
while (i >= (int)num3)
{
}
i++;
}
string text;
if (text == 0)
{
break;
}
if (text == 0)
{
HashSet hashSet2 = new HashSet();
int num4 = 0;
if (num4 < hashSet2)
{
string any_POLICY3 = Rfc3280CertPathUtilities.ANY_POLICY;
bool isEmpty2 = hashSet2.IsEmpty;
bool flag3;
if (flag3)
{
num3 += (uint)1;
if (num3 != (uint)0)
{
}
if (any_POLICY3 != 0)
{
continue;
}
if (num3 != (uint)(-1))
{
}
}
num4++;
}
if (num3 != (uint)0)
{
}
if (num3 != (uint)0)
{
}
if (num3 == (uint)0)
{
if (num4 == 0)
{
break;
}
int j = 0;
while (j >= (int)num3)
{
}
j++;
string text2;
if (text2 == 0)
{
break;
}
}
}
}
throw new NullReferenceException();
}
// Token: 0x06009BF7 RID: 39927 RVA: 0x00207360 File Offset: 0x00205560
[Token(Token = "0x6009BF7")]
[Address(RVA = "0x19BD530", Offset = "0x19BC330", VA = "0x1819BD530")]
internal static void ProcessCrlC(X509Crl deltaCRL, X509Crl completeCRL, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06009BF7)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::ProcessCrlC(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Crl,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Crl,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_84:
stloc:Exception(var_12_8E, newobj:Exception(Exception::.ctor, ldstr:string("CRL authority key identifier is 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.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.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.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.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 1660
*/;
}
// Token: 0x06009BF8 RID: 39928 RVA: 0x002073FC File Offset: 0x002055FC
[Token(Token = "0x6009BF8")]
[Address(RVA = "0x19BEA00", Offset = "0x19BD800", VA = "0x1819BEA00")]
internal static void ProcessCrlI(DateTime validDate, X509Crl deltacrl, object cert, CertStatus certStatus, PkixParameters pkixParams)
{
if (deltacrl != 0)
{
PkixCertPathValidatorUtilities.GetCertStatus(validDate, deltacrl, cert, certStatus);
}
}
// Token: 0x06009BF9 RID: 39929 RVA: 0x0020741C File Offset: 0x0020561C
[Token(Token = "0x6009BF9")]
[Address(RVA = "0x19BEAC0", Offset = "0x19BD8C0", VA = "0x1819BEAC0")]
internal static void ProcessCrlJ(DateTime validDate, X509Crl completecrl, object cert, CertStatus certStatus)
{
if (certStatus.status == 11)
{
PkixCertPathValidatorUtilities.GetCertStatus(validDate, completecrl, cert, certStatus);
}
}
// Token: 0x06009BFA RID: 39930 RVA: 0x00207444 File Offset: 0x00205644
[Token(Token = "0x6009BFA")]
[Address(RVA = "0x19BBB50", Offset = "0x19BA950", VA = "0x1819BBB50")]
internal static PkixPolicyNode ProcessCertE(PkixCertPath certPath, int index, PkixPolicyNode validPolicyTree)
{
byte[] array;
do
{
if (array == 0)
{
}
}
while (array == 0);
Asn1Object asn1Object;
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
throw new NullReferenceException();
}
// Token: 0x06009BFB RID: 39931 RVA: 0x00207470 File Offset: 0x00205670
[Token(Token = "0x6009BFB")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public Rfc3280CertPathUtilities()
{
}
// Token: 0x06009BFC RID: 39932 RVA: 0x00207484 File Offset: 0x00205684
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6009BFC")]
[Address(RVA = "0x19BFD30", Offset = "0x19BEB30", VA = "0x1819BFD30")]
static Rfc3280CertPathUtilities()
{
string[] array = new string[11];
if ("unspecified" != 0)
{
}
array[0] = "unspecified";
if ("keyCompromise" != 0)
{
}
array[1] = "keyCompromise";
if ("cACompromise" != 0)
{
}
array[2] = "cACompromise";
if ("affiliationChanged" != 0)
{
}
array[3] = "affiliationChanged";
if ("superseded" != 0)
{
}
array[4] = "superseded";
if ("cessationOfOperation" != 0)
{
}
array[5] = "cessationOfOperation";
if ("certificateHold" != 0)
{
}
array[6] = "certificateHold";
if ("unknown" != 0)
{
}
array[7] = "unknown";
if ("removeFromCRL" != 0)
{
}
array[8] = "removeFromCRL";
if ("privilegeWithdrawn" != 0)
{
}
array[9] = "privilegeWithdrawn";
if ("aACompromise" != 0)
{
}
array[10] = "aACompromise";
Rfc3280CertPathUtilities.CrlReasons = array;
}
// Token: 0x04006913 RID: 26899
[Token(Token = "0x4006913")]
private static readonly PkixCrlUtilities CrlUtilities = new PkixCrlUtilities();
// Token: 0x04006914 RID: 26900
[Token(Token = "0x4006914")]
internal static readonly string ANY_POLICY = "2.5.29.32.0";
// Token: 0x04006915 RID: 26901
[Token(Token = "0x4006915")]
internal static readonly int KEY_CERT_SIGN;
// Token: 0x04006916 RID: 26902
[Token(Token = "0x4006916")]
internal static readonly int CRL_SIGN;
// Token: 0x04006917 RID: 26903
[Token(Token = "0x4006917")]
internal static readonly string[] CrlReasons;
}
}
@@ -0,0 +1,237 @@
using System;
using System.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001987 RID: 6535
[Token(Token = "0x2001987")]
internal class Rfc3281CertPathUtilities
{
// Token: 0x06009BFD RID: 39933 RVA: 0x00207598 File Offset: 0x00205798
[Token(Token = "0x6009BFD")]
[Address(RVA = "0x19C20D0", Offset = "0x19C0ED0", VA = "0x1819C20D0")]
internal static void ProcessAttrCert7(IX509AttributeCertificate attrCert, PkixCertPath certPath, PkixCertPath holderCertPath, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06009BFD)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3281CertPathUtilities::ProcessAttrCert7(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.IX509AttributeCertificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4B:
stloc:PkixCertPathValidatorException(var_10_52, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldloc:string(var_9)))
}
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 1660
*/;
}
// Token: 0x06009BFE RID: 39934 RVA: 0x002075F8 File Offset: 0x002057F8
[Token(Token = "0x6009BFE")]
[Address(RVA = "0x19C0AB0", Offset = "0x19BF8B0", VA = "0x1819C0AB0")]
internal static void CheckCrls(IX509AttributeCertificate attrCert, PkixParameters paramsPKIX, X509Certificate issuerCert, DateTime validDate, IList certPathCerts)
{
/*
An exception occurred when decompiling this method (06009BFE)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3281CertPathUtilities::CheckCrls(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.IX509AttributeCertificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate,System.DateTime,System.Collections.IList)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_1B2:
stloc:PkixCertPathValidatorException(var_32_1BC, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Attribute certificate status could not be determined.")))
}
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.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.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 1660
*/;
}
// Token: 0x06009BFF RID: 39935 RVA: 0x002077C4 File Offset: 0x002059C4
[Token(Token = "0x6009BFF")]
[Address(RVA = "0x19C01D0", Offset = "0x19BEFD0", VA = "0x1819C01D0")]
internal static void AdditionalChecks(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
{
int num;
do
{
num = 0;
int num2 = 0;
if (num != 0)
{
goto IL_39;
}
if (num2 != -1)
{
}
if (1 != 0)
{
}
}
while (num != 0);
return;
IL_39:
string text;
PkixCertPathValidatorException ex = new PkixCertPathValidatorException(text);
throw new NullReferenceException();
}
// Token: 0x06009C00 RID: 39936 RVA: 0x00207820 File Offset: 0x00205A20
[Token(Token = "0x6009C00")]
[Address(RVA = "0x19C1F60", Offset = "0x19C0D60", VA = "0x1819C1F60")]
internal static void ProcessAttrCert5(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
{
DateTime dateTime = PkixCertPathValidatorUtilities.GetValidDate(pkixParams);
int num = 0;
num += num;
num++;
dateTime += dateTime;
}
// Token: 0x06009C01 RID: 39937 RVA: 0x00207848 File Offset: 0x00205A48
[Token(Token = "0x6009C01")]
[Address(RVA = "0x19C1CB0", Offset = "0x19C0AB0", VA = "0x1819C1CB0")]
internal static void ProcessAttrCert4(X509Certificate acIssuerCert, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06009C01)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3281CertPathUtilities::ProcessAttrCert4(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_50:
stloc:PkixCertPathValidatorException(var_5_5A, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Attribute certificate issuer is not directly trusted.")))
}
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 1660
*/;
}
// Token: 0x06009C02 RID: 39938 RVA: 0x002078B0 File Offset: 0x00205AB0
[Token(Token = "0x6009C02")]
[Address(RVA = "0x19C1B70", Offset = "0x19C0970", VA = "0x1819C1B70")]
internal static void ProcessAttrCert3(X509Certificate acIssuerCert, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06009C02)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3281CertPathUtilities::ProcessAttrCert3(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_34:
stloc:PkixCertPathValidatorException(var_3_3E, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Attribute certificate issuer is also a public key certificate issuer.")))
}
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 1660
*/;
}
// Token: 0x06009C03 RID: 39939 RVA: 0x002078FC File Offset: 0x00205AFC
[Token(Token = "0x6009C03")]
[Address(RVA = "0x19C1A90", Offset = "0x19C0890", VA = "0x1819C1A90")]
internal static PkixCertPathValidatorResult ProcessAttrCert2(PkixCertPath certPath, PkixParameters pkixParams)
{
string text = new PkixCertPathValidator().ToString();
throw new NullReferenceException();
}
// Token: 0x06009C04 RID: 39940 RVA: 0x0020791C File Offset: 0x00205B1C
[Token(Token = "0x6009C04")]
[Address(RVA = "0x19C13F0", Offset = "0x19C01F0", VA = "0x1819C13F0")]
internal static PkixCertPath ProcessAttrCert1(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06009C04)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3281CertPathUtilities::ProcessAttrCert1(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.IX509AttributeCertificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_11D:
stloc:PkixCertPathValidatorException(var_23_127, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Public key certificate specified in base certificate ID for attribute certificate cannot be found.")))
}
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 1660
*/;
}
// Token: 0x06009C05 RID: 39941 RVA: 0x00207A54 File Offset: 0x00205C54
[Token(Token = "0x6009C05")]
[Address(RVA = "0x19C0570", Offset = "0x19BF370", VA = "0x1819C0570")]
private static void CheckCrl(DistributionPoint dp, IX509AttributeCertificate attrCert, PkixParameters paramsPKIX, DateTime validDate, X509Certificate issuerCert, CertStatus certStatus, ReasonsMask reasonMask, IList certPathCerts)
{
DateTime utcNow = DateTime.UtcNow;
ISet set;
bool flag;
bool flag2;
if (set != 0 && !flag && flag2)
{
ISet set2;
AsymmetricKeyParameter asymmetricKeyParameter;
X509Crl x509Crl = Rfc3280CertPathUtilities.ProcessCrlH(set2, asymmetricKeyParameter);
}
}
// Token: 0x06009C06 RID: 39942 RVA: 0x00207AB8 File Offset: 0x00205CB8
[Token(Token = "0x6009C06")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public Rfc3281CertPathUtilities()
{
}
}
}
@@ -0,0 +1,239 @@
using System;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001988 RID: 6536
[Token(Token = "0x2001988")]
public class TrustAnchor
{
// Token: 0x06009C07 RID: 39943 RVA: 0x00207ACC File Offset: 0x00205CCC
[Token(Token = "0x6009C07")]
[Address(RVA = "0x19C2710", Offset = "0x19C1510", VA = "0x1819C2710")]
public TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints)
{
/*
An exception occurred when decompiling this method (06009C07)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.TrustAnchor::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate,System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_30:
stloc:ArgumentNullException(var_1_3A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("trustedCert")))
}
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 1660
*/;
}
// Token: 0x06009C08 RID: 39944 RVA: 0x00207B14 File Offset: 0x00205D14
[Token(Token = "0x6009C08")]
[Address(RVA = "0x19C27C0", Offset = "0x19C15C0", VA = "0x1819C27C0")]
public TrustAnchor(X509Name caPrincipal, AsymmetricKeyParameter pubKey, byte[] nameConstraints)
{
/*
An exception occurred when decompiling this method (06009C08)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.TrustAnchor::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_46:
stloc:ArgumentNullException(var_2_50, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("pubKey")))
}
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 1660
*/;
}
// Token: 0x06009C09 RID: 39945 RVA: 0x00207B74 File Offset: 0x00205D74
[Token(Token = "0x6009C09")]
[Address(RVA = "0x19C28C0", Offset = "0x19C16C0", VA = "0x1819C28C0")]
public TrustAnchor(string caName, AsymmetricKeyParameter pubKey, byte[] nameConstraints)
{
/*
An exception occurred when decompiling this method (06009C09)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.TrustAnchor::.ctor(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,System.Byte[])
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_4F:
stloc:ArgumentNullException(var_2_59, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("pubKey")))
}
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 1660
*/;
}
// Token: 0x170018F1 RID: 6385
// (get) Token: 0x06009C0A RID: 39946 RVA: 0x00207BDC File Offset: 0x00205DDC
[Token(Token = "0x170018F1")]
public X509Certificate TrustedCert
{
[Token(Token = "0x6009C0A")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get
{
return this.trustedCert;
}
}
// Token: 0x170018F2 RID: 6386
// (get) Token: 0x06009C0B RID: 39947 RVA: 0x00207BF0 File Offset: 0x00205DF0
[Token(Token = "0x170018F2")]
public X509Name CA
{
[Token(Token = "0x6009C0B")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.caPrincipal;
}
}
// Token: 0x170018F3 RID: 6387
// (get) Token: 0x06009C0C RID: 39948 RVA: 0x00207C04 File Offset: 0x00205E04
[Token(Token = "0x170018F3")]
public string CAName
{
[Token(Token = "0x6009C0C")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.caName;
}
}
// Token: 0x170018F4 RID: 6388
// (get) Token: 0x06009C0D RID: 39949 RVA: 0x00207C18 File Offset: 0x00205E18
[Token(Token = "0x170018F4")]
public AsymmetricKeyParameter CAPublicKey
{
[Token(Token = "0x6009C0D")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.pubKey;
}
}
// Token: 0x06009C0E RID: 39950 RVA: 0x00207C2C File Offset: 0x00205E2C
[Token(Token = "0x6009C0E")]
[Address(RVA = "0x19C2A70", Offset = "0x19C1870", VA = "0x1819C2A70")]
private void setNameConstraints(byte[] bytes)
{
if (bytes != 0)
{
NameConstraints instance = NameConstraints.GetInstance(Asn1Object.FromByteArray(bytes));
this.nc = instance;
return;
}
int num = 0;
this.ncBytes = num;
this.nc = num;
}
// Token: 0x170018F5 RID: 6389
// (get) Token: 0x06009C0F RID: 39951 RVA: 0x00207C64 File Offset: 0x00205E64
[Token(Token = "0x170018F5")]
public byte[] GetNameConstraints
{
[Token(Token = "0x6009C0F")]
[Address(RVA = "0x19C2A10", Offset = "0x19C1810", VA = "0x1819C2A10")]
get
{
return Arrays.Clone(this.ncBytes);
}
}
// Token: 0x06009C10 RID: 39952 RVA: 0x00207C7C File Offset: 0x00205E7C
[Token(Token = "0x6009C10")]
[Address(RVA = "0x19C2550", Offset = "0x19C1350", VA = "0x1819C2550", Slot = "3")]
public override string ToString()
{
string newLine = Platform.NewLine;
StringBuilder stringBuilder = new StringBuilder();
StringBuilder stringBuilder2 = stringBuilder.Append("[");
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
int num = 0;
if (this.pubKey == num)
{
StringBuilder stringBuilder4 = stringBuilder.Append(" Trusted CA cert: ");
X509Certificate x509Certificate = this.trustedCert;
StringBuilder stringBuilder5 = stringBuilder4.Append(x509Certificate);
}
StringBuilder stringBuilder6 = stringBuilder.Append(" Trusted CA Public Key: ");
AsymmetricKeyParameter asymmetricKeyParameter = this.pubKey;
StringBuilder stringBuilder7 = stringBuilder6.Append(asymmetricKeyParameter).Append(newLine);
StringBuilder stringBuilder8 = stringBuilder.Append(" Trusted CA Issuer Name: ");
string text = this.caName;
StringBuilder stringBuilder9 = stringBuilder8.Append(text).Append(newLine);
if (this.nc != (ulong)0L)
{
StringBuilder stringBuilder10 = stringBuilder.Append(" Name Constraints: ");
NameConstraints nameConstraints = this.nc;
StringBuilder stringBuilder11 = stringBuilder10.Append(nameConstraints).Append(newLine);
}
throw new NullReferenceException();
}
// Token: 0x04006918 RID: 26904
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006918")]
private readonly AsymmetricKeyParameter pubKey;
// Token: 0x04006919 RID: 26905
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006919")]
private readonly string caName;
// Token: 0x0400691A RID: 26906
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400691A")]
private readonly X509Name caPrincipal;
// Token: 0x0400691B RID: 26907
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400691B")]
private readonly X509Certificate trustedCert;
// Token: 0x0400691C RID: 26908
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x400691C")]
private byte[] ncBytes;
// Token: 0x0400691D RID: 26909
[FieldOffset(Offset = "0x38")]
[Token(Token = "0x400691D")]
private NameConstraints nc;
}
}