oh dear
This commit is contained in:
+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: 0x02001976 RID: 6518
|
||||
[Token(Token = "0x2001976")]
|
||||
public class PkixBuilderParameters : PkixParameters
|
||||
{
|
||||
// Token: 0x06009AFE RID: 39678 RVA: 0x00201DAC File Offset: 0x001FFFAC
|
||||
[Token(Token = "0x6009AFE")]
|
||||
[Address(RVA = "0x1CC97F0", Offset = "0x1CC85F0", VA = "0x181CC97F0")]
|
||||
public static PkixBuilderParameters GetInstance(PkixParameters pkixParams)
|
||||
{
|
||||
PkixBuilderParameters pkixBuilderParameters;
|
||||
object obj = pkixBuilderParameters.Clone();
|
||||
return pkixBuilderParameters;
|
||||
}
|
||||
|
||||
// Token: 0x06009AFF RID: 39679 RVA: 0x00201DC8 File Offset: 0x001FFFC8
|
||||
[Token(Token = "0x6009AFF")]
|
||||
[Address(RVA = "0x1CC9BC0", Offset = "0x1CC89C0", VA = "0x181CC9BC0")]
|
||||
public PkixBuilderParameters(ISet trustAnchors, IX509Selector targetConstraints)
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
this.excludedCerts = hashSet;
|
||||
base..ctor(trustAnchors);
|
||||
}
|
||||
|
||||
// Token: 0x170018D4 RID: 6356
|
||||
// (get) Token: 0x06009B00 RID: 39680 RVA: 0x00201DF4 File Offset: 0x001FFFF4
|
||||
// (set) Token: 0x06009B01 RID: 39681 RVA: 0x00201E08 File Offset: 0x00200008
|
||||
[Token(Token = "0x170018D4")]
|
||||
public virtual int MaxPathLength
|
||||
{
|
||||
[Token(Token = "0x6009B00")]
|
||||
[Address(RVA = "0x73F5C0", Offset = "0x73E3C0", VA = "0x18073F5C0", Slot = "48")]
|
||||
get
|
||||
{
|
||||
return this.maxPathLength;
|
||||
}
|
||||
[Token(Token = "0x6009B01")]
|
||||
[Address(RVA = "0x1CC9C60", Offset = "0x1CC8A60", VA = "0x181CC9C60", Slot = "49")]
|
||||
set
|
||||
{
|
||||
this.maxPathLength = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009B02 RID: 39682 RVA: 0x00201E28 File Offset: 0x00200028
|
||||
[Token(Token = "0x6009B02")]
|
||||
[Address(RVA = "0x1CC9790", Offset = "0x1CC8590", VA = "0x181CC9790", Slot = "50")]
|
||||
public virtual ISet GetExcludedCerts()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009B02)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixBuilderParameters::GetExcludedCerts()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixBuilderParameters::excludedCerts, ldloc:PkixBuilderParameters(this))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06009B03 RID: 39683 RVA: 0x00201E40 File Offset: 0x00200040
|
||||
[Token(Token = "0x6009B03")]
|
||||
[Address(RVA = "0x1CC98E0", Offset = "0x1CC86E0", VA = "0x181CC98E0", Slot = "51")]
|
||||
public virtual void SetExcludedCerts(ISet excludedCerts)
|
||||
{
|
||||
if (excludedCerts != 0)
|
||||
{
|
||||
HashSet hashSet = new HashSet(excludedCerts);
|
||||
this.excludedCerts = hashSet;
|
||||
return;
|
||||
}
|
||||
HashSet hashSet2 = new HashSet();
|
||||
}
|
||||
|
||||
// Token: 0x06009B04 RID: 39684 RVA: 0x00201E68 File Offset: 0x00200068
|
||||
[Token(Token = "0x6009B04")]
|
||||
[Address(RVA = "0x1CC9970", Offset = "0x1CC8770", VA = "0x181CC9970", Slot = "26")]
|
||||
protected override void SetParams(PkixParameters parameters)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
base.SetParams(parameters);
|
||||
if (parameters == 0 || parameters == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
num = 0;
|
||||
}
|
||||
while (parameters == 0);
|
||||
this.maxPathLength = num;
|
||||
HashSet hashSet;
|
||||
this.excludedCerts = hashSet;
|
||||
}
|
||||
|
||||
// Token: 0x06009B05 RID: 39685 RVA: 0x00201E9C File Offset: 0x0020009C
|
||||
[Token(Token = "0x6009B05")]
|
||||
[Address(RVA = "0x1CC96D0", Offset = "0x1CC84D0", VA = "0x181CC96D0", Slot = "25")]
|
||||
public override object Clone()
|
||||
{
|
||||
PkixBuilderParameters pkixBuilderParameters;
|
||||
object obj = pkixBuilderParameters.Clone();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009B06 RID: 39686 RVA: 0x00201EB8 File Offset: 0x002000B8
|
||||
[Token(Token = "0x6009B06")]
|
||||
[Address(RVA = "0x1CC9A80", Offset = "0x1CC8880", VA = "0x181CC9A80", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
string text = "PkixBuilderParameters [" + newLine;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(text);
|
||||
string text2 = base.ToString();
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(text2);
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(" Maximum Path Length: ");
|
||||
string text3 = newLine + "]" + newLine;
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(text3);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040068D8 RID: 26840
|
||||
[FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x40068D8")]
|
||||
private int maxPathLength = (int)((ulong)5L);
|
||||
|
||||
// Token: 0x040068D9 RID: 26841
|
||||
[FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x40068D9")]
|
||||
private ISet excludedCerts;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user