This commit is contained in:
niko
2026-04-08 23:40:05 +02:00
parent d6894bcbc7
commit 18dc73f922
7750 changed files with 1795369 additions and 0 deletions
@@ -0,0 +1,78 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001395 RID: 5013
[Token(Token = "0x2001395")]
[StructLayout(3)]
public class CertStatus
{
// Token: 0x170014D1 RID: 5329
// (get) Token: 0x06007F16 RID: 32534 RVA: 0x001AA48C File Offset: 0x001A868C
// (set) Token: 0x06007F17 RID: 32535 RVA: 0x001AA4A0 File Offset: 0x001A86A0
[Token(Token = "0x170014D1")]
public DateTimeObject RevocationDate
{
[Token(Token = "0x6007F16")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.revocationDate;
}
[Token(Token = "0x6007F17")]
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
set
{
this.revocationDate = value;
}
}
// Token: 0x170014D2 RID: 5330
// (get) Token: 0x06007F18 RID: 32536 RVA: 0x001AA4B4 File Offset: 0x001A86B4
// (set) Token: 0x06007F19 RID: 32537 RVA: 0x001AA4C8 File Offset: 0x001A86C8
[Token(Token = "0x170014D2")]
public int Status
{
[Token(Token = "0x6007F18")]
[Address(RVA = "0x3C1C50", Offset = "0x3C0650", VA = "0x1803C1C50")]
get
{
return this.status;
}
[Token(Token = "0x6007F19")]
[Address(RVA = "0x3C1C90", Offset = "0x3C0690", VA = "0x1803C1C90")]
set
{
this.status = value;
}
}
// Token: 0x06007F1A RID: 32538 RVA: 0x001AA4DC File Offset: 0x001A86DC
[Token(Token = "0x6007F1A")]
[Address(RVA = "0x4DA2D0", Offset = "0x4D8CD0", VA = "0x1804DA2D0")]
public CertStatus()
{
}
// Token: 0x04005A90 RID: 23184
[Token(Token = "0x4005A90")]
public const int Unrevoked = 11;
// Token: 0x04005A91 RID: 23185
[Token(Token = "0x4005A91")]
public const int Undetermined = 12;
// Token: 0x04005A92 RID: 23186
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005A92")]
private int status = (int)((ulong)11L);
// Token: 0x04005A93 RID: 23187
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005A93")]
private DateTimeObject revocationDate;
}
}
@@ -0,0 +1,37 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001396 RID: 5014
[Token(Token = "0x2001396")]
[StructLayout(3)]
public abstract class PkixAttrCertChecker
{
// Token: 0x06007F1B RID: 32539
[Token(Token = "0x6007F1B")]
[Address(Slot = "4")]
public abstract ISet GetSupportedExtensions();
// Token: 0x06007F1C RID: 32540
[Token(Token = "0x6007F1C")]
[Address(Slot = "5")]
public abstract void Check(IX509AttributeCertificate attrCert, PkixCertPath certPath, PkixCertPath holderCertPath, ICollection unresolvedCritExts);
// Token: 0x06007F1D RID: 32541
[Token(Token = "0x6007F1D")]
[Address(Slot = "6")]
public abstract PkixAttrCertChecker Clone();
// Token: 0x06007F1E RID: 32542 RVA: 0x001AA4FC File Offset: 0x001A86FC
[Token(Token = "0x6007F1E")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
protected PkixAttrCertChecker()
{
}
}
}
@@ -0,0 +1,107 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001397 RID: 5015
[Token(Token = "0x2001397")]
[StructLayout(3)]
public class PkixAttrCertPathBuilder
{
// Token: 0x06007F1F RID: 32543 RVA: 0x001AA510 File Offset: 0x001A8710
[Token(Token = "0x6007F1F")]
[Address(RVA = "0x4E96B0", Offset = "0x4E80B0", VA = "0x1804E96B0", Slot = "4")]
public virtual PkixCertPathBuilderResult Build(PkixBuilderParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06007F1F)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathBuilderResult BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixAttrCertPathBuilder::Build(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixBuilderParameters)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_13A:
stloc:PkixCertPathBuilderException(var_20_146, newobj:PkixCertPathBuilderException(PkixCertPathBuilderException::.ctor, ldstr:string("Possible certificate chain could not be validated."), ldloc:NullReferenceException[exp:Exception](var_19)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06007F20 RID: 32544 RVA: 0x001AA664 File Offset: 0x001A8864
[Token(Token = "0x6007F20")]
[Address(RVA = "0x4E9100", Offset = "0x4E7B00", VA = "0x1804E9100")]
private PkixCertPathBuilderResult Build(IX509AttributeCertificate attrCert, X509Certificate tbvCert, PkixBuilderParameters pkixParams, IList tbvPath)
{
int num = 0;
PkixAttrCertPathValidator pkixAttrCertPathValidator = new PkixAttrCertPathValidator();
bool flag;
if (!flag)
{
PkixCertPathValidatorUtilities.AddAdditionalStoresFromAltNames(tbvCert, pkixParams);
HashSet hashSet = new HashSet();
ICollection collection = PkixCertPathValidatorUtilities.FindIssuerCerts(tbvCert, pkixParams);
if (collection == 0)
{
PkixCertPathBuilderResult pkixCertPathBuilderResult;
if (collection != 0)
{
bool flag2;
while (flag2)
{
}
while (pkixCertPathBuilderResult == 0)
{
}
}
if (pkixCertPathBuilderResult != 0)
{
}
if (num != -1)
{
}
if (num == 0)
{
goto IL_43;
}
}
Exception ex = new Exception("No issuer certificate for certificate in certification path found.");
throw new NullReferenceException();
}
IL_43:
string text = num.ToString();
Exception ex2;
ex2._className = ex2;
PkixCertPathBuilderResult pkixCertPathBuilderResult2;
if (pkixCertPathBuilderResult2 == 0)
{
}
return pkixCertPathBuilderResult2;
}
// Token: 0x06007F21 RID: 32545 RVA: 0x001AA72C File Offset: 0x001A892C
[Token(Token = "0x6007F21")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public PkixAttrCertPathBuilder()
{
}
// Token: 0x04005A94 RID: 23188
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005A94")]
private Exception certPathException;
}
}
@@ -0,0 +1,40 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x02001398 RID: 5016
[Token(Token = "0x2001398")]
[StructLayout(3)]
public class PkixAttrCertPathValidator
{
// Token: 0x06007F22 RID: 32546 RVA: 0x001AA740 File Offset: 0x001A8940
[Token(Token = "0x6007F22")]
[Address(RVA = "0x4E9FA0", Offset = "0x4E89A0", VA = "0x1804E9FA0", 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: 0x06007F23 RID: 32547 RVA: 0x001AA788 File Offset: 0x001A8988
[Token(Token = "0x6007F23")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public PkixAttrCertPathValidator()
{
}
}
}
@@ -0,0 +1,154 @@
using System;
using System.Runtime.InteropServices;
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: 0x02001399 RID: 5017
[Token(Token = "0x2001399")]
[StructLayout(3)]
public class PkixBuilderParameters : PkixParameters
{
// Token: 0x06007F24 RID: 32548 RVA: 0x001AA79C File Offset: 0x001A899C
[Token(Token = "0x6007F24")]
[Address(RVA = "0x4EA450", Offset = "0x4E8E50", VA = "0x1804EA450")]
public static PkixBuilderParameters GetInstance(PkixParameters pkixParams)
{
PkixBuilderParameters pkixBuilderParameters;
object obj = pkixBuilderParameters.Clone();
return pkixBuilderParameters;
}
// Token: 0x06007F25 RID: 32549 RVA: 0x001AA7B8 File Offset: 0x001A89B8
[Token(Token = "0x6007F25")]
[Address(RVA = "0x4EA820", Offset = "0x4E9220", VA = "0x1804EA820")]
public PkixBuilderParameters(ISet trustAnchors, IX509Selector targetConstraints)
{
HashSet hashSet = new HashSet();
this.excludedCerts = hashSet;
base..ctor(trustAnchors);
}
// Token: 0x170014D3 RID: 5331
// (get) Token: 0x06007F26 RID: 32550 RVA: 0x001AA7E4 File Offset: 0x001A89E4
// (set) Token: 0x06007F27 RID: 32551 RVA: 0x001AA7F8 File Offset: 0x001A89F8
[Token(Token = "0x170014D3")]
public virtual int MaxPathLength
{
[Token(Token = "0x6007F26")]
[Address(RVA = "0x4EA8C0", Offset = "0x4E92C0", VA = "0x1804EA8C0", Slot = "48")]
get
{
return this.maxPathLength;
}
[Token(Token = "0x6007F27")]
[Address(RVA = "0x4EA8D0", Offset = "0x4E92D0", VA = "0x1804EA8D0", Slot = "49")]
set
{
this.maxPathLength = value;
}
}
// Token: 0x06007F28 RID: 32552 RVA: 0x001AA818 File Offset: 0x001A8A18
[Token(Token = "0x6007F28")]
[Address(RVA = "0x4EA3F0", Offset = "0x4E8DF0", VA = "0x1804EA3F0", Slot = "50")]
public virtual ISet GetExcludedCerts()
{
/*
An exception occurred when decompiling this method (06007F28)
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 1663
*/;
}
// Token: 0x06007F29 RID: 32553 RVA: 0x001AA830 File Offset: 0x001A8A30
[Token(Token = "0x6007F29")]
[Address(RVA = "0x4EA540", Offset = "0x4E8F40", VA = "0x1804EA540", 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: 0x06007F2A RID: 32554 RVA: 0x001AA858 File Offset: 0x001A8A58
[Token(Token = "0x6007F2A")]
[Address(RVA = "0x4EA5D0", Offset = "0x4E8FD0", VA = "0x1804EA5D0", 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: 0x06007F2B RID: 32555 RVA: 0x001AA88C File Offset: 0x001A8A8C
[Token(Token = "0x6007F2B")]
[Address(RVA = "0x4EA330", Offset = "0x4E8D30", VA = "0x1804EA330", Slot = "25")]
public override object Clone()
{
PkixBuilderParameters pkixBuilderParameters;
object obj = pkixBuilderParameters.Clone();
throw new NullReferenceException();
}
// Token: 0x06007F2C RID: 32556 RVA: 0x001AA8A8 File Offset: 0x001A8AA8
[Token(Token = "0x6007F2C")]
[Address(RVA = "0x4EA6E0", Offset = "0x4E90E0", VA = "0x1804EA6E0", 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: 0x04005A95 RID: 23189
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
[Token(Token = "0x4005A95")]
private int maxPathLength = (int)((ulong)5L);
// Token: 0x04005A96 RID: 23190
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
[Token(Token = "0x4005A96")]
private ISet excludedCerts;
}
}
@@ -0,0 +1,373 @@
using System;
using System.Collections;
using System.IO;
using System.Runtime.InteropServices;
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: 0x0200139A RID: 5018
[Token(Token = "0x200139A")]
[StructLayout(3)]
public class PkixCertPath
{
// Token: 0x06007F2E RID: 32558 RVA: 0x001AA938 File Offset: 0x001A8B38
[Token(Token = "0x6007F2E")]
[Address(RVA = "0x4F2B20", Offset = "0x4F1520", VA = "0x1804F2B20")]
private static IList SortCerts(IList certs)
{
IList list2;
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);
int num2 = 0;
if (num2 >= list2)
{
break;
}
if (list2 != 0)
{
bool flag2;
while (!flag2)
{
}
}
if (-1 != 0)
{
}
if (18446744073709551615UL != (ulong)(-1L))
{
if ((ulong)1L == 0UL)
{
}
num2++;
}
if (list2 == 0)
{
break;
}
}
}
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: 0x06007F2F RID: 32559 RVA: 0x001AA9C8 File Offset: 0x001A8BC8
[Token(Token = "0x6007F2F")]
[Address(RVA = "0x4F3450", Offset = "0x4F1E50", VA = "0x1804F3450")]
public PkixCertPath(ICollection certificates)
{
IList list = PkixCertPath.SortCerts(Platform.CreateArrayList(certificates));
this.certificates = list;
}
// Token: 0x06007F30 RID: 32560 RVA: 0x001AA9F0 File Offset: 0x001A8BF0
[Token(Token = "0x6007F30")]
[Address(RVA = "0x4F34F0", Offset = "0x4F1EF0", VA = "0x1804F34F0")]
public PkixCertPath(Stream inStream)
{
}
// Token: 0x06007F31 RID: 32561 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6007F31")]
[Address(RVA = "0x4F3540", Offset = "0x4F1F40", VA = "0x1804F3540")]
public PkixCertPath(Stream inStream, string encoding)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x170014D4 RID: 5332
// (get) Token: 0x06007F32 RID: 32562 RVA: 0x001AAA00 File Offset: 0x001A8C00
[Token(Token = "0x170014D4")]
public virtual IEnumerable Encodings
{
[Token(Token = "0x6007F32")]
[Address(RVA = "0x4F3C10", Offset = "0x4F2610", VA = "0x1804F3C10", Slot = "4")]
get
{
/*
An exception occurred when decompiling this method (06007F32)
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 1663
*/;
}
}
// Token: 0x06007F33 RID: 32563 RVA: 0x001AAA18 File Offset: 0x001A8C18
[Token(Token = "0x6007F33")]
[Address(RVA = "0x4F1F50", Offset = "0x4F0950", VA = "0x1804F1F50", 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: 0x06007F34 RID: 32564 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6007F34")]
[Address(RVA = "0x4F2AE0", Offset = "0x4F14E0", VA = "0x1804F2AE0", Slot = "2")]
public override int GetHashCode()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06007F35 RID: 32565 RVA: 0x001AAA50 File Offset: 0x001A8C50
[Token(Token = "0x6007F35")]
[Address(RVA = "0x4F2110", Offset = "0x4F0B10", VA = "0x1804F2110", Slot = "5")]
public virtual byte[] GetEncoded()
{
byte[] array;
for (;;)
{
int num = 0;
string text = this.ToString();
if (text != 0)
{
while (text == 0)
{
}
while (text == 0)
{
}
if (text == 0)
{
goto IL_45;
}
}
if (array != 0)
{
}
if (num != -1)
{
if (typeof(IDisposable).TypeHandle == (ulong)73L)
{
break;
}
if (typeof(IDisposable).TypeHandle == (ulong)71L)
{
goto IL_3D;
}
}
if (num == 0)
{
goto IL_3D;
}
}
return array;
IL_3D:
throw new NullReferenceException();
IL_45:
throw new NullReferenceException();
}
// Token: 0x06007F36 RID: 32566 RVA: 0x001AAAA8 File Offset: 0x001A8CA8
[Token(Token = "0x6007F36")]
[Address(RVA = "0x4F22E0", Offset = "0x4F0CE0", VA = "0x1804F22E0", 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: 0x170014D5 RID: 5333
// (get) Token: 0x06007F37 RID: 32567 RVA: 0x001AAC94 File Offset: 0x001A8E94
[Token(Token = "0x170014D5")]
public virtual IList Certificates
{
[Token(Token = "0x6007F37")]
[Address(RVA = "0x4F3C00", Offset = "0x4F2600", VA = "0x1804F3C00", Slot = "7")]
get
{
return CollectionUtilities.ReadOnly(this.certificates);
}
}
// Token: 0x06007F38 RID: 32568 RVA: 0x001AACAC File Offset: 0x001A8EAC
[Token(Token = "0x6007F38")]
[Address(RVA = "0x4F3230", Offset = "0x4F1C30", VA = "0x1804F3230")]
private Asn1Object ToAsn1Object(X509Certificate cert)
{
AsymmetricKeyParameter publicKey = cert.GetPublicKey();
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x06007F39 RID: 32569 RVA: 0x001AACC8 File Offset: 0x001A8EC8
[Token(Token = "0x6007F39")]
[Address(RVA = "0x4F32E0", Offset = "0x4F1CE0", VA = "0x1804F32E0")]
private byte[] ToDerEncoded(Asn1Encodable obj)
{
return obj.GetEncoded("DER");
}
// Token: 0x04005A97 RID: 23191
[Token(Token = "0x4005A97")]
internal static readonly IList certPathEncodings = CollectionUtilities.ReadOnly(Platform.CreateArrayList());
// Token: 0x04005A98 RID: 23192
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005A98")]
private readonly IList certificates;
}
}
@@ -0,0 +1,106 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
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: 0x0200139B RID: 5019
[Token(Token = "0x200139B")]
[StructLayout(3)]
public class PkixCertPathBuilder
{
// Token: 0x06007F3A RID: 32570 RVA: 0x001AACF4 File Offset: 0x001A8EF4
[Token(Token = "0x6007F3A")]
[Address(RVA = "0x4EABD0", Offset = "0x4E95D0", VA = "0x1804EABD0", 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 != -1)
{
}
if (num == 0 && (pkixCertPathBuilderResult != 0 || this.certPathException == pkixCertPathBuilderResult))
{
return pkixCertPathBuilderResult;
}
throw new NullReferenceException();
}
// Token: 0x06007F3B RID: 32571 RVA: 0x001AADBC File Offset: 0x001A8FBC
[Token(Token = "0x6007F3B")]
[Address(RVA = "0x4EB250", Offset = "0x4E9C50", VA = "0x1804EB250", Slot = "5")]
protected virtual PkixCertPathBuilderResult Build(X509Certificate tbvCert, PkixBuilderParameters pkixParams, IList tbvPath)
{
int num = 0;
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;
if (count != 0)
{
while (count == 0)
{
}
}
if (count != 0)
{
}
if (num != -1)
{
}
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);
string text = count.ToString();
PkixCertPathBuilderResult pkixCertPathBuilderResult;
return pkixCertPathBuilderResult;
}
// Token: 0x06007F3C RID: 32572 RVA: 0x001AAEA0 File Offset: 0x001A90A0
[Token(Token = "0x6007F3C")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public PkixCertPathBuilder()
{
}
// Token: 0x04005A99 RID: 23193
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005A99")]
private Exception certPathException;
}
}
@@ -0,0 +1,37 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x0200139C RID: 5020
[Token(Token = "0x200139C")]
[Serializable]
[StructLayout(3)]
public class PkixCertPathBuilderException : GeneralSecurityException
{
// Token: 0x06007F3D RID: 32573 RVA: 0x001AAEB4 File Offset: 0x001A90B4
[Token(Token = "0x6007F3D")]
[Address(RVA = "0x4EA970", Offset = "0x4E9370", VA = "0x1804EA970")]
public PkixCertPathBuilderException()
{
}
// Token: 0x06007F3E RID: 32574 RVA: 0x001AAEC8 File Offset: 0x001A90C8
[Token(Token = "0x6007F3E")]
[Address(RVA = "0x4EA950", Offset = "0x4E9350", VA = "0x1804EA950")]
public PkixCertPathBuilderException(string message)
: base(message)
{
}
// Token: 0x06007F3F RID: 32575 RVA: 0x001AAEDC File Offset: 0x001A90DC
[Token(Token = "0x6007F3F")]
[Address(RVA = "0x4EA960", Offset = "0x4E9360", VA = "0x1804EA960")]
public PkixCertPathBuilderException(string message, Exception exception)
: base(message, exception)
{
}
}
}
@@ -0,0 +1,79 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x0200139D RID: 5021
[Token(Token = "0x200139D")]
[StructLayout(3)]
public class PkixCertPathBuilderResult : PkixCertPathValidatorResult
{
// Token: 0x06007F40 RID: 32576 RVA: 0x001AAEF4 File Offset: 0x001A90F4
[Token(Token = "0x6007F40")]
[Address(RVA = "0x4EAB20", Offset = "0x4E9520", VA = "0x1804EAB20")]
public PkixCertPathBuilderResult(PkixCertPath certPath, TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
{
/*
An exception occurred when decompiling this method (06007F40)
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 1663
*/;
}
// Token: 0x170014D6 RID: 5334
// (get) Token: 0x06007F41 RID: 32577 RVA: 0x001AAF18 File Offset: 0x001A9118
[Token(Token = "0x170014D6")]
public PkixCertPath CertPath
{
[Token(Token = "0x6007F41")]
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
get
{
return this.certPath;
}
}
// Token: 0x06007F42 RID: 32578 RVA: 0x001AAF2C File Offset: 0x001A912C
[Token(Token = "0x6007F42")]
[Address(RVA = "0x4EA980", Offset = "0x4E9380", VA = "0x1804EA980", 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: 0x04005A9A RID: 23194
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4005A9A")]
private PkixCertPath certPath;
}
}
@@ -0,0 +1,49 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x0200139E RID: 5022
[Token(Token = "0x200139E")]
[StructLayout(3)]
public abstract class PkixCertPathChecker
{
// Token: 0x06007F43 RID: 32579 RVA: 0x001AAFBC File Offset: 0x001A91BC
[Token(Token = "0x6007F43")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
protected PkixCertPathChecker()
{
}
// Token: 0x06007F44 RID: 32580
[Token(Token = "0x6007F44")]
[Address(Slot = "4")]
public abstract void Init(bool forward);
// Token: 0x06007F45 RID: 32581
[Token(Token = "0x6007F45")]
[Address(Slot = "5")]
public abstract bool IsForwardCheckingSupported();
// Token: 0x06007F46 RID: 32582
[Token(Token = "0x6007F46")]
[Address(Slot = "6")]
public abstract ISet GetSupportedExtensions();
// Token: 0x06007F47 RID: 32583
[Token(Token = "0x6007F47")]
[Address(Slot = "7")]
public abstract void Check(X509Certificate cert, ISet unresolvedCritExts);
// Token: 0x06007F48 RID: 32584 RVA: 0x001AAFD0 File Offset: 0x001A91D0
[Token(Token = "0x6007F48")]
[Address(RVA = "0x4EB7F0", Offset = "0x4EA1F0", VA = "0x1804EB7F0", Slot = "8")]
public virtual object Clone()
{
return base.MemberwiseClone();
}
}
}
@@ -0,0 +1,138 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
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: 0x0200139F RID: 5023
[Token(Token = "0x200139F")]
[StructLayout(3)]
public class PkixCertPathValidator
{
// Token: 0x06007F49 RID: 32585 RVA: 0x001AAFE4 File Offset: 0x001A91E4
[Token(Token = "0x6007F49")]
[Address(RVA = "0x4F0B60", Offset = "0x4EF560", VA = "0x1804F0B60", Slot = "4")]
public virtual PkixCertPathValidatorResult Validate(PkixCertPath certPath, PkixParameters paramsPkix)
{
int num;
for (;;)
{
byte[] array;
if (array != 0)
{
if (array == 0)
{
}
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();
bool isFixedSize = hashSet2.IsFixedSize;
if (any_POLICY == 0)
{
X509Name x509Name = new X509Name(any_POLICY);
}
IEnumerator enumerator = hashSet2.GetEnumerator();
if (enumerator != 0 && enumerator == 0)
{
goto IL_1AE;
}
PkixPolicyNode pkixPolicyNode2;
if (pkixPolicyNode2 == (ulong)1L && pkixPolicyNode2 == 0)
{
goto IL_1C1;
}
int num5;
if (num5 == 0)
{
HashSet hashSet4 = 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 hashSet5 = 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_1AE:
int num7;
PkixCertPathValidatorException ex = new PkixCertPathValidatorException("Target certificate in certification path does not match targetConstraints.", num7, certPath, num);
num7 = 0;
IL_1C1:
throw new NullReferenceException();
}
// Token: 0x06007F4A RID: 32586 RVA: 0x001AB1BC File Offset: 0x001A93BC
[Token(Token = "0x6007F4A")]
[Address(RVA = "0x4F0AA0", Offset = "0x4EF4A0", VA = "0x1804F0AA0")]
internal static void CheckCertificate(X509Certificate cert)
{
Asn1OctetString asn1OctetString;
TbsCertificateStructure instance = TbsCertificateStructure.GetInstance(asn1OctetString.str);
}
// Token: 0x06007F4B RID: 32587 RVA: 0x001AB1E4 File Offset: 0x001A93E4
[Token(Token = "0x6007F4B")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public PkixCertPathValidator()
{
}
}
}
@@ -0,0 +1,114 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x020013A0 RID: 5024
[Token(Token = "0x20013A0")]
[Serializable]
[StructLayout(3)]
public class PkixCertPathValidatorException : GeneralSecurityException
{
// Token: 0x06007F4C RID: 32588 RVA: 0x001AB1F8 File Offset: 0x001A93F8
[Token(Token = "0x6007F4C")]
[Address(RVA = "0x4EB800", Offset = "0x4EA200", VA = "0x1804EB800")]
public PkixCertPathValidatorException()
{
}
// Token: 0x06007F4D RID: 32589 RVA: 0x001AB21C File Offset: 0x001A941C
[Token(Token = "0x6007F4D")]
[Address(RVA = "0x4EB860", Offset = "0x4EA260", VA = "0x1804EB860")]
public PkixCertPathValidatorException(string message)
: base(message)
{
}
// Token: 0x06007F4E RID: 32590 RVA: 0x001AB240 File Offset: 0x001A9440
[Token(Token = "0x6007F4E")]
[Address(RVA = "0x4EB820", Offset = "0x4EA220", VA = "0x1804EB820")]
public PkixCertPathValidatorException(string message, Exception cause)
: base(message)
{
this.cause = cause;
}
// Token: 0x06007F4F RID: 32591 RVA: 0x001AB26C File Offset: 0x001A946C
[Token(Token = "0x6007F4F")]
[Address(RVA = "0x4EB880", Offset = "0x4EA280", VA = "0x1804EB880")]
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: 0x170014D7 RID: 5335
// (get) Token: 0x06007F50 RID: 32592 RVA: 0x001AB2C4 File Offset: 0x001A94C4
[Token(Token = "0x170014D7")]
public override string Message
{
[Token(Token = "0x6007F50")]
[Address(RVA = "0x4EB9D0", Offset = "0x4EA3D0", VA = "0x1804EB9D0", Slot = "5")]
get
{
string message = base.Message;
if (message == 0 && this.cause == 0)
{
return message;
}
return message;
}
}
// Token: 0x170014D8 RID: 5336
// (get) Token: 0x06007F51 RID: 32593 RVA: 0x001AB2E8 File Offset: 0x001A94E8
[Token(Token = "0x170014D8")]
public PkixCertPath CertPath
{
[Token(Token = "0x6007F51")]
[Address(RVA = "0x4BD780", Offset = "0x4BC180", VA = "0x1804BD780")]
get
{
return this.certPath;
}
}
// Token: 0x170014D9 RID: 5337
// (get) Token: 0x06007F52 RID: 32594 RVA: 0x001AB2FC File Offset: 0x001A94FC
[Token(Token = "0x170014D9")]
public int Index
{
[Token(Token = "0x6007F52")]
[Address(RVA = "0x4EB9C0", Offset = "0x4EA3C0", VA = "0x1804EB9C0")]
get
{
return this.index;
}
}
// Token: 0x04005A9B RID: 23195
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
[Token(Token = "0x4005A9B")]
private Exception cause;
// Token: 0x04005A9C RID: 23196
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
[Token(Token = "0x4005A9C")]
private PkixCertPath certPath;
// Token: 0x04005A9D RID: 23197
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
[Token(Token = "0x4005A9D")]
private int index = (int)((ulong)4294967295L);
}
}
@@ -0,0 +1,142 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x020013A1 RID: 5025
[Token(Token = "0x20013A1")]
[StructLayout(3)]
public class PkixCertPathValidatorResult
{
// Token: 0x170014DA RID: 5338
// (get) Token: 0x06007F53 RID: 32595 RVA: 0x001AB310 File Offset: 0x001A9510
[Token(Token = "0x170014DA")]
public PkixPolicyNode PolicyTree
{
[Token(Token = "0x6007F53")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.policyTree;
}
}
// Token: 0x170014DB RID: 5339
// (get) Token: 0x06007F54 RID: 32596 RVA: 0x001AB324 File Offset: 0x001A9524
[Token(Token = "0x170014DB")]
public TrustAnchor TrustAnchor
{
[Token(Token = "0x6007F54")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.trustAnchor;
}
}
// Token: 0x170014DC RID: 5340
// (get) Token: 0x06007F55 RID: 32597 RVA: 0x001AB338 File Offset: 0x001A9538
[Token(Token = "0x170014DC")]
public AsymmetricKeyParameter SubjectPublicKey
{
[Token(Token = "0x6007F55")]
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
get
{
return this.subjectPublicKey;
}
}
// Token: 0x06007F56 RID: 32598 RVA: 0x001AB34C File Offset: 0x001A954C
[Token(Token = "0x6007F56")]
[Address(RVA = "0x4EBBE0", Offset = "0x4EA5E0", VA = "0x1804EBBE0")]
public PkixCertPathValidatorResult(TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
{
/*
An exception occurred when decompiling this method (06007F56)
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 1663
*/;
}
// Token: 0x06007F57 RID: 32599 RVA: 0x001AB394 File Offset: 0x001A9594
[Token(Token = "0x6007F57")]
[Address(RVA = "0x4EBA20", Offset = "0x4EA420", VA = "0x1804EBA20")]
public object Clone()
{
/*
An exception occurred when decompiling this method (06007F57)
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 1663
*/;
}
// Token: 0x06007F58 RID: 32600 RVA: 0x001AB3C0 File Offset: 0x001A95C0
[Token(Token = "0x6007F58")]
[Address(RVA = "0x4EBAA0", Offset = "0x4EA4A0", VA = "0x1804EBAA0", 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: 0x04005A9E RID: 23198
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005A9E")]
private TrustAnchor trustAnchor;
// Token: 0x04005A9F RID: 23199
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005A9F")]
private PkixPolicyNode policyTree;
// Token: 0x04005AA0 RID: 23200
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005AA0")]
private AsymmetricKeyParameter subjectPublicKey;
}
}
@@ -0,0 +1,910 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
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: 0x020013A2 RID: 5026
[Token(Token = "0x20013A2")]
[StructLayout(3)]
public class PkixCertPathValidatorUtilities
{
// Token: 0x06007F59 RID: 32601 RVA: 0x001AB44C File Offset: 0x001A964C
[Token(Token = "0x6007F59")]
[Address(RVA = "0x4ECAA0", Offset = "0x4EB4A0", VA = "0x1804ECAA0")]
internal static TrustAnchor FindTrustAnchor(X509Certificate cert, ISet trustAnchors)
{
/*
An exception occurred when decompiling this method (06007F59)
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 1663
*/;
}
// Token: 0x06007F5A RID: 32602 RVA: 0x001AB4FC File Offset: 0x001A96FC
[Token(Token = "0x6007F5A")]
[Address(RVA = "0x4EEFC0", Offset = "0x4ED9C0", VA = "0x1804EEFC0")]
internal static bool IsIssuerTrustAnchor(X509Certificate cert, ISet trustAnchors)
{
/*
An exception occurred when decompiling this method (06007F5A)
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 1663
*/;
}
// Token: 0x06007F5B RID: 32603 RVA: 0x001AB514 File Offset: 0x001A9714
[Token(Token = "0x6007F5B")]
[Address(RVA = "0x4EBE60", Offset = "0x4EA860", VA = "0x1804EBE60")]
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: 0x06007F5C RID: 32604 RVA: 0x001AB548 File Offset: 0x001A9748
[Token(Token = "0x6007F5C")]
[Address(RVA = "0x4EEEA0", Offset = "0x4ED8A0", VA = "0x1804EEEA0")]
internal static DateTime GetValidDate(PkixParameters paramsPKIX)
{
return DateTime.UtcNow;
}
// Token: 0x06007F5D RID: 32605 RVA: 0x001AB564 File Offset: 0x001A9764
[Token(Token = "0x6007F5D")]
[Address(RVA = "0x4EE2E0", Offset = "0x4ECCE0", VA = "0x1804EE2E0")]
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: 0x06007F5E RID: 32606 RVA: 0x001AB59C File Offset: 0x001A979C
[Token(Token = "0x6007F5E")]
[Address(RVA = "0x4EF050", Offset = "0x4EDA50", VA = "0x1804EF050")]
internal static bool IsSelfIssued(X509Certificate cert)
{
X509Name issuerDN = cert.IssuerDN;
BigInteger serialNumber = cert.SerialNumber;
bool flag;
return flag;
}
// Token: 0x06007F5F RID: 32607 RVA: 0x001AB5C0 File Offset: 0x001A97C0
[Token(Token = "0x6007F5F")]
[Address(RVA = "0x4ECE50", Offset = "0x4EB850", VA = "0x1804ECE50")]
internal static AlgorithmIdentifier GetAlgorithmIdentifier(AsymmetricKeyParameter key)
{
return SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(key).algID;
}
// Token: 0x06007F60 RID: 32608 RVA: 0x001AB5E0 File Offset: 0x001A97E0
[Token(Token = "0x6007F60")]
[Address(RVA = "0x4EEF20", Offset = "0x4ED920", VA = "0x1804EEF20")]
internal static bool IsAnyPolicy(ISet policySet)
{
bool flag;
return policySet == 0 || flag;
}
// Token: 0x06007F61 RID: 32609 RVA: 0x001AB5F4 File Offset: 0x001A97F4
[Token(Token = "0x6007F61")]
[Address(RVA = "0x4EBCC0", Offset = "0x4EA6C0", VA = "0x1804EBCC0")]
internal static void AddAdditionalStoreFromLocation(string location, PkixParameters pkixParams)
{
if (pkixParams.GetStores() != 0)
{
if (!Platform.StartsWith(location, "ldap://"))
{
}
string text = location.Substring(7);
}
}
// Token: 0x06007F62 RID: 32610 RVA: 0x001AB664 File Offset: 0x001A9864
[Token(Token = "0x6007F62")]
[Address(RVA = "0x4EEA50", Offset = "0x4ED450", VA = "0x1804EEA50")]
private static BigInteger GetSerialNumber(object cert)
{
while ((cert == 0 && (cert == 0 || cert == 0)) || cert == 0 || cert == 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06007F63 RID: 32611 RVA: 0x001AB698 File Offset: 0x001A9898
[Token(Token = "0x6007F63")]
[Address(RVA = "0x4EE810", Offset = "0x4ED210", VA = "0x1804EE810")]
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_3A;
}
}
PolicyQualifierInfo policyQualifierInfo;
if (policyQualifierInfo != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_3A:
throw new NullReferenceException();
}
// Token: 0x06007F64 RID: 32612 RVA: 0x001AB6E4 File Offset: 0x001A98E4
[Token(Token = "0x6007F64")]
[Address(RVA = "0x4F03D0", Offset = "0x4EEDD0", VA = "0x1804F03D0")]
internal static PkixPolicyNode RemovePolicyNode(PkixPolicyNode validPolicyTree, IList[] policyNodes, PkixPolicyNode _node)
{
if (validPolicyTree != 0)
{
PkixCertPathValidatorUtilities.RemovePolicyNodeRecurse(policyNodes, _node);
return validPolicyTree;
}
throw new NullReferenceException();
}
// Token: 0x06007F65 RID: 32613 RVA: 0x001AB72C File Offset: 0x001A992C
[Token(Token = "0x6007F65")]
[Address(RVA = "0x4F0170", Offset = "0x4EEB70", VA = "0x1804F0170")]
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_44;
}
}
if (num2 != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return;
IL_44:
throw new NullReferenceException();
}
// Token: 0x06007F66 RID: 32614 RVA: 0x001AB784 File Offset: 0x001A9984
[Token(Token = "0x6007F66")]
[Address(RVA = "0x4EF0B0", Offset = "0x4EDAB0", VA = "0x1804EF0B0")]
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: 0x06007F67 RID: 32615 RVA: 0x001AB828 File Offset: 0x001A9A28
[Token(Token = "0x6007F67")]
[Address(RVA = "0x4EF810", Offset = "0x4EE210", VA = "0x1804EF810")]
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++;
}
}
if (num != -1)
{
}
}
while (num != 0);
return validPolicyTree;
}
// Token: 0x06007F68 RID: 32616 RVA: 0x001AB88C File Offset: 0x001A9A8C
[Token(Token = "0x6007F68")]
[Address(RVA = "0x4ECEF0", Offset = "0x4EB8F0", VA = "0x1804ECEF0")]
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: 0x06007F69 RID: 32617 RVA: 0x001AB994 File Offset: 0x001A9B94
[Token(Token = "0x6007F69")]
[Address(RVA = "0x4EE490", Offset = "0x4ECE90", VA = "0x1804EE490")]
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: 0x06007F6A RID: 32618 RVA: 0x001AB9DC File Offset: 0x001A9BDC
[Token(Token = "0x6007F6A")]
[Address(RVA = "0x4EEBF0", Offset = "0x4ED5F0", VA = "0x1804EEBF0")]
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: 0x06007F6B RID: 32619 RVA: 0x001ABA14 File Offset: 0x001A9C14
[Token(Token = "0x6007F6B")]
[Address(RVA = "0x4EC590", Offset = "0x4EAF90", VA = "0x1804EC590")]
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_56;
}
if (hashSet != 0)
{
}
if ((uint)(-1) != 0U)
{
}
if ((ulong)((uint)(-1)) != (ulong)(-1L))
{
}
if (num != 0)
{
goto IL_4A;
}
}
if ((uint)(-1) != 0U)
{
}
if ((ulong)((uint)(-1)) != (ulong)(-1L))
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_4A:
throw new NullReferenceException();
IL_56:
throw new NullReferenceException();
}
// Token: 0x06007F6C RID: 32620 RVA: 0x001ABA7C File Offset: 0x001A9C7C
[Token(Token = "0x6007F6C")]
[Address(RVA = "0x4ED8D0", Offset = "0x4EC2D0", VA = "0x1804ED8D0")]
internal static void GetCrlIssuersFromDistributionPoint(DistributionPoint dp, ICollection issuerPrincipals, X509CrlStoreSelector selector, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06007F6C)
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 1663
*/;
}
// Token: 0x06007F6D RID: 32621 RVA: 0x001ABB44 File Offset: 0x001A9D44
[Token(Token = "0x6007F6D")]
[Address(RVA = "0x4ED350", Offset = "0x4EBD50", VA = "0x1804ED350")]
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: 0x06007F6E RID: 32622 RVA: 0x001ABBEC File Offset: 0x001A9DEC
[Token(Token = "0x6007F6E")]
[Address(RVA = "0x4EDCB0", Offset = "0x4EC6B0", VA = "0x1804EDCB0")]
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_D1;
}
while (!flag)
{
}
}
if (flag)
{
}
if (num != -1)
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_D1:
throw new NullReferenceException();
}
// Token: 0x06007F6F RID: 32623 RVA: 0x001ABCD0 File Offset: 0x001A9ED0
[Token(Token = "0x6007F6F")]
[Address(RVA = "0x4F0A00", Offset = "0x4EF400", VA = "0x1804F0A00")]
private static bool isDeltaCrl(X509Crl crl)
{
ISet nonCriticalExtensionOids = crl.GetNonCriticalExtensionOids();
DerObjectIdentifier deltaCrlIndicator = X509Extensions.DeltaCrlIndicator;
throw new NullReferenceException();
}
// Token: 0x06007F70 RID: 32624 RVA: 0x001ABCF0 File Offset: 0x001A9EF0
[Token(Token = "0x6007F70")]
[Address(RVA = "0x4EC260", Offset = "0x4EAC60", VA = "0x1804EC260")]
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_56;
}
if (hashSet != 0)
{
}
if ((uint)(-1) != 0U)
{
}
if ((ulong)((uint)(-1)) != (ulong)(-1L))
{
}
if (num != 0)
{
goto IL_4A;
}
}
if ((uint)(-1) != 0U)
{
}
if ((ulong)((uint)(-1)) != (ulong)(-1L))
{
}
}
while (num != 0);
throw new NullReferenceException();
IL_4A:
throw new NullReferenceException();
IL_56:
throw new NullReferenceException();
}
// Token: 0x06007F71 RID: 32625 RVA: 0x001ABD58 File Offset: 0x001A9F58
[Token(Token = "0x6007F71")]
[Address(RVA = "0x4EC050", Offset = "0x4EAA50", VA = "0x1804EC050")]
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: 0x06007F72 RID: 32626 RVA: 0x001ABE00 File Offset: 0x001AA000
[Token(Token = "0x6007F72")]
[Address(RVA = "0x4EFC20", Offset = "0x4EE620", VA = "0x1804EFC20")]
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: 0x06007F73 RID: 32627 RVA: 0x001ABE54 File Offset: 0x001AA054
[Token(Token = "0x6007F73")]
[Address(RVA = "0x4EFEB0", Offset = "0x4EE8B0", VA = "0x1804EFEB0")]
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: 0x06007F74 RID: 32628 RVA: 0x001ABEB8 File Offset: 0x001AA0B8
[Token(Token = "0x6007F74")]
[Address(RVA = "0x4EC8C0", Offset = "0x4EB2C0", VA = "0x1804EC8C0")]
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: 0x06007F75 RID: 32629 RVA: 0x001ABF08 File Offset: 0x001AA108
[Token(Token = "0x6007F75")]
[Address(RVA = "0x4EE200", Offset = "0x4ECC00", VA = "0x1804EE200")]
internal static Asn1Object GetExtensionValue(IX509Extension ext, DerObjectIdentifier oid)
{
int num = 0;
num += num;
num++;
Asn1Object asn1Object;
return asn1Object;
}
// Token: 0x06007F76 RID: 32630 RVA: 0x001ABF30 File Offset: 0x001AA130
[Token(Token = "0x6007F76")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public PkixCertPathValidatorUtilities()
{
}
// Token: 0x06007F77 RID: 32631 RVA: 0x001ABF44 File Offset: 0x001AA144
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6007F77")]
[Address(RVA = "0x4F0510", Offset = "0x4EEF10", VA = "0x1804F0510")]
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: 0x04005AA1 RID: 23201
[Token(Token = "0x4005AA1")]
private static readonly PkixCrlUtilities CrlUtilities = new PkixCrlUtilities();
// Token: 0x04005AA2 RID: 23202
[Token(Token = "0x4005AA2")]
internal static readonly string ANY_POLICY = "2.5.29.32.0";
// Token: 0x04005AA3 RID: 23203
[Token(Token = "0x4005AA3")]
internal static readonly string CRL_NUMBER = X509Extensions.CrlNumber.identifier;
// Token: 0x04005AA4 RID: 23204
[Token(Token = "0x4005AA4")]
internal static readonly int KEY_CERT_SIGN;
// Token: 0x04005AA5 RID: 23205
[Token(Token = "0x4005AA5")]
internal static readonly int CRL_SIGN;
// Token: 0x04005AA6 RID: 23206
[Token(Token = "0x4005AA6")]
internal static readonly string[] crlReasons;
}
}
@@ -0,0 +1,104 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
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: 0x020013A3 RID: 5027
[Token(Token = "0x20013A3")]
[StructLayout(3)]
public class PkixCrlUtilities
{
// Token: 0x06007F78 RID: 32632 RVA: 0x001AC068 File Offset: 0x001AA268
[Token(Token = "0x6007F78")]
[Address(RVA = "0xCE3FE0", Offset = "0xCE29E0", VA = "0x180CE3FE0", Slot = "4")]
public virtual ISet FindCrls(X509CrlStoreSelector crlselect, PkixParameters paramsPkix, DateTime currentDate)
{
int num;
do
{
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;
}
while (0 <= 0);
X509Certificate certificateChecking = crlselect.certificateChecking;
if (certificateChecking == 0)
{
}
if (certificateChecking.NotBefore != 0)
{
}
if (num != -1)
{
}
if (num == 0)
{
throw new NullReferenceException();
}
throw new NullReferenceException();
}
// Token: 0x06007F79 RID: 32633 RVA: 0x001AC0E0 File Offset: 0x001AA2E0
[Token(Token = "0x6007F79")]
[Address(RVA = "0xCE46A0", Offset = "0xCE30A0", VA = "0x180CE46A0", 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: 0x06007F7A RID: 32634 RVA: 0x001AC110 File Offset: 0x001AA310
[Token(Token = "0x6007F7A")]
[Address(RVA = "0xCE4430", Offset = "0xCE2E30", VA = "0x180CE4430")]
private ICollection FindCrls(X509CrlStoreSelector crlSelect, IList crlStores)
{
int num;
Exception ex;
do
{
HashSet hashSet = new HashSet();
if (hashSet != 0)
{
if (hashSet == 0)
{
}
if (hashSet == 0)
{
goto IL_36;
}
num = 0;
}
if (ex != 0)
{
}
if (num != -1)
{
}
}
while (num != 0 || ex != 0);
throw new NullReferenceException();
IL_36:
throw new NullReferenceException();
}
// Token: 0x06007F7B RID: 32635 RVA: 0x001AC158 File Offset: 0x001AA358
[Token(Token = "0x6007F7B")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public PkixCrlUtilities()
{
}
}
}
@@ -0,0 +1,1874 @@
using System;
using System.Collections;
using System.IO;
using System.Runtime.InteropServices;
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: 0x020013A4 RID: 5028
[Token(Token = "0x20013A4")]
[StructLayout(3)]
public class PkixNameConstraintValidator
{
// Token: 0x06007F7C RID: 32636 RVA: 0x001AC16C File Offset: 0x001AA36C
[Token(Token = "0x6007F7C")]
[Address(RVA = "0xCE9250", Offset = "0xCE7C50", VA = "0x180CE9250")]
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: 0x06007F7D RID: 32637 RVA: 0x001AC1C4 File Offset: 0x001AA3C4
[Token(Token = "0x6007F7D")]
[Address(RVA = "0xCE8EE0", Offset = "0xCE78E0", VA = "0x180CE8EE0")]
private static bool WithinDNSubtree(Asn1Sequence dns, Asn1Sequence subtree)
{
Asn1SequenceParser parser = subtree.Parser;
if (dns.Parser != 0)
{
}
throw new NullReferenceException();
}
// Token: 0x06007F7E RID: 32638 RVA: 0x001AC1E8 File Offset: 0x001AA3E8
[Token(Token = "0x6007F7E")]
[Address(RVA = "0xCE5070", Offset = "0xCE3A70", VA = "0x180CE5070")]
public void CheckPermittedDN(Asn1Sequence dns)
{
Asn1Encodable asn1Encodable;
if (this.permittedSubtreesDN != 0 && asn1Encodable != 0)
{
bool flag;
while (!flag)
{
}
}
}
// Token: 0x06007F7F RID: 32639 RVA: 0x001AC218 File Offset: 0x001AA418
[Token(Token = "0x6007F7F")]
[Address(RVA = "0xCE49E0", Offset = "0xCE33E0", VA = "0x180CE49E0")]
public void CheckExcludedDN(Asn1Sequence dns)
{
/*
An exception occurred when decompiling this method (06007F7F)
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 1663
*/;
}
// Token: 0x06007F80 RID: 32640 RVA: 0x001AC244 File Offset: 0x001AA444
[Token(Token = "0x6007F80")]
[Address(RVA = "0xCE4F50", Offset = "0xCE3950", VA = "0x180CE4F50")]
private void CheckPermittedDN(ISet permitted, Asn1Sequence dns)
{
Asn1Encodable asn1Encodable;
if (permitted != 0 && asn1Encodable != 0)
{
bool flag;
while (!flag)
{
}
}
}
// Token: 0x06007F81 RID: 32641 RVA: 0x001AC270 File Offset: 0x001AA470
[Token(Token = "0x6007F81")]
[Address(RVA = "0xCE4B30", Offset = "0xCE3530", VA = "0x180CE4B30")]
private void CheckExcludedDN(ISet excluded, Asn1Sequence dns)
{
/*
An exception occurred when decompiling this method (06007F81)
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 1663
*/;
}
// Token: 0x06007F82 RID: 32642 RVA: 0x001AC294 File Offset: 0x001AA494
[Token(Token = "0x6007F82")]
[Address(RVA = "0xCE6150", Offset = "0xCE4B50", VA = "0x180CE6150")]
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: 0x06007F83 RID: 32643 RVA: 0x001AC2EC File Offset: 0x001AA4EC
[Token(Token = "0x6007F83")]
[Address(RVA = "0xCE8660", Offset = "0xCE7060", VA = "0x180CE8660")]
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: 0x06007F84 RID: 32644 RVA: 0x001AC354 File Offset: 0x001AA554
[Token(Token = "0x6007F84")]
[Address(RVA = "0xCE63C0", Offset = "0xCE4DC0", VA = "0x180CE63C0")]
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: 0x06007F85 RID: 32645 RVA: 0x001AC3B4 File Offset: 0x001AA5B4
[Token(Token = "0x6007F85")]
[Address(RVA = "0xCE88E0", Offset = "0xCE72E0", VA = "0x180CE88E0")]
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: 0x06007F86 RID: 32646 RVA: 0x001AC418 File Offset: 0x001AA618
[Token(Token = "0x6007F86")]
[Address(RVA = "0xCE6B10", Offset = "0xCE5510", VA = "0x180CE6B10")]
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: 0x06007F87 RID: 32647 RVA: 0x001AC460 File Offset: 0x001AA660
[Token(Token = "0x6007F87")]
[Address(RVA = "0xCE8BB0", Offset = "0xCE75B0", VA = "0x180CE8BB0")]
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: 0x06007F88 RID: 32648 RVA: 0x001AC4D0 File Offset: 0x001AA6D0
[Token(Token = "0x6007F88")]
[Address(RVA = "0xCE8AF0", Offset = "0xCE74F0", VA = "0x180CE8AF0")]
private ISet UnionIPRange(byte[] ipWithSubmask1, byte[] ipWithSubmask2)
{
HashSet hashSet = new HashSet();
if (!Arrays.AreEqual(ipWithSubmask1, ipWithSubmask2))
{
}
throw new NullReferenceException();
}
// Token: 0x06007F89 RID: 32649 RVA: 0x001AC4F4 File Offset: 0x001AA6F4
[Token(Token = "0x6007F89")]
[Address(RVA = "0xCE6740", Offset = "0xCE5140", VA = "0x180CE6740")]
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: 0x06007F8A RID: 32650 RVA: 0x001AC64C File Offset: 0x001AA84C
[Token(Token = "0x6007F8A")]
[Address(RVA = "0xCE7360", Offset = "0xCE5D60", VA = "0x180CE7360")]
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: 0x06007F8B RID: 32651 RVA: 0x001AC68C File Offset: 0x001AA88C
[Token(Token = "0x6007F8B")]
[Address(RVA = "0xCE5C50", Offset = "0xCE4650", VA = "0x180CE5C50")]
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: 0x06007F8C RID: 32652 RVA: 0x001AC750 File Offset: 0x001AA950
[Token(Token = "0x6007F8C")]
[Address(RVA = "0xCE7760", Offset = "0xCE6160", VA = "0x180CE7760")]
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: 0x06007F8D RID: 32653 RVA: 0x001AC7D4 File Offset: 0x001AA9D4
[Token(Token = "0x6007F8D")]
[Address(RVA = "0xCE5190", Offset = "0xCE3B90", VA = "0x180CE5190")]
private void CheckPermittedEmail(ISet permitted, string email)
{
/*
An exception occurred when decompiling this method (06007F8D)
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 1663
*/;
}
// Token: 0x06007F8E RID: 32654 RVA: 0x001AC810 File Offset: 0x001AAA10
[Token(Token = "0x6007F8E")]
[Address(RVA = "0xCE4C80", Offset = "0xCE3680", VA = "0x180CE4C80")]
private void CheckExcludedEmail(ISet excluded, string email)
{
/*
An exception occurred when decompiling this method (06007F8E)
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 1663
*/;
}
// Token: 0x06007F8F RID: 32655 RVA: 0x001AC83C File Offset: 0x001AAA3C
[Token(Token = "0x6007F8F")]
[Address(RVA = "0xCE52C0", Offset = "0xCE3CC0", VA = "0x180CE52C0")]
private void CheckPermittedIP(ISet permitted, byte[] ip)
{
if (permitted != 0)
{
bool flag;
while (!flag)
{
}
}
}
// Token: 0x06007F90 RID: 32656 RVA: 0x001AC86C File Offset: 0x001AAA6C
[Token(Token = "0x6007F90")]
[Address(RVA = "0xCE9480", Offset = "0xCE7E80", VA = "0x180CE9480")]
private void checkExcludedIP(ISet excluded, byte[] ip)
{
/*
An exception occurred when decompiling this method (06007F90)
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 1663
*/;
}
// Token: 0x06007F91 RID: 32657 RVA: 0x001AC888 File Offset: 0x001AAA88
[Token(Token = "0x6007F91")]
[Address(RVA = "0xCE7410", Offset = "0xCE5E10", VA = "0x180CE7410")]
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: 0x06007F92 RID: 32658 RVA: 0x001AC8EC File Offset: 0x001AAAEC
[Token(Token = "0x6007F92")]
[Address(RVA = "0xCE5770", Offset = "0xCE4170", VA = "0x180CE5770")]
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: 0x06007F93 RID: 32659 RVA: 0x001AC964 File Offset: 0x001AAB64
[Token(Token = "0x6007F93")]
[Address(RVA = "0xCE9000", Offset = "0xCE7A00", VA = "0x180CE9000")]
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: 0x06007F94 RID: 32660 RVA: 0x001ACA44 File Offset: 0x001AAC44
[Token(Token = "0x6007F94")]
[Address(RVA = "0xCE4DB0", Offset = "0xCE37B0", VA = "0x180CE4DB0")]
private void CheckPermittedDNS(ISet permitted, string dns)
{
/*
An exception occurred when decompiling this method (06007F94)
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 1663
*/;
}
// Token: 0x06007F95 RID: 32661 RVA: 0x001ACA98 File Offset: 0x001AAC98
[Token(Token = "0x6007F95")]
[Address(RVA = "0xCE9320", Offset = "0xCE7D20", VA = "0x180CE9320")]
private void checkExcludedDNS(ISet excluded, string dns)
{
/*
An exception occurred when decompiling this method (06007F95)
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 1663
*/;
}
// Token: 0x06007F96 RID: 32662 RVA: 0x001ACACC File Offset: 0x001AACCC
[Token(Token = "0x6007F96")]
[Address(RVA = "0xCEB0A0", Offset = "0xCE9AA0", VA = "0x180CEB0A0")]
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: 0x06007F97 RID: 32663 RVA: 0x001ACBAC File Offset: 0x001AADAC
[Token(Token = "0x6007F97")]
[Address(RVA = "0xCEB640", Offset = "0xCEA040", VA = "0x180CEB640")]
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: 0x06007F98 RID: 32664 RVA: 0x001ACC8C File Offset: 0x001AAE8C
[Token(Token = "0x6007F98")]
[Address(RVA = "0xCEA280", Offset = "0xCE8C80", VA = "0x180CEA280")]
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: 0x06007F99 RID: 32665 RVA: 0x001ACCF8 File Offset: 0x001AAEF8
[Token(Token = "0x6007F99")]
[Address(RVA = "0xCEAE30", Offset = "0xCE9830", VA = "0x180CEAE30")]
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: 0x06007F9A RID: 32666 RVA: 0x001ACD54 File Offset: 0x001AAF54
[Token(Token = "0x6007F9A")]
[Address(RVA = "0xCEA510", Offset = "0xCE8F10", VA = "0x180CEA510")]
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: 0x06007F9B RID: 32667 RVA: 0x001ACE2C File Offset: 0x001AB02C
[Token(Token = "0x6007F9B")]
[Address(RVA = "0xCE95C0", Offset = "0xCE7FC0", VA = "0x180CE95C0")]
private void checkExcludedURI(ISet excluded, string uri)
{
/*
An exception occurred when decompiling this method (06007F9B)
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 1663
*/;
}
// Token: 0x06007F9C RID: 32668 RVA: 0x001ACE58 File Offset: 0x001AB058
[Token(Token = "0x6007F9C")]
[Address(RVA = "0xCEA870", Offset = "0xCE9270", VA = "0x180CEA870")]
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: 0x06007F9D RID: 32669 RVA: 0x001ACEB8 File Offset: 0x001AB0B8
[Token(Token = "0x6007F9D")]
[Address(RVA = "0xCEB430", Offset = "0xCE9E30", VA = "0x180CEB430")]
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: 0x06007F9E RID: 32670 RVA: 0x001ACF1C File Offset: 0x001AB11C
[Token(Token = "0x6007F9E")]
[Address(RVA = "0xCEAAD0", Offset = "0xCE94D0", VA = "0x180CEAAD0")]
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: 0x06007F9F RID: 32671 RVA: 0x001ACFF4 File Offset: 0x001AB1F4
[Token(Token = "0x6007F9F")]
[Address(RVA = "0xCE5410", Offset = "0xCE3E10", VA = "0x180CE5410")]
private void CheckPermittedURI(ISet permitted, string uri)
{
/*
An exception occurred when decompiling this method (06007F9F)
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 1663
*/;
}
// Token: 0x06007FA0 RID: 32672 RVA: 0x001AD030 File Offset: 0x001AB230
[Token(Token = "0x6007FA0")]
[Address(RVA = "0xCE7600", Offset = "0xCE6000", VA = "0x180CE7600")]
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: 0x06007FA1 RID: 32673 RVA: 0x001AD06C File Offset: 0x001AB26C
[Token(Token = "0x6007FA1")]
[Address(RVA = "0xCE5AD0", Offset = "0xCE44D0", VA = "0x180CE5AD0")]
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: 0x06007FA2 RID: 32674 RVA: 0x001AD0E4 File Offset: 0x001AB2E4
[Token(Token = "0x6007FA2")]
[Address(RVA = "0xCE9C80", Offset = "0xCE8680", VA = "0x180CE9C80")]
public void checkPermitted(GeneralName name)
{
/*
An exception occurred when decompiling this method (06007FA2)
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_199:
stloc:PkixNameConstraintValidatorException(var_27_1A3, 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 1663
*/;
}
// Token: 0x06007FA3 RID: 32675 RVA: 0x001AD298 File Offset: 0x001AB498
[Token(Token = "0x6007FA3")]
[Address(RVA = "0xCE96F0", Offset = "0xCE80F0", VA = "0x180CE96F0")]
public void checkExcluded(GeneralName name)
{
while (name.tag <= 6)
{
ISet set = this.excludedSubtreesEmail;
string text = this.ExtractNameAsString(name);
if (text != 0 || text == 0)
{
break;
}
int num = 0;
if ((text == 0 || text != 0) && !this.EmailIsConstrained(text, num))
{
ISet set2 = this.excludedSubtreesDNS;
string @string = DerIA5String.GetInstance(this).GetString();
if (@string != 0 || @string == 0)
{
break;
}
int num2 = 0;
if ((@string == 0 || @string != 0) && !this.WithinDomain(@string, num2) && !Platform.EqualsIgnoreCase(@string, num2))
{
int num3;
Asn1Sequence instance = Asn1Sequence.GetInstance(num3);
this.CheckExcludedDN(instance);
break;
}
}
}
}
// Token: 0x06007FA4 RID: 32676 RVA: 0x001AD3A0 File Offset: 0x001AB5A0
[Token(Token = "0x6007FA4")]
[Address(RVA = "0xCE6D60", Offset = "0xCE5760", VA = "0x180CE6D60")]
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: 0x06007FA5 RID: 32677 RVA: 0x001AD4BC File Offset: 0x001AB6BC
[Token(Token = "0x6007FA5")]
[Address(RVA = "0xCE5ED0", Offset = "0xCE48D0", VA = "0x180CE5ED0")]
private string ExtractNameAsString(GeneralName name)
{
Asn1Object asn1Object = DerIA5String.GetInstance(name.obj).ToAsn1Object();
throw new NullReferenceException();
}
// Token: 0x06007FA6 RID: 32678 RVA: 0x001AD4E0 File Offset: 0x001AB6E0
[Token(Token = "0x6007FA6")]
[Address(RVA = "0xCE6610", Offset = "0xCE5010", VA = "0x180CE6610")]
public void IntersectEmptyPermittedSubtree(int nameType)
{
if (nameType - 1 <= 6)
{
HashSet hashSet = new HashSet();
this.permittedSubtreesEmail = hashSet;
return;
}
}
// Token: 0x06007FA7 RID: 32679 RVA: 0x001AD53C File Offset: 0x001AB73C
[Token(Token = "0x6007FA7")]
[Address(RVA = "0xCE4820", Offset = "0xCE3220", VA = "0x180CE4820")]
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: 0x06007FA8 RID: 32680 RVA: 0x001AD5F4 File Offset: 0x001AB7F4
[Token(Token = "0x6007FA8")]
[Address(RVA = "0xCE76E0", Offset = "0xCE60E0", VA = "0x180CE76E0")]
private static byte[] Max(byte[] ip1, byte[] ip2)
{
int num = 0;
int length = ip1.Length;
if (num < length)
{
num++;
return ip1;
}
return ip2;
}
// Token: 0x06007FA9 RID: 32681 RVA: 0x001AD61C File Offset: 0x001AB81C
[Token(Token = "0x6007FA9")]
[Address(RVA = "0xCE7B60", Offset = "0xCE6560", VA = "0x180CE7B60")]
private static byte[] Min(byte[] ip1, byte[] ip2)
{
int num = 0;
int length = ip1.Length;
if (num < length)
{
num++;
return ip1;
}
return ip2;
}
// Token: 0x06007FAA RID: 32682 RVA: 0x001AD644 File Offset: 0x001AB844
[Token(Token = "0x6007FAA")]
[Address(RVA = "0xCE56A0", Offset = "0xCE40A0", VA = "0x180CE56A0")]
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: 0x06007FAB RID: 32683 RVA: 0x001AD66C File Offset: 0x001AB86C
[Token(Token = "0x6007FAB")]
[Address(RVA = "0xCE7BE0", Offset = "0xCE65E0", VA = "0x180CE7BE0")]
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: 0x06007FAC RID: 32684 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6007FAC")]
[Address(RVA = "0xCE6010", Offset = "0xCE4A10", VA = "0x180CE6010")]
[Obsolete]
public int HashCode()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06007FAD RID: 32685 RVA: 0x001AD6A0 File Offset: 0x001AB8A0
[Token(Token = "0x6007FAD")]
[Address(RVA = "0xCE5F10", Offset = "0xCE4910", VA = "0x180CE5F10", 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: 0x06007FAE RID: 32686 RVA: 0x001AD790 File Offset: 0x001AB990
[Token(Token = "0x6007FAE")]
[Address(RVA = "0xCE6030", Offset = "0xCE4A30", VA = "0x180CE6030")]
private int HashCollection(ICollection coll)
{
if (coll != 0)
{
int num = 0;
int num2;
return num + num2;
}
return 0;
}
// Token: 0x06007FAF RID: 32687 RVA: 0x001AD7B0 File Offset: 0x001AB9B0
[Token(Token = "0x6007FAF")]
[Address(RVA = "0xCE5900", Offset = "0xCE4300", VA = "0x180CE5900", 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: 0x06007FB0 RID: 32688 RVA: 0x001AD800 File Offset: 0x001ABA00
[Token(Token = "0x6007FB0")]
[Address(RVA = "0xCE5540", Offset = "0xCE3F40", VA = "0x180CE5540")]
private bool CollectionsAreEqual(ICollection coll1, ICollection coll2)
{
if (coll1 != coll2 && coll1 != 0 && coll2 != 0)
{
bool flag;
while (!flag)
{
}
}
return true;
}
// Token: 0x06007FB1 RID: 32689 RVA: 0x001AD824 File Offset: 0x001ABA24
[Token(Token = "0x6007FB1")]
[Address(RVA = "0xCE7CB0", Offset = "0xCE66B0", VA = "0x180CE7CB0")]
private bool SpecialEquals(object o1, object o2)
{
if (o1 != o2)
{
if (o1 != 0 && o2 != 0)
{
bool flag;
return flag;
}
}
return true;
}
// Token: 0x06007FB2 RID: 32690 RVA: 0x001AD844 File Offset: 0x001ABA44
[Token(Token = "0x6007FB2")]
[Address(RVA = "0xCE8100", Offset = "0xCE6B00", VA = "0x180CE8100")]
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: 0x06007FB3 RID: 32691 RVA: 0x001AD8D8 File Offset: 0x001ABAD8
[Token(Token = "0x6007FB3")]
[Address(RVA = "0xCE7DB0", Offset = "0xCE67B0", VA = "0x180CE7DB0")]
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: 0x06007FB4 RID: 32692 RVA: 0x001AD9E4 File Offset: 0x001ABBE4
[Token(Token = "0x6007FB4")]
[Address(RVA = "0xCE8260", Offset = "0xCE6C60", VA = "0x180CE8260", 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: 0x04005AA7 RID: 23207
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005AA7")]
private ISet excludedSubtreesDN;
// Token: 0x04005AA8 RID: 23208
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005AA8")]
private ISet excludedSubtreesDNS;
// Token: 0x04005AA9 RID: 23209
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005AA9")]
private ISet excludedSubtreesEmail;
// Token: 0x04005AAA RID: 23210
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4005AAA")]
private ISet excludedSubtreesURI;
// Token: 0x04005AAB RID: 23211
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4005AAB")]
private ISet excludedSubtreesIP;
// Token: 0x04005AAC RID: 23212
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4005AAC")]
private ISet permittedSubtreesDN;
// Token: 0x04005AAD RID: 23213
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4005AAD")]
private ISet permittedSubtreesDNS;
// Token: 0x04005AAE RID: 23214
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4005AAE")]
private ISet permittedSubtreesEmail;
// Token: 0x04005AAF RID: 23215
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4005AAF")]
private ISet permittedSubtreesURI;
// Token: 0x04005AB0 RID: 23216
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4005AB0")]
private ISet permittedSubtreesIP;
}
}
@@ -0,0 +1,21 @@
using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x020013A5 RID: 5029
[Token(Token = "0x20013A5")]
[Serializable]
[StructLayout(3)]
public class PkixNameConstraintValidatorException : Exception
{
// Token: 0x06007FB5 RID: 32693 RVA: 0x001ADC18 File Offset: 0x001ABE18
[Token(Token = "0x6007FB5")]
[Address(RVA = "0xCE47B0", Offset = "0xCE31B0", VA = "0x180CE47B0")]
public PkixNameConstraintValidatorException(string msg)
: base(msg)
{
}
}
}
@@ -0,0 +1,971 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
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: 0x020013A6 RID: 5030
[Token(Token = "0x20013A6")]
[StructLayout(3)]
public class PkixParameters
{
// Token: 0x06007FB6 RID: 32694 RVA: 0x001ADC2C File Offset: 0x001ABE2C
[Token(Token = "0x6007FB6")]
[Address(RVA = "0xCEDA60", Offset = "0xCEC460", VA = "0x180CEDA60")]
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: 0x170014DD RID: 5341
// (get) Token: 0x06007FB7 RID: 32695 RVA: 0x001ADCD0 File Offset: 0x001ABED0
// (set) Token: 0x06007FB8 RID: 32696 RVA: 0x001ADCE4 File Offset: 0x001ABEE4
[Token(Token = "0x170014DD")]
public virtual bool IsRevocationEnabled
{
[Token(Token = "0x6007FB7")]
[Address(RVA = "0x651230", Offset = "0x64FC30", VA = "0x180651230", Slot = "4")]
get
{
return this.revocationEnabled;
}
[Token(Token = "0x6007FB8")]
[Address(RVA = "0x6C60C0", Offset = "0x6C4AC0", VA = "0x1806C60C0", Slot = "5")]
set
{
this.revocationEnabled = value;
}
}
// Token: 0x170014DE RID: 5342
// (get) Token: 0x06007FB9 RID: 32697 RVA: 0x001ADCF8 File Offset: 0x001ABEF8
// (set) Token: 0x06007FBA RID: 32698 RVA: 0x001ADD0C File Offset: 0x001ABF0C
[Token(Token = "0x170014DE")]
public virtual bool IsExplicitPolicyRequired
{
[Token(Token = "0x6007FB9")]
[Address(RVA = "0x52F470", Offset = "0x52DE70", VA = "0x18052F470", Slot = "6")]
get
{
return this.explicitPolicyRequired;
}
[Token(Token = "0x6007FBA")]
[Address(RVA = "0x52F720", Offset = "0x52E120", VA = "0x18052F720", Slot = "7")]
set
{
this.explicitPolicyRequired = value;
}
}
// Token: 0x170014DF RID: 5343
// (get) Token: 0x06007FBB RID: 32699 RVA: 0x001ADD20 File Offset: 0x001ABF20
// (set) Token: 0x06007FBC RID: 32700 RVA: 0x001ADD34 File Offset: 0x001ABF34
[Token(Token = "0x170014DF")]
public virtual bool IsAnyPolicyInhibited
{
[Token(Token = "0x6007FBB")]
[Address(RVA = "0x595D80", Offset = "0x594780", VA = "0x180595D80", Slot = "8")]
get
{
return this.anyPolicyInhibited;
}
[Token(Token = "0x6007FBC")]
[Address(RVA = "0x72B8E0", Offset = "0x72A2E0", VA = "0x18072B8E0", Slot = "9")]
set
{
this.anyPolicyInhibited = value;
}
}
// Token: 0x170014E0 RID: 5344
// (get) Token: 0x06007FBD RID: 32701 RVA: 0x001ADD48 File Offset: 0x001ABF48
// (set) Token: 0x06007FBE RID: 32702 RVA: 0x001ADD5C File Offset: 0x001ABF5C
[Token(Token = "0x170014E0")]
public virtual bool IsPolicyMappingInhibited
{
[Token(Token = "0x6007FBD")]
[Address(RVA = "0x595D70", Offset = "0x594770", VA = "0x180595D70", Slot = "10")]
get
{
return this.policyMappingInhibited;
}
[Token(Token = "0x6007FBE")]
[Address(RVA = "0x596160", Offset = "0x594B60", VA = "0x180596160", Slot = "11")]
set
{
this.policyMappingInhibited = value;
}
}
// Token: 0x170014E1 RID: 5345
// (get) Token: 0x06007FBF RID: 32703 RVA: 0x001ADD70 File Offset: 0x001ABF70
// (set) Token: 0x06007FC0 RID: 32704 RVA: 0x001ADD84 File Offset: 0x001ABF84
[Token(Token = "0x170014E1")]
public virtual bool IsPolicyQualifiersRejected
{
[Token(Token = "0x6007FBF")]
[Address(RVA = "0xCEDBA0", Offset = "0xCEC5A0", VA = "0x180CEDBA0", Slot = "12")]
get
{
return this.policyQualifiersRejected;
}
[Token(Token = "0x6007FC0")]
[Address(RVA = "0xCEDBC0", Offset = "0xCEC5C0", VA = "0x180CEDBC0", Slot = "13")]
set
{
this.policyQualifiersRejected = value;
}
}
// Token: 0x170014E2 RID: 5346
// (get) Token: 0x06007FC1 RID: 32705 RVA: 0x001ADD98 File Offset: 0x001ABF98
// (set) Token: 0x06007FC2 RID: 32706 RVA: 0x001ADDAC File Offset: 0x001ABFAC
[Token(Token = "0x170014E2")]
public virtual DateTimeObject Date
{
[Token(Token = "0x6007FC1")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "14")]
get
{
return this.date;
}
[Token(Token = "0x6007FC2")]
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280", Slot = "15")]
set
{
this.date = value;
}
}
// Token: 0x06007FC3 RID: 32707 RVA: 0x001ADDC0 File Offset: 0x001ABFC0
[Token(Token = "0x6007FC3")]
[Address(RVA = "0xCEC2F0", Offset = "0xCEACF0", VA = "0x180CEC2F0", Slot = "16")]
public virtual ISet GetTrustAnchors()
{
/*
An exception occurred when decompiling this method (06007FC3)
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 1663
*/;
}
// Token: 0x06007FC4 RID: 32708 RVA: 0x001ADDD8 File Offset: 0x001ABFD8
[Token(Token = "0x6007FC4")]
[Address(RVA = "0xCED560", Offset = "0xCEBF60", VA = "0x180CED560", Slot = "17")]
public virtual void SetTrustAnchors(ISet tas)
{
/*
An exception occurred when decompiling this method (06007FC4)
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_54:
stloc:ArgumentException(var_5_63, 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 1663
*/;
}
// Token: 0x06007FC5 RID: 32709 RVA: 0x001ADE4C File Offset: 0x001AC04C
[Token(Token = "0x6007FC5")]
[Address(RVA = "0xCEC1D0", Offset = "0xCEABD0", VA = "0x180CEC1D0", Slot = "18")]
public virtual X509CertStoreSelector GetTargetCertConstraints()
{
for (;;)
{
IX509Selector ix509Selector = this.certSelector;
if (ix509Selector == 0 || ix509Selector != 0)
{
return;
}
}
}
// Token: 0x06007FC6 RID: 32710 RVA: 0x001ADE70 File Offset: 0x001AC070
[Token(Token = "0x6007FC6")]
[Address(RVA = "0xCED420", Offset = "0xCEBE20", VA = "0x180CED420", Slot = "19")]
public virtual void SetTargetCertConstraints(IX509Selector selector)
{
if (selector != 0)
{
return;
}
int num = 0;
this.certSelector = num;
}
// Token: 0x06007FC7 RID: 32711 RVA: 0x001ADE8C File Offset: 0x001AC08C
[Token(Token = "0x6007FC7")]
[Address(RVA = "0xCEC030", Offset = "0xCEAA30", VA = "0x180CEC030", Slot = "20")]
public virtual ISet GetInitialPolicies()
{
/*
An exception occurred when decompiling this method (06007FC7)
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 1663
*/;
}
// Token: 0x06007FC8 RID: 32712 RVA: 0x001ADEB0 File Offset: 0x001AC0B0
[Token(Token = "0x6007FC8")]
[Address(RVA = "0xCEC8D0", Offset = "0xCEB2D0", VA = "0x180CEC8D0", 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_4E;
}
ISet set = this.initialPolicies;
num++;
num += 19;
}
if (num != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return;
IL_4E:
throw new NullReferenceException();
}
// Token: 0x06007FC9 RID: 32713 RVA: 0x001ADF10 File Offset: 0x001AC110
[Token(Token = "0x6007FC9")]
[Address(RVA = "0xCEC620", Offset = "0xCEB020", VA = "0x180CEC620", 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_75;
}
IList list2 = this.certPathCheckers;
if (num < num)
{
num += num;
num++;
}
bool flag;
flag += flag;
num += 2;
num += 19;
}
if (num != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return;
IL_75:
throw new NullReferenceException();
}
// Token: 0x06007FCA RID: 32714 RVA: 0x001ADF98 File Offset: 0x001AC198
[Token(Token = "0x6007FCA")]
[Address(RVA = "0xCEBD70", Offset = "0xCEA770", VA = "0x180CEBD70", 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_5F;
}
if (num < list)
{
num += num;
num++;
}
num += 2;
num += 19;
}
if (num != 0)
{
}
if (num != -1)
{
}
}
while (num != 0);
return list;
IL_5F:
throw new NullReferenceException();
}
// Token: 0x06007FCB RID: 32715 RVA: 0x001AE010 File Offset: 0x001AC210
[Token(Token = "0x6007FCB")]
[Address(RVA = "0xCEBA30", Offset = "0xCEA430", VA = "0x180CEBA30", Slot = "24")]
public virtual void AddCertPathChecker(PkixCertPathChecker checker)
{
if (checker != 0)
{
IList list = this.certPathCheckers;
}
}
// Token: 0x06007FCC RID: 32716 RVA: 0x001AE030 File Offset: 0x001AC230
[Token(Token = "0x6007FCC")]
[Address(RVA = "0xCEBB10", Offset = "0xCEA510", VA = "0x180CEBB10", Slot = "25")]
public virtual object Clone()
{
/*
An exception occurred when decompiling this method (06007FCC)
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 1663
*/;
}
// Token: 0x06007FCD RID: 32717 RVA: 0x001AE0D8 File Offset: 0x001AC2D8
[Token(Token = "0x6007FCD")]
[Address(RVA = "0xCECCB0", Offset = "0xCEB6B0", VA = "0x180CECCB0", 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: 0x170014E3 RID: 5347
// (get) Token: 0x06007FCE RID: 32718 RVA: 0x001AE204 File Offset: 0x001AC404
// (set) Token: 0x06007FCF RID: 32719 RVA: 0x001AE218 File Offset: 0x001AC418
[Token(Token = "0x170014E3")]
public virtual bool IsUseDeltasEnabled
{
[Token(Token = "0x6007FCE")]
[Address(RVA = "0xCEDBB0", Offset = "0xCEC5B0", VA = "0x180CEDBB0", Slot = "27")]
get
{
return this.useDeltas;
}
[Token(Token = "0x6007FCF")]
[Address(RVA = "0xCEDBD0", Offset = "0xCEC5D0", VA = "0x180CEDBD0", Slot = "28")]
set
{
this.useDeltas = value;
}
}
// Token: 0x170014E4 RID: 5348
// (get) Token: 0x06007FD0 RID: 32720 RVA: 0x001AE22C File Offset: 0x001AC42C
// (set) Token: 0x06007FD1 RID: 32721 RVA: 0x001AE240 File Offset: 0x001AC440
[Token(Token = "0x170014E4")]
public virtual int ValidityModel
{
[Token(Token = "0x6007FD0")]
[Address(RVA = "0x54D7F0", Offset = "0x54C1F0", VA = "0x18054D7F0", Slot = "29")]
get
{
return this.validityModel;
}
[Token(Token = "0x6007FD1")]
[Address(RVA = "0xA07390", Offset = "0xA05D90", VA = "0x180A07390", Slot = "30")]
set
{
this.validityModel = value;
}
}
// Token: 0x06007FD2 RID: 32722 RVA: 0x001AE254 File Offset: 0x001AC454
[Token(Token = "0x6007FD2")]
[Address(RVA = "0xCED1E0", Offset = "0xCEBBE0", VA = "0x180CED1E0", Slot = "31")]
public virtual void SetStores(IList stores)
{
int num;
do
{
num = 0;
if (stores == 0)
{
goto IL_15;
}
if (num != -1)
{
}
}
while (num != 0);
IList list = Platform.CreateArrayList(stores);
IL_15:
IList list2 = Platform.CreateArrayList();
this.stores = list2;
}
// Token: 0x06007FD3 RID: 32723 RVA: 0x001AE2A8 File Offset: 0x001AC4A8
[Token(Token = "0x6007FD3")]
[Address(RVA = "0xCEBAB0", Offset = "0xCEA4B0", VA = "0x180CEBAB0", Slot = "32")]
public virtual void AddStore(IX509Store store)
{
if (store != 0)
{
IList list = this.stores;
}
}
// Token: 0x06007FD4 RID: 32724 RVA: 0x001AE2C8 File Offset: 0x001AC4C8
[Token(Token = "0x6007FD4")]
[Address(RVA = "0xCEB9D0", Offset = "0xCEA3D0", VA = "0x180CEB9D0", Slot = "33")]
public virtual void AddAdditionalStore(IX509Store store)
{
if (store != 0)
{
IList list = this.additionalStores;
}
}
// Token: 0x06007FD5 RID: 32725 RVA: 0x001AE2E8 File Offset: 0x001AC4E8
[Token(Token = "0x6007FD5")]
[Address(RVA = "0xCEBCB0", Offset = "0xCEA6B0", VA = "0x180CEBCB0", Slot = "34")]
public virtual IList GetAdditionalStores()
{
return Platform.CreateArrayList(this.additionalStores);
}
// Token: 0x06007FD6 RID: 32726 RVA: 0x001AE300 File Offset: 0x001AC500
[Token(Token = "0x6007FD6")]
[Address(RVA = "0xCEC170", Offset = "0xCEAB70", VA = "0x180CEC170", Slot = "35")]
public virtual IList GetStores()
{
return Platform.CreateArrayList(this.stores);
}
// Token: 0x170014E5 RID: 5349
// (get) Token: 0x06007FD7 RID: 32727 RVA: 0x001AE318 File Offset: 0x001AC518
[Token(Token = "0x170014E5")]
public virtual bool IsAdditionalLocationsEnabled
{
[Token(Token = "0x6007FD7")]
[Address(RVA = "0x566D70", Offset = "0x565770", VA = "0x180566D70", Slot = "36")]
get
{
return this.additionalLocationsEnabled;
}
}
// Token: 0x06007FD8 RID: 32728 RVA: 0x001AE32C File Offset: 0x001AC52C
[Token(Token = "0x6007FD8")]
[Address(RVA = "0x566E50", Offset = "0x565850", VA = "0x180566E50", Slot = "37")]
public virtual void SetAdditionalLocationsEnabled(bool enabled)
{
this.additionalLocationsEnabled = enabled;
}
// Token: 0x06007FD9 RID: 32729 RVA: 0x001AE340 File Offset: 0x001AC540
[Token(Token = "0x6007FD9")]
[Address(RVA = "0xCEC270", Offset = "0xCEAC70", VA = "0x180CEC270", Slot = "38")]
public virtual IX509Selector GetTargetConstraints()
{
while (this.selector != 0)
{
}
}
// Token: 0x06007FDA RID: 32730 RVA: 0x001AE358 File Offset: 0x001AC558
[Token(Token = "0x6007FDA")]
[Address(RVA = "0xCED4C0", Offset = "0xCEBEC0", VA = "0x180CED4C0", Slot = "39")]
public virtual void SetTargetConstraints(IX509Selector selector)
{
if (selector == 0)
{
int num = 0;
this.selector = num;
return;
}
}
// Token: 0x06007FDB RID: 32731 RVA: 0x001AE374 File Offset: 0x001AC574
[Token(Token = "0x6007FDB")]
[Address(RVA = "0xCEC350", Offset = "0xCEAD50", VA = "0x180CEC350", Slot = "40")]
public virtual ISet GetTrustedACIssuers()
{
/*
An exception occurred when decompiling this method (06007FDB)
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 1663
*/;
}
// Token: 0x06007FDC RID: 32732 RVA: 0x001AE38C File Offset: 0x001AC58C
[Token(Token = "0x6007FDC")]
[Address(RVA = "0xCED800", Offset = "0xCEC200", VA = "0x180CED800", Slot = "41")]
public virtual void SetTrustedACIssuers(ISet trustedACIssuers)
{
int num;
do
{
num = 0;
if (trustedACIssuers == 0)
{
goto IL_17;
}
if (num != -1)
{
}
}
while (num != 0);
HashSet hashSet = new HashSet(trustedACIssuers);
IL_17:
HashSet hashSet2 = new HashSet();
this.trustedACIssuers = hashSet2;
}
// Token: 0x06007FDD RID: 32733 RVA: 0x001AE3E0 File Offset: 0x001AC5E0
[Token(Token = "0x6007FDD")]
[Address(RVA = "0xCEC0B0", Offset = "0xCEAAB0", VA = "0x180CEC0B0", Slot = "42")]
public virtual ISet GetNecessaryACAttributes()
{
/*
An exception occurred when decompiling this method (06007FDD)
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 1663
*/;
}
// Token: 0x06007FDE RID: 32734 RVA: 0x001AE3F8 File Offset: 0x001AC5F8
[Token(Token = "0x6007FDE")]
[Address(RVA = "0xCECAD0", Offset = "0xCEB4D0", VA = "0x180CECAD0", Slot = "43")]
public virtual void SetNecessaryACAttributes(ISet necessaryACAttributes)
{
int num;
do
{
num = 0;
if (necessaryACAttributes == 0)
{
goto IL_15;
}
if (num != -1)
{
}
}
while (num != 0);
HashSet hashSet = new HashSet(necessaryACAttributes);
IL_15:
HashSet hashSet2 = new HashSet();
this.necessaryACAttributes = hashSet2;
}
// Token: 0x06007FDF RID: 32735 RVA: 0x001AE438 File Offset: 0x001AC638
[Token(Token = "0x6007FDF")]
[Address(RVA = "0xCEC110", Offset = "0xCEAB10", VA = "0x180CEC110", Slot = "44")]
public virtual ISet GetProhibitedACAttributes()
{
/*
An exception occurred when decompiling this method (06007FDF)
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 1663
*/;
}
// Token: 0x06007FE0 RID: 32736 RVA: 0x001AE450 File Offset: 0x001AC650
[Token(Token = "0x6007FE0")]
[Address(RVA = "0xCED000", Offset = "0xCEBA00", VA = "0x180CED000", Slot = "45")]
public virtual void SetProhibitedACAttributes(ISet prohibitedACAttributes)
{
int num;
do
{
num = 0;
if (prohibitedACAttributes == 0)
{
goto IL_15;
}
if (num != -1)
{
}
}
while (num != 0);
HashSet hashSet = new HashSet(prohibitedACAttributes);
IL_15:
HashSet hashSet2 = new HashSet();
this.prohibitedACAttributes = hashSet2;
}
// Token: 0x06007FE1 RID: 32737 RVA: 0x001AE490 File Offset: 0x001AC690
[Token(Token = "0x6007FE1")]
[Address(RVA = "0xCEBD10", Offset = "0xCEA710", VA = "0x180CEBD10", Slot = "46")]
public virtual ISet GetAttrCertCheckers()
{
/*
An exception occurred when decompiling this method (06007FE1)
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 1663
*/;
}
// Token: 0x06007FE2 RID: 32738 RVA: 0x001AE4A8 File Offset: 0x001AC6A8
[Token(Token = "0x6007FE2")]
[Address(RVA = "0xCEC3B0", Offset = "0xCEADB0", VA = "0x180CEC3B0", Slot = "47")]
public virtual void SetAttrCertCheckers(ISet attrCertCheckers)
{
int num;
do
{
num = 0;
if (attrCertCheckers == 0)
{
goto IL_17;
}
if (num != -1)
{
}
}
while (num != 0);
HashSet hashSet = new HashSet(attrCertCheckers);
IL_17:
HashSet hashSet2 = new HashSet();
this.attrCertCheckers = hashSet2;
}
// Token: 0x04005AB1 RID: 23217
[Token(Token = "0x4005AB1")]
public const int PkixValidityModel = 0;
// Token: 0x04005AB2 RID: 23218
[Token(Token = "0x4005AB2")]
public const int ChainValidityModel = 1;
// Token: 0x04005AB3 RID: 23219
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005AB3")]
private ISet trustAnchors;
// Token: 0x04005AB4 RID: 23220
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005AB4")]
private DateTimeObject date;
// Token: 0x04005AB5 RID: 23221
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005AB5")]
private IList certPathCheckers;
// Token: 0x04005AB6 RID: 23222
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4005AB6")]
private bool revocationEnabled = true;
// Token: 0x04005AB7 RID: 23223
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4005AB7")]
private ISet initialPolicies;
// Token: 0x04005AB8 RID: 23224
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4005AB8")]
private bool explicitPolicyRequired;
// Token: 0x04005AB9 RID: 23225
[global::Cpp2IlInjected.FieldOffset(Offset = "0x39")]
[Token(Token = "0x4005AB9")]
private bool anyPolicyInhibited;
// Token: 0x04005ABA RID: 23226
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3A")]
[Token(Token = "0x4005ABA")]
private bool policyMappingInhibited;
// Token: 0x04005ABB RID: 23227
[global::Cpp2IlInjected.FieldOffset(Offset = "0x3B")]
[Token(Token = "0x4005ABB")]
private bool policyQualifiersRejected = true;
// Token: 0x04005ABC RID: 23228
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4005ABC")]
private IX509Selector certSelector;
// Token: 0x04005ABD RID: 23229
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4005ABD")]
private IList stores;
// Token: 0x04005ABE RID: 23230
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4005ABE")]
private IX509Selector selector;
// Token: 0x04005ABF RID: 23231
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4005ABF")]
private bool additionalLocationsEnabled;
// Token: 0x04005AC0 RID: 23232
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
[Token(Token = "0x4005AC0")]
private IList additionalStores;
// Token: 0x04005AC1 RID: 23233
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
[Token(Token = "0x4005AC1")]
private ISet trustedACIssuers;
// Token: 0x04005AC2 RID: 23234
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
[Token(Token = "0x4005AC2")]
private ISet necessaryACAttributes;
// Token: 0x04005AC3 RID: 23235
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
[Token(Token = "0x4005AC3")]
private ISet prohibitedACAttributes;
// Token: 0x04005AC4 RID: 23236
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
[Token(Token = "0x4005AC4")]
private ISet attrCertCheckers;
// Token: 0x04005AC5 RID: 23237
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
[Token(Token = "0x4005AC5")]
private int validityModel;
// Token: 0x04005AC6 RID: 23238
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8C")]
[Token(Token = "0x4005AC6")]
private bool useDeltas;
}
}
@@ -0,0 +1,382 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
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: 0x020013A7 RID: 5031
[Token(Token = "0x20013A7")]
[StructLayout(3)]
public class PkixPolicyNode
{
// Token: 0x170014E6 RID: 5350
// (get) Token: 0x06007FE3 RID: 32739 RVA: 0x001AE4FC File Offset: 0x001AC6FC
[Token(Token = "0x170014E6")]
public virtual int Depth
{
[Token(Token = "0x6007FE3")]
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0", Slot = "4")]
get
{
return this.mDepth;
}
}
// Token: 0x170014E7 RID: 5351
// (get) Token: 0x06007FE4 RID: 32740 RVA: 0x001AE510 File Offset: 0x001AC710
[Token(Token = "0x170014E7")]
public virtual IEnumerable Children
{
[Token(Token = "0x6007FE4")]
[Address(RVA = "0xCEE4E0", Offset = "0xCECEE0", VA = "0x180CEE4E0", Slot = "5")]
get
{
/*
An exception occurred when decompiling this method (06007FE4)
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 1663
*/;
}
}
// Token: 0x170014E8 RID: 5352
// (get) Token: 0x06007FE5 RID: 32741 RVA: 0x001AE528 File Offset: 0x001AC728
// (set) Token: 0x06007FE6 RID: 32742 RVA: 0x001AE53C File Offset: 0x001AC73C
[Token(Token = "0x170014E8")]
public virtual bool IsCritical
{
[Token(Token = "0x6007FE5")]
[Address(RVA = "0x421DE0", Offset = "0x4207E0", VA = "0x180421DE0", Slot = "6")]
get
{
return this.mCritical;
}
[Token(Token = "0x6007FE6")]
[Address(RVA = "0x421DF0", Offset = "0x4207F0", VA = "0x180421DF0", Slot = "7")]
set
{
this.mCritical = value;
}
}
// Token: 0x170014E9 RID: 5353
// (get) Token: 0x06007FE7 RID: 32743 RVA: 0x001AE550 File Offset: 0x001AC750
[Token(Token = "0x170014E9")]
public virtual ISet PolicyQualifiers
{
[Token(Token = "0x6007FE7")]
[Address(RVA = "0xCEE5F0", Offset = "0xCECFF0", VA = "0x180CEE5F0", Slot = "8")]
get
{
/*
An exception occurred when decompiling this method (06007FE7)
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 1663
*/;
}
}
// Token: 0x170014EA RID: 5354
// (get) Token: 0x06007FE8 RID: 32744 RVA: 0x001AE568 File Offset: 0x001AC768
[Token(Token = "0x170014EA")]
public virtual string ValidPolicy
{
[Token(Token = "0x6007FE8")]
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0", Slot = "9")]
get
{
return this.mValidPolicy;
}
}
// Token: 0x170014EB RID: 5355
// (get) Token: 0x06007FE9 RID: 32745 RVA: 0x001AE57C File Offset: 0x001AC77C
[Token(Token = "0x170014EB")]
public virtual bool HasChildren
{
[Token(Token = "0x6007FE9")]
[Address(RVA = "0xCEE5A0", Offset = "0xCECFA0", VA = "0x180CEE5A0", Slot = "10")]
get
{
IList list = this.mChildren;
bool flag;
return flag;
}
}
// Token: 0x170014EC RID: 5356
// (get) Token: 0x06007FEA RID: 32746 RVA: 0x001AE598 File Offset: 0x001AC798
// (set) Token: 0x06007FEB RID: 32747 RVA: 0x001AE5B0 File Offset: 0x001AC7B0
[Token(Token = "0x170014EC")]
public virtual ISet ExpectedPolicies
{
[Token(Token = "0x6007FEA")]
[Address(RVA = "0xCEE540", Offset = "0xCECF40", VA = "0x180CEE540", Slot = "11")]
get
{
/*
An exception occurred when decompiling this method (06007FEA)
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 1663
*/;
}
[Token(Token = "0x6007FEB")]
[Address(RVA = "0xCEE650", Offset = "0xCED050", VA = "0x180CEE650", Slot = "12")]
set
{
HashSet hashSet = new HashSet(value);
this.mExpectedPolicies = hashSet;
}
}
// Token: 0x170014ED RID: 5357
// (get) Token: 0x06007FEC RID: 32748 RVA: 0x001AE5CC File Offset: 0x001AC7CC
// (set) Token: 0x06007FED RID: 32749 RVA: 0x001AE5E0 File Offset: 0x001AC7E0
[Token(Token = "0x170014ED")]
public virtual PkixPolicyNode Parent
{
[Token(Token = "0x6007FEC")]
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "13")]
get
{
return this.mParent;
}
[Token(Token = "0x6007FED")]
[Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270", Slot = "14")]
set
{
this.mParent = value;
}
}
// Token: 0x06007FEE RID: 32750 RVA: 0x001AE5F4 File Offset: 0x001AC7F4
[Token(Token = "0x6007FEE")]
[Address(RVA = "0xCEE400", Offset = "0xCECE00", VA = "0x180CEE400")]
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: 0x06007FEF RID: 32751 RVA: 0x001AE64C File Offset: 0x001AC84C
[Token(Token = "0x6007FEF")]
[Address(RVA = "0xCEDBE0", Offset = "0xCEC5E0", VA = "0x180CEDBE0", Slot = "15")]
public virtual void AddChild(PkixPolicyNode child)
{
PkixPolicyNode parent = child.Parent;
IList list = this.mChildren;
throw new NullReferenceException();
}
// Token: 0x06007FF0 RID: 32752 RVA: 0x001AE66C File Offset: 0x001AC86C
[Token(Token = "0x6007FF0")]
[Address(RVA = "0xCEDFD0", Offset = "0xCEC9D0", VA = "0x180CEDFD0", Slot = "16")]
public virtual void RemoveChild(PkixPolicyNode child)
{
IList list = this.mChildren;
throw new NullReferenceException();
}
// Token: 0x06007FF1 RID: 32753 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6007FF1")]
[Address(RVA = "0xCEE3B0", Offset = "0xCECDB0", VA = "0x180CEE3B0", Slot = "3")]
public override string ToString()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06007FF2 RID: 32754 RVA: 0x001AE688 File Offset: 0x001AC888
[Token(Token = "0x6007FF2")]
[Address(RVA = "0xCEE030", Offset = "0xCECA30", VA = "0x180CEE030", 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_C3;
}
string text2 = indent + " ";
if (stringBuilder.Append(text2) != 0)
{
}
if (num != -1)
{
}
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_C3:
throw new NullReferenceException();
}
// Token: 0x06007FF3 RID: 32755 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6007FF3")]
[Address(RVA = "0x82C560", Offset = "0x82AF60", VA = "0x18082C560", Slot = "18")]
public virtual object Clone()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06007FF4 RID: 32756 RVA: 0x001AE760 File Offset: 0x001AC960
[Token(Token = "0x6007FF4")]
[Address(RVA = "0xCEDC60", Offset = "0xCEC660", VA = "0x180CEDC60", 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_7F;
}
}
if (num != -1)
{
}
}
while (num != 0);
return pkixPolicyNode;
IL_7F:
throw new NullReferenceException();
}
// Token: 0x04005AC7 RID: 23239
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005AC7")]
protected IList mChildren;
// Token: 0x04005AC8 RID: 23240
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005AC8")]
protected int mDepth;
// Token: 0x04005AC9 RID: 23241
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005AC9")]
protected ISet mExpectedPolicies;
// Token: 0x04005ACA RID: 23242
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4005ACA")]
protected PkixPolicyNode mParent;
// Token: 0x04005ACB RID: 23243
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4005ACB")]
protected ISet mPolicyQualifiers;
// Token: 0x04005ACC RID: 23244
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4005ACC")]
protected string mValidPolicy;
// Token: 0x04005ACD RID: 23245
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4005ACD")]
protected bool mCritical;
}
}
@@ -0,0 +1,102 @@
using System;
using System.Runtime.InteropServices;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
{
// Token: 0x020013A8 RID: 5032
[Token(Token = "0x20013A8")]
[StructLayout(3)]
internal class ReasonsMask
{
// Token: 0x06007FF5 RID: 32757 RVA: 0x001AE7F8 File Offset: 0x001AC9F8
[Token(Token = "0x6007FF5")]
[Address(RVA = "0x3E46E0", Offset = "0x3E30E0", VA = "0x1803E46E0")]
internal ReasonsMask(int reasons)
{
this._reasons = reasons;
}
// Token: 0x06007FF6 RID: 32758 RVA: 0x001AE814 File Offset: 0x001ACA14
[Token(Token = "0x6007FF6")]
[Address(RVA = "0xCEE960", Offset = "0xCED360", VA = "0x180CEE960")]
internal ReasonsMask()
{
this._reasons = (int)((ulong)0L);
}
// Token: 0x06007FF7 RID: 32759 RVA: 0x001AE830 File Offset: 0x001ACA30
[Token(Token = "0x6007FF7")]
[Address(RVA = "0xCEE6C0", Offset = "0xCED0C0", VA = "0x180CEE6C0")]
internal void AddReasons(ReasonsMask mask)
{
int padBits = new ReasonFlags(mask._reasons).PadBits;
this._reasons = padBits;
}
// Token: 0x170014EE RID: 5358
// (get) Token: 0x06007FF8 RID: 32760 RVA: 0x001AE85C File Offset: 0x001ACA5C
[Token(Token = "0x170014EE")]
internal bool IsAllReasons
{
[Token(Token = "0x6007FF8")]
[Address(RVA = "0xCEE980", Offset = "0xCED380", VA = "0x180CEE980")]
get
{
int reasons = this._reasons;
ReasonsMask allReasons = ReasonsMask.AllReasons;
return reasons == allReasons._reasons;
}
}
// Token: 0x06007FF9 RID: 32761 RVA: 0x001AE888 File Offset: 0x001ACA88
[Token(Token = "0x6007FF9")]
[Address(RVA = "0xCEE800", Offset = "0xCED200", VA = "0x180CEE800")]
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: 0x06007FFA RID: 32762 RVA: 0x001AE8D0 File Offset: 0x001ACAD0
[Token(Token = "0x6007FFA")]
[Address(RVA = "0xCEE760", Offset = "0xCED160", VA = "0x180CEE760")]
internal bool HasNewReasons(ReasonsMask mask)
{
int padBits = new ReasonFlags(mask._reasons).PadBits;
throw new NullReferenceException();
}
// Token: 0x170014EF RID: 5359
// (get) Token: 0x06007FFB RID: 32763 RVA: 0x001AE8F4 File Offset: 0x001ACAF4
[Token(Token = "0x170014EF")]
public ReasonFlags Reasons
{
[Token(Token = "0x6007FFB")]
[Address(RVA = "0xCEE9F0", Offset = "0xCED3F0", VA = "0x180CEE9F0")]
get
{
return new ReasonFlags(this._reasons);
}
}
// Token: 0x04005ACE RID: 23246
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005ACE")]
private int _reasons;
// Token: 0x04005ACF RID: 23247
[Token(Token = "0x4005ACF")]
internal static readonly ReasonsMask AllReasons = new ReasonsMask
{
_reasons = (int)((ulong)33023L)
};
}
}
@@ -0,0 +1,1530 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
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: 0x020013A9 RID: 5033
[Token(Token = "0x20013A9")]
[StructLayout(3)]
public class Rfc3280CertPathUtilities
{
// Token: 0x06007FFD RID: 32765 RVA: 0x001AE934 File Offset: 0x001ACB34
[Token(Token = "0x6007FFD")]
[Address(RVA = "0xCF5220", Offset = "0xCF3C20", VA = "0x180CF5220")]
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:
int num2;
if (distributionPoint.type == 1)
{
int version = crl.Version;
byte[] array;
IEnumerator enumerator = Asn1Sequence.GetInstance(Asn1Object.FromByteArray(array)).GetEnumerator();
Asn1EncodableVector asn1EncodableVector;
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_2C0;
}
}
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)));
}
DistributionPointName distributionPoint2 = dp.distributionPoint;
if (distributionPoint2 == 0)
{
GeneralNames cRLIssuer = dp.cRLIssuer;
if (cRLIssuer == 0)
{
continue;
}
int length2 = cRLIssuer.GetNames().Length;
if (num2 >= length2)
{
continue;
}
if (num2 != 0)
{
goto IL_267;
}
num2++;
}
int type;
if (distributionPoint2.type == 0)
{
GeneralName[] names2 = GeneralNames.GetInstance(distributionPoint2.name).GetNames();
type = distributionPoint2.type;
}
GeneralName[] array5;
int num4;
if (type == 1)
{
if (dp.cRLIssuer == 0)
{
GeneralName[] array4 = new GeneralName[type];
X509Name x509Name;
GeneralName generalName2 = new GeneralName(x509Name);
if (generalName2 != 0)
{
}
array4[0] = generalName2;
}
int length3 = array5.Length;
if (num2 < length3)
{
break;
}
num4 = 0;
}
if (array5 == 0)
{
continue;
}
int length4 = array5.Length;
if (num4 >= length4)
{
continue;
}
if (length4 == 0)
{
num4++;
}
goto IL_267;
IL_70:
num2 = 0;
goto IL_73;
}
IL_267:
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 num5;
IEnumerator enumerator2 = Asn1Sequence.GetInstance(num5).GetEnumerator();
Asn1EncodableVector asn1EncodableVector2;
if (asn1EncodableVector2 != 0)
{
Asn1Encodable[] array6 = new Asn1Encodable[1];
throw new ArrayTypeMismatchException();
}
ArrayTypeMismatchException ex;
string className = ex._className;
throw new ArrayTypeMismatchException();
IL_2C0:
throw new IndexOutOfRangeException();
}
// Token: 0x06007FFE RID: 32766 RVA: 0x001AEC18 File Offset: 0x001ACE18
[Token(Token = "0x6007FFE")]
[Address(RVA = "0xCF2E40", Offset = "0xCF1840", VA = "0x180CF2E40")]
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_D7;
}
generalName = new GeneralName(1, num);
nameConstraintValidator.checkPermitted(generalName);
nameConstraintValidator.checkExcluded(generalName);
}
num3 = 0;
if (generalName != 0)
{
}
if (num != -1)
{
}
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_D7:
throw new NullReferenceException();
}
// Token: 0x06007FFF RID: 32767 RVA: 0x001AED04 File Offset: 0x001ACF04
[Token(Token = "0x6007FFF")]
[Address(RVA = "0xCF0CB0", Offset = "0xCEF6B0", VA = "0x180CF0CB0")]
internal static void PrepareNextCertA(PkixCertPath certPath, int index)
{
/*
An exception occurred when decompiling this method (06007FFF)
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 1663
*/;
}
// Token: 0x06008000 RID: 32768 RVA: 0x001AEDB4 File Offset: 0x001ACFB4
[Token(Token = "0x6008000")]
[Address(RVA = "0xCF34B0", Offset = "0xCF1EB0", VA = "0x180CF34B0")]
internal static PkixPolicyNode ProcessCertD(PkixCertPath certPath, int index, ISet acceptablePolicies, PkixPolicyNode validPolicyTree, IList[] policyNodes, int inhibitAnyPolicy)
{
for (;;)
{
byte[] array;
if (array == 0)
{
}
if (array != 0)
{
array -= index;
Asn1Object asn1Object;
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
if (instance == 0)
{
goto IL_174;
}
HashSet hashSet = new HashSet();
bool flag;
if (instance.GetEnumerator() != 0)
{
PolicyInformation policyInformation;
DerObjectIdentifier 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)
{
}
}
int num = 0;
if (flag)
{
}
if (num == -1)
{
goto IL_8C;
}
HashSet hashSet2;
if (num == 0)
{
hashSet2 = new HashSet();
if (hashSet2 != 0)
{
while (hashSet2 == 0)
{
}
goto IL_8C;
}
goto IL_94;
}
IL_A8:
bool flag2;
if (!flag2)
{
break;
}
HashSet hashSet3;
if (instance.GetEnumerator() != 0)
{
string any_POLICY2 = Rfc3280CertPathUtilities.ANY_POLICY;
PolicyInformation policyInformation2;
string identifier2 = policyInformation2.policyIdentifier.identifier;
if (!any_POLICY2.Equals(identifier2))
{
continue;
}
ISet qualifierSet2 = PkixCertPathValidatorUtilities.GetQualifierSet(policyInformation2.policyQualifiers);
if (0 < qualifierSet2 && qualifierSet2 != 0)
{
if (qualifierSet2 != 0 && qualifierSet2 != 0 && qualifierSet2 == 0)
{
goto IL_1B0;
}
while (qualifierSet2 == 0)
{
}
bool flag3;
while (!flag3)
{
}
if (acceptablePolicies != 0)
{
}
if (acceptablePolicies != (ulong)(-1L))
{
ulong num2;
while (num2 != (ulong)0L)
{
}
hashSet3 = new HashSet();
IList list = Platform.CreateArrayList();
}
}
}
PkixPolicyNode pkixPolicyNode;
if (pkixPolicyNode != 0)
{
}
if (pkixPolicyNode != (ulong)(-1L))
{
}
if (hashSet3 == 0)
{
break;
}
continue;
IL_94:
if (hashSet2 != 0)
{
}
if (hashSet2 != (ulong)(-1L))
{
}
if (hashSet == 0)
{
goto IL_A8;
}
goto IL_1B0;
IL_8C:
if (hashSet2 == 0)
{
goto IL_94;
}
goto IL_19E;
}
}
int num3 = 0;
PkixPolicyNode pkixPolicyNode2;
if (num3 < acceptablePolicies && (acceptablePolicies != 0 || pkixPolicyNode2 != 0))
{
num3++;
}
DerObjectIdentifier certificatePolicies = X509Extensions.CertificatePolicies;
if (num3 < acceptablePolicies)
{
num3++;
}
IL_174:
throw new NullReferenceException();
IL_19E:
throw new NullReferenceException();
IL_1B0:
throw new NullReferenceException();
}
// Token: 0x06008001 RID: 32769 RVA: 0x001AEFF0 File Offset: 0x001AD1F0
[Token(Token = "0x6008001")]
[Address(RVA = "0xCF4E70", Offset = "0xCF3870", VA = "0x180CF4E70")]
internal static void ProcessCrlB1(DistributionPoint dp, object cert, X509Crl crl)
{
/*
An exception occurred when decompiling this method (06008001)
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 1663
*/;
}
// Token: 0x06008002 RID: 32770 RVA: 0x001AF0A4 File Offset: 0x001AD2A4
[Token(Token = "0x6008002")]
[Address(RVA = "0xCF6430", Offset = "0xCF4E30", VA = "0x180CF6430")]
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: 0x06008003 RID: 32771 RVA: 0x001AF188 File Offset: 0x001AD388
[Token(Token = "0x6008003")]
[Address(RVA = "0xCF6750", Offset = "0xCF5150", VA = "0x180CF6750")]
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: 0x06008004 RID: 32772 RVA: 0x001AF2C0 File Offset: 0x001AD4C0
[Token(Token = "0x6008004")]
[Address(RVA = "0xCF6FC0", Offset = "0xCF59C0", VA = "0x180CF6FC0")]
internal static AsymmetricKeyParameter ProcessCrlG(X509Crl crl, ISet keys)
{
/*
An exception occurred when decompiling this method (06008004)
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_3C:
stloc:Exception(var_4_47, 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.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06008005 RID: 32773 RVA: 0x001AF318 File Offset: 0x001AD518
[Token(Token = "0x6008005")]
[Address(RVA = "0xCF7210", Offset = "0xCF5C10", VA = "0x180CF7210")]
internal static X509Crl ProcessCrlH(ISet deltaCrls, AsymmetricKeyParameter key)
{
/*
An exception occurred when decompiling this method (06008005)
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_3C:
stloc:Exception(var_5_47, 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 1663
*/;
}
// Token: 0x06008006 RID: 32774 RVA: 0x001AF370 File Offset: 0x001AD570
[Token(Token = "0x6008006")]
[Address(RVA = "0xCEEA50", Offset = "0xCED450", VA = "0x180CEEA50")]
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: 0x06008007 RID: 32775 RVA: 0x001AF464 File Offset: 0x001AD664
[Token(Token = "0x6008007")]
[Address(RVA = "0xCEF1E0", Offset = "0xCEDBE0", VA = "0x180CEF1E0")]
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: 0x06008008 RID: 32776 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6008008")]
[Address(RVA = "0xCEF8F0", Offset = "0xCEE2F0", VA = "0x180CEF8F0")]
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: 0x06008009 RID: 32777 RVA: 0x001AF594 File Offset: 0x001AD794
[Token(Token = "0x6008009")]
[Address(RVA = "0xCF4B20", Offset = "0xCF3520", VA = "0x180CF4B20")]
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: 0x0600800A RID: 32778 RVA: 0x001AF620 File Offset: 0x001AD820
[Token(Token = "0x600800A")]
[Address(RVA = "0xCF4810", Offset = "0xCF3210", VA = "0x180CF4810")]
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: 0x0600800B RID: 32779 RVA: 0x001AF67C File Offset: 0x001AD87C
[Token(Token = "0x600800B")]
[Address(RVA = "0xCF4770", Offset = "0xCF3170", VA = "0x180CF4770")]
internal static void ProcessCertF(PkixCertPath certPath, int index, PkixPolicyNode validPolicyTree, int explicitPolicy)
{
/*
An exception occurred when decompiling this method (0600800B)
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 1663
*/;
}
// Token: 0x0600800C RID: 32780 RVA: 0x001AF6A0 File Offset: 0x001AD8A0
[Token(Token = "0x600800C")]
[Address(RVA = "0xCF2890", Offset = "0xCF1290", VA = "0x180CF2890")]
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: 0x0600800D RID: 32781 RVA: 0x001AF760 File Offset: 0x001AD960
[Token(Token = "0x600800D")]
[Address(RVA = "0xCF17C0", Offset = "0xCF01C0", VA = "0x180CF17C0")]
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: 0x0600800E RID: 32782 RVA: 0x001AF7D8 File Offset: 0x001AD9D8
[Token(Token = "0x600800E")]
[Address(RVA = "0xCF1A70", Offset = "0xCF0470", VA = "0x180CF1A70")]
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: 0x0600800F RID: 32783 RVA: 0x001AF850 File Offset: 0x001ADA50
[Token(Token = "0x600800F")]
[Address(RVA = "0xCF10D0", Offset = "0xCEFAD0", VA = "0x180CF10D0")]
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: 0x06008010 RID: 32784 RVA: 0x001AF8F0 File Offset: 0x001ADAF0
[Token(Token = "0x6008010")]
[Address(RVA = "0xCF1D20", Offset = "0xCF0720", VA = "0x180CF1D20")]
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: 0x06008011 RID: 32785 RVA: 0x001AF938 File Offset: 0x001ADB38
[Token(Token = "0x6008011")]
[Address(RVA = "0xCF1F00", Offset = "0xCF0900", VA = "0x180CF1F00")]
internal static void PrepareNextCertK(PkixCertPath certPath, int index)
{
/*
An exception occurred when decompiling this method (06008011)
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 1663
*/;
}
// Token: 0x06008012 RID: 32786 RVA: 0x001AF980 File Offset: 0x001ADB80
[Token(Token = "0x6008012")]
[Address(RVA = "0xCF2110", Offset = "0xCF0B10", VA = "0x180CF2110")]
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: 0x06008013 RID: 32787 RVA: 0x001AF9A8 File Offset: 0x001ADBA8
[Token(Token = "0x6008013")]
[Address(RVA = "0xCF2270", Offset = "0xCF0C70", VA = "0x180CF2270")]
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: 0x06008014 RID: 32788 RVA: 0x001AF9F0 File Offset: 0x001ADBF0
[Token(Token = "0x6008014")]
[Address(RVA = "0xCF2440", Offset = "0xCF0E40", VA = "0x180CF2440")]
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: 0x06008015 RID: 32789 RVA: 0x001AFA30 File Offset: 0x001ADC30
[Token(Token = "0x6008015")]
[Address(RVA = "0xCF2600", Offset = "0xCF1000", VA = "0x180CF2600")]
internal static void PrepareNextCertO(PkixCertPath certPath, int index, ISet criticalExtensions, IList pathCheckers)
{
/*
An exception occurred when decompiling this method (06008015)
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_2C:
stloc:PkixCertPathValidatorException(var_5_3A, 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 1663
*/;
}
// Token: 0x06008016 RID: 32790 RVA: 0x001AFA7C File Offset: 0x001ADC7C
[Token(Token = "0x6008016")]
[Address(RVA = "0xCF1460", Offset = "0xCEFE60", VA = "0x180CF1460")]
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: 0x06008017 RID: 32791 RVA: 0x001AFAAC File Offset: 0x001ADCAC
[Token(Token = "0x6008017")]
[Address(RVA = "0xCF1580", Offset = "0xCEFF80", VA = "0x180CF1580")]
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: 0x06008018 RID: 32792 RVA: 0x001AFADC File Offset: 0x001ADCDC
[Token(Token = "0x6008018")]
[Address(RVA = "0xCF16A0", Offset = "0xCF00A0", VA = "0x180CF16A0")]
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: 0x06008019 RID: 32793 RVA: 0x001AFB0C File Offset: 0x001ADD0C
[Token(Token = "0x6008019")]
[Address(RVA = "0xCF75D0", Offset = "0xCF5FD0", VA = "0x180CF75D0")]
internal static int WrapupCertA(int explicitPolicy, X509Certificate cert)
{
if (PkixCertPathValidatorUtilities.IsSelfIssued(cert) || explicitPolicy == 0)
{
}
return explicitPolicy;
}
// Token: 0x0600801A RID: 32794 RVA: 0x001AFB28 File Offset: 0x001ADD28
[Token(Token = "0x600801A")]
[Address(RVA = "0xCF7640", Offset = "0xCF6040", VA = "0x180CF7640")]
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: 0x0600801B RID: 32795 RVA: 0x001AFB94 File Offset: 0x001ADD94
[Token(Token = "0x600801B")]
[Address(RVA = "0xCF7940", Offset = "0xCF6340", VA = "0x180CF7940")]
internal static void WrapupCertF(PkixCertPath certPath, int index, IList pathCheckers, ISet criticalExtensions)
{
/*
An exception occurred when decompiling this method (0600801B)
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 1663
*/;
}
// Token: 0x0600801C RID: 32796 RVA: 0x001AFBD4 File Offset: 0x001ADDD4
[Token(Token = "0x600801C")]
[Address(RVA = "0xCF7BA0", Offset = "0xCF65A0", VA = "0x180CF7BA0")]
internal static PkixPolicyNode WrapupCertG(PkixCertPath certPath, PkixParameters paramsPKIX, ISet userInitialPolicySet, int index, IList[] policyNodes, PkixPolicyNode validPolicyTree, ISet acceptablePolicies)
{
string text2;
do
{
if (0 != 0)
{
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)
{
goto IL_52;
}
string any_POLICY2 = Rfc3280CertPathUtilities.ANY_POLICY;
bool flag2;
while (flag2)
{
}
num3 += (uint)1;
if (num3 != (uint)0)
{
}
if (num3 != (uint)(-1))
{
goto IL_52;
}
IL_58:
if (hashSet == 0)
{
goto IL_5C;
}
continue;
IL_52:
num2++;
goto IL_58;
}
IL_5C:
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)
{
continue;
}
HashSet hashSet2 = new HashSet();
int num4 = 0;
if (num4 < hashSet2)
{
string any_POLICY3 = Rfc3280CertPathUtilities.ANY_POLICY;
bool isEmpty2 = hashSet2.IsEmpty;
bool flag3;
if (!flag3)
{
goto IL_CA;
}
num3 += (uint)1;
if (num3 != (uint)0)
{
}
if (num3 != (uint)(-1))
{
goto IL_CA;
}
IL_D0:
if (any_POLICY3 == 0)
{
goto IL_D8;
}
continue;
IL_CA:
num4++;
goto IL_D0;
}
IL_D8:
if (num3 != (uint)0)
{
}
num3 += (uint)1;
if (num3 != (uint)0)
{
}
if (num3 != (uint)(-1))
{
}
if (num4 != 0)
{
continue;
}
if (num4 == 0)
{
break;
}
int j = 0;
while (j >= (int)num3)
{
}
j++;
}
}
while (text2 != 0);
throw new NullReferenceException();
}
// Token: 0x0600801D RID: 32797 RVA: 0x001AFCF8 File Offset: 0x001ADEF8
[Token(Token = "0x600801D")]
[Address(RVA = "0xCF5F90", Offset = "0xCF4990", VA = "0x180CF5F90")]
internal static void ProcessCrlC(X509Crl deltaCRL, X509Crl completeCRL, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (0600801D)
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 1663
*/;
}
// Token: 0x0600801E RID: 32798 RVA: 0x001AFD94 File Offset: 0x001ADF94
[Token(Token = "0x600801E")]
[Address(RVA = "0xCF7470", Offset = "0xCF5E70", VA = "0x180CF7470")]
internal static void ProcessCrlI(DateTime validDate, X509Crl deltacrl, object cert, CertStatus certStatus, PkixParameters pkixParams)
{
if (deltacrl != 0)
{
PkixCertPathValidatorUtilities.GetCertStatus(validDate, deltacrl, cert, certStatus);
}
}
// Token: 0x0600801F RID: 32799 RVA: 0x001AFDB4 File Offset: 0x001ADFB4
[Token(Token = "0x600801F")]
[Address(RVA = "0xCF7530", Offset = "0xCF5F30", VA = "0x180CF7530")]
internal static void ProcessCrlJ(DateTime validDate, X509Crl completecrl, object cert, CertStatus certStatus)
{
if (certStatus.status == 11)
{
PkixCertPathValidatorUtilities.GetCertStatus(validDate, completecrl, cert, certStatus);
}
}
// Token: 0x06008020 RID: 32800 RVA: 0x001AFDDC File Offset: 0x001ADFDC
[Token(Token = "0x6008020")]
[Address(RVA = "0xCF45B0", Offset = "0xCF2FB0", VA = "0x180CF45B0")]
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: 0x06008021 RID: 32801 RVA: 0x001AFE08 File Offset: 0x001AE008
[Token(Token = "0x6008021")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public Rfc3280CertPathUtilities()
{
}
// Token: 0x06008022 RID: 32802 RVA: 0x001AFE1C File Offset: 0x001AE01C
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6008022")]
[Address(RVA = "0xCF87C0", Offset = "0xCF71C0", VA = "0x180CF87C0")]
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: 0x04005AD0 RID: 23248
[Token(Token = "0x4005AD0")]
private static readonly PkixCrlUtilities CrlUtilities = new PkixCrlUtilities();
// Token: 0x04005AD1 RID: 23249
[Token(Token = "0x4005AD1")]
internal static readonly string ANY_POLICY = "2.5.29.32.0";
// Token: 0x04005AD2 RID: 23250
[Token(Token = "0x4005AD2")]
internal static readonly int KEY_CERT_SIGN;
// Token: 0x04005AD3 RID: 23251
[Token(Token = "0x4005AD3")]
internal static readonly int CRL_SIGN;
// Token: 0x04005AD4 RID: 23252
[Token(Token = "0x4005AD4")]
internal static readonly string[] CrlReasons;
}
}
@@ -0,0 +1,241 @@
using System;
using System.Collections;
using System.Runtime.InteropServices;
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: 0x020013AA RID: 5034
[Token(Token = "0x20013AA")]
[StructLayout(3)]
internal class Rfc3281CertPathUtilities
{
// Token: 0x06008023 RID: 32803 RVA: 0x001AFF30 File Offset: 0x001AE130
[Token(Token = "0x6008023")]
[Address(RVA = "0xCFABF0", Offset = "0xCF95F0", VA = "0x180CFABF0")]
internal static void ProcessAttrCert7(IX509AttributeCertificate attrCert, PkixCertPath certPath, PkixCertPath holderCertPath, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06008023)
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_4A:
stloc:PkixCertPathValidatorException(var_9_51, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldloc:string(var_8)))
}
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
--- End of inner exception stack trace ---
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
*/;
}
// Token: 0x06008024 RID: 32804 RVA: 0x001AFF90 File Offset: 0x001AE190
[Token(Token = "0x6008024")]
[Address(RVA = "0xCF9570", Offset = "0xCF7F70", VA = "0x180CF9570")]
internal static void CheckCrls(IX509AttributeCertificate attrCert, PkixParameters paramsPKIX, X509Certificate issuerCert, DateTime validDate, IList certPathCerts)
{
/*
An exception occurred when decompiling this method (06008024)
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 1663
*/;
}
// Token: 0x06008025 RID: 32805 RVA: 0x001B015C File Offset: 0x001AE35C
[Token(Token = "0x6008025")]
[Address(RVA = "0xCF8C60", Offset = "0xCF7660", VA = "0x180CF8C60")]
internal static void AdditionalChecks(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
{
int num;
do
{
num = 0;
int num2 = 0;
if (num2 != -1)
{
}
if (num != 0)
{
goto IL_4A;
}
num2++;
if (num2 != 0)
{
}
if (num2 != -1)
{
}
}
while (num != 0);
return;
IL_4A:
throw new NullReferenceException();
}
// Token: 0x06008026 RID: 32806 RVA: 0x001B01C0 File Offset: 0x001AE3C0
[Token(Token = "0x6008026")]
[Address(RVA = "0xCFAA80", Offset = "0xCF9480", VA = "0x180CFAA80")]
internal static void ProcessAttrCert5(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
{
DateTime dateTime = PkixCertPathValidatorUtilities.GetValidDate(pkixParams);
int num = 0;
num += num;
num++;
dateTime += dateTime;
}
// Token: 0x06008027 RID: 32807 RVA: 0x001B01E8 File Offset: 0x001AE3E8
[Token(Token = "0x6008027")]
[Address(RVA = "0xCFA7A0", Offset = "0xCF91A0", VA = "0x180CFA7A0")]
internal static void ProcessAttrCert4(X509Certificate acIssuerCert, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06008027)
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_54:
stloc:PkixCertPathValidatorException(var_5_5E, 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 1663
*/;
}
// Token: 0x06008028 RID: 32808 RVA: 0x001B0254 File Offset: 0x001AE454
[Token(Token = "0x6008028")]
[Address(RVA = "0xCFA660", Offset = "0xCF9060", VA = "0x180CFA660")]
internal static void ProcessAttrCert3(X509Certificate acIssuerCert, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (06008028)
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 1663
*/;
}
// Token: 0x06008029 RID: 32809 RVA: 0x001B02A0 File Offset: 0x001AE4A0
[Token(Token = "0x6008029")]
[Address(RVA = "0xCFA580", Offset = "0xCF8F80", VA = "0x180CFA580")]
internal static PkixCertPathValidatorResult ProcessAttrCert2(PkixCertPath certPath, PkixParameters pkixParams)
{
string text = new PkixCertPathValidator().ToString();
throw new NullReferenceException();
}
// Token: 0x0600802A RID: 32810 RVA: 0x001B02C0 File Offset: 0x001AE4C0
[Token(Token = "0x600802A")]
[Address(RVA = "0xCF9EB0", Offset = "0xCF88B0", VA = "0x180CF9EB0")]
internal static PkixCertPath ProcessAttrCert1(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
{
/*
An exception occurred when decompiling this method (0600802A)
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_12A:
stloc:PkixCertPathValidatorException(var_25_134, 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 1663
*/;
}
// Token: 0x0600802B RID: 32811 RVA: 0x001B0404 File Offset: 0x001AE604
[Token(Token = "0x600802B")]
[Address(RVA = "0xCF9030", Offset = "0xCF7A30", VA = "0x180CF9030")]
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: 0x0600802C RID: 32812 RVA: 0x001B0464 File Offset: 0x001AE664
[Token(Token = "0x600802C")]
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
public Rfc3281CertPathUtilities()
{
}
}
}
@@ -0,0 +1,241 @@
using System;
using System.Runtime.InteropServices;
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: 0x020013AB RID: 5035
[Token(Token = "0x20013AB")]
[StructLayout(3)]
public class TrustAnchor
{
// Token: 0x0600802D RID: 32813 RVA: 0x001B0478 File Offset: 0x001AE678
[Token(Token = "0x600802D")]
[Address(RVA = "0xCFB260", Offset = "0xCF9C60", VA = "0x180CFB260")]
public TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints)
{
/*
An exception occurred when decompiling this method (0600802D)
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 1663
*/;
}
// Token: 0x0600802E RID: 32814 RVA: 0x001B04C0 File Offset: 0x001AE6C0
[Token(Token = "0x600802E")]
[Address(RVA = "0xCFB310", Offset = "0xCF9D10", VA = "0x180CFB310")]
public TrustAnchor(X509Name caPrincipal, AsymmetricKeyParameter pubKey, byte[] nameConstraints)
{
/*
An exception occurred when decompiling this method (0600802E)
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 1663
*/;
}
// Token: 0x0600802F RID: 32815 RVA: 0x001B0520 File Offset: 0x001AE720
[Token(Token = "0x600802F")]
[Address(RVA = "0xCFB410", Offset = "0xCF9E10", VA = "0x180CFB410")]
public TrustAnchor(string caName, AsymmetricKeyParameter pubKey, byte[] nameConstraints)
{
/*
An exception occurred when decompiling this method (0600802F)
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 1663
*/;
}
// Token: 0x170014F0 RID: 5360
// (get) Token: 0x06008030 RID: 32816 RVA: 0x001B0588 File Offset: 0x001AE788
[Token(Token = "0x170014F0")]
public X509Certificate TrustedCert
{
[Token(Token = "0x6008030")]
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
get
{
return this.trustedCert;
}
}
// Token: 0x170014F1 RID: 5361
// (get) Token: 0x06008031 RID: 32817 RVA: 0x001B059C File Offset: 0x001AE79C
[Token(Token = "0x170014F1")]
public X509Name CA
{
[Token(Token = "0x6008031")]
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
get
{
return this.caPrincipal;
}
}
// Token: 0x170014F2 RID: 5362
// (get) Token: 0x06008032 RID: 32818 RVA: 0x001B05B0 File Offset: 0x001AE7B0
[Token(Token = "0x170014F2")]
public string CAName
{
[Token(Token = "0x6008032")]
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
get
{
return this.caName;
}
}
// Token: 0x170014F3 RID: 5363
// (get) Token: 0x06008033 RID: 32819 RVA: 0x001B05C4 File Offset: 0x001AE7C4
[Token(Token = "0x170014F3")]
public AsymmetricKeyParameter CAPublicKey
{
[Token(Token = "0x6008033")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get
{
return this.pubKey;
}
}
// Token: 0x06008034 RID: 32820 RVA: 0x001B05D8 File Offset: 0x001AE7D8
[Token(Token = "0x6008034")]
[Address(RVA = "0xCFB5C0", Offset = "0xCF9FC0", VA = "0x180CFB5C0")]
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: 0x170014F4 RID: 5364
// (get) Token: 0x06008035 RID: 32821 RVA: 0x001B0610 File Offset: 0x001AE810
[Token(Token = "0x170014F4")]
public byte[] GetNameConstraints
{
[Token(Token = "0x6008035")]
[Address(RVA = "0xCFB560", Offset = "0xCF9F60", VA = "0x180CFB560")]
get
{
return Arrays.Clone(this.ncBytes);
}
}
// Token: 0x06008036 RID: 32822 RVA: 0x001B0628 File Offset: 0x001AE828
[Token(Token = "0x6008036")]
[Address(RVA = "0xCFB0A0", Offset = "0xCF9AA0", VA = "0x180CFB0A0", 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: 0x04005AD5 RID: 23253
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4005AD5")]
private readonly AsymmetricKeyParameter pubKey;
// Token: 0x04005AD6 RID: 23254
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4005AD6")]
private readonly string caName;
// Token: 0x04005AD7 RID: 23255
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
[Token(Token = "0x4005AD7")]
private readonly X509Name caPrincipal;
// Token: 0x04005AD8 RID: 23256
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4005AD8")]
private readonly X509Certificate trustedCert;
// Token: 0x04005AD9 RID: 23257
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4005AD9")]
private byte[] ncBytes;
// Token: 0x04005ADA RID: 23258
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4005ADA")]
private NameConstraints nc;
}
}