m
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A52 RID: 6738
|
||||
[Token(Token = "0x2001A52")]
|
||||
public class CertStatus
|
||||
{
|
||||
// Token: 0x1700196F RID: 6511
|
||||
// (get) Token: 0x06009EBE RID: 40638 RVA: 0x0020AB48 File Offset: 0x00208D48
|
||||
// (set) Token: 0x06009EBF RID: 40639 RVA: 0x0020AB5C File Offset: 0x00208D5C
|
||||
[Token(Token = "0x1700196F")]
|
||||
public DateTimeObject RevocationDate
|
||||
{
|
||||
[Token(Token = "0x6009EBE")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.revocationDate;
|
||||
}
|
||||
[Token(Token = "0x6009EBF")]
|
||||
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0")]
|
||||
set
|
||||
{
|
||||
this.revocationDate = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001970 RID: 6512
|
||||
// (get) Token: 0x06009EC0 RID: 40640 RVA: 0x0020AB70 File Offset: 0x00208D70
|
||||
// (set) Token: 0x06009EC1 RID: 40641 RVA: 0x0020AB84 File Offset: 0x00208D84
|
||||
[Token(Token = "0x17001970")]
|
||||
public int Status
|
||||
{
|
||||
[Token(Token = "0x6009EC0")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
[Token(Token = "0x6009EC1")]
|
||||
[Address(RVA = "0x470D10", Offset = "0x46FD10", VA = "0x180470D10")]
|
||||
set
|
||||
{
|
||||
this.status = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009EC2 RID: 40642 RVA: 0x0020AB98 File Offset: 0x00208D98
|
||||
[Token(Token = "0x6009EC2")]
|
||||
[Address(RVA = "0x63E620", Offset = "0x63D620", VA = "0x18063E620")]
|
||||
public CertStatus()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04006A8C RID: 27276
|
||||
[Token(Token = "0x4006A8C")]
|
||||
public const int Unrevoked = 11;
|
||||
|
||||
// Token: 0x04006A8D RID: 27277
|
||||
[Token(Token = "0x4006A8D")]
|
||||
public const int Undetermined = 12;
|
||||
|
||||
// Token: 0x04006A8E RID: 27278
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A8E")]
|
||||
private int status = (int)((ulong)11L);
|
||||
|
||||
// Token: 0x04006A8F RID: 27279
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006A8F")]
|
||||
private DateTimeObject revocationDate;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A53 RID: 6739
|
||||
[Token(Token = "0x2001A53")]
|
||||
public abstract class PkixAttrCertChecker
|
||||
{
|
||||
// Token: 0x06009EC3 RID: 40643
|
||||
[Token(Token = "0x6009EC3")]
|
||||
[Address(Slot = "4")]
|
||||
public abstract ISet GetSupportedExtensions();
|
||||
|
||||
// Token: 0x06009EC4 RID: 40644
|
||||
[Token(Token = "0x6009EC4")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract void Check(IX509AttributeCertificate attrCert, PkixCertPath certPath, PkixCertPath holderCertPath, ICollection unresolvedCritExts);
|
||||
|
||||
// Token: 0x06009EC5 RID: 40645
|
||||
[Token(Token = "0x6009EC5")]
|
||||
[Address(Slot = "6")]
|
||||
public abstract PkixAttrCertChecker Clone();
|
||||
|
||||
// Token: 0x06009EC6 RID: 40646 RVA: 0x0020ABB8 File Offset: 0x00208DB8
|
||||
[Token(Token = "0x6009EC6")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected PkixAttrCertChecker()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A54 RID: 6740
|
||||
[Token(Token = "0x2001A54")]
|
||||
public class PkixAttrCertPathBuilder
|
||||
{
|
||||
// Token: 0x06009EC7 RID: 40647 RVA: 0x0020ABCC File Offset: 0x00208DCC
|
||||
[Token(Token = "0x6009EC7")]
|
||||
[Address(RVA = "0x64AF50", Offset = "0x649F50", VA = "0x18064AF50", Slot = "4")]
|
||||
public virtual PkixCertPathBuilderResult Build(PkixBuilderParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009EC7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPathBuilderResult BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixAttrCertPathBuilder::Build(BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixBuilderParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_130:
|
||||
stloc:PkixCertPathBuilderException(var_20_13C, newobj:PkixCertPathBuilderException(PkixCertPathBuilderException::.ctor, ldstr:string("Possible certificate chain could not be validated."), ldloc:NullReferenceException[exp:Exception](var_19)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009EC8 RID: 40648 RVA: 0x0020AD18 File Offset: 0x00208F18
|
||||
[Token(Token = "0x6009EC8")]
|
||||
[Address(RVA = "0x64A9C0", Offset = "0x6499C0", VA = "0x18064A9C0")]
|
||||
private PkixCertPathBuilderResult Build(IX509AttributeCertificate attrCert, X509Certificate tbvCert, PkixBuilderParameters pkixParams, IList tbvPath)
|
||||
{
|
||||
int num = 0;
|
||||
PkixAttrCertPathValidator pkixAttrCertPathValidator = new PkixAttrCertPathValidator();
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
PkixCertPathValidatorUtilities.AddAdditionalStoresFromAltNames(tbvCert, pkixParams);
|
||||
HashSet hashSet = new HashSet();
|
||||
ICollection collection = PkixCertPathValidatorUtilities.FindIssuerCerts(tbvCert, pkixParams);
|
||||
if (collection == 0)
|
||||
{
|
||||
PkixCertPathBuilderResult pkixCertPathBuilderResult;
|
||||
if (collection != 0)
|
||||
{
|
||||
bool flag2;
|
||||
while (flag2)
|
||||
{
|
||||
}
|
||||
while (pkixCertPathBuilderResult == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (pkixCertPathBuilderResult != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_3F;
|
||||
}
|
||||
}
|
||||
Exception ex = new Exception("No issuer certificate for certificate in certification path found.");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
IL_3F:
|
||||
Exception ex2;
|
||||
ex2._className = ex2;
|
||||
PkixCertPathBuilderResult pkixCertPathBuilderResult2;
|
||||
if (pkixCertPathBuilderResult2 == 0)
|
||||
{
|
||||
}
|
||||
return pkixCertPathBuilderResult2;
|
||||
}
|
||||
|
||||
// Token: 0x06009EC9 RID: 40649 RVA: 0x0020ADD4 File Offset: 0x00208FD4
|
||||
[Token(Token = "0x6009EC9")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public PkixAttrCertPathBuilder()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04006A90 RID: 27280
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A90")]
|
||||
private Exception certPathException;
|
||||
}
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A55 RID: 6741
|
||||
[Token(Token = "0x2001A55")]
|
||||
public class PkixAttrCertPathValidator
|
||||
{
|
||||
// Token: 0x06009ECA RID: 40650 RVA: 0x0020ADE8 File Offset: 0x00208FE8
|
||||
[Token(Token = "0x6009ECA")]
|
||||
[Address(RVA = "0x64B820", Offset = "0x64A820", VA = "0x18064B820", 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: 0x06009ECB RID: 40651 RVA: 0x0020AE30 File Offset: 0x00209030
|
||||
[Token(Token = "0x6009ECB")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public PkixAttrCertPathValidator()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A56 RID: 6742
|
||||
[Token(Token = "0x2001A56")]
|
||||
public class PkixBuilderParameters : PkixParameters
|
||||
{
|
||||
// Token: 0x06009ECC RID: 40652 RVA: 0x0020AE44 File Offset: 0x00209044
|
||||
[Token(Token = "0x6009ECC")]
|
||||
[Address(RVA = "0x64BCD0", Offset = "0x64ACD0", VA = "0x18064BCD0")]
|
||||
public static PkixBuilderParameters GetInstance(PkixParameters pkixParams)
|
||||
{
|
||||
PkixBuilderParameters pkixBuilderParameters;
|
||||
object obj = pkixBuilderParameters.Clone();
|
||||
return pkixBuilderParameters;
|
||||
}
|
||||
|
||||
// Token: 0x06009ECD RID: 40653 RVA: 0x0020AE60 File Offset: 0x00209060
|
||||
[Token(Token = "0x6009ECD")]
|
||||
[Address(RVA = "0x64C0A0", Offset = "0x64B0A0", VA = "0x18064C0A0")]
|
||||
public PkixBuilderParameters(ISet trustAnchors, IX509Selector targetConstraints)
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
this.excludedCerts = hashSet;
|
||||
base..ctor(trustAnchors);
|
||||
}
|
||||
|
||||
// Token: 0x17001971 RID: 6513
|
||||
// (get) Token: 0x06009ECE RID: 40654 RVA: 0x0020AE8C File Offset: 0x0020908C
|
||||
// (set) Token: 0x06009ECF RID: 40655 RVA: 0x0020AEA0 File Offset: 0x002090A0
|
||||
[Token(Token = "0x17001971")]
|
||||
public virtual int MaxPathLength
|
||||
{
|
||||
[Token(Token = "0x6009ECE")]
|
||||
[Address(RVA = "0x56DD50", Offset = "0x56CD50", VA = "0x18056DD50", Slot = "48")]
|
||||
get
|
||||
{
|
||||
return this.maxPathLength;
|
||||
}
|
||||
[Token(Token = "0x6009ECF")]
|
||||
[Address(RVA = "0x64C140", Offset = "0x64B140", VA = "0x18064C140", Slot = "49")]
|
||||
set
|
||||
{
|
||||
this.maxPathLength = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009ED0 RID: 40656 RVA: 0x0020AEC0 File Offset: 0x002090C0
|
||||
[Token(Token = "0x6009ED0")]
|
||||
[Address(RVA = "0x64BC70", Offset = "0x64AC70", VA = "0x18064BC70", Slot = "50")]
|
||||
public virtual ISet GetExcludedCerts()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009ED0)
|
||||
|
||||
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: 0x06009ED1 RID: 40657 RVA: 0x0020AED8 File Offset: 0x002090D8
|
||||
[Token(Token = "0x6009ED1")]
|
||||
[Address(RVA = "0x64BDC0", Offset = "0x64ADC0", VA = "0x18064BDC0", 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: 0x06009ED2 RID: 40658 RVA: 0x0020AF00 File Offset: 0x00209100
|
||||
[Token(Token = "0x6009ED2")]
|
||||
[Address(RVA = "0x64BE50", Offset = "0x64AE50", VA = "0x18064BE50", 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: 0x06009ED3 RID: 40659 RVA: 0x0020AF34 File Offset: 0x00209134
|
||||
[Token(Token = "0x6009ED3")]
|
||||
[Address(RVA = "0x64BBB0", Offset = "0x64ABB0", VA = "0x18064BBB0", Slot = "25")]
|
||||
public override object Clone()
|
||||
{
|
||||
PkixBuilderParameters pkixBuilderParameters;
|
||||
object obj = pkixBuilderParameters.Clone();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009ED4 RID: 40660 RVA: 0x0020AF50 File Offset: 0x00209150
|
||||
[Token(Token = "0x6009ED4")]
|
||||
[Address(RVA = "0x64BF60", Offset = "0x64AF60", VA = "0x18064BF60", 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: 0x04006A91 RID: 27281
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4006A91")]
|
||||
private int maxPathLength = (int)((ulong)5L);
|
||||
|
||||
// Token: 0x04006A92 RID: 27282
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4006A92")]
|
||||
private ISet excludedCerts;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,364 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.OpenSsl;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security.Certificates;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
using Pathfinding;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A57 RID: 6743
|
||||
[Token(Token = "0x2001A57")]
|
||||
public class PkixCertPath
|
||||
{
|
||||
// Token: 0x06009ED6 RID: 40662 RVA: 0x0020AFE0 File Offset: 0x002091E0
|
||||
[Token(Token = "0x6009ED6")]
|
||||
[Address(RVA = "0x654260", Offset = "0x653260", VA = "0x180654260")]
|
||||
private static IList SortCerts(IList certs)
|
||||
{
|
||||
IList list2;
|
||||
int num2;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
if ((uint)1 == (uint)num)
|
||||
{
|
||||
goto IL_7B;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
IList list = Platform.CreateArrayList(flag ? 1 : 0);
|
||||
list2 = Platform.CreateArrayList(certs);
|
||||
num2 = 0;
|
||||
if (num2 >= list2)
|
||||
{
|
||||
goto IL_58;
|
||||
}
|
||||
if (list2 != 0)
|
||||
{
|
||||
bool flag2;
|
||||
while (!flag2)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (-1 != 0)
|
||||
{
|
||||
}
|
||||
if (list2 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (18446744073709551615UL != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if ((ulong)1L == 0UL)
|
||||
{
|
||||
}
|
||||
num2++;
|
||||
IL_58:
|
||||
int num3 = 0;
|
||||
if (0 != -1)
|
||||
{
|
||||
int num4 = 0;
|
||||
bool flag3;
|
||||
if (num4 < -1 && !flag3)
|
||||
{
|
||||
num4++;
|
||||
}
|
||||
num3++;
|
||||
}
|
||||
return list2;
|
||||
IL_7B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009ED7 RID: 40663 RVA: 0x0020B070 File Offset: 0x00209270
|
||||
[Token(Token = "0x6009ED7")]
|
||||
[Address(RVA = "0x654B90", Offset = "0x653B90", VA = "0x180654B90")]
|
||||
public PkixCertPath(ICollection certificates)
|
||||
{
|
||||
IList list = PkixCertPath.SortCerts(Platform.CreateArrayList(certificates));
|
||||
this.certificates = list;
|
||||
}
|
||||
|
||||
// Token: 0x06009ED8 RID: 40664 RVA: 0x0020B098 File Offset: 0x00209298
|
||||
[Token(Token = "0x6009ED8")]
|
||||
[Address(RVA = "0x654C30", Offset = "0x653C30", VA = "0x180654C30")]
|
||||
public PkixCertPath(Stream inStream)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009ED9 RID: 40665 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009ED9")]
|
||||
[Address(RVA = "0x654C80", Offset = "0x653C80", VA = "0x180654C80")]
|
||||
public PkixCertPath(Stream inStream, string encoding)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x17001972 RID: 6514
|
||||
// (get) Token: 0x06009EDA RID: 40666 RVA: 0x0020B0A8 File Offset: 0x002092A8
|
||||
[Token(Token = "0x17001972")]
|
||||
public virtual IEnumerable Encodings
|
||||
{
|
||||
[Token(Token = "0x6009EDA")]
|
||||
[Address(RVA = "0x655350", Offset = "0x654350", VA = "0x180655350", Slot = "4")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009EDA)
|
||||
|
||||
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: 0x06009EDB RID: 40667 RVA: 0x0020B0C0 File Offset: 0x002092C0
|
||||
[Token(Token = "0x6009EDB")]
|
||||
[Address(RVA = "0x6536A0", Offset = "0x6526A0", VA = "0x1806536A0", 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: 0x06009EDC RID: 40668 RVA: 0x0020B0F8 File Offset: 0x002092F8
|
||||
[Token(Token = "0x6009EDC")]
|
||||
[Address(RVA = "0x654220", Offset = "0x653220", VA = "0x180654220", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
byte[] array;
|
||||
return ((IPathModifier)array).Order;
|
||||
}
|
||||
|
||||
// Token: 0x06009EDD RID: 40669 RVA: 0x0020B114 File Offset: 0x00209314
|
||||
[Token(Token = "0x6009EDD")]
|
||||
[Address(RVA = "0x653860", Offset = "0x652860", VA = "0x180653860", Slot = "5")]
|
||||
public virtual byte[] GetEncoded()
|
||||
{
|
||||
int num;
|
||||
byte[] array;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
string text = this.ToString();
|
||||
if (text != 0)
|
||||
{
|
||||
while (text == 0)
|
||||
{
|
||||
}
|
||||
while (text == 0)
|
||||
{
|
||||
}
|
||||
if (text == 0)
|
||||
{
|
||||
goto IL_2F;
|
||||
}
|
||||
}
|
||||
if (array != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
if (num != -1)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
IL_2F:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009EDE RID: 40670 RVA: 0x0020B158 File Offset: 0x00209358
|
||||
[Token(Token = "0x6009EDE")]
|
||||
[Address(RVA = "0x653A20", Offset = "0x652A20", VA = "0x180653A20", 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: 0x17001973 RID: 6515
|
||||
// (get) Token: 0x06009EDF RID: 40671 RVA: 0x0020B344 File Offset: 0x00209544
|
||||
[Token(Token = "0x17001973")]
|
||||
public virtual IList Certificates
|
||||
{
|
||||
[Token(Token = "0x6009EDF")]
|
||||
[Address(RVA = "0x655340", Offset = "0x654340", VA = "0x180655340", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return CollectionUtilities.ReadOnly(this.certificates);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009EE0 RID: 40672 RVA: 0x0020B35C File Offset: 0x0020955C
|
||||
[Token(Token = "0x6009EE0")]
|
||||
[Address(RVA = "0x654970", Offset = "0x653970", VA = "0x180654970")]
|
||||
private Asn1Object ToAsn1Object(X509Certificate cert)
|
||||
{
|
||||
AsymmetricKeyParameter publicKey = cert.GetPublicKey();
|
||||
Asn1Object asn1Object;
|
||||
return asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x06009EE1 RID: 40673 RVA: 0x0020B378 File Offset: 0x00209578
|
||||
[Token(Token = "0x6009EE1")]
|
||||
[Address(RVA = "0x654A20", Offset = "0x653A20", VA = "0x180654A20")]
|
||||
private byte[] ToDerEncoded(Asn1Encodable obj)
|
||||
{
|
||||
return obj.GetEncoded("DER");
|
||||
}
|
||||
|
||||
// Token: 0x04006A93 RID: 27283
|
||||
[Token(Token = "0x4006A93")]
|
||||
internal static readonly IList certPathEncodings = CollectionUtilities.ReadOnly(Platform.CreateArrayList());
|
||||
|
||||
// Token: 0x04006A94 RID: 27284
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A94")]
|
||||
private readonly IList certificates;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A58 RID: 6744
|
||||
[Token(Token = "0x2001A58")]
|
||||
public class PkixCertPathBuilder
|
||||
{
|
||||
// Token: 0x06009EE2 RID: 40674 RVA: 0x0020B3A4 File Offset: 0x002095A4
|
||||
[Token(Token = "0x6009EE2")]
|
||||
[Address(RVA = "0x64C410", Offset = "0x64B410", VA = "0x18064C410", Slot = "4")]
|
||||
public virtual PkixCertPathBuilderResult Build(PkixBuilderParameters pkixParams)
|
||||
{
|
||||
int num;
|
||||
ICollection collection;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
HashSet hashSet = new HashSet();
|
||||
IList additionalStores = pkixParams.GetAdditionalStores();
|
||||
}
|
||||
while (collection != 0);
|
||||
PkixCertPathBuilderResult pkixCertPathBuilderResult;
|
||||
if (Platform.CreateArrayList() != 0)
|
||||
{
|
||||
while (pkixCertPathBuilderResult == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (pkixCertPathBuilderResult != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0 && (pkixCertPathBuilderResult != 0 || this.certPathException == pkixCertPathBuilderResult))
|
||||
{
|
||||
return pkixCertPathBuilderResult;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009EE3 RID: 40675 RVA: 0x0020B468 File Offset: 0x00209668
|
||||
[Token(Token = "0x6009EE3")]
|
||||
[Address(RVA = "0x64CA50", Offset = "0x64BA50", VA = "0x18064CA50", Slot = "5")]
|
||||
protected virtual PkixCertPathBuilderResult Build(X509Certificate tbvCert, PkixBuilderParameters pkixParams, IList tbvPath)
|
||||
{
|
||||
PkixCertPathValidator pkixCertPathValidator = new PkixCertPathValidator();
|
||||
bool flag;
|
||||
int count;
|
||||
if (!flag)
|
||||
{
|
||||
PkixCertPathValidatorUtilities.AddAdditionalStoresFromAltNames(tbvCert, pkixParams);
|
||||
HashSet hashSet = new HashSet();
|
||||
ICollection collection = PkixCertPathValidatorUtilities.FindIssuerCerts(tbvCert, pkixParams);
|
||||
if (hashSet.GetEnumerator() == 0)
|
||||
{
|
||||
count = hashSet.Count;
|
||||
PkixCertPathBuilderResult pkixCertPathBuilderResult;
|
||||
if (count != 0)
|
||||
{
|
||||
while (pkixCertPathBuilderResult == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
int num = 0;
|
||||
if (pkixCertPathBuilderResult != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_4A;
|
||||
}
|
||||
}
|
||||
Exception ex = new Exception("No issuer certificate for certificate in certification path found.");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
IL_4A:
|
||||
PkixCertPath pkixCertPath = new PkixCertPath(tbvPath);
|
||||
int stringLength = count.ToString().m_stringLength;
|
||||
PkixCertPathBuilderResult pkixCertPathBuilderResult2;
|
||||
return pkixCertPathBuilderResult2;
|
||||
}
|
||||
|
||||
// Token: 0x06009EE4 RID: 40676 RVA: 0x0020B550 File Offset: 0x00209750
|
||||
[Token(Token = "0x6009EE4")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public PkixCertPathBuilder()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04006A95 RID: 27285
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A95")]
|
||||
private Exception certPathException;
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A59 RID: 6745
|
||||
[Token(Token = "0x2001A59")]
|
||||
[Serializable]
|
||||
public class PkixCertPathBuilderException : GeneralSecurityException
|
||||
{
|
||||
// Token: 0x06009EE5 RID: 40677 RVA: 0x0020B564 File Offset: 0x00209764
|
||||
[Token(Token = "0x6009EE5")]
|
||||
[Address(RVA = "0x5DB0F0", Offset = "0x5DA0F0", VA = "0x1805DB0F0")]
|
||||
public PkixCertPathBuilderException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009EE6 RID: 40678 RVA: 0x0020B578 File Offset: 0x00209778
|
||||
[Token(Token = "0x6009EE6")]
|
||||
[Address(RVA = "0x5DB0E0", Offset = "0x5DA0E0", VA = "0x1805DB0E0")]
|
||||
public PkixCertPathBuilderException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009EE7 RID: 40679 RVA: 0x0020B58C File Offset: 0x0020978C
|
||||
[Token(Token = "0x6009EE7")]
|
||||
[Address(RVA = "0x5DB0D0", Offset = "0x5DA0D0", VA = "0x1805DB0D0")]
|
||||
public PkixCertPathBuilderException(string message, Exception exception)
|
||||
: base(message, exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A5A RID: 6746
|
||||
[Token(Token = "0x2001A5A")]
|
||||
public class PkixCertPathBuilderResult : PkixCertPathValidatorResult
|
||||
{
|
||||
// Token: 0x06009EE8 RID: 40680 RVA: 0x0020B5A4 File Offset: 0x002097A4
|
||||
[Token(Token = "0x6009EE8")]
|
||||
[Address(RVA = "0x64C360", Offset = "0x64B360", VA = "0x18064C360")]
|
||||
public PkixCertPathBuilderResult(PkixCertPath certPath, TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009EE8)
|
||||
|
||||
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: 0x17001974 RID: 6516
|
||||
// (get) Token: 0x06009EE9 RID: 40681 RVA: 0x0020B5C8 File Offset: 0x002097C8
|
||||
[Token(Token = "0x17001974")]
|
||||
public PkixCertPath CertPath
|
||||
{
|
||||
[Token(Token = "0x6009EE9")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.certPath;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009EEA RID: 40682 RVA: 0x0020B5DC File Offset: 0x002097DC
|
||||
[Token(Token = "0x6009EEA")]
|
||||
[Address(RVA = "0x64C1C0", Offset = "0x64B1C0", VA = "0x18064C1C0", 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: 0x04006A96 RID: 27286
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006A96")]
|
||||
private PkixCertPath certPath;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A5B RID: 6747
|
||||
[Token(Token = "0x2001A5B")]
|
||||
public abstract class PkixCertPathChecker
|
||||
{
|
||||
// Token: 0x06009EEB RID: 40683 RVA: 0x0020B66C File Offset: 0x0020986C
|
||||
[Token(Token = "0x6009EEB")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected PkixCertPathChecker()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009EEC RID: 40684
|
||||
[Token(Token = "0x6009EEC")]
|
||||
[Address(Slot = "4")]
|
||||
public abstract void Init(bool forward);
|
||||
|
||||
// Token: 0x06009EED RID: 40685
|
||||
[Token(Token = "0x6009EED")]
|
||||
[Address(Slot = "5")]
|
||||
public abstract bool IsForwardCheckingSupported();
|
||||
|
||||
// Token: 0x06009EEE RID: 40686
|
||||
[Token(Token = "0x6009EEE")]
|
||||
[Address(Slot = "6")]
|
||||
public abstract ISet GetSupportedExtensions();
|
||||
|
||||
// Token: 0x06009EEF RID: 40687
|
||||
[Token(Token = "0x6009EEF")]
|
||||
[Address(Slot = "7")]
|
||||
public abstract void Check(X509Certificate cert, ISet unresolvedCritExts);
|
||||
|
||||
// Token: 0x06009EF0 RID: 40688 RVA: 0x0020B680 File Offset: 0x00209880
|
||||
[Token(Token = "0x6009EF0")]
|
||||
[Address(RVA = "0x64CFC0", Offset = "0x64BFC0", VA = "0x18064CFC0", Slot = "8")]
|
||||
public virtual object Clone()
|
||||
{
|
||||
return base.MemberwiseClone();
|
||||
}
|
||||
}
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A5C RID: 6748
|
||||
[Token(Token = "0x2001A5C")]
|
||||
public class PkixCertPathValidator
|
||||
{
|
||||
// Token: 0x06009EF1 RID: 40689 RVA: 0x0020B694 File Offset: 0x00209894
|
||||
[Token(Token = "0x6009EF1")]
|
||||
[Address(RVA = "0x652210", Offset = "0x651210", VA = "0x180652210", Slot = "4")]
|
||||
public virtual PkixCertPathValidatorResult Validate(PkixCertPath certPath, PkixParameters paramsPkix)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
byte[] array;
|
||||
if (array != 0)
|
||||
{
|
||||
if (array == 0)
|
||||
{
|
||||
}
|
||||
int num = 0;
|
||||
TrustAnchor trustAnchor;
|
||||
if (array != 0 && trustAnchor != 0)
|
||||
{
|
||||
int num2 = 0;
|
||||
PkixCertPathValidator.CheckCertificate(trustAnchor.trustedCert);
|
||||
IList[] array2 = new IList[num2];
|
||||
if (num < array2.Length)
|
||||
{
|
||||
break;
|
||||
}
|
||||
HashSet hashSet = new HashSet();
|
||||
IList list = Platform.CreateArrayList();
|
||||
HashSet hashSet2 = new HashSet();
|
||||
string any_POLICY = Rfc3280CertPathUtilities.ANY_POLICY;
|
||||
int num3;
|
||||
ulong num4;
|
||||
PkixPolicyNode pkixPolicyNode = new PkixPolicyNode(list, num3, hashSet, num, hashSet2, any_POLICY, num4 != 0UL);
|
||||
num3 = 0;
|
||||
IList list2 = array2[0];
|
||||
PkixNameConstraintValidator pkixNameConstraintValidator = new PkixNameConstraintValidator();
|
||||
HashSet hashSet3 = new HashSet();
|
||||
pkixNameConstraintValidator.excludedSubtreesDN = hashSet3;
|
||||
HashSet hashSet4 = new HashSet();
|
||||
pkixNameConstraintValidator.excludedSubtreesDNS = hashSet4;
|
||||
HashSet hashSet5 = new HashSet();
|
||||
pkixNameConstraintValidator.excludedSubtreesEmail = hashSet5;
|
||||
HashSet hashSet6 = new HashSet();
|
||||
pkixNameConstraintValidator.excludedSubtreesURI = hashSet6;
|
||||
HashSet hashSet7 = new HashSet();
|
||||
pkixNameConstraintValidator.excludedSubtreesIP = hashSet7;
|
||||
HashSet hashSet8 = new HashSet();
|
||||
if (hashSet7 == 0)
|
||||
{
|
||||
}
|
||||
hashSet7.Clear();
|
||||
PkixPolicyNode pkixPolicyNode2;
|
||||
if (pkixPolicyNode2 == (ulong)1L && pkixPolicyNode2 == 0)
|
||||
{
|
||||
goto IL_1F3;
|
||||
}
|
||||
int num5;
|
||||
if (num5 == 0)
|
||||
{
|
||||
HashSet hashSet9 = new HashSet();
|
||||
}
|
||||
DerObjectIdentifier keyUsage = X509Extensions.KeyUsage;
|
||||
DerObjectIdentifier certificatePolicies = X509Extensions.CertificatePolicies;
|
||||
DerObjectIdentifier policyMappings = X509Extensions.PolicyMappings;
|
||||
DerObjectIdentifier inhibitAnyPolicy = X509Extensions.InhibitAnyPolicy;
|
||||
DerObjectIdentifier issuingDistributionPoint = X509Extensions.IssuingDistributionPoint;
|
||||
DerObjectIdentifier deltaCrlIndicator = X509Extensions.DeltaCrlIndicator;
|
||||
DerObjectIdentifier policyConstraints = X509Extensions.PolicyConstraints;
|
||||
DerObjectIdentifier basicConstraints = X509Extensions.BasicConstraints;
|
||||
DerObjectIdentifier subjectAlternativeName = X509Extensions.SubjectAlternativeName;
|
||||
DerObjectIdentifier nameConstraints = X509Extensions.NameConstraints;
|
||||
AsymmetricKeyParameter asymmetricKeyParameter;
|
||||
AlgorithmIdentifier algorithmIdentifier = PkixCertPathValidatorUtilities.GetAlgorithmIdentifier(asymmetricKeyParameter);
|
||||
int num6;
|
||||
if (num6 == 0)
|
||||
{
|
||||
HashSet hashSet10 = new HashSet();
|
||||
}
|
||||
DerObjectIdentifier keyUsage2 = X509Extensions.KeyUsage;
|
||||
DerObjectIdentifier certificatePolicies2 = X509Extensions.CertificatePolicies;
|
||||
DerObjectIdentifier policyMappings2 = X509Extensions.PolicyMappings;
|
||||
DerObjectIdentifier inhibitAnyPolicy2 = X509Extensions.InhibitAnyPolicy;
|
||||
DerObjectIdentifier issuingDistributionPoint2 = X509Extensions.IssuingDistributionPoint;
|
||||
DerObjectIdentifier deltaCrlIndicator2 = X509Extensions.DeltaCrlIndicator;
|
||||
DerObjectIdentifier policyConstraints2 = X509Extensions.PolicyConstraints;
|
||||
DerObjectIdentifier basicConstraints2 = X509Extensions.BasicConstraints;
|
||||
DerObjectIdentifier subjectAlternativeName2 = X509Extensions.SubjectAlternativeName;
|
||||
DerObjectIdentifier nameConstraints2 = X509Extensions.NameConstraints;
|
||||
DerObjectIdentifier crlDistributionPoints = X509Extensions.CrlDistributionPoints;
|
||||
PkixPolicyNode pkixPolicyNode3;
|
||||
if (pkixPolicyNode3 != 0)
|
||||
{
|
||||
PkixCertPathValidatorResult pkixCertPathValidatorResult;
|
||||
return pkixCertPathValidatorResult;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
IList list3 = Platform.CreateArrayList();
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_1F3:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009EF2 RID: 40690 RVA: 0x0020B89C File Offset: 0x00209A9C
|
||||
[Token(Token = "0x6009EF2")]
|
||||
[Address(RVA = "0x652150", Offset = "0x651150", VA = "0x180652150")]
|
||||
internal static void CheckCertificate(X509Certificate cert)
|
||||
{
|
||||
Asn1OctetString asn1OctetString;
|
||||
TbsCertificateStructure instance = TbsCertificateStructure.GetInstance(asn1OctetString.str);
|
||||
}
|
||||
|
||||
// Token: 0x06009EF3 RID: 40691 RVA: 0x0020B8C4 File Offset: 0x00209AC4
|
||||
[Token(Token = "0x6009EF3")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public PkixCertPathValidator()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A5D RID: 6749
|
||||
[Token(Token = "0x2001A5D")]
|
||||
[Serializable]
|
||||
public class PkixCertPathValidatorException : GeneralSecurityException
|
||||
{
|
||||
// Token: 0x06009EF4 RID: 40692 RVA: 0x0020B8D8 File Offset: 0x00209AD8
|
||||
[Token(Token = "0x6009EF4")]
|
||||
[Address(RVA = "0x64CFD0", Offset = "0x64BFD0", VA = "0x18064CFD0")]
|
||||
public PkixCertPathValidatorException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009EF5 RID: 40693 RVA: 0x0020B8FC File Offset: 0x00209AFC
|
||||
[Token(Token = "0x6009EF5")]
|
||||
[Address(RVA = "0x64D030", Offset = "0x64C030", VA = "0x18064D030")]
|
||||
public PkixCertPathValidatorException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009EF6 RID: 40694 RVA: 0x0020B920 File Offset: 0x00209B20
|
||||
[Token(Token = "0x6009EF6")]
|
||||
[Address(RVA = "0x64CFF0", Offset = "0x64BFF0", VA = "0x18064CFF0")]
|
||||
public PkixCertPathValidatorException(string message, Exception cause)
|
||||
: base(message)
|
||||
{
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
// Token: 0x06009EF7 RID: 40695 RVA: 0x0020B94C File Offset: 0x00209B4C
|
||||
[Token(Token = "0x6009EF7")]
|
||||
[Address(RVA = "0x64D050", Offset = "0x64C050", VA = "0x18064D050")]
|
||||
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: 0x17001975 RID: 6517
|
||||
// (get) Token: 0x06009EF8 RID: 40696 RVA: 0x0020B9A4 File Offset: 0x00209BA4
|
||||
[Token(Token = "0x17001975")]
|
||||
public override string Message
|
||||
{
|
||||
[Token(Token = "0x6009EF8")]
|
||||
[Address(RVA = "0x64D190", Offset = "0x64C190", VA = "0x18064D190", Slot = "5")]
|
||||
get
|
||||
{
|
||||
string message = base.Message;
|
||||
if (message == 0 && this.cause == 0)
|
||||
{
|
||||
return message;
|
||||
}
|
||||
return message;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001976 RID: 6518
|
||||
// (get) Token: 0x06009EF9 RID: 40697 RVA: 0x0020B9C8 File Offset: 0x00209BC8
|
||||
[Token(Token = "0x17001976")]
|
||||
public PkixCertPath CertPath
|
||||
{
|
||||
[Token(Token = "0x6009EF9")]
|
||||
[Address(RVA = "0x54F060", Offset = "0x54E060", VA = "0x18054F060")]
|
||||
get
|
||||
{
|
||||
return this.certPath;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001977 RID: 6519
|
||||
// (get) Token: 0x06009EFA RID: 40698 RVA: 0x0020B9DC File Offset: 0x00209BDC
|
||||
[Token(Token = "0x17001977")]
|
||||
public int Index
|
||||
{
|
||||
[Token(Token = "0x6009EFA")]
|
||||
[Address(RVA = "0x4AF6B0", Offset = "0x4AE6B0", VA = "0x1804AF6B0")]
|
||||
get
|
||||
{
|
||||
return this.index;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006A97 RID: 27287
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4006A97")]
|
||||
private Exception cause;
|
||||
|
||||
// Token: 0x04006A98 RID: 27288
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4006A98")]
|
||||
private PkixCertPath certPath;
|
||||
|
||||
// Token: 0x04006A99 RID: 27289
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4006A99")]
|
||||
private int index = (int)((ulong)4294967295L);
|
||||
}
|
||||
}
|
||||
+140
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A5E RID: 6750
|
||||
[Token(Token = "0x2001A5E")]
|
||||
public class PkixCertPathValidatorResult
|
||||
{
|
||||
// Token: 0x17001978 RID: 6520
|
||||
// (get) Token: 0x06009EFB RID: 40699 RVA: 0x0020B9F0 File Offset: 0x00209BF0
|
||||
[Token(Token = "0x17001978")]
|
||||
public PkixPolicyNode PolicyTree
|
||||
{
|
||||
[Token(Token = "0x6009EFB")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.policyTree;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001979 RID: 6521
|
||||
// (get) Token: 0x06009EFC RID: 40700 RVA: 0x0020BA04 File Offset: 0x00209C04
|
||||
[Token(Token = "0x17001979")]
|
||||
public TrustAnchor TrustAnchor
|
||||
{
|
||||
[Token(Token = "0x6009EFC")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.trustAnchor;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700197A RID: 6522
|
||||
// (get) Token: 0x06009EFD RID: 40701 RVA: 0x0020BA18 File Offset: 0x00209C18
|
||||
[Token(Token = "0x1700197A")]
|
||||
public AsymmetricKeyParameter SubjectPublicKey
|
||||
{
|
||||
[Token(Token = "0x6009EFD")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.subjectPublicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009EFE RID: 40702 RVA: 0x0020BA2C File Offset: 0x00209C2C
|
||||
[Token(Token = "0x6009EFE")]
|
||||
[Address(RVA = "0x64D3A0", Offset = "0x64C3A0", VA = "0x18064D3A0")]
|
||||
public PkixCertPathValidatorResult(TrustAnchor trustAnchor, PkixPolicyNode policyTree, AsymmetricKeyParameter subjectPublicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009EFE)
|
||||
|
||||
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: 0x06009EFF RID: 40703 RVA: 0x0020BA74 File Offset: 0x00209C74
|
||||
[Token(Token = "0x6009EFF")]
|
||||
[Address(RVA = "0x64D1E0", Offset = "0x64C1E0", VA = "0x18064D1E0")]
|
||||
public object Clone()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009EFF)
|
||||
|
||||
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: 0x06009F00 RID: 40704 RVA: 0x0020BAA0 File Offset: 0x00209CA0
|
||||
[Token(Token = "0x6009F00")]
|
||||
[Address(RVA = "0x64D260", Offset = "0x64C260", VA = "0x18064D260", 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: 0x04006A9A RID: 27290
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A9A")]
|
||||
private TrustAnchor trustAnchor;
|
||||
|
||||
// Token: 0x04006A9B RID: 27291
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006A9B")]
|
||||
private PkixPolicyNode policyTree;
|
||||
|
||||
// Token: 0x04006A9C RID: 27292
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006A9C")]
|
||||
private AsymmetricKeyParameter subjectPublicKey;
|
||||
}
|
||||
}
|
||||
+890
@@ -0,0 +1,890 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Parameters;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A5F RID: 6751
|
||||
[Token(Token = "0x2001A5F")]
|
||||
public class PkixCertPathValidatorUtilities
|
||||
{
|
||||
// Token: 0x06009F01 RID: 40705 RVA: 0x0020BB2C File Offset: 0x00209D2C
|
||||
[Token(Token = "0x6009F01")]
|
||||
[Address(RVA = "0x64E220", Offset = "0x64D220", VA = "0x18064E220")]
|
||||
internal static TrustAnchor FindTrustAnchor(X509Certificate cert, ISet trustAnchors)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F01)
|
||||
|
||||
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: 0x06009F02 RID: 40706 RVA: 0x0020BBDC File Offset: 0x00209DDC
|
||||
[Token(Token = "0x6009F02")]
|
||||
[Address(RVA = "0x6506D0", Offset = "0x64F6D0", VA = "0x1806506D0")]
|
||||
internal static bool IsIssuerTrustAnchor(X509Certificate cert, ISet trustAnchors)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F02)
|
||||
|
||||
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: 0x06009F03 RID: 40707 RVA: 0x0020BBF4 File Offset: 0x00209DF4
|
||||
[Token(Token = "0x6009F03")]
|
||||
[Address(RVA = "0x64D620", Offset = "0x64C620", VA = "0x18064D620")]
|
||||
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: 0x06009F04 RID: 40708 RVA: 0x0020BC28 File Offset: 0x00209E28
|
||||
[Token(Token = "0x6009F04")]
|
||||
[Address(RVA = "0x6505B0", Offset = "0x64F5B0", VA = "0x1806505B0")]
|
||||
internal static DateTime GetValidDate(PkixParameters paramsPKIX)
|
||||
{
|
||||
return DateTime.UtcNow;
|
||||
}
|
||||
|
||||
// Token: 0x06009F05 RID: 40709 RVA: 0x0020BC44 File Offset: 0x00209E44
|
||||
[Token(Token = "0x6009F05")]
|
||||
[Address(RVA = "0x64FA30", Offset = "0x64EA30", VA = "0x18064FA30")]
|
||||
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: 0x06009F06 RID: 40710 RVA: 0x0020BC7C File Offset: 0x00209E7C
|
||||
[Token(Token = "0x6009F06")]
|
||||
[Address(RVA = "0x650760", Offset = "0x64F760", VA = "0x180650760")]
|
||||
internal static bool IsSelfIssued(X509Certificate cert)
|
||||
{
|
||||
X509Name issuerDN = cert.IssuerDN;
|
||||
BigInteger serialNumber = cert.SerialNumber;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
|
||||
// Token: 0x06009F07 RID: 40711 RVA: 0x0020BCA0 File Offset: 0x00209EA0
|
||||
[Token(Token = "0x6009F07")]
|
||||
[Address(RVA = "0x64E5D0", Offset = "0x64D5D0", VA = "0x18064E5D0")]
|
||||
internal static AlgorithmIdentifier GetAlgorithmIdentifier(AsymmetricKeyParameter key)
|
||||
{
|
||||
return SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(key).algID;
|
||||
}
|
||||
|
||||
// Token: 0x06009F08 RID: 40712 RVA: 0x0020BCC0 File Offset: 0x00209EC0
|
||||
[Token(Token = "0x6009F08")]
|
||||
[Address(RVA = "0x650630", Offset = "0x64F630", VA = "0x180650630")]
|
||||
internal static bool IsAnyPolicy(ISet policySet)
|
||||
{
|
||||
bool flag;
|
||||
return policySet == 0 || flag;
|
||||
}
|
||||
|
||||
// Token: 0x06009F09 RID: 40713 RVA: 0x0020BCD4 File Offset: 0x00209ED4
|
||||
[Token(Token = "0x6009F09")]
|
||||
[Address(RVA = "0x64D480", Offset = "0x64C480", VA = "0x18064D480")]
|
||||
internal static void AddAdditionalStoreFromLocation(string location, PkixParameters pkixParams)
|
||||
{
|
||||
if (pkixParams.GetStores() != 0)
|
||||
{
|
||||
if (!Platform.StartsWith(location, "ldap://"))
|
||||
{
|
||||
}
|
||||
string text = location.Substring(7);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F0A RID: 40714 RVA: 0x0020BD44 File Offset: 0x00209F44
|
||||
[Token(Token = "0x6009F0A")]
|
||||
[Address(RVA = "0x650160", Offset = "0x64F160", VA = "0x180650160")]
|
||||
private static BigInteger GetSerialNumber(object cert)
|
||||
{
|
||||
while ((cert == 0 && (cert == 0 || cert == 0)) || cert == 0 || cert == 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F0B RID: 40715 RVA: 0x0020BD78 File Offset: 0x00209F78
|
||||
[Token(Token = "0x6009F0B")]
|
||||
[Address(RVA = "0x64FF60", Offset = "0x64EF60", VA = "0x18064FF60")]
|
||||
internal static ISet GetQualifierSet(Asn1Sequence qualifiers)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
HashSet hashSet = new HashSet();
|
||||
if (qualifiers == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IEnumerator enumerator = qualifiers.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_36;
|
||||
}
|
||||
}
|
||||
PolicyQualifierInfo policyQualifierInfo;
|
||||
if (policyQualifierInfo != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
IL_36:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F0C RID: 40716 RVA: 0x0020BDC0 File Offset: 0x00209FC0
|
||||
[Token(Token = "0x6009F0C")]
|
||||
[Address(RVA = "0x651A80", Offset = "0x650A80", VA = "0x180651A80")]
|
||||
internal static PkixPolicyNode RemovePolicyNode(PkixPolicyNode validPolicyTree, IList[] policyNodes, PkixPolicyNode _node)
|
||||
{
|
||||
if (validPolicyTree != 0)
|
||||
{
|
||||
PkixCertPathValidatorUtilities.RemovePolicyNodeRecurse(policyNodes, _node);
|
||||
return validPolicyTree;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F0D RID: 40717 RVA: 0x0020BE08 File Offset: 0x0020A008
|
||||
[Token(Token = "0x6009F0D")]
|
||||
[Address(RVA = "0x651840", Offset = "0x650840", VA = "0x180651840")]
|
||||
private static void RemovePolicyNodeRecurse(IList[] policyNodes, PkixPolicyNode _node)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
string text = _node.ToString();
|
||||
IList list = policyNodes[text];
|
||||
if (_node.ValidPolicy == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
int depth = _node.Depth;
|
||||
int num2;
|
||||
if (depth != 0)
|
||||
{
|
||||
if (depth == 0)
|
||||
{
|
||||
}
|
||||
num2 = 0;
|
||||
if (depth == 0)
|
||||
{
|
||||
goto IL_40;
|
||||
}
|
||||
}
|
||||
if (num2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_40:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F0E RID: 40718 RVA: 0x0020BE5C File Offset: 0x0020A05C
|
||||
[Token(Token = "0x6009F0E")]
|
||||
[Address(RVA = "0x6507C0", Offset = "0x64F7C0", VA = "0x1806507C0")]
|
||||
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: 0x06009F0F RID: 40719 RVA: 0x0020BF00 File Offset: 0x0020A100
|
||||
[Token(Token = "0x6009F0F")]
|
||||
[Address(RVA = "0x650F20", Offset = "0x64FF20", VA = "0x180650F20")]
|
||||
internal static PkixPolicyNode PrepareNextCertB2(int i, IList[] policyNodes, string id_p, PkixPolicyNode validPolicyTree)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IList list = Platform.CreateArrayList(policyNodes[i]);
|
||||
if (list != 0)
|
||||
{
|
||||
if (list == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
num++;
|
||||
}
|
||||
IList list2 = policyNodes[i];
|
||||
int num2 = i - 1;
|
||||
IList list3 = policyNodes[num2];
|
||||
PkixPolicyNode pkixPolicyNode;
|
||||
if (num < num2 && pkixPolicyNode != 0)
|
||||
{
|
||||
num++;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return validPolicyTree;
|
||||
}
|
||||
|
||||
// Token: 0x06009F10 RID: 40720 RVA: 0x0020BF60 File Offset: 0x0020A160
|
||||
[Token(Token = "0x6009F10")]
|
||||
[Address(RVA = "0x64E670", Offset = "0x64D670", VA = "0x18064E670")]
|
||||
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: 0x06009F11 RID: 40721 RVA: 0x0020C068 File Offset: 0x0020A268
|
||||
[Token(Token = "0x6009F11")]
|
||||
[Address(RVA = "0x64FBE0", Offset = "0x64EBE0", VA = "0x18064FBE0")]
|
||||
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: 0x06009F12 RID: 40722 RVA: 0x0020C0B0 File Offset: 0x0020A2B0
|
||||
[Token(Token = "0x6009F12")]
|
||||
[Address(RVA = "0x650300", Offset = "0x64F300", VA = "0x180650300")]
|
||||
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: 0x06009F13 RID: 40723 RVA: 0x0020C0E8 File Offset: 0x0020A2E8
|
||||
[Token(Token = "0x6009F13")]
|
||||
[Address(RVA = "0x64DD30", Offset = "0x64CD30", VA = "0x18064DD30")]
|
||||
internal static ICollection FindCertificates(X509CertStoreSelector certSelect, IList certStores)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
HashSet hashSet = new HashSet();
|
||||
if (hashSet != 0)
|
||||
{
|
||||
if (hashSet != 0 && hashSet == 0)
|
||||
{
|
||||
goto IL_4F;
|
||||
}
|
||||
if (hashSet != 0)
|
||||
{
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
goto IL_43;
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
IL_43:
|
||||
throw new NullReferenceException();
|
||||
IL_4F:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F14 RID: 40724 RVA: 0x0020C14C File Offset: 0x0020A34C
|
||||
[Token(Token = "0x6009F14")]
|
||||
[Address(RVA = "0x64F050", Offset = "0x64E050", VA = "0x18064F050")]
|
||||
internal static void GetCrlIssuersFromDistributionPoint(DistributionPoint dp, ICollection issuerPrincipals, X509CrlStoreSelector selector, PkixParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F14)
|
||||
|
||||
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: 0x06009F15 RID: 40725 RVA: 0x0020C214 File Offset: 0x0020A414
|
||||
[Token(Token = "0x6009F15")]
|
||||
[Address(RVA = "0x64EAD0", Offset = "0x64DAD0", VA = "0x18064EAD0")]
|
||||
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: 0x06009F16 RID: 40726 RVA: 0x0020C2BC File Offset: 0x0020A4BC
|
||||
[Token(Token = "0x6009F16")]
|
||||
[Address(RVA = "0x64F430", Offset = "0x64E430", VA = "0x18064F430")]
|
||||
internal static ISet GetDeltaCrls(DateTime currentDate, PkixParameters paramsPKIX, X509Crl completeCRL)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
X509CrlStoreSelector x509CrlStoreSelector = new X509CrlStoreSelector();
|
||||
IList list = Platform.CreateArrayList();
|
||||
int version = completeCRL.Version;
|
||||
x509CrlStoreSelector.Issuers = list;
|
||||
DerObjectIdentifier crlNumber = X509Extensions.CrlNumber;
|
||||
Asn1Object extensionValue = PkixCertPathValidatorUtilities.GetExtensionValue(completeCRL, crlNumber);
|
||||
if (extensionValue != 0)
|
||||
{
|
||||
BigInteger positiveValue = DerInteger.GetInstance(extensionValue).PositiveValue;
|
||||
}
|
||||
DerObjectIdentifier issuingDistributionPoint = X509Extensions.IssuingDistributionPoint;
|
||||
Asn1Object extensionValue2 = PkixCertPathValidatorUtilities.GetExtensionValue(completeCRL, issuingDistributionPoint);
|
||||
byte[] derEncoded;
|
||||
if (extensionValue2 != 0)
|
||||
{
|
||||
derEncoded = extensionValue2.GetDerEncoded();
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
}
|
||||
BigInteger one = BigInteger.One;
|
||||
BigInteger bigInteger;
|
||||
x509CrlStoreSelector.minCrlNumber = bigInteger;
|
||||
x509CrlStoreSelector.IssuingDistributionPoint = derEncoded;
|
||||
x509CrlStoreSelector.issuingDistributionPointEnabled = true;
|
||||
x509CrlStoreSelector.maxBaseCrlNumber = num;
|
||||
string text = PkixCertPathValidatorUtilities.CrlUtilities.ToString();
|
||||
HashSet hashSet = new HashSet();
|
||||
bool flag;
|
||||
if (hashSet != 0)
|
||||
{
|
||||
if (hashSet == 0)
|
||||
{
|
||||
}
|
||||
if (hashSet == 0)
|
||||
{
|
||||
goto IL_CD;
|
||||
}
|
||||
while (!flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
IL_CD:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F17 RID: 40727 RVA: 0x0020C39C File Offset: 0x0020A59C
|
||||
[Token(Token = "0x6009F17")]
|
||||
[Address(RVA = "0x6520B0", Offset = "0x6510B0", VA = "0x1806520B0")]
|
||||
private static bool isDeltaCrl(X509Crl crl)
|
||||
{
|
||||
ISet nonCriticalExtensionOids = crl.GetNonCriticalExtensionOids();
|
||||
DerObjectIdentifier deltaCrlIndicator = X509Extensions.DeltaCrlIndicator;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F18 RID: 40728 RVA: 0x0020C3BC File Offset: 0x0020A5BC
|
||||
[Token(Token = "0x6009F18")]
|
||||
[Address(RVA = "0x64DA20", Offset = "0x64CA20", VA = "0x18064DA20")]
|
||||
internal static ICollection FindCertificates(X509AttrCertStoreSelector certSelect, IList certStores)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
HashSet hashSet = new HashSet();
|
||||
if (hashSet != 0)
|
||||
{
|
||||
if (hashSet != 0 && hashSet == 0)
|
||||
{
|
||||
goto IL_4F;
|
||||
}
|
||||
if (hashSet != 0)
|
||||
{
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
goto IL_43;
|
||||
}
|
||||
if ((ulong)((uint)(-1)) != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
}
|
||||
if ((uint)(-1) != 0U)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
throw new NullReferenceException();
|
||||
IL_43:
|
||||
throw new NullReferenceException();
|
||||
IL_4F:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F19 RID: 40729 RVA: 0x0020C420 File Offset: 0x0020A620
|
||||
[Token(Token = "0x6009F19")]
|
||||
[Address(RVA = "0x64D810", Offset = "0x64C810", VA = "0x18064D810")]
|
||||
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: 0x06009F1A RID: 40730 RVA: 0x0020C4C8 File Offset: 0x0020A6C8
|
||||
[Token(Token = "0x6009F1A")]
|
||||
[Address(RVA = "0x6512F0", Offset = "0x6502F0", VA = "0x1806512F0")]
|
||||
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: 0x06009F1B RID: 40731 RVA: 0x0020C51C File Offset: 0x0020A71C
|
||||
[Token(Token = "0x6009F1B")]
|
||||
[Address(RVA = "0x651580", Offset = "0x650580", VA = "0x180651580")]
|
||||
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: 0x06009F1C RID: 40732 RVA: 0x0020C580 File Offset: 0x0020A780
|
||||
[Token(Token = "0x6009F1C")]
|
||||
[Address(RVA = "0x64E040", Offset = "0x64D040", VA = "0x18064E040")]
|
||||
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: 0x06009F1D RID: 40733 RVA: 0x0020C5D0 File Offset: 0x0020A7D0
|
||||
[Token(Token = "0x6009F1D")]
|
||||
[Address(RVA = "0x64F950", Offset = "0x64E950", VA = "0x18064F950")]
|
||||
internal static Asn1Object GetExtensionValue(IX509Extension ext, DerObjectIdentifier oid)
|
||||
{
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
Asn1Object asn1Object;
|
||||
return asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x06009F1E RID: 40734 RVA: 0x0020C5F8 File Offset: 0x0020A7F8
|
||||
[Token(Token = "0x6009F1E")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public PkixCertPathValidatorUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009F1F RID: 40735 RVA: 0x0020C60C File Offset: 0x0020A80C
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x6009F1F")]
|
||||
[Address(RVA = "0x651BC0", Offset = "0x650BC0", VA = "0x180651BC0")]
|
||||
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: 0x04006A9D RID: 27293
|
||||
[Token(Token = "0x4006A9D")]
|
||||
private static readonly PkixCrlUtilities CrlUtilities = new PkixCrlUtilities();
|
||||
|
||||
// Token: 0x04006A9E RID: 27294
|
||||
[Token(Token = "0x4006A9E")]
|
||||
internal static readonly string ANY_POLICY = "2.5.29.32.0";
|
||||
|
||||
// Token: 0x04006A9F RID: 27295
|
||||
[Token(Token = "0x4006A9F")]
|
||||
internal static readonly string CRL_NUMBER = X509Extensions.CrlNumber.identifier;
|
||||
|
||||
// Token: 0x04006AA0 RID: 27296
|
||||
[Token(Token = "0x4006AA0")]
|
||||
internal static readonly int KEY_CERT_SIGN;
|
||||
|
||||
// Token: 0x04006AA1 RID: 27297
|
||||
[Token(Token = "0x4006AA1")]
|
||||
internal static readonly int CRL_SIGN;
|
||||
|
||||
// Token: 0x04006AA2 RID: 27298
|
||||
[Token(Token = "0x4006AA2")]
|
||||
internal static readonly string[] crlReasons;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A60 RID: 6752
|
||||
[Token(Token = "0x2001A60")]
|
||||
public class PkixCrlUtilities
|
||||
{
|
||||
// Token: 0x06009F20 RID: 40736 RVA: 0x0020C730 File Offset: 0x0020A930
|
||||
[Token(Token = "0x6009F20")]
|
||||
[Address(RVA = "0x6553E0", Offset = "0x6543E0", VA = "0x1806553E0", Slot = "4")]
|
||||
public virtual ISet FindCrls(X509CrlStoreSelector crlselect, PkixParameters paramsPkix, DateTime currentDate)
|
||||
{
|
||||
int num = 0;
|
||||
HashSet hashSet = new HashSet();
|
||||
IList additionalStores = paramsPkix.GetAdditionalStores();
|
||||
ICollection collection = this.FindCrls(crlselect, additionalStores);
|
||||
HashSet hashSet2 = new HashSet();
|
||||
num += num;
|
||||
num++;
|
||||
ulong num2;
|
||||
num2 += (ulong)1L;
|
||||
int i;
|
||||
while (i <= 0)
|
||||
{
|
||||
}
|
||||
X509Certificate certificateChecking = crlselect.certificateChecking;
|
||||
if (certificateChecking == 0)
|
||||
{
|
||||
}
|
||||
DateTime notBefore = certificateChecking.NotBefore;
|
||||
int num3;
|
||||
if (num3 != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F21 RID: 40737 RVA: 0x0020C7AC File Offset: 0x0020A9AC
|
||||
[Token(Token = "0x6009F21")]
|
||||
[Address(RVA = "0x655A30", Offset = "0x654A30", VA = "0x180655A30", 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: 0x06009F22 RID: 40738 RVA: 0x0020C7DC File Offset: 0x0020A9DC
|
||||
[Token(Token = "0x6009F22")]
|
||||
[Address(RVA = "0x6557F0", Offset = "0x6547F0", VA = "0x1806557F0")]
|
||||
private ICollection FindCrls(X509CrlStoreSelector crlSelect, IList crlStores)
|
||||
{
|
||||
Exception ex;
|
||||
do
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
if (hashSet != 0 && hashSet != 0 && hashSet == 0)
|
||||
{
|
||||
goto IL_30;
|
||||
}
|
||||
}
|
||||
while (ex == 0 || 0 != 0 || ex != 0);
|
||||
throw new NullReferenceException();
|
||||
IL_30:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F23 RID: 40739 RVA: 0x0020C820 File Offset: 0x0020AA20
|
||||
[Token(Token = "0x6009F23")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public PkixCrlUtilities()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+1876
@@ -0,0 +1,1876 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A61 RID: 6753
|
||||
[Token(Token = "0x2001A61")]
|
||||
public class PkixNameConstraintValidator
|
||||
{
|
||||
// Token: 0x06009F24 RID: 40740 RVA: 0x0020C834 File Offset: 0x0020AA34
|
||||
[Token(Token = "0x6009F24")]
|
||||
[Address(RVA = "0x65A570", Offset = "0x659570", VA = "0x18065A570")]
|
||||
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: 0x06009F25 RID: 40741 RVA: 0x0020C88C File Offset: 0x0020AA8C
|
||||
[Token(Token = "0x6009F25")]
|
||||
[Address(RVA = "0x65A200", Offset = "0x659200", VA = "0x18065A200")]
|
||||
private static bool WithinDNSubtree(Asn1Sequence dns, Asn1Sequence subtree)
|
||||
{
|
||||
Asn1SequenceParser parser = subtree.Parser;
|
||||
if (dns.Parser != 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F26 RID: 40742 RVA: 0x0020C8B0 File Offset: 0x0020AAB0
|
||||
[Token(Token = "0x6009F26")]
|
||||
[Address(RVA = "0x656390", Offset = "0x655390", VA = "0x180656390")]
|
||||
public void CheckPermittedDN(Asn1Sequence dns)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (this.permittedSubtreesDN != 0 && asn1Encodable != 0)
|
||||
{
|
||||
bool flag;
|
||||
while (!flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F27 RID: 40743 RVA: 0x0020C8E0 File Offset: 0x0020AAE0
|
||||
[Token(Token = "0x6009F27")]
|
||||
[Address(RVA = "0x655D00", Offset = "0x654D00", VA = "0x180655D00")]
|
||||
public void CheckExcludedDN(Asn1Sequence dns)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F27)
|
||||
|
||||
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: 0x06009F28 RID: 40744 RVA: 0x0020C90C File Offset: 0x0020AB0C
|
||||
[Token(Token = "0x6009F28")]
|
||||
[Address(RVA = "0x656270", Offset = "0x655270", VA = "0x180656270")]
|
||||
private void CheckPermittedDN(ISet permitted, Asn1Sequence dns)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (permitted != 0 && asn1Encodable != 0)
|
||||
{
|
||||
bool flag;
|
||||
while (!flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F29 RID: 40745 RVA: 0x0020C938 File Offset: 0x0020AB38
|
||||
[Token(Token = "0x6009F29")]
|
||||
[Address(RVA = "0x655E50", Offset = "0x654E50", VA = "0x180655E50")]
|
||||
private void CheckExcludedDN(ISet excluded, Asn1Sequence dns)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F29)
|
||||
|
||||
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: 0x06009F2A RID: 40746 RVA: 0x0020C95C File Offset: 0x0020AB5C
|
||||
[Token(Token = "0x6009F2A")]
|
||||
[Address(RVA = "0x657470", Offset = "0x656470", VA = "0x180657470")]
|
||||
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: 0x06009F2B RID: 40747 RVA: 0x0020C9B4 File Offset: 0x0020ABB4
|
||||
[Token(Token = "0x6009F2B")]
|
||||
[Address(RVA = "0x659980", Offset = "0x658980", VA = "0x180659980")]
|
||||
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: 0x06009F2C RID: 40748 RVA: 0x0020CA1C File Offset: 0x0020AC1C
|
||||
[Token(Token = "0x6009F2C")]
|
||||
[Address(RVA = "0x6576E0", Offset = "0x6566E0", VA = "0x1806576E0")]
|
||||
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: 0x06009F2D RID: 40749 RVA: 0x0020CA7C File Offset: 0x0020AC7C
|
||||
[Token(Token = "0x6009F2D")]
|
||||
[Address(RVA = "0x659C00", Offset = "0x658C00", VA = "0x180659C00")]
|
||||
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: 0x06009F2E RID: 40750 RVA: 0x0020CAE0 File Offset: 0x0020ACE0
|
||||
[Token(Token = "0x6009F2E")]
|
||||
[Address(RVA = "0x657E30", Offset = "0x656E30", VA = "0x180657E30")]
|
||||
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: 0x06009F2F RID: 40751 RVA: 0x0020CB28 File Offset: 0x0020AD28
|
||||
[Token(Token = "0x6009F2F")]
|
||||
[Address(RVA = "0x659ED0", Offset = "0x658ED0", VA = "0x180659ED0")]
|
||||
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: 0x06009F30 RID: 40752 RVA: 0x0020CB98 File Offset: 0x0020AD98
|
||||
[Token(Token = "0x6009F30")]
|
||||
[Address(RVA = "0x659E10", Offset = "0x658E10", VA = "0x180659E10")]
|
||||
private ISet UnionIPRange(byte[] ipWithSubmask1, byte[] ipWithSubmask2)
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
if (!Arrays.AreEqual(ipWithSubmask1, ipWithSubmask2))
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F31 RID: 40753 RVA: 0x0020CBBC File Offset: 0x0020ADBC
|
||||
[Token(Token = "0x6009F31")]
|
||||
[Address(RVA = "0x657A60", Offset = "0x656A60", VA = "0x180657A60")]
|
||||
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: 0x06009F32 RID: 40754 RVA: 0x0020CD14 File Offset: 0x0020AF14
|
||||
[Token(Token = "0x6009F32")]
|
||||
[Address(RVA = "0x658680", Offset = "0x657680", VA = "0x180658680")]
|
||||
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: 0x06009F33 RID: 40755 RVA: 0x0020CD54 File Offset: 0x0020AF54
|
||||
[Token(Token = "0x6009F33")]
|
||||
[Address(RVA = "0x656F70", Offset = "0x655F70", VA = "0x180656F70")]
|
||||
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: 0x06009F34 RID: 40756 RVA: 0x0020CE18 File Offset: 0x0020B018
|
||||
[Token(Token = "0x6009F34")]
|
||||
[Address(RVA = "0x658A80", Offset = "0x657A80", VA = "0x180658A80")]
|
||||
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: 0x06009F35 RID: 40757 RVA: 0x0020CE9C File Offset: 0x0020B09C
|
||||
[Token(Token = "0x6009F35")]
|
||||
[Address(RVA = "0x6564B0", Offset = "0x6554B0", VA = "0x1806564B0")]
|
||||
private void CheckPermittedEmail(ISet permitted, string email)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F35)
|
||||
|
||||
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: 0x06009F36 RID: 40758 RVA: 0x0020CED8 File Offset: 0x0020B0D8
|
||||
[Token(Token = "0x6009F36")]
|
||||
[Address(RVA = "0x655FA0", Offset = "0x654FA0", VA = "0x180655FA0")]
|
||||
private void CheckExcludedEmail(ISet excluded, string email)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F36)
|
||||
|
||||
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: 0x06009F37 RID: 40759 RVA: 0x0020CF04 File Offset: 0x0020B104
|
||||
[Token(Token = "0x6009F37")]
|
||||
[Address(RVA = "0x6565E0", Offset = "0x6555E0", VA = "0x1806565E0")]
|
||||
private void CheckPermittedIP(ISet permitted, byte[] ip)
|
||||
{
|
||||
if (permitted != 0)
|
||||
{
|
||||
bool flag;
|
||||
while (!flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F38 RID: 40760 RVA: 0x0020CF34 File Offset: 0x0020B134
|
||||
[Token(Token = "0x6009F38")]
|
||||
[Address(RVA = "0x65A7A0", Offset = "0x6597A0", VA = "0x18065A7A0")]
|
||||
private void checkExcludedIP(ISet excluded, byte[] ip)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F38)
|
||||
|
||||
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: 0x06009F39 RID: 40761 RVA: 0x0020CF50 File Offset: 0x0020B150
|
||||
[Token(Token = "0x6009F39")]
|
||||
[Address(RVA = "0x658730", Offset = "0x657730", VA = "0x180658730")]
|
||||
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: 0x06009F3A RID: 40762 RVA: 0x0020CFB4 File Offset: 0x0020B1B4
|
||||
[Token(Token = "0x6009F3A")]
|
||||
[Address(RVA = "0x656A90", Offset = "0x655A90", VA = "0x180656A90")]
|
||||
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: 0x06009F3B RID: 40763 RVA: 0x0020D02C File Offset: 0x0020B22C
|
||||
[Token(Token = "0x6009F3B")]
|
||||
[Address(RVA = "0x65A320", Offset = "0x659320", VA = "0x18065A320")]
|
||||
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: 0x06009F3C RID: 40764 RVA: 0x0020D10C File Offset: 0x0020B30C
|
||||
[Token(Token = "0x6009F3C")]
|
||||
[Address(RVA = "0x6560D0", Offset = "0x6550D0", VA = "0x1806560D0")]
|
||||
private void CheckPermittedDNS(ISet permitted, string dns)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F3C)
|
||||
|
||||
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: 0x06009F3D RID: 40765 RVA: 0x0020D160 File Offset: 0x0020B360
|
||||
[Token(Token = "0x6009F3D")]
|
||||
[Address(RVA = "0x65A640", Offset = "0x659640", VA = "0x18065A640")]
|
||||
private void checkExcludedDNS(ISet excluded, string dns)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F3D)
|
||||
|
||||
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: 0x06009F3E RID: 40766 RVA: 0x0020D194 File Offset: 0x0020B394
|
||||
[Token(Token = "0x6009F3E")]
|
||||
[Address(RVA = "0x65C5E0", Offset = "0x65B5E0", VA = "0x18065C5E0")]
|
||||
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: 0x06009F3F RID: 40767 RVA: 0x0020D274 File Offset: 0x0020B474
|
||||
[Token(Token = "0x6009F3F")]
|
||||
[Address(RVA = "0x65CB80", Offset = "0x65BB80", VA = "0x18065CB80")]
|
||||
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: 0x06009F40 RID: 40768 RVA: 0x0020D354 File Offset: 0x0020B554
|
||||
[Token(Token = "0x6009F40")]
|
||||
[Address(RVA = "0x65B7C0", Offset = "0x65A7C0", VA = "0x18065B7C0")]
|
||||
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: 0x06009F41 RID: 40769 RVA: 0x0020D3C0 File Offset: 0x0020B5C0
|
||||
[Token(Token = "0x6009F41")]
|
||||
[Address(RVA = "0x65C370", Offset = "0x65B370", VA = "0x18065C370")]
|
||||
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: 0x06009F42 RID: 40770 RVA: 0x0020D41C File Offset: 0x0020B61C
|
||||
[Token(Token = "0x6009F42")]
|
||||
[Address(RVA = "0x65BA50", Offset = "0x65AA50", VA = "0x18065BA50")]
|
||||
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: 0x06009F43 RID: 40771 RVA: 0x0020D4F4 File Offset: 0x0020B6F4
|
||||
[Token(Token = "0x6009F43")]
|
||||
[Address(RVA = "0x65A8E0", Offset = "0x6598E0", VA = "0x18065A8E0")]
|
||||
private void checkExcludedURI(ISet excluded, string uri)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F43)
|
||||
|
||||
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: 0x06009F44 RID: 40772 RVA: 0x0020D520 File Offset: 0x0020B720
|
||||
[Token(Token = "0x6009F44")]
|
||||
[Address(RVA = "0x65BDB0", Offset = "0x65ADB0", VA = "0x18065BDB0")]
|
||||
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: 0x06009F45 RID: 40773 RVA: 0x0020D580 File Offset: 0x0020B780
|
||||
[Token(Token = "0x6009F45")]
|
||||
[Address(RVA = "0x65C970", Offset = "0x65B970", VA = "0x18065C970")]
|
||||
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: 0x06009F46 RID: 40774 RVA: 0x0020D5E4 File Offset: 0x0020B7E4
|
||||
[Token(Token = "0x6009F46")]
|
||||
[Address(RVA = "0x65C010", Offset = "0x65B010", VA = "0x18065C010")]
|
||||
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: 0x06009F47 RID: 40775 RVA: 0x0020D6BC File Offset: 0x0020B8BC
|
||||
[Token(Token = "0x6009F47")]
|
||||
[Address(RVA = "0x656730", Offset = "0x655730", VA = "0x180656730")]
|
||||
private void CheckPermittedURI(ISet permitted, string uri)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F47)
|
||||
|
||||
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: 0x06009F48 RID: 40776 RVA: 0x0020D6F8 File Offset: 0x0020B8F8
|
||||
[Token(Token = "0x6009F48")]
|
||||
[Address(RVA = "0x658920", Offset = "0x657920", VA = "0x180658920")]
|
||||
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: 0x06009F49 RID: 40777 RVA: 0x0020D734 File Offset: 0x0020B934
|
||||
[Token(Token = "0x6009F49")]
|
||||
[Address(RVA = "0x656DF0", Offset = "0x655DF0", VA = "0x180656DF0")]
|
||||
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: 0x06009F4A RID: 40778 RVA: 0x0020D7AC File Offset: 0x0020B9AC
|
||||
[Token(Token = "0x6009F4A")]
|
||||
[Address(RVA = "0x65B0D0", Offset = "0x65A0D0", VA = "0x18065B0D0")]
|
||||
public void checkPermitted(GeneralName name)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F4A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::checkPermitted(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_182:
|
||||
stloc:PkixNameConstraintValidatorException(var_29_18C, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("IP is not from a permitted subtree.")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009F4B RID: 40779 RVA: 0x0020D948 File Offset: 0x0020BB48
|
||||
[Token(Token = "0x6009F4B")]
|
||||
[Address(RVA = "0x65AA10", Offset = "0x659A10", VA = "0x18065AA10")]
|
||||
public void checkExcluded(GeneralName name)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F4B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixNameConstraintValidator::checkExcluded(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_14C:
|
||||
stloc:PkixNameConstraintValidatorException(var_19_156, newobj:PkixNameConstraintValidatorException(PkixNameConstraintValidatorException::.ctor, ldstr:string("Email address is from an excluded subtree.")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009F4C RID: 40780 RVA: 0x0020DAAC File Offset: 0x0020BCAC
|
||||
[Token(Token = "0x6009F4C")]
|
||||
[Address(RVA = "0x658080", Offset = "0x657080", VA = "0x180658080")]
|
||||
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: 0x06009F4D RID: 40781 RVA: 0x0020DBC8 File Offset: 0x0020BDC8
|
||||
[Token(Token = "0x6009F4D")]
|
||||
[Address(RVA = "0x6571F0", Offset = "0x6561F0", VA = "0x1806571F0")]
|
||||
private string ExtractNameAsString(GeneralName name)
|
||||
{
|
||||
Asn1Object asn1Object = DerIA5String.GetInstance(name.obj).ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F4E RID: 40782 RVA: 0x0020DBEC File Offset: 0x0020BDEC
|
||||
[Token(Token = "0x6009F4E")]
|
||||
[Address(RVA = "0x657930", Offset = "0x656930", VA = "0x180657930")]
|
||||
public void IntersectEmptyPermittedSubtree(int nameType)
|
||||
{
|
||||
if (nameType - 1 <= 6)
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
this.permittedSubtreesEmail = hashSet;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F4F RID: 40783 RVA: 0x0020DC48 File Offset: 0x0020BE48
|
||||
[Token(Token = "0x6009F4F")]
|
||||
[Address(RVA = "0x655B40", Offset = "0x654B40", VA = "0x180655B40")]
|
||||
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: 0x06009F50 RID: 40784 RVA: 0x0020DD00 File Offset: 0x0020BF00
|
||||
[Token(Token = "0x6009F50")]
|
||||
[Address(RVA = "0x658A00", Offset = "0x657A00", VA = "0x180658A00")]
|
||||
private static byte[] Max(byte[] ip1, byte[] ip2)
|
||||
{
|
||||
int num = 0;
|
||||
int length = ip1.Length;
|
||||
if (num < length)
|
||||
{
|
||||
num++;
|
||||
return ip1;
|
||||
}
|
||||
return ip2;
|
||||
}
|
||||
|
||||
// Token: 0x06009F51 RID: 40785 RVA: 0x0020DD28 File Offset: 0x0020BF28
|
||||
[Token(Token = "0x6009F51")]
|
||||
[Address(RVA = "0x658E80", Offset = "0x657E80", VA = "0x180658E80")]
|
||||
private static byte[] Min(byte[] ip1, byte[] ip2)
|
||||
{
|
||||
int num = 0;
|
||||
int length = ip1.Length;
|
||||
if (num < length)
|
||||
{
|
||||
num++;
|
||||
return ip1;
|
||||
}
|
||||
return ip2;
|
||||
}
|
||||
|
||||
// Token: 0x06009F52 RID: 40786 RVA: 0x0020DD50 File Offset: 0x0020BF50
|
||||
[Token(Token = "0x6009F52")]
|
||||
[Address(RVA = "0x6569C0", Offset = "0x6559C0", VA = "0x1806569C0")]
|
||||
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: 0x06009F53 RID: 40787 RVA: 0x0020DD78 File Offset: 0x0020BF78
|
||||
[Token(Token = "0x6009F53")]
|
||||
[Address(RVA = "0x658F00", Offset = "0x657F00", VA = "0x180658F00")]
|
||||
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: 0x06009F54 RID: 40788 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009F54")]
|
||||
[Address(RVA = "0x657330", Offset = "0x656330", VA = "0x180657330")]
|
||||
[Obsolete]
|
||||
public int HashCode()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06009F55 RID: 40789 RVA: 0x0020DDAC File Offset: 0x0020BFAC
|
||||
[Token(Token = "0x6009F55")]
|
||||
[Address(RVA = "0x657230", Offset = "0x656230", VA = "0x180657230", 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: 0x06009F56 RID: 40790 RVA: 0x0020DE9C File Offset: 0x0020C09C
|
||||
[Token(Token = "0x6009F56")]
|
||||
[Address(RVA = "0x657350", Offset = "0x656350", VA = "0x180657350")]
|
||||
private int HashCollection(ICollection coll)
|
||||
{
|
||||
if (coll != 0)
|
||||
{
|
||||
int num = 0;
|
||||
int num2;
|
||||
return num + num2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Token: 0x06009F57 RID: 40791 RVA: 0x0020DEBC File Offset: 0x0020C0BC
|
||||
[Token(Token = "0x6009F57")]
|
||||
[Address(RVA = "0x656C20", Offset = "0x655C20", VA = "0x180656C20", 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: 0x06009F58 RID: 40792 RVA: 0x0020DF0C File Offset: 0x0020C10C
|
||||
[Token(Token = "0x6009F58")]
|
||||
[Address(RVA = "0x656860", Offset = "0x655860", VA = "0x180656860")]
|
||||
private bool CollectionsAreEqual(ICollection coll1, ICollection coll2)
|
||||
{
|
||||
if (coll1 != coll2 && coll1 != 0 && coll2 != 0)
|
||||
{
|
||||
bool flag;
|
||||
while (!flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06009F59 RID: 40793 RVA: 0x0020DF30 File Offset: 0x0020C130
|
||||
[Token(Token = "0x6009F59")]
|
||||
[Address(RVA = "0x658FD0", Offset = "0x657FD0", VA = "0x180658FD0")]
|
||||
private bool SpecialEquals(object o1, object o2)
|
||||
{
|
||||
if (o1 != o2)
|
||||
{
|
||||
if (o1 != 0 && o2 != 0)
|
||||
{
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06009F5A RID: 40794 RVA: 0x0020DF50 File Offset: 0x0020C150
|
||||
[Token(Token = "0x6009F5A")]
|
||||
[Address(RVA = "0x659420", Offset = "0x658420", VA = "0x180659420")]
|
||||
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: 0x06009F5B RID: 40795 RVA: 0x0020DFE4 File Offset: 0x0020C1E4
|
||||
[Token(Token = "0x6009F5B")]
|
||||
[Address(RVA = "0x6590D0", Offset = "0x6580D0", VA = "0x1806590D0")]
|
||||
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: 0x06009F5C RID: 40796 RVA: 0x0020E0F0 File Offset: 0x0020C2F0
|
||||
[Token(Token = "0x6009F5C")]
|
||||
[Address(RVA = "0x659580", Offset = "0x658580", VA = "0x180659580", 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: 0x04006AA3 RID: 27299
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006AA3")]
|
||||
private ISet excludedSubtreesDN;
|
||||
|
||||
// Token: 0x04006AA4 RID: 27300
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006AA4")]
|
||||
private ISet excludedSubtreesDNS;
|
||||
|
||||
// Token: 0x04006AA5 RID: 27301
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006AA5")]
|
||||
private ISet excludedSubtreesEmail;
|
||||
|
||||
// Token: 0x04006AA6 RID: 27302
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006AA6")]
|
||||
private ISet excludedSubtreesURI;
|
||||
|
||||
// Token: 0x04006AA7 RID: 27303
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006AA7")]
|
||||
private ISet excludedSubtreesIP;
|
||||
|
||||
// Token: 0x04006AA8 RID: 27304
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006AA8")]
|
||||
private ISet permittedSubtreesDN;
|
||||
|
||||
// Token: 0x04006AA9 RID: 27305
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4006AA9")]
|
||||
private ISet permittedSubtreesDNS;
|
||||
|
||||
// Token: 0x04006AAA RID: 27306
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4006AAA")]
|
||||
private ISet permittedSubtreesEmail;
|
||||
|
||||
// Token: 0x04006AAB RID: 27307
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4006AAB")]
|
||||
private ISet permittedSubtreesURI;
|
||||
|
||||
// Token: 0x04006AAC RID: 27308
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4006AAC")]
|
||||
private ISet permittedSubtreesIP;
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A62 RID: 6754
|
||||
[Token(Token = "0x2001A62")]
|
||||
[Serializable]
|
||||
public class PkixNameConstraintValidatorException : Exception
|
||||
{
|
||||
// Token: 0x06009F5D RID: 40797 RVA: 0x0020E324 File Offset: 0x0020C524
|
||||
[Token(Token = "0x6009F5D")]
|
||||
[Address(RVA = "0x51D120", Offset = "0x51C120", VA = "0x18051D120")]
|
||||
public PkixNameConstraintValidatorException(string msg)
|
||||
: base(msg)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,945 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A63 RID: 6755
|
||||
[Token(Token = "0x2001A63")]
|
||||
public class PkixParameters
|
||||
{
|
||||
// Token: 0x06009F5E RID: 40798 RVA: 0x0020E338 File Offset: 0x0020C538
|
||||
[Token(Token = "0x6009F5E")]
|
||||
[Address(RVA = "0x51F0E0", Offset = "0x51E0E0", VA = "0x18051F0E0")]
|
||||
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: 0x1700197B RID: 6523
|
||||
// (get) Token: 0x06009F5F RID: 40799 RVA: 0x0020E3DC File Offset: 0x0020C5DC
|
||||
// (set) Token: 0x06009F60 RID: 40800 RVA: 0x0020E3F0 File Offset: 0x0020C5F0
|
||||
[Token(Token = "0x1700197B")]
|
||||
public virtual bool IsRevocationEnabled
|
||||
{
|
||||
[Token(Token = "0x6009F5F")]
|
||||
[Address(RVA = "0x51F260", Offset = "0x51E260", VA = "0x18051F260", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.revocationEnabled;
|
||||
}
|
||||
[Token(Token = "0x6009F60")]
|
||||
[Address(RVA = "0x51F2B0", Offset = "0x51E2B0", VA = "0x18051F2B0", Slot = "5")]
|
||||
set
|
||||
{
|
||||
this.revocationEnabled = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700197C RID: 6524
|
||||
// (get) Token: 0x06009F61 RID: 40801 RVA: 0x0020E404 File Offset: 0x0020C604
|
||||
// (set) Token: 0x06009F62 RID: 40802 RVA: 0x0020E418 File Offset: 0x0020C618
|
||||
[Token(Token = "0x1700197C")]
|
||||
public virtual bool IsExplicitPolicyRequired
|
||||
{
|
||||
[Token(Token = "0x6009F61")]
|
||||
[Address(RVA = "0x417650", Offset = "0x416650", VA = "0x180417650", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.explicitPolicyRequired;
|
||||
}
|
||||
[Token(Token = "0x6009F62")]
|
||||
[Address(RVA = "0x417950", Offset = "0x416950", VA = "0x180417950", Slot = "7")]
|
||||
set
|
||||
{
|
||||
this.explicitPolicyRequired = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700197D RID: 6525
|
||||
// (get) Token: 0x06009F63 RID: 40803 RVA: 0x0020E42C File Offset: 0x0020C62C
|
||||
// (set) Token: 0x06009F64 RID: 40804 RVA: 0x0020E440 File Offset: 0x0020C640
|
||||
[Token(Token = "0x1700197D")]
|
||||
public virtual bool IsAnyPolicyInhibited
|
||||
{
|
||||
[Token(Token = "0x6009F63")]
|
||||
[Address(RVA = "0x51F230", Offset = "0x51E230", VA = "0x18051F230", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.anyPolicyInhibited;
|
||||
}
|
||||
[Token(Token = "0x6009F64")]
|
||||
[Address(RVA = "0x51F280", Offset = "0x51E280", VA = "0x18051F280", Slot = "9")]
|
||||
set
|
||||
{
|
||||
this.anyPolicyInhibited = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700197E RID: 6526
|
||||
// (get) Token: 0x06009F65 RID: 40805 RVA: 0x0020E454 File Offset: 0x0020C654
|
||||
// (set) Token: 0x06009F66 RID: 40806 RVA: 0x0020E468 File Offset: 0x0020C668
|
||||
[Token(Token = "0x1700197E")]
|
||||
public virtual bool IsPolicyMappingInhibited
|
||||
{
|
||||
[Token(Token = "0x6009F65")]
|
||||
[Address(RVA = "0x51F240", Offset = "0x51E240", VA = "0x18051F240", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.policyMappingInhibited;
|
||||
}
|
||||
[Token(Token = "0x6009F66")]
|
||||
[Address(RVA = "0x51F290", Offset = "0x51E290", VA = "0x18051F290", Slot = "11")]
|
||||
set
|
||||
{
|
||||
this.policyMappingInhibited = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700197F RID: 6527
|
||||
// (get) Token: 0x06009F67 RID: 40807 RVA: 0x0020E47C File Offset: 0x0020C67C
|
||||
// (set) Token: 0x06009F68 RID: 40808 RVA: 0x0020E490 File Offset: 0x0020C690
|
||||
[Token(Token = "0x1700197F")]
|
||||
public virtual bool IsPolicyQualifiersRejected
|
||||
{
|
||||
[Token(Token = "0x6009F67")]
|
||||
[Address(RVA = "0x51F250", Offset = "0x51E250", VA = "0x18051F250", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return this.policyQualifiersRejected;
|
||||
}
|
||||
[Token(Token = "0x6009F68")]
|
||||
[Address(RVA = "0x51F2A0", Offset = "0x51E2A0", VA = "0x18051F2A0", Slot = "13")]
|
||||
set
|
||||
{
|
||||
this.policyQualifiersRejected = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001980 RID: 6528
|
||||
// (get) Token: 0x06009F69 RID: 40809 RVA: 0x0020E4A4 File Offset: 0x0020C6A4
|
||||
// (set) Token: 0x06009F6A RID: 40810 RVA: 0x0020E4B8 File Offset: 0x0020C6B8
|
||||
[Token(Token = "0x17001980")]
|
||||
public virtual DateTimeObject Date
|
||||
{
|
||||
[Token(Token = "0x6009F69")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return this.date;
|
||||
}
|
||||
[Token(Token = "0x6009F6A")]
|
||||
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0", Slot = "15")]
|
||||
set
|
||||
{
|
||||
this.date = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F6B RID: 40811 RVA: 0x0020E4CC File Offset: 0x0020C6CC
|
||||
[Token(Token = "0x6009F6B")]
|
||||
[Address(RVA = "0x51DA90", Offset = "0x51CA90", VA = "0x18051DA90", Slot = "16")]
|
||||
public virtual ISet GetTrustAnchors()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F6B)
|
||||
|
||||
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: 0x06009F6C RID: 40812 RVA: 0x0020E4E4 File Offset: 0x0020C6E4
|
||||
[Token(Token = "0x6009F6C")]
|
||||
[Address(RVA = "0x51EC20", Offset = "0x51DC20", VA = "0x18051EC20", Slot = "17")]
|
||||
public virtual void SetTrustAnchors(ISet tas)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F6C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters::SetTrustAnchors(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_50:
|
||||
stloc:ArgumentException(var_5_5F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("non-empty set required"), ldstr:string("value")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009F6D RID: 40813 RVA: 0x0020E554 File Offset: 0x0020C754
|
||||
[Token(Token = "0x6009F6D")]
|
||||
[Address(RVA = "0x51D970", Offset = "0x51C970", VA = "0x18051D970", Slot = "18")]
|
||||
public virtual X509CertStoreSelector GetTargetCertConstraints()
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
IX509Selector ix509Selector = this.certSelector;
|
||||
if (ix509Selector == 0 || ix509Selector != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F6E RID: 40814 RVA: 0x0020E578 File Offset: 0x0020C778
|
||||
[Token(Token = "0x6009F6E")]
|
||||
[Address(RVA = "0x51EAE0", Offset = "0x51DAE0", VA = "0x18051EAE0", Slot = "19")]
|
||||
public virtual void SetTargetCertConstraints(IX509Selector selector)
|
||||
{
|
||||
if (selector != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
int num = 0;
|
||||
this.certSelector = num;
|
||||
}
|
||||
|
||||
// Token: 0x06009F6F RID: 40815 RVA: 0x0020E594 File Offset: 0x0020C794
|
||||
[Token(Token = "0x6009F6F")]
|
||||
[Address(RVA = "0x51D7D0", Offset = "0x51C7D0", VA = "0x18051D7D0", Slot = "20")]
|
||||
public virtual ISet GetInitialPolicies()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F6F)
|
||||
|
||||
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: 0x06009F70 RID: 40816 RVA: 0x0020E5B8 File Offset: 0x0020C7B8
|
||||
[Token(Token = "0x6009F70")]
|
||||
[Address(RVA = "0x51E040", Offset = "0x51D040", VA = "0x18051E040", Slot = "21")]
|
||||
public virtual void SetInitialPolicies(ISet initialPolicies)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
HashSet hashSet = new HashSet();
|
||||
this.initialPolicies = hashSet;
|
||||
if (initialPolicies == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (hashSet != 0)
|
||||
{
|
||||
if (num < hashSet)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
while (num == 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_4A;
|
||||
}
|
||||
ISet set = this.initialPolicies;
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_4A:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F71 RID: 40817 RVA: 0x0020E614 File Offset: 0x0020C814
|
||||
[Token(Token = "0x6009F71")]
|
||||
[Address(RVA = "0x51DDA0", Offset = "0x51CDA0", VA = "0x18051DDA0", Slot = "22")]
|
||||
public virtual void SetCertPathCheckers(IList checkers)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.certPathCheckers = list;
|
||||
if (checkers == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (list != 0)
|
||||
{
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num++;
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_71;
|
||||
}
|
||||
IList list2 = this.certPathCheckers;
|
||||
if (num < num)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
bool flag;
|
||||
flag += flag;
|
||||
num += 2;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_71:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F72 RID: 40818 RVA: 0x0020E698 File Offset: 0x0020C898
|
||||
[Token(Token = "0x6009F72")]
|
||||
[Address(RVA = "0x51D530", Offset = "0x51C530", VA = "0x18051D530", Slot = "23")]
|
||||
public virtual IList GetCertPathCheckers()
|
||||
{
|
||||
int num;
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
list = Platform.CreateArrayList();
|
||||
IList list2 = this.certPathCheckers;
|
||||
if (list != 0)
|
||||
{
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
ulong num2;
|
||||
num2 += (ulong)1L;
|
||||
if (list == 0)
|
||||
{
|
||||
goto IL_5B;
|
||||
}
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num += 2;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return list;
|
||||
IL_5B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F73 RID: 40819 RVA: 0x0020E70C File Offset: 0x0020C90C
|
||||
[Token(Token = "0x6009F73")]
|
||||
[Address(RVA = "0x51D1F0", Offset = "0x51C1F0", VA = "0x18051D1F0", Slot = "24")]
|
||||
public virtual void AddCertPathChecker(PkixCertPathChecker checker)
|
||||
{
|
||||
if (checker != 0)
|
||||
{
|
||||
IList list = this.certPathCheckers;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F74 RID: 40820 RVA: 0x0020E72C File Offset: 0x0020C92C
|
||||
[Token(Token = "0x6009F74")]
|
||||
[Address(RVA = "0x51D2D0", Offset = "0x51C2D0", VA = "0x18051D2D0", Slot = "25")]
|
||||
public virtual object Clone()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F74)
|
||||
|
||||
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: 0x06009F75 RID: 40821 RVA: 0x0020E7D4 File Offset: 0x0020C9D4
|
||||
[Token(Token = "0x6009F75")]
|
||||
[Address(RVA = "0x51E3D0", Offset = "0x51D3D0", VA = "0x18051E3D0", 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: 0x17001981 RID: 6529
|
||||
// (get) Token: 0x06009F76 RID: 40822 RVA: 0x0020E900 File Offset: 0x0020CB00
|
||||
// (set) Token: 0x06009F77 RID: 40823 RVA: 0x0020E914 File Offset: 0x0020CB14
|
||||
[Token(Token = "0x17001981")]
|
||||
public virtual bool IsUseDeltasEnabled
|
||||
{
|
||||
[Token(Token = "0x6009F76")]
|
||||
[Address(RVA = "0x51F270", Offset = "0x51E270", VA = "0x18051F270", Slot = "27")]
|
||||
get
|
||||
{
|
||||
return this.useDeltas;
|
||||
}
|
||||
[Token(Token = "0x6009F77")]
|
||||
[Address(RVA = "0x51F2C0", Offset = "0x51E2C0", VA = "0x18051F2C0", Slot = "28")]
|
||||
set
|
||||
{
|
||||
this.useDeltas = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001982 RID: 6530
|
||||
// (get) Token: 0x06009F78 RID: 40824 RVA: 0x0020E928 File Offset: 0x0020CB28
|
||||
// (set) Token: 0x06009F79 RID: 40825 RVA: 0x0020E93C File Offset: 0x0020CB3C
|
||||
[Token(Token = "0x17001982")]
|
||||
public virtual int ValidityModel
|
||||
{
|
||||
[Token(Token = "0x6009F78")]
|
||||
[Address(RVA = "0x4F3F50", Offset = "0x4F2F50", VA = "0x1804F3F50", Slot = "29")]
|
||||
get
|
||||
{
|
||||
return this.validityModel;
|
||||
}
|
||||
[Token(Token = "0x6009F79")]
|
||||
[Address(RVA = "0x51F2D0", Offset = "0x51E2D0", VA = "0x18051F2D0", Slot = "30")]
|
||||
set
|
||||
{
|
||||
this.validityModel = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F7A RID: 40826 RVA: 0x0020E950 File Offset: 0x0020CB50
|
||||
[Token(Token = "0x6009F7A")]
|
||||
[Address(RVA = "0x51E8D0", Offset = "0x51D8D0", VA = "0x18051E8D0", Slot = "31")]
|
||||
public virtual void SetStores(IList stores)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (stores == 0)
|
||||
{
|
||||
goto IL_11;
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
IList list = Platform.CreateArrayList(stores);
|
||||
IL_11:
|
||||
IList list2 = Platform.CreateArrayList();
|
||||
this.stores = list2;
|
||||
}
|
||||
|
||||
// Token: 0x06009F7B RID: 40827 RVA: 0x0020E9A0 File Offset: 0x0020CBA0
|
||||
[Token(Token = "0x6009F7B")]
|
||||
[Address(RVA = "0x51D270", Offset = "0x51C270", VA = "0x18051D270", Slot = "32")]
|
||||
public virtual void AddStore(IX509Store store)
|
||||
{
|
||||
if (store != 0)
|
||||
{
|
||||
IList list = this.stores;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F7C RID: 40828 RVA: 0x0020E9C0 File Offset: 0x0020CBC0
|
||||
[Token(Token = "0x6009F7C")]
|
||||
[Address(RVA = "0x51D190", Offset = "0x51C190", VA = "0x18051D190", Slot = "33")]
|
||||
public virtual void AddAdditionalStore(IX509Store store)
|
||||
{
|
||||
if (store != 0)
|
||||
{
|
||||
IList list = this.additionalStores;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F7D RID: 40829 RVA: 0x0020E9E0 File Offset: 0x0020CBE0
|
||||
[Token(Token = "0x6009F7D")]
|
||||
[Address(RVA = "0x51D470", Offset = "0x51C470", VA = "0x18051D470", Slot = "34")]
|
||||
public virtual IList GetAdditionalStores()
|
||||
{
|
||||
return Platform.CreateArrayList(this.additionalStores);
|
||||
}
|
||||
|
||||
// Token: 0x06009F7E RID: 40830 RVA: 0x0020E9F8 File Offset: 0x0020CBF8
|
||||
[Token(Token = "0x6009F7E")]
|
||||
[Address(RVA = "0x51D910", Offset = "0x51C910", VA = "0x18051D910", Slot = "35")]
|
||||
public virtual IList GetStores()
|
||||
{
|
||||
return Platform.CreateArrayList(this.stores);
|
||||
}
|
||||
|
||||
// Token: 0x17001983 RID: 6531
|
||||
// (get) Token: 0x06009F7F RID: 40831 RVA: 0x0020EA10 File Offset: 0x0020CC10
|
||||
[Token(Token = "0x17001983")]
|
||||
public virtual bool IsAdditionalLocationsEnabled
|
||||
{
|
||||
[Token(Token = "0x6009F7F")]
|
||||
[Address(RVA = "0x51F220", Offset = "0x51E220", VA = "0x18051F220", Slot = "36")]
|
||||
get
|
||||
{
|
||||
return this.additionalLocationsEnabled;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F80 RID: 40832 RVA: 0x0020EA24 File Offset: 0x0020CC24
|
||||
[Token(Token = "0x6009F80")]
|
||||
[Address(RVA = "0x51DB50", Offset = "0x51CB50", VA = "0x18051DB50", Slot = "37")]
|
||||
public virtual void SetAdditionalLocationsEnabled(bool enabled)
|
||||
{
|
||||
this.additionalLocationsEnabled = enabled;
|
||||
}
|
||||
|
||||
// Token: 0x06009F81 RID: 40833 RVA: 0x0020EA38 File Offset: 0x0020CC38
|
||||
[Token(Token = "0x6009F81")]
|
||||
[Address(RVA = "0x51DA10", Offset = "0x51CA10", VA = "0x18051DA10", Slot = "38")]
|
||||
public virtual IX509Selector GetTargetConstraints()
|
||||
{
|
||||
while (this.selector != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F82 RID: 40834 RVA: 0x0020EA50 File Offset: 0x0020CC50
|
||||
[Token(Token = "0x6009F82")]
|
||||
[Address(RVA = "0x51EB80", Offset = "0x51DB80", VA = "0x18051EB80", Slot = "39")]
|
||||
public virtual void SetTargetConstraints(IX509Selector selector)
|
||||
{
|
||||
if (selector == 0)
|
||||
{
|
||||
int num = 0;
|
||||
this.selector = num;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F83 RID: 40835 RVA: 0x0020EA6C File Offset: 0x0020CC6C
|
||||
[Token(Token = "0x6009F83")]
|
||||
[Address(RVA = "0x51DAF0", Offset = "0x51CAF0", VA = "0x18051DAF0", Slot = "40")]
|
||||
public virtual ISet GetTrustedACIssuers()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F83)
|
||||
|
||||
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: 0x06009F84 RID: 40836 RVA: 0x0020EA84 File Offset: 0x0020CC84
|
||||
[Token(Token = "0x6009F84")]
|
||||
[Address(RVA = "0x51EEA0", Offset = "0x51DEA0", VA = "0x18051EEA0", Slot = "41")]
|
||||
public virtual void SetTrustedACIssuers(ISet trustedACIssuers)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (trustedACIssuers == 0)
|
||||
{
|
||||
goto IL_13;
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
HashSet hashSet = new HashSet(trustedACIssuers);
|
||||
IL_13:
|
||||
HashSet hashSet2 = new HashSet();
|
||||
this.trustedACIssuers = hashSet2;
|
||||
}
|
||||
|
||||
// Token: 0x06009F85 RID: 40837 RVA: 0x0020EAD4 File Offset: 0x0020CCD4
|
||||
[Token(Token = "0x6009F85")]
|
||||
[Address(RVA = "0x51D850", Offset = "0x51C850", VA = "0x18051D850", Slot = "42")]
|
||||
public virtual ISet GetNecessaryACAttributes()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F85)
|
||||
|
||||
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: 0x06009F86 RID: 40838 RVA: 0x0020EAEC File Offset: 0x0020CCEC
|
||||
[Token(Token = "0x6009F86")]
|
||||
[Address(RVA = "0x51E220", Offset = "0x51D220", VA = "0x18051E220", Slot = "43")]
|
||||
public virtual void SetNecessaryACAttributes(ISet necessaryACAttributes)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (necessaryACAttributes == 0)
|
||||
{
|
||||
goto IL_11;
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
HashSet hashSet = new HashSet(necessaryACAttributes);
|
||||
IL_11:
|
||||
HashSet hashSet2 = new HashSet();
|
||||
this.necessaryACAttributes = hashSet2;
|
||||
}
|
||||
|
||||
// Token: 0x06009F87 RID: 40839 RVA: 0x0020EB28 File Offset: 0x0020CD28
|
||||
[Token(Token = "0x6009F87")]
|
||||
[Address(RVA = "0x51D8B0", Offset = "0x51C8B0", VA = "0x18051D8B0", Slot = "44")]
|
||||
public virtual ISet GetProhibitedACAttributes()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F87)
|
||||
|
||||
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: 0x06009F88 RID: 40840 RVA: 0x0020EB40 File Offset: 0x0020CD40
|
||||
[Token(Token = "0x6009F88")]
|
||||
[Address(RVA = "0x51E720", Offset = "0x51D720", VA = "0x18051E720", Slot = "45")]
|
||||
public virtual void SetProhibitedACAttributes(ISet prohibitedACAttributes)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (prohibitedACAttributes == 0)
|
||||
{
|
||||
goto IL_11;
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
HashSet hashSet = new HashSet(prohibitedACAttributes);
|
||||
IL_11:
|
||||
HashSet hashSet2 = new HashSet();
|
||||
this.prohibitedACAttributes = hashSet2;
|
||||
}
|
||||
|
||||
// Token: 0x06009F89 RID: 40841 RVA: 0x0020EB7C File Offset: 0x0020CD7C
|
||||
[Token(Token = "0x6009F89")]
|
||||
[Address(RVA = "0x51D4D0", Offset = "0x51C4D0", VA = "0x18051D4D0", Slot = "46")]
|
||||
public virtual ISet GetAttrCertCheckers()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F89)
|
||||
|
||||
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: 0x06009F8A RID: 40842 RVA: 0x0020EB94 File Offset: 0x0020CD94
|
||||
[Token(Token = "0x6009F8A")]
|
||||
[Address(RVA = "0x51DB60", Offset = "0x51CB60", VA = "0x18051DB60", Slot = "47")]
|
||||
public virtual void SetAttrCertCheckers(ISet attrCertCheckers)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (attrCertCheckers == 0)
|
||||
{
|
||||
goto IL_13;
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
HashSet hashSet = new HashSet(attrCertCheckers);
|
||||
IL_13:
|
||||
HashSet hashSet2 = new HashSet();
|
||||
this.attrCertCheckers = hashSet2;
|
||||
}
|
||||
|
||||
// Token: 0x04006AAD RID: 27309
|
||||
[Token(Token = "0x4006AAD")]
|
||||
public const int PkixValidityModel = 0;
|
||||
|
||||
// Token: 0x04006AAE RID: 27310
|
||||
[Token(Token = "0x4006AAE")]
|
||||
public const int ChainValidityModel = 1;
|
||||
|
||||
// Token: 0x04006AAF RID: 27311
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006AAF")]
|
||||
private ISet trustAnchors;
|
||||
|
||||
// Token: 0x04006AB0 RID: 27312
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006AB0")]
|
||||
private DateTimeObject date;
|
||||
|
||||
// Token: 0x04006AB1 RID: 27313
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006AB1")]
|
||||
private IList certPathCheckers;
|
||||
|
||||
// Token: 0x04006AB2 RID: 27314
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006AB2")]
|
||||
private bool revocationEnabled = true;
|
||||
|
||||
// Token: 0x04006AB3 RID: 27315
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006AB3")]
|
||||
private ISet initialPolicies;
|
||||
|
||||
// Token: 0x04006AB4 RID: 27316
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006AB4")]
|
||||
private bool explicitPolicyRequired;
|
||||
|
||||
// Token: 0x04006AB5 RID: 27317
|
||||
[FieldOffset(Offset = "0x39")]
|
||||
[Token(Token = "0x4006AB5")]
|
||||
private bool anyPolicyInhibited;
|
||||
|
||||
// Token: 0x04006AB6 RID: 27318
|
||||
[FieldOffset(Offset = "0x3A")]
|
||||
[Token(Token = "0x4006AB6")]
|
||||
private bool policyMappingInhibited;
|
||||
|
||||
// Token: 0x04006AB7 RID: 27319
|
||||
[FieldOffset(Offset = "0x3B")]
|
||||
[Token(Token = "0x4006AB7")]
|
||||
private bool policyQualifiersRejected = true;
|
||||
|
||||
// Token: 0x04006AB8 RID: 27320
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4006AB8")]
|
||||
private IX509Selector certSelector;
|
||||
|
||||
// Token: 0x04006AB9 RID: 27321
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4006AB9")]
|
||||
private IList stores;
|
||||
|
||||
// Token: 0x04006ABA RID: 27322
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4006ABA")]
|
||||
private IX509Selector selector;
|
||||
|
||||
// Token: 0x04006ABB RID: 27323
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4006ABB")]
|
||||
private bool additionalLocationsEnabled;
|
||||
|
||||
// Token: 0x04006ABC RID: 27324
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4006ABC")]
|
||||
private IList additionalStores;
|
||||
|
||||
// Token: 0x04006ABD RID: 27325
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4006ABD")]
|
||||
private ISet trustedACIssuers;
|
||||
|
||||
// Token: 0x04006ABE RID: 27326
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4006ABE")]
|
||||
private ISet necessaryACAttributes;
|
||||
|
||||
// Token: 0x04006ABF RID: 27327
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4006ABF")]
|
||||
private ISet prohibitedACAttributes;
|
||||
|
||||
// Token: 0x04006AC0 RID: 27328
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4006AC0")]
|
||||
private ISet attrCertCheckers;
|
||||
|
||||
// Token: 0x04006AC1 RID: 27329
|
||||
[FieldOffset(Offset = "0x88")]
|
||||
[Token(Token = "0x4006AC1")]
|
||||
private int validityModel;
|
||||
|
||||
// Token: 0x04006AC2 RID: 27330
|
||||
[FieldOffset(Offset = "0x8C")]
|
||||
[Token(Token = "0x4006AC2")]
|
||||
private bool useDeltas;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,374 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A64 RID: 6756
|
||||
[Token(Token = "0x2001A64")]
|
||||
public class PkixPolicyNode
|
||||
{
|
||||
// Token: 0x17001984 RID: 6532
|
||||
// (get) Token: 0x06009F8B RID: 40843 RVA: 0x0020EBE4 File Offset: 0x0020CDE4
|
||||
[Token(Token = "0x17001984")]
|
||||
public virtual int Depth
|
||||
{
|
||||
[Token(Token = "0x6009F8B")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540", Slot = "4")]
|
||||
get
|
||||
{
|
||||
return this.mDepth;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001985 RID: 6533
|
||||
// (get) Token: 0x06009F8C RID: 40844 RVA: 0x0020EBF8 File Offset: 0x0020CDF8
|
||||
[Token(Token = "0x17001985")]
|
||||
public virtual IEnumerable Children
|
||||
{
|
||||
[Token(Token = "0x6009F8C")]
|
||||
[Address(RVA = "0x51FB90", Offset = "0x51EB90", VA = "0x18051FB90", Slot = "5")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F8C)
|
||||
|
||||
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: 0x17001986 RID: 6534
|
||||
// (get) Token: 0x06009F8D RID: 40845 RVA: 0x0020EC10 File Offset: 0x0020CE10
|
||||
// (set) Token: 0x06009F8E RID: 40846 RVA: 0x0020EC24 File Offset: 0x0020CE24
|
||||
[Token(Token = "0x17001986")]
|
||||
public virtual bool IsCritical
|
||||
{
|
||||
[Token(Token = "0x6009F8D")]
|
||||
[Address(RVA = "0x41CF00", Offset = "0x41BF00", VA = "0x18041CF00", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.mCritical;
|
||||
}
|
||||
[Token(Token = "0x6009F8E")]
|
||||
[Address(RVA = "0x41D000", Offset = "0x41C000", VA = "0x18041D000", Slot = "7")]
|
||||
set
|
||||
{
|
||||
this.mCritical = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001987 RID: 6535
|
||||
// (get) Token: 0x06009F8F RID: 40847 RVA: 0x0020EC38 File Offset: 0x0020CE38
|
||||
[Token(Token = "0x17001987")]
|
||||
public virtual ISet PolicyQualifiers
|
||||
{
|
||||
[Token(Token = "0x6009F8F")]
|
||||
[Address(RVA = "0x51FCA0", Offset = "0x51ECA0", VA = "0x18051FCA0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F8F)
|
||||
|
||||
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: 0x17001988 RID: 6536
|
||||
// (get) Token: 0x06009F90 RID: 40848 RVA: 0x0020EC50 File Offset: 0x0020CE50
|
||||
[Token(Token = "0x17001988")]
|
||||
public virtual string ValidPolicy
|
||||
{
|
||||
[Token(Token = "0x6009F90")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.mValidPolicy;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001989 RID: 6537
|
||||
// (get) Token: 0x06009F91 RID: 40849 RVA: 0x0020EC64 File Offset: 0x0020CE64
|
||||
[Token(Token = "0x17001989")]
|
||||
public virtual bool HasChildren
|
||||
{
|
||||
[Token(Token = "0x6009F91")]
|
||||
[Address(RVA = "0x51FC50", Offset = "0x51EC50", VA = "0x18051FC50", Slot = "10")]
|
||||
get
|
||||
{
|
||||
IList list = this.mChildren;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700198A RID: 6538
|
||||
// (get) Token: 0x06009F92 RID: 40850 RVA: 0x0020EC80 File Offset: 0x0020CE80
|
||||
// (set) Token: 0x06009F93 RID: 40851 RVA: 0x0020EC98 File Offset: 0x0020CE98
|
||||
[Token(Token = "0x1700198A")]
|
||||
public virtual ISet ExpectedPolicies
|
||||
{
|
||||
[Token(Token = "0x6009F92")]
|
||||
[Address(RVA = "0x51FBF0", Offset = "0x51EBF0", VA = "0x18051FBF0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009F92)
|
||||
|
||||
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 = "0x6009F93")]
|
||||
[Address(RVA = "0x51FD00", Offset = "0x51ED00", VA = "0x18051FD00", Slot = "12")]
|
||||
set
|
||||
{
|
||||
HashSet hashSet = new HashSet(value);
|
||||
this.mExpectedPolicies = hashSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700198B RID: 6539
|
||||
// (get) Token: 0x06009F94 RID: 40852 RVA: 0x0020ECB4 File Offset: 0x0020CEB4
|
||||
// (set) Token: 0x06009F95 RID: 40853 RVA: 0x0020ECC8 File Offset: 0x0020CEC8
|
||||
[Token(Token = "0x1700198B")]
|
||||
public virtual PkixPolicyNode Parent
|
||||
{
|
||||
[Token(Token = "0x6009F94")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.mParent;
|
||||
}
|
||||
[Token(Token = "0x6009F95")]
|
||||
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820", Slot = "14")]
|
||||
set
|
||||
{
|
||||
this.mParent = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009F96 RID: 40854 RVA: 0x0020ECDC File Offset: 0x0020CEDC
|
||||
[Token(Token = "0x6009F96")]
|
||||
[Address(RVA = "0x51FAB0", Offset = "0x51EAB0", VA = "0x18051FAB0")]
|
||||
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: 0x06009F97 RID: 40855 RVA: 0x0020ED34 File Offset: 0x0020CF34
|
||||
[Token(Token = "0x6009F97")]
|
||||
[Address(RVA = "0x51F2E0", Offset = "0x51E2E0", VA = "0x18051F2E0", Slot = "15")]
|
||||
public virtual void AddChild(PkixPolicyNode child)
|
||||
{
|
||||
PkixPolicyNode parent = child.Parent;
|
||||
IList list = this.mChildren;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F98 RID: 40856 RVA: 0x0020ED54 File Offset: 0x0020CF54
|
||||
[Token(Token = "0x6009F98")]
|
||||
[Address(RVA = "0x51F6B0", Offset = "0x51E6B0", VA = "0x18051F6B0", Slot = "16")]
|
||||
public virtual void RemoveChild(PkixPolicyNode child)
|
||||
{
|
||||
IList list = this.mChildren;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F99 RID: 40857 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009F99")]
|
||||
[Address(RVA = "0x51FA60", Offset = "0x51EA60", VA = "0x18051FA60", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06009F9A RID: 40858 RVA: 0x0020ED70 File Offset: 0x0020CF70
|
||||
[Token(Token = "0x6009F9A")]
|
||||
[Address(RVA = "0x51F710", Offset = "0x51E710", VA = "0x18051F710", Slot = "17")]
|
||||
public virtual string ToString(string indent)
|
||||
{
|
||||
StringBuilder stringBuilder;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
stringBuilder = new StringBuilder();
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(indent);
|
||||
string text = this.mValidPolicy;
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(text);
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(" {");
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(newLine);
|
||||
IList list = this.mChildren;
|
||||
if (stringBuilder5 != 0)
|
||||
{
|
||||
if (num < stringBuilder5)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (stringBuilder5 == 0)
|
||||
{
|
||||
}
|
||||
if (stringBuilder5 == 0)
|
||||
{
|
||||
goto IL_BF;
|
||||
}
|
||||
string text2 = indent + " ";
|
||||
if (stringBuilder.Append(text2) != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
StringBuilder stringBuilder6 = stringBuilder.Append(indent);
|
||||
StringBuilder stringBuilder7 = stringBuilder.Append("}");
|
||||
string newLine2 = Platform.NewLine;
|
||||
StringBuilder stringBuilder8 = stringBuilder.Append(newLine2);
|
||||
int hashCode = stringBuilder.GetHashCode();
|
||||
throw new NullReferenceException();
|
||||
IL_BF:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009F9B RID: 40859 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009F9B")]
|
||||
[Address(RVA = "0x51F360", Offset = "0x51E360", VA = "0x18051F360", Slot = "18")]
|
||||
public virtual object Clone()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x06009F9C RID: 40860 RVA: 0x0020EE44 File Offset: 0x0020D044
|
||||
[Token(Token = "0x6009F9C")]
|
||||
[Address(RVA = "0x51F380", Offset = "0x51E380", VA = "0x18051F380", Slot = "19")]
|
||||
public virtual PkixPolicyNode Copy()
|
||||
{
|
||||
int num;
|
||||
PkixPolicyNode pkixPolicyNode;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IList list = Platform.CreateArrayList();
|
||||
HashSet hashSet = new HashSet(this.mExpectedPolicies);
|
||||
HashSet hashSet2 = new HashSet(this.mPolicyQualifiers);
|
||||
string text = this.mValidPolicy;
|
||||
IList list2 = pkixPolicyNode.mChildren;
|
||||
if (pkixPolicyNode != 0)
|
||||
{
|
||||
if (num < pkixPolicyNode)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
num += 19;
|
||||
ulong num2;
|
||||
num = (int)((ulong)num + num2);
|
||||
if (num == 0 || num == 0)
|
||||
{
|
||||
goto IL_7B;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return pkixPolicyNode;
|
||||
IL_7B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006AC3 RID: 27331
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006AC3")]
|
||||
protected IList mChildren;
|
||||
|
||||
// Token: 0x04006AC4 RID: 27332
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006AC4")]
|
||||
protected int mDepth;
|
||||
|
||||
// Token: 0x04006AC5 RID: 27333
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006AC5")]
|
||||
protected ISet mExpectedPolicies;
|
||||
|
||||
// Token: 0x04006AC6 RID: 27334
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006AC6")]
|
||||
protected PkixPolicyNode mParent;
|
||||
|
||||
// Token: 0x04006AC7 RID: 27335
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006AC7")]
|
||||
protected ISet mPolicyQualifiers;
|
||||
|
||||
// Token: 0x04006AC8 RID: 27336
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006AC8")]
|
||||
protected string mValidPolicy;
|
||||
|
||||
// Token: 0x04006AC9 RID: 27337
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4006AC9")]
|
||||
protected bool mCritical;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A65 RID: 6757
|
||||
[Token(Token = "0x2001A65")]
|
||||
internal class ReasonsMask
|
||||
{
|
||||
// Token: 0x06009F9D RID: 40861 RVA: 0x0020EED8 File Offset: 0x0020D0D8
|
||||
[Token(Token = "0x6009F9D")]
|
||||
[Address(RVA = "0x44F040", Offset = "0x44E040", VA = "0x18044F040")]
|
||||
internal ReasonsMask(int reasons)
|
||||
{
|
||||
this._reasons = reasons;
|
||||
}
|
||||
|
||||
// Token: 0x06009F9E RID: 40862 RVA: 0x0020EEF4 File Offset: 0x0020D0F4
|
||||
[Token(Token = "0x6009F9E")]
|
||||
[Address(RVA = "0x520010", Offset = "0x51F010", VA = "0x180520010")]
|
||||
internal ReasonsMask()
|
||||
{
|
||||
this._reasons = (int)((ulong)0L);
|
||||
}
|
||||
|
||||
// Token: 0x06009F9F RID: 40863 RVA: 0x0020EF10 File Offset: 0x0020D110
|
||||
[Token(Token = "0x6009F9F")]
|
||||
[Address(RVA = "0x51FD70", Offset = "0x51ED70", VA = "0x18051FD70")]
|
||||
internal void AddReasons(ReasonsMask mask)
|
||||
{
|
||||
int padBits = new ReasonFlags(mask._reasons).PadBits;
|
||||
this._reasons = padBits;
|
||||
}
|
||||
|
||||
// Token: 0x1700198C RID: 6540
|
||||
// (get) Token: 0x06009FA0 RID: 40864 RVA: 0x0020EF3C File Offset: 0x0020D13C
|
||||
[Token(Token = "0x1700198C")]
|
||||
internal bool IsAllReasons
|
||||
{
|
||||
[Token(Token = "0x6009FA0")]
|
||||
[Address(RVA = "0x520030", Offset = "0x51F030", VA = "0x180520030")]
|
||||
get
|
||||
{
|
||||
int reasons = this._reasons;
|
||||
ReasonsMask allReasons = ReasonsMask.AllReasons;
|
||||
return reasons == allReasons._reasons;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009FA1 RID: 40865 RVA: 0x0020EF68 File Offset: 0x0020D168
|
||||
[Token(Token = "0x6009FA1")]
|
||||
[Address(RVA = "0x51FEB0", Offset = "0x51EEB0", VA = "0x18051FEB0")]
|
||||
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: 0x06009FA2 RID: 40866 RVA: 0x0020EFB0 File Offset: 0x0020D1B0
|
||||
[Token(Token = "0x6009FA2")]
|
||||
[Address(RVA = "0x51FE10", Offset = "0x51EE10", VA = "0x18051FE10")]
|
||||
internal bool HasNewReasons(ReasonsMask mask)
|
||||
{
|
||||
int padBits = new ReasonFlags(mask._reasons).PadBits;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x1700198D RID: 6541
|
||||
// (get) Token: 0x06009FA3 RID: 40867 RVA: 0x0020EFD4 File Offset: 0x0020D1D4
|
||||
[Token(Token = "0x1700198D")]
|
||||
public ReasonFlags Reasons
|
||||
{
|
||||
[Token(Token = "0x6009FA3")]
|
||||
[Address(RVA = "0x5200A0", Offset = "0x51F0A0", VA = "0x1805200A0")]
|
||||
get
|
||||
{
|
||||
return new ReasonFlags(this._reasons);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006ACA RID: 27338
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006ACA")]
|
||||
private int _reasons;
|
||||
|
||||
// Token: 0x04006ACB RID: 27339
|
||||
[Token(Token = "0x4006ACB")]
|
||||
internal static readonly ReasonsMask AllReasons = new ReasonsMask
|
||||
{
|
||||
_reasons = (int)((ulong)33023L)
|
||||
};
|
||||
}
|
||||
}
|
||||
+1513
@@ -0,0 +1,1513 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A66 RID: 6758
|
||||
[Token(Token = "0x2001A66")]
|
||||
public class Rfc3280CertPathUtilities
|
||||
{
|
||||
// Token: 0x06009FA5 RID: 40869 RVA: 0x0020F014 File Offset: 0x0020D214
|
||||
[Token(Token = "0x6009FA5")]
|
||||
[Address(RVA = "0x526830", Offset = "0x525830", VA = "0x180526830")]
|
||||
internal static void ProcessCrlB2(DistributionPoint dp, object cert, X509Crl crl)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
DerObjectIdentifier issuingDistributionPoint = X509Extensions.IssuingDistributionPoint;
|
||||
IssuingDistributionPoint instance = IssuingDistributionPoint.GetInstance(PkixCertPathValidatorUtilities.GetExtensionValue(crl, issuingDistributionPoint));
|
||||
if (instance == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (instance._distributionPoint != (ulong)0L)
|
||||
{
|
||||
DistributionPointName distributionPoint = IssuingDistributionPoint.GetInstance(instance)._distributionPoint;
|
||||
IList list = Platform.CreateArrayList();
|
||||
if (distributionPoint.type != 0)
|
||||
{
|
||||
goto IL_70;
|
||||
}
|
||||
GeneralName[] names = GeneralNames.GetInstance(distributionPoint.name).GetNames();
|
||||
int num = 0;
|
||||
int length = names.Length;
|
||||
if (num < length)
|
||||
{
|
||||
num++;
|
||||
goto IL_70;
|
||||
}
|
||||
IL_73:
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
int num2;
|
||||
if (distributionPoint.type == 1)
|
||||
{
|
||||
asn1EncodableVector = new Asn1EncodableVector(Array.Empty<Asn1Encodable>());
|
||||
int version = crl.Version;
|
||||
byte[] array;
|
||||
IEnumerator enumerator = Asn1Sequence.GetInstance(Asn1Object.FromByteArray(array)).GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
if (num2 < enumerator)
|
||||
{
|
||||
num2 += num2;
|
||||
num2++;
|
||||
}
|
||||
if (array2 != 0)
|
||||
{
|
||||
ulong num3;
|
||||
num3 += (ulong)1L;
|
||||
if (array2 == 0 || array2 == 0)
|
||||
{
|
||||
goto IL_2B3;
|
||||
}
|
||||
}
|
||||
array2[0] = num2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
Asn1Encodable name = distributionPoint.name;
|
||||
if (name != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = name;
|
||||
asn1EncodableVector.Add(array3);
|
||||
GeneralName generalName = new GeneralName(X509Name.GetInstance(new DerSequence(asn1EncodableVector)));
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
uint num4;
|
||||
if (num4 == (uint)0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
GeneralName[] array4;
|
||||
int length2 = array4.Length;
|
||||
if (num2 >= length2)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (num2 != 0)
|
||||
{
|
||||
goto IL_25A;
|
||||
}
|
||||
num2++;
|
||||
}
|
||||
GeneralNames generalNames;
|
||||
GeneralName[] names2;
|
||||
if (num2 == 0)
|
||||
{
|
||||
IList v = asn1EncodableVector.v;
|
||||
names2 = generalNames.GetNames();
|
||||
}
|
||||
GeneralName[] array6;
|
||||
int num5;
|
||||
if (names2 == (ulong)1L)
|
||||
{
|
||||
if (generalNames == 0)
|
||||
{
|
||||
GeneralName[] array5 = new GeneralName[names2];
|
||||
X509Name x509Name;
|
||||
GeneralName generalName2 = new GeneralName(x509Name);
|
||||
if (generalName2 != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = generalName2;
|
||||
}
|
||||
int length3 = array6.Length;
|
||||
if (num2 < length3)
|
||||
{
|
||||
break;
|
||||
}
|
||||
num5 = 0;
|
||||
}
|
||||
if (array6 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int length4 = array6.Length;
|
||||
if (num5 >= length4)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (length4 == 0)
|
||||
{
|
||||
num5++;
|
||||
}
|
||||
goto IL_25A;
|
||||
IL_70:
|
||||
num2 = 0;
|
||||
goto IL_73;
|
||||
}
|
||||
IL_25A:
|
||||
if (cert != 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object;
|
||||
BasicConstraints instance2 = BasicConstraints.GetInstance(asn1Object);
|
||||
if ((!instance._onlyContainsUserCerts || instance2 == 0 || !instance2.IsCA()) && (!instance._onlyContainsCACerts || (instance2 != 0 && instance2.IsCA())) && !instance._onlyContainsAttributeCerts)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
int num6;
|
||||
IEnumerator enumerator2 = Asn1Sequence.GetInstance(num6).GetEnumerator();
|
||||
Asn1EncodableVector asn1EncodableVector2 = new Asn1EncodableVector(Array.Empty<Asn1Encodable>());
|
||||
if (asn1EncodableVector2 != 0)
|
||||
{
|
||||
Asn1Encodable[] array7 = new Asn1Encodable[1];
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
ArrayTypeMismatchException ex;
|
||||
string className = ex._className;
|
||||
throw new ArrayTypeMismatchException();
|
||||
IL_2B3:
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
|
||||
// Token: 0x06009FA6 RID: 40870 RVA: 0x0020F2EC File Offset: 0x0020D4EC
|
||||
[Token(Token = "0x6009FA6")]
|
||||
[Address(RVA = "0x5244D0", Offset = "0x5234D0", VA = "0x1805244D0")]
|
||||
internal static void ProcessCertBC(PkixCertPath certPath, int index, PkixNameConstraintValidator nameConstraintValidator)
|
||||
{
|
||||
GeneralNames instance2;
|
||||
int num3;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
byte[] array;
|
||||
if (array == 0)
|
||||
{
|
||||
}
|
||||
int num2 = 0;
|
||||
if (array != 0)
|
||||
{
|
||||
num2 -= index;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
byte[] array2;
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(new Asn1InputStream(array2).ReadObject());
|
||||
nameConstraintValidator.CheckPermittedDN(instance);
|
||||
nameConstraintValidator.CheckExcludedDN(instance);
|
||||
Asn1Object asn1Object;
|
||||
instance2 = GeneralNames.GetInstance(asn1Object);
|
||||
X509Name instance3 = X509Name.GetInstance(instance);
|
||||
DerObjectIdentifier emailAddress = X509Name.EmailAddress;
|
||||
IList valueList = instance3.GetValueList(emailAddress);
|
||||
GeneralName generalName;
|
||||
if (valueList != 0)
|
||||
{
|
||||
if (valueList != 0 && valueList == 0)
|
||||
{
|
||||
goto IL_D3;
|
||||
}
|
||||
generalName = new GeneralName(1, num);
|
||||
nameConstraintValidator.checkPermitted(generalName);
|
||||
nameConstraintValidator.checkExcluded(generalName);
|
||||
}
|
||||
num3 = 0;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
GeneralName[] names = instance2.GetNames();
|
||||
if (num3 < names.Length)
|
||||
{
|
||||
GeneralName generalName2 = names[num3];
|
||||
nameConstraintValidator.checkPermitted(generalName2);
|
||||
nameConstraintValidator.checkExcluded(generalName2);
|
||||
num3++;
|
||||
}
|
||||
}
|
||||
return;
|
||||
IL_D3:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009FA7 RID: 40871 RVA: 0x0020F3D4 File Offset: 0x0020D5D4
|
||||
[Token(Token = "0x6009FA7")]
|
||||
[Address(RVA = "0x522340", Offset = "0x521340", VA = "0x180522340")]
|
||||
internal static void PrepareNextCertA(PkixCertPath certPath, int index)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FA7)
|
||||
|
||||
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: 0x06009FA8 RID: 40872 RVA: 0x0020F484 File Offset: 0x0020D684
|
||||
[Token(Token = "0x6009FA8")]
|
||||
[Address(RVA = "0x524B20", Offset = "0x523B20", VA = "0x180524B20")]
|
||||
internal static PkixPolicyNode ProcessCertD(PkixCertPath certPath, int index, ISet acceptablePolicies, PkixPolicyNode validPolicyTree, IList[] policyNodes, int inhibitAnyPolicy)
|
||||
{
|
||||
byte[] array;
|
||||
ISet qualifierSet2;
|
||||
for (;;)
|
||||
{
|
||||
if (array == 0)
|
||||
{
|
||||
}
|
||||
if (array != 0)
|
||||
{
|
||||
array -= index;
|
||||
Asn1Object asn1Object;
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
|
||||
if (instance == 0)
|
||||
{
|
||||
goto IL_1C5;
|
||||
}
|
||||
HashSet hashSet = new HashSet();
|
||||
IEnumerator enumerator = instance.GetEnumerator();
|
||||
DerObjectIdentifier policyIdentifier;
|
||||
bool flag;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
PolicyInformation policyInformation;
|
||||
policyIdentifier = policyInformation.policyIdentifier;
|
||||
string any_POLICY = Rfc3280CertPathUtilities.ANY_POLICY;
|
||||
string identifier = policyIdentifier.identifier;
|
||||
if (any_POLICY.Equals(identifier))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
ISet qualifierSet = PkixCertPathValidatorUtilities.GetQualifierSet(policyInformation.policyQualifiers);
|
||||
while (flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
if (policyIdentifier != 0)
|
||||
{
|
||||
goto IL_1EF;
|
||||
}
|
||||
if (enumerator != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
HashSet hashSet2;
|
||||
if (!flag)
|
||||
{
|
||||
hashSet2 = new HashSet();
|
||||
if (hashSet2 != 0)
|
||||
{
|
||||
while (hashSet2 == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (hashSet2 != 0)
|
||||
{
|
||||
}
|
||||
if (hashSet2 != 0)
|
||||
{
|
||||
goto IL_201;
|
||||
}
|
||||
if (hashSet2 != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
}
|
||||
bool flag2;
|
||||
if (hashSet2 >= array || !flag2)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IEnumerator enumerator2 = instance.GetEnumerator();
|
||||
IList list;
|
||||
if (enumerator2 != 0)
|
||||
{
|
||||
string any_POLICY2 = Rfc3280CertPathUtilities.ANY_POLICY;
|
||||
PolicyInformation policyInformation2;
|
||||
string identifier2 = policyInformation2.policyIdentifier.identifier;
|
||||
if (!any_POLICY2.Equals(identifier2))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Asn1Sequence policyQualifiers = policyInformation2.policyQualifiers;
|
||||
qualifierSet2 = PkixCertPathValidatorUtilities.GetQualifierSet(policyQualifiers);
|
||||
byte b = array[policyQualifiers];
|
||||
if (0 < qualifierSet2 && qualifierSet2 != 0)
|
||||
{
|
||||
if (qualifierSet2 != 0 && qualifierSet2 != 0 && qualifierSet2 == 0)
|
||||
{
|
||||
goto IL_201;
|
||||
}
|
||||
while (qualifierSet2 == 0)
|
||||
{
|
||||
}
|
||||
bool flag3;
|
||||
while (!flag3)
|
||||
{
|
||||
}
|
||||
if (hashSet2 != 0)
|
||||
{
|
||||
}
|
||||
if (hashSet2 != 0)
|
||||
{
|
||||
goto IL_213;
|
||||
}
|
||||
if (hashSet2 != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
ulong num;
|
||||
while (num != (ulong)0L)
|
||||
{
|
||||
}
|
||||
HashSet hashSet3 = new HashSet();
|
||||
list = Platform.CreateArrayList();
|
||||
int length = array.Length;
|
||||
byte b2 = array[hashSet3];
|
||||
}
|
||||
}
|
||||
if (list != 0)
|
||||
{
|
||||
}
|
||||
if (enumerator2 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
int num2 = 0;
|
||||
byte b3 = array[qualifierSet2];
|
||||
PkixPolicyNode pkixPolicyNode;
|
||||
if (num2 < qualifierSet2 && (qualifierSet2 != 0 || pkixPolicyNode != 0))
|
||||
{
|
||||
num2++;
|
||||
}
|
||||
DerObjectIdentifier certificatePolicies = X509Extensions.CertificatePolicies;
|
||||
int length2 = array.Length;
|
||||
byte b4 = array[qualifierSet2];
|
||||
if (num2 < qualifierSet2)
|
||||
{
|
||||
num2++;
|
||||
}
|
||||
IL_1C5:
|
||||
throw new NullReferenceException();
|
||||
IL_1EF:
|
||||
throw new NullReferenceException();
|
||||
IL_201:
|
||||
throw new NullReferenceException();
|
||||
IL_213:
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
|
||||
// Token: 0x06009FA9 RID: 40873 RVA: 0x0020F710 File Offset: 0x0020D910
|
||||
[Token(Token = "0x6009FA9")]
|
||||
[Address(RVA = "0x526480", Offset = "0x525480", VA = "0x180526480")]
|
||||
internal static void ProcessCrlB1(DistributionPoint dp, object cert, X509Crl crl)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FA9)
|
||||
|
||||
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: 0x06009FAA RID: 40874 RVA: 0x0020F7C4 File Offset: 0x0020D9C4
|
||||
[Token(Token = "0x6009FAA")]
|
||||
[Address(RVA = "0x527A40", Offset = "0x526A40", VA = "0x180527A40")]
|
||||
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: 0x06009FAB RID: 40875 RVA: 0x0020F8A8 File Offset: 0x0020DAA8
|
||||
[Token(Token = "0x6009FAB")]
|
||||
[Address(RVA = "0x527D60", Offset = "0x526D60", VA = "0x180527D60")]
|
||||
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: 0x06009FAC RID: 40876 RVA: 0x0020F9E0 File Offset: 0x0020DBE0
|
||||
[Token(Token = "0x6009FAC")]
|
||||
[Address(RVA = "0x5285D0", Offset = "0x5275D0", VA = "0x1805285D0")]
|
||||
internal static AsymmetricKeyParameter ProcessCrlG(X509Crl crl, ISet keys)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FAC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::ProcessCrlG(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Crl,BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:Exception(var_3_3B, newobj:Exception(Exception::.ctor, ldstr:string("Cannot verify CRL."), ldloc:int32[exp:Exception](var_0_01)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009FAD RID: 40877 RVA: 0x0020FA28 File Offset: 0x0020DC28
|
||||
[Token(Token = "0x6009FAD")]
|
||||
[Address(RVA = "0x528810", Offset = "0x527810", VA = "0x180528810")]
|
||||
internal static X509Crl ProcessCrlH(ISet deltaCrls, AsymmetricKeyParameter key)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FAD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Crl BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3280CertPathUtilities::ProcessCrlH(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2F:
|
||||
stloc:Exception(var_4_3A, newobj:Exception(Exception::.ctor, ldstr:string("Cannot verify delta CRL."), ldloc:int32[exp:Exception](var_0_01)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009FAE RID: 40878 RVA: 0x0020FA70 File Offset: 0x0020DC70
|
||||
[Token(Token = "0x6009FAE")]
|
||||
[Address(RVA = "0x520100", Offset = "0x51F100", VA = "0x180520100")]
|
||||
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: 0x06009FAF RID: 40879 RVA: 0x0020FB64 File Offset: 0x0020DD64
|
||||
[Token(Token = "0x6009FAF")]
|
||||
[Address(RVA = "0x520890", Offset = "0x51F890", VA = "0x180520890")]
|
||||
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: 0x06009FB0 RID: 40880 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x6009FB0")]
|
||||
[Address(RVA = "0x520FA0", Offset = "0x51FFA0", VA = "0x180520FA0")]
|
||||
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: 0x06009FB1 RID: 40881 RVA: 0x0020FC94 File Offset: 0x0020DE94
|
||||
[Token(Token = "0x6009FB1")]
|
||||
[Address(RVA = "0x526130", Offset = "0x525130", VA = "0x180526130")]
|
||||
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: 0x06009FB2 RID: 40882 RVA: 0x0020FD20 File Offset: 0x0020DF20
|
||||
[Token(Token = "0x6009FB2")]
|
||||
[Address(RVA = "0x525E20", Offset = "0x524E20", VA = "0x180525E20")]
|
||||
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: 0x06009FB3 RID: 40883 RVA: 0x0020FD7C File Offset: 0x0020DF7C
|
||||
[Token(Token = "0x6009FB3")]
|
||||
[Address(RVA = "0x525D80", Offset = "0x524D80", VA = "0x180525D80")]
|
||||
internal static void ProcessCertF(PkixCertPath certPath, int index, PkixPolicyNode validPolicyTree, int explicitPolicy)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FB3)
|
||||
|
||||
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: 0x06009FB4 RID: 40884 RVA: 0x0020FDA0 File Offset: 0x0020DFA0
|
||||
[Token(Token = "0x6009FB4")]
|
||||
[Address(RVA = "0x523F20", Offset = "0x522F20", VA = "0x180523F20")]
|
||||
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: 0x06009FB5 RID: 40885 RVA: 0x0020FE60 File Offset: 0x0020E060
|
||||
[Token(Token = "0x6009FB5")]
|
||||
[Address(RVA = "0x522E50", Offset = "0x521E50", VA = "0x180522E50")]
|
||||
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: 0x06009FB6 RID: 40886 RVA: 0x0020FED8 File Offset: 0x0020E0D8
|
||||
[Token(Token = "0x6009FB6")]
|
||||
[Address(RVA = "0x523100", Offset = "0x522100", VA = "0x180523100")]
|
||||
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: 0x06009FB7 RID: 40887 RVA: 0x0020FF50 File Offset: 0x0020E150
|
||||
[Token(Token = "0x6009FB7")]
|
||||
[Address(RVA = "0x522760", Offset = "0x521760", VA = "0x180522760")]
|
||||
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: 0x06009FB8 RID: 40888 RVA: 0x0020FFF0 File Offset: 0x0020E1F0
|
||||
[Token(Token = "0x6009FB8")]
|
||||
[Address(RVA = "0x5233B0", Offset = "0x5223B0", VA = "0x1805233B0")]
|
||||
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: 0x06009FB9 RID: 40889 RVA: 0x00210038 File Offset: 0x0020E238
|
||||
[Token(Token = "0x6009FB9")]
|
||||
[Address(RVA = "0x523590", Offset = "0x522590", VA = "0x180523590")]
|
||||
internal static void PrepareNextCertK(PkixCertPath certPath, int index)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FB9)
|
||||
|
||||
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: 0x06009FBA RID: 40890 RVA: 0x00210080 File Offset: 0x0020E280
|
||||
[Token(Token = "0x6009FBA")]
|
||||
[Address(RVA = "0x5237A0", Offset = "0x5227A0", VA = "0x1805237A0")]
|
||||
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: 0x06009FBB RID: 40891 RVA: 0x002100A8 File Offset: 0x0020E2A8
|
||||
[Token(Token = "0x6009FBB")]
|
||||
[Address(RVA = "0x523900", Offset = "0x522900", VA = "0x180523900")]
|
||||
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: 0x06009FBC RID: 40892 RVA: 0x002100F0 File Offset: 0x0020E2F0
|
||||
[Token(Token = "0x6009FBC")]
|
||||
[Address(RVA = "0x523AD0", Offset = "0x522AD0", VA = "0x180523AD0")]
|
||||
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: 0x06009FBD RID: 40893 RVA: 0x00210130 File Offset: 0x0020E330
|
||||
[Token(Token = "0x6009FBD")]
|
||||
[Address(RVA = "0x523C90", Offset = "0x522C90", VA = "0x180523C90")]
|
||||
internal static void PrepareNextCertO(PkixCertPath certPath, int index, ISet criticalExtensions, IList pathCheckers)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FBD)
|
||||
|
||||
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: 0x06009FBE RID: 40894 RVA: 0x0021017C File Offset: 0x0020E37C
|
||||
[Token(Token = "0x6009FBE")]
|
||||
[Address(RVA = "0x522AF0", Offset = "0x521AF0", VA = "0x180522AF0")]
|
||||
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: 0x06009FBF RID: 40895 RVA: 0x002101AC File Offset: 0x0020E3AC
|
||||
[Token(Token = "0x6009FBF")]
|
||||
[Address(RVA = "0x522C10", Offset = "0x521C10", VA = "0x180522C10")]
|
||||
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: 0x06009FC0 RID: 40896 RVA: 0x002101DC File Offset: 0x0020E3DC
|
||||
[Token(Token = "0x6009FC0")]
|
||||
[Address(RVA = "0x522D30", Offset = "0x521D30", VA = "0x180522D30")]
|
||||
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: 0x06009FC1 RID: 40897 RVA: 0x0021020C File Offset: 0x0020E40C
|
||||
[Token(Token = "0x6009FC1")]
|
||||
[Address(RVA = "0x528BD0", Offset = "0x527BD0", VA = "0x180528BD0")]
|
||||
internal static int WrapupCertA(int explicitPolicy, X509Certificate cert)
|
||||
{
|
||||
if (PkixCertPathValidatorUtilities.IsSelfIssued(cert) || explicitPolicy == 0)
|
||||
{
|
||||
}
|
||||
return explicitPolicy;
|
||||
}
|
||||
|
||||
// Token: 0x06009FC2 RID: 40898 RVA: 0x00210228 File Offset: 0x0020E428
|
||||
[Token(Token = "0x6009FC2")]
|
||||
[Address(RVA = "0x528C40", Offset = "0x527C40", VA = "0x180528C40")]
|
||||
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: 0x06009FC3 RID: 40899 RVA: 0x00210294 File Offset: 0x0020E494
|
||||
[Token(Token = "0x6009FC3")]
|
||||
[Address(RVA = "0x528F40", Offset = "0x527F40", VA = "0x180528F40")]
|
||||
internal static void WrapupCertF(PkixCertPath certPath, int index, IList pathCheckers, ISet criticalExtensions)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FC3)
|
||||
|
||||
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: 0x06009FC4 RID: 40900 RVA: 0x002102D4 File Offset: 0x0020E4D4
|
||||
[Token(Token = "0x6009FC4")]
|
||||
[Address(RVA = "0x5291A0", Offset = "0x5281A0", VA = "0x1805291A0")]
|
||||
internal static PkixPolicyNode WrapupCertG(PkixCertPath certPath, PkixParameters paramsPKIX, ISet userInitialPolicySet, int index, IList[] policyNodes, PkixPolicyNode validPolicyTree, ISet acceptablePolicies)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
uint num3;
|
||||
if (!PkixCertPathValidatorUtilities.IsAnyPolicy(userInitialPolicySet))
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
if (num2 < hashSet)
|
||||
{
|
||||
string any_POLICY = Rfc3280CertPathUtilities.ANY_POLICY;
|
||||
bool isEmpty = hashSet.IsEmpty;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
string any_POLICY2 = Rfc3280CertPathUtilities.ANY_POLICY;
|
||||
bool flag2;
|
||||
while (flag2)
|
||||
{
|
||||
}
|
||||
num3 += (uint)1;
|
||||
if (num3 != (uint)0)
|
||||
{
|
||||
}
|
||||
if (any_POLICY2 != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (num3 != (uint)(-1))
|
||||
{
|
||||
}
|
||||
}
|
||||
num2++;
|
||||
}
|
||||
num++;
|
||||
if (hashSet != 0 && hashSet.IsEmpty)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
PkixPolicyNode pkixPolicyNode;
|
||||
if (pkixPolicyNode == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
int i = 0;
|
||||
while (i >= (int)num3)
|
||||
{
|
||||
}
|
||||
i++;
|
||||
}
|
||||
string text;
|
||||
if (text == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (text == 0)
|
||||
{
|
||||
HashSet hashSet2 = new HashSet();
|
||||
int num4 = 0;
|
||||
if (num4 < hashSet2)
|
||||
{
|
||||
string any_POLICY3 = Rfc3280CertPathUtilities.ANY_POLICY;
|
||||
bool isEmpty2 = hashSet2.IsEmpty;
|
||||
bool flag3;
|
||||
if (flag3)
|
||||
{
|
||||
num3 += (uint)1;
|
||||
if (num3 != (uint)0)
|
||||
{
|
||||
}
|
||||
if (any_POLICY3 != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (num3 != (uint)(-1))
|
||||
{
|
||||
}
|
||||
}
|
||||
num4++;
|
||||
}
|
||||
if (num3 != (uint)0)
|
||||
{
|
||||
}
|
||||
if (num3 != (uint)0)
|
||||
{
|
||||
}
|
||||
if (num3 == (uint)0)
|
||||
{
|
||||
if (num4 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
int j = 0;
|
||||
while (j >= (int)num3)
|
||||
{
|
||||
}
|
||||
j++;
|
||||
string text2;
|
||||
if (text2 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009FC5 RID: 40901 RVA: 0x002103E8 File Offset: 0x0020E5E8
|
||||
[Token(Token = "0x6009FC5")]
|
||||
[Address(RVA = "0x5275A0", Offset = "0x5265A0", VA = "0x1805275A0")]
|
||||
internal static void ProcessCrlC(X509Crl deltaCRL, X509Crl completeCRL, PkixParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FC5)
|
||||
|
||||
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: 0x06009FC6 RID: 40902 RVA: 0x00210484 File Offset: 0x0020E684
|
||||
[Token(Token = "0x6009FC6")]
|
||||
[Address(RVA = "0x528A70", Offset = "0x527A70", VA = "0x180528A70")]
|
||||
internal static void ProcessCrlI(DateTime validDate, X509Crl deltacrl, object cert, CertStatus certStatus, PkixParameters pkixParams)
|
||||
{
|
||||
if (deltacrl != 0)
|
||||
{
|
||||
PkixCertPathValidatorUtilities.GetCertStatus(validDate, deltacrl, cert, certStatus);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009FC7 RID: 40903 RVA: 0x002104A4 File Offset: 0x0020E6A4
|
||||
[Token(Token = "0x6009FC7")]
|
||||
[Address(RVA = "0x528B30", Offset = "0x527B30", VA = "0x180528B30")]
|
||||
internal static void ProcessCrlJ(DateTime validDate, X509Crl completecrl, object cert, CertStatus certStatus)
|
||||
{
|
||||
if (certStatus.status == 11)
|
||||
{
|
||||
PkixCertPathValidatorUtilities.GetCertStatus(validDate, completecrl, cert, certStatus);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009FC8 RID: 40904 RVA: 0x002104CC File Offset: 0x0020E6CC
|
||||
[Token(Token = "0x6009FC8")]
|
||||
[Address(RVA = "0x525BC0", Offset = "0x524BC0", VA = "0x180525BC0")]
|
||||
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: 0x06009FC9 RID: 40905 RVA: 0x002104F8 File Offset: 0x0020E6F8
|
||||
[Token(Token = "0x6009FC9")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public Rfc3280CertPathUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009FCA RID: 40906 RVA: 0x0021050C File Offset: 0x0020E70C
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x6009FCA")]
|
||||
[Address(RVA = "0x529DA0", Offset = "0x528DA0", VA = "0x180529DA0")]
|
||||
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: 0x04006ACC RID: 27340
|
||||
[Token(Token = "0x4006ACC")]
|
||||
private static readonly PkixCrlUtilities CrlUtilities = new PkixCrlUtilities();
|
||||
|
||||
// Token: 0x04006ACD RID: 27341
|
||||
[Token(Token = "0x4006ACD")]
|
||||
internal static readonly string ANY_POLICY = "2.5.29.32.0";
|
||||
|
||||
// Token: 0x04006ACE RID: 27342
|
||||
[Token(Token = "0x4006ACE")]
|
||||
internal static readonly int KEY_CERT_SIGN;
|
||||
|
||||
// Token: 0x04006ACF RID: 27343
|
||||
[Token(Token = "0x4006ACF")]
|
||||
internal static readonly int CRL_SIGN;
|
||||
|
||||
// Token: 0x04006AD0 RID: 27344
|
||||
[Token(Token = "0x4006AD0")]
|
||||
internal static readonly string[] CrlReasons;
|
||||
}
|
||||
}
|
||||
+237
@@ -0,0 +1,237 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A67 RID: 6759
|
||||
[Token(Token = "0x2001A67")]
|
||||
internal class Rfc3281CertPathUtilities
|
||||
{
|
||||
// Token: 0x06009FCB RID: 40907 RVA: 0x00210620 File Offset: 0x0020E820
|
||||
[Token(Token = "0x6009FCB")]
|
||||
[Address(RVA = "0x52C140", Offset = "0x52B140", VA = "0x18052C140")]
|
||||
internal static void ProcessAttrCert7(IX509AttributeCertificate attrCert, PkixCertPath certPath, PkixCertPath holderCertPath, PkixParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FCB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3281CertPathUtilities::ProcessAttrCert7(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.IX509AttributeCertificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4B:
|
||||
stloc:PkixCertPathValidatorException(var_10_52, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldloc:string(var_9)))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009FCC RID: 40908 RVA: 0x00210680 File Offset: 0x0020E880
|
||||
[Token(Token = "0x6009FCC")]
|
||||
[Address(RVA = "0x52AB20", Offset = "0x529B20", VA = "0x18052AB20")]
|
||||
internal static void CheckCrls(IX509AttributeCertificate attrCert, PkixParameters paramsPKIX, X509Certificate issuerCert, DateTime validDate, IList certPathCerts)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FCC)
|
||||
|
||||
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: 0x06009FCD RID: 40909 RVA: 0x0021084C File Offset: 0x0020EA4C
|
||||
[Token(Token = "0x6009FCD")]
|
||||
[Address(RVA = "0x52A240", Offset = "0x529240", VA = "0x18052A240")]
|
||||
internal static void AdditionalChecks(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
int num2 = 0;
|
||||
if (num != 0)
|
||||
{
|
||||
goto IL_39;
|
||||
}
|
||||
if (num2 != -1)
|
||||
{
|
||||
}
|
||||
if (1 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_39:
|
||||
string text;
|
||||
PkixCertPathValidatorException ex = new PkixCertPathValidatorException(text);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009FCE RID: 40910 RVA: 0x002108A8 File Offset: 0x0020EAA8
|
||||
[Token(Token = "0x6009FCE")]
|
||||
[Address(RVA = "0x52BFD0", Offset = "0x52AFD0", VA = "0x18052BFD0")]
|
||||
internal static void ProcessAttrCert5(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
|
||||
{
|
||||
DateTime dateTime = PkixCertPathValidatorUtilities.GetValidDate(pkixParams);
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
dateTime += dateTime;
|
||||
}
|
||||
|
||||
// Token: 0x06009FCF RID: 40911 RVA: 0x002108D0 File Offset: 0x0020EAD0
|
||||
[Token(Token = "0x6009FCF")]
|
||||
[Address(RVA = "0x52BD20", Offset = "0x52AD20", VA = "0x18052BD20")]
|
||||
internal static void ProcessAttrCert4(X509Certificate acIssuerCert, PkixParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FCF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3281CertPathUtilities::ProcessAttrCert4(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_50:
|
||||
stloc:PkixCertPathValidatorException(var_5_5A, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Attribute certificate issuer is not directly trusted.")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009FD0 RID: 40912 RVA: 0x00210938 File Offset: 0x0020EB38
|
||||
[Token(Token = "0x6009FD0")]
|
||||
[Address(RVA = "0x52BBE0", Offset = "0x52ABE0", VA = "0x18052BBE0")]
|
||||
internal static void ProcessAttrCert3(X509Certificate acIssuerCert, PkixParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FD0)
|
||||
|
||||
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: 0x06009FD1 RID: 40913 RVA: 0x00210984 File Offset: 0x0020EB84
|
||||
[Token(Token = "0x6009FD1")]
|
||||
[Address(RVA = "0x52BB00", Offset = "0x52AB00", VA = "0x18052BB00")]
|
||||
internal static PkixCertPathValidatorResult ProcessAttrCert2(PkixCertPath certPath, PkixParameters pkixParams)
|
||||
{
|
||||
string text = new PkixCertPathValidator().ToString();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009FD2 RID: 40914 RVA: 0x002109A4 File Offset: 0x0020EBA4
|
||||
[Token(Token = "0x6009FD2")]
|
||||
[Address(RVA = "0x52B460", Offset = "0x52A460", VA = "0x18052B460")]
|
||||
internal static PkixCertPath ProcessAttrCert1(IX509AttributeCertificate attrCert, PkixParameters pkixParams)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FD2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixCertPath BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.Rfc3281CertPathUtilities::ProcessAttrCert1(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.IX509AttributeCertificate,BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_11D:
|
||||
stloc:PkixCertPathValidatorException(var_23_127, newobj:PkixCertPathValidatorException(PkixCertPathValidatorException::.ctor, ldstr:string("Public key certificate specified in base certificate ID for attribute certificate cannot be found.")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009FD3 RID: 40915 RVA: 0x00210ADC File Offset: 0x0020ECDC
|
||||
[Token(Token = "0x6009FD3")]
|
||||
[Address(RVA = "0x52A5E0", Offset = "0x5295E0", VA = "0x18052A5E0")]
|
||||
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: 0x06009FD4 RID: 40916 RVA: 0x00210B40 File Offset: 0x0020ED40
|
||||
[Token(Token = "0x6009FD4")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public Rfc3281CertPathUtilities()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001A68 RID: 6760
|
||||
[Token(Token = "0x2001A68")]
|
||||
public class TrustAnchor
|
||||
{
|
||||
// Token: 0x06009FD5 RID: 40917 RVA: 0x00210B54 File Offset: 0x0020ED54
|
||||
[Token(Token = "0x6009FD5")]
|
||||
[Address(RVA = "0x52C780", Offset = "0x52B780", VA = "0x18052C780")]
|
||||
public TrustAnchor(X509Certificate trustedCert, byte[] nameConstraints)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FD5)
|
||||
|
||||
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: 0x06009FD6 RID: 40918 RVA: 0x00210B9C File Offset: 0x0020ED9C
|
||||
[Token(Token = "0x6009FD6")]
|
||||
[Address(RVA = "0x52C830", Offset = "0x52B830", VA = "0x18052C830")]
|
||||
public TrustAnchor(X509Name caPrincipal, AsymmetricKeyParameter pubKey, byte[] nameConstraints)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FD6)
|
||||
|
||||
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: 0x06009FD7 RID: 40919 RVA: 0x00210BFC File Offset: 0x0020EDFC
|
||||
[Token(Token = "0x6009FD7")]
|
||||
[Address(RVA = "0x52C930", Offset = "0x52B930", VA = "0x18052C930")]
|
||||
public TrustAnchor(string caName, AsymmetricKeyParameter pubKey, byte[] nameConstraints)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009FD7)
|
||||
|
||||
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: 0x1700198E RID: 6542
|
||||
// (get) Token: 0x06009FD8 RID: 40920 RVA: 0x00210C64 File Offset: 0x0020EE64
|
||||
[Token(Token = "0x1700198E")]
|
||||
public X509Certificate TrustedCert
|
||||
{
|
||||
[Token(Token = "0x6009FD8")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.trustedCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700198F RID: 6543
|
||||
// (get) Token: 0x06009FD9 RID: 40921 RVA: 0x00210C78 File Offset: 0x0020EE78
|
||||
[Token(Token = "0x1700198F")]
|
||||
public X509Name CA
|
||||
{
|
||||
[Token(Token = "0x6009FD9")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.caPrincipal;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001990 RID: 6544
|
||||
// (get) Token: 0x06009FDA RID: 40922 RVA: 0x00210C8C File Offset: 0x0020EE8C
|
||||
[Token(Token = "0x17001990")]
|
||||
public string CAName
|
||||
{
|
||||
[Token(Token = "0x6009FDA")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.caName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001991 RID: 6545
|
||||
// (get) Token: 0x06009FDB RID: 40923 RVA: 0x00210CA0 File Offset: 0x0020EEA0
|
||||
[Token(Token = "0x17001991")]
|
||||
public AsymmetricKeyParameter CAPublicKey
|
||||
{
|
||||
[Token(Token = "0x6009FDB")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.pubKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009FDC RID: 40924 RVA: 0x00210CB4 File Offset: 0x0020EEB4
|
||||
[Token(Token = "0x6009FDC")]
|
||||
[Address(RVA = "0x52CAE0", Offset = "0x52BAE0", VA = "0x18052CAE0")]
|
||||
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: 0x17001992 RID: 6546
|
||||
// (get) Token: 0x06009FDD RID: 40925 RVA: 0x00210CEC File Offset: 0x0020EEEC
|
||||
[Token(Token = "0x17001992")]
|
||||
public byte[] GetNameConstraints
|
||||
{
|
||||
[Token(Token = "0x6009FDD")]
|
||||
[Address(RVA = "0x52CA80", Offset = "0x52BA80", VA = "0x18052CA80")]
|
||||
get
|
||||
{
|
||||
return Arrays.Clone(this.ncBytes);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009FDE RID: 40926 RVA: 0x00210D04 File Offset: 0x0020EF04
|
||||
[Token(Token = "0x6009FDE")]
|
||||
[Address(RVA = "0x52C5C0", Offset = "0x52B5C0", VA = "0x18052C5C0", 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: 0x04006AD1 RID: 27345
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006AD1")]
|
||||
private readonly AsymmetricKeyParameter pubKey;
|
||||
|
||||
// Token: 0x04006AD2 RID: 27346
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006AD2")]
|
||||
private readonly string caName;
|
||||
|
||||
// Token: 0x04006AD3 RID: 27347
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006AD3")]
|
||||
private readonly X509Name caPrincipal;
|
||||
|
||||
// Token: 0x04006AD4 RID: 27348
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006AD4")]
|
||||
private readonly X509Certificate trustedCert;
|
||||
|
||||
// Token: 0x04006AD5 RID: 27349
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006AD5")]
|
||||
private byte[] ncBytes;
|
||||
|
||||
// Token: 0x04006AD6 RID: 27350
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006AD6")]
|
||||
private NameConstraints nc;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user