scripts
This commit is contained in:
+154
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix
|
||||
{
|
||||
// Token: 0x02001399 RID: 5017
|
||||
[Token(Token = "0x2001399")]
|
||||
[StructLayout(3)]
|
||||
public class PkixBuilderParameters : PkixParameters
|
||||
{
|
||||
// Token: 0x06007F24 RID: 32548 RVA: 0x001AA79C File Offset: 0x001A899C
|
||||
[Token(Token = "0x6007F24")]
|
||||
[Address(RVA = "0x4EA450", Offset = "0x4E8E50", VA = "0x1804EA450")]
|
||||
public static PkixBuilderParameters GetInstance(PkixParameters pkixParams)
|
||||
{
|
||||
PkixBuilderParameters pkixBuilderParameters;
|
||||
object obj = pkixBuilderParameters.Clone();
|
||||
return pkixBuilderParameters;
|
||||
}
|
||||
|
||||
// Token: 0x06007F25 RID: 32549 RVA: 0x001AA7B8 File Offset: 0x001A89B8
|
||||
[Token(Token = "0x6007F25")]
|
||||
[Address(RVA = "0x4EA820", Offset = "0x4E9220", VA = "0x1804EA820")]
|
||||
public PkixBuilderParameters(ISet trustAnchors, IX509Selector targetConstraints)
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
this.excludedCerts = hashSet;
|
||||
base..ctor(trustAnchors);
|
||||
}
|
||||
|
||||
// Token: 0x170014D3 RID: 5331
|
||||
// (get) Token: 0x06007F26 RID: 32550 RVA: 0x001AA7E4 File Offset: 0x001A89E4
|
||||
// (set) Token: 0x06007F27 RID: 32551 RVA: 0x001AA7F8 File Offset: 0x001A89F8
|
||||
[Token(Token = "0x170014D3")]
|
||||
public virtual int MaxPathLength
|
||||
{
|
||||
[Token(Token = "0x6007F26")]
|
||||
[Address(RVA = "0x4EA8C0", Offset = "0x4E92C0", VA = "0x1804EA8C0", Slot = "48")]
|
||||
get
|
||||
{
|
||||
return this.maxPathLength;
|
||||
}
|
||||
[Token(Token = "0x6007F27")]
|
||||
[Address(RVA = "0x4EA8D0", Offset = "0x4E92D0", VA = "0x1804EA8D0", Slot = "49")]
|
||||
set
|
||||
{
|
||||
this.maxPathLength = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007F28 RID: 32552 RVA: 0x001AA818 File Offset: 0x001A8A18
|
||||
[Token(Token = "0x6007F28")]
|
||||
[Address(RVA = "0x4EA3F0", Offset = "0x4E8DF0", VA = "0x1804EA3F0", Slot = "50")]
|
||||
public virtual ISet GetExcludedCerts()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007F28)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.Pkix.PkixBuilderParameters::GetExcludedCerts()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:HashSet(var_0_0B, newobj:HashSet(HashSet::.ctor, ldfld:ISet[exp:IEnumerable](PkixBuilderParameters::excludedCerts, ldloc:PkixBuilderParameters(this))))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x06007F29 RID: 32553 RVA: 0x001AA830 File Offset: 0x001A8A30
|
||||
[Token(Token = "0x6007F29")]
|
||||
[Address(RVA = "0x4EA540", Offset = "0x4E8F40", VA = "0x1804EA540", Slot = "51")]
|
||||
public virtual void SetExcludedCerts(ISet excludedCerts)
|
||||
{
|
||||
if (excludedCerts != 0)
|
||||
{
|
||||
HashSet hashSet = new HashSet(excludedCerts);
|
||||
this.excludedCerts = hashSet;
|
||||
return;
|
||||
}
|
||||
HashSet hashSet2 = new HashSet();
|
||||
}
|
||||
|
||||
// Token: 0x06007F2A RID: 32554 RVA: 0x001AA858 File Offset: 0x001A8A58
|
||||
[Token(Token = "0x6007F2A")]
|
||||
[Address(RVA = "0x4EA5D0", Offset = "0x4E8FD0", VA = "0x1804EA5D0", Slot = "26")]
|
||||
protected override void SetParams(PkixParameters parameters)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
base.SetParams(parameters);
|
||||
if (parameters == 0 || parameters == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
num = 0;
|
||||
}
|
||||
while (parameters == 0);
|
||||
this.maxPathLength = num;
|
||||
HashSet hashSet;
|
||||
this.excludedCerts = hashSet;
|
||||
}
|
||||
|
||||
// Token: 0x06007F2B RID: 32555 RVA: 0x001AA88C File Offset: 0x001A8A8C
|
||||
[Token(Token = "0x6007F2B")]
|
||||
[Address(RVA = "0x4EA330", Offset = "0x4E8D30", VA = "0x1804EA330", Slot = "25")]
|
||||
public override object Clone()
|
||||
{
|
||||
PkixBuilderParameters pkixBuilderParameters;
|
||||
object obj = pkixBuilderParameters.Clone();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007F2C RID: 32556 RVA: 0x001AA8A8 File Offset: 0x001A8AA8
|
||||
[Token(Token = "0x6007F2C")]
|
||||
[Address(RVA = "0x4EA6E0", Offset = "0x4E90E0", VA = "0x1804EA6E0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
string text = "PkixBuilderParameters [" + newLine;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(text);
|
||||
string text2 = base.ToString();
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(text2);
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(" Maximum Path Length: ");
|
||||
string text3 = newLine + "]" + newLine;
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(text3);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005A95 RID: 23189
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
||||
[Token(Token = "0x4005A95")]
|
||||
private int maxPathLength = (int)((ulong)5L);
|
||||
|
||||
// Token: 0x04005A96 RID: 23190
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
|
||||
[Token(Token = "0x4005A96")]
|
||||
private ISet excludedCerts;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user