153 lines
6.8 KiB
C#
153 lines
6.8 KiB
C#
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;
|
|
}
|
|
}
|