oh dear
This commit is contained in:
+148
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DEC RID: 7660
|
||||
[Token(Token = "0x2001DEC")]
|
||||
public class AccessDescription : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C1B6 RID: 49590 RVA: 0x002C148C File Offset: 0x002BF68C
|
||||
[Token(Token = "0x600C1B6")]
|
||||
[Address(RVA = "0x27189B0", Offset = "0x27177B0", VA = "0x1827189B0")]
|
||||
public static AccessDescription GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C1B6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AccessDescription BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AccessDescription::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2E:
|
||||
stloc:string(var_8_34, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_34)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C1B7 RID: 49591 RVA: 0x002C14E8 File Offset: 0x002BF6E8
|
||||
[Token(Token = "0x600C1B7")]
|
||||
[Address(RVA = "0x2718E70", Offset = "0x2717C70", VA = "0x182718E70")]
|
||||
private AccessDescription(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C1B7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AccessDescription::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:ArgumentException(var_5_3A, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("wrong number of elements in sequence")))
|
||||
}
|
||||
|
||||
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: 0x0600C1B8 RID: 49592 RVA: 0x002C1530 File Offset: 0x002BF730
|
||||
[Token(Token = "0x600C1B8")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public AccessDescription(DerObjectIdentifier oid, GeneralName location)
|
||||
{
|
||||
this.accessMethod = oid;
|
||||
this.accessLocation = location;
|
||||
}
|
||||
|
||||
// Token: 0x17001DDD RID: 7645
|
||||
// (get) Token: 0x0600C1B9 RID: 49593 RVA: 0x002C1554 File Offset: 0x002BF754
|
||||
[Token(Token = "0x17001DDD")]
|
||||
public DerObjectIdentifier AccessMethod
|
||||
{
|
||||
[Token(Token = "0x600C1B9")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.accessMethod;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DDE RID: 7646
|
||||
// (get) Token: 0x0600C1BA RID: 49594 RVA: 0x002C1568 File Offset: 0x002BF768
|
||||
[Token(Token = "0x17001DDE")]
|
||||
public GeneralName AccessLocation
|
||||
{
|
||||
[Token(Token = "0x600C1BA")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.accessLocation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1BB RID: 49595 RVA: 0x002C157C File Offset: 0x002BF77C
|
||||
[Token(Token = "0x600C1BB")]
|
||||
[Address(RVA = "0x2718C70", Offset = "0x2717A70", VA = "0x182718C70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.accessMethod;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
GeneralName generalName = this.accessLocation;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
array[1] = generalName;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C1BC RID: 49596 RVA: 0x002C15C4 File Offset: 0x002BF7C4
|
||||
[Token(Token = "0x600C1BC")]
|
||||
[Address(RVA = "0x2718D80", Offset = "0x2717B80", VA = "0x182718D80", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string identifier = this.accessMethod.identifier;
|
||||
return "AccessDescription: Oid(" + identifier + ")";
|
||||
}
|
||||
|
||||
// Token: 0x04007A51 RID: 31313
|
||||
[Token(Token = "0x4007A51")]
|
||||
public static readonly DerObjectIdentifier IdADCAIssuers = new DerObjectIdentifier("1.3.6.1.5.5.7.48.2");
|
||||
|
||||
// Token: 0x04007A52 RID: 31314
|
||||
[Token(Token = "0x4007A52")]
|
||||
public static readonly DerObjectIdentifier IdADOcsp = new DerObjectIdentifier("1.3.6.1.5.5.7.48.1");
|
||||
|
||||
// Token: 0x04007A53 RID: 31315
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A53")]
|
||||
private readonly DerObjectIdentifier accessMethod;
|
||||
|
||||
// Token: 0x04007A54 RID: 31316
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A54")]
|
||||
private readonly GeneralName accessLocation;
|
||||
}
|
||||
}
|
||||
+164
@@ -0,0 +1,164 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DED RID: 7661
|
||||
[Token(Token = "0x2001DED")]
|
||||
public class AlgorithmIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C1BE RID: 49598 RVA: 0x002C1620 File Offset: 0x002BF820
|
||||
[Token(Token = "0x600C1BE")]
|
||||
[Address(RVA = "0x2719AE0", Offset = "0x27188E0", VA = "0x182719AE0")]
|
||||
public static AlgorithmIdentifier GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return AlgorithmIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C1BF RID: 49599 RVA: 0x002C163C File Offset: 0x002BF83C
|
||||
[Token(Token = "0x600C1BF")]
|
||||
[Address(RVA = "0x2719880", Offset = "0x2718680", VA = "0x182719880")]
|
||||
public static AlgorithmIdentifier GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
algorithmIdentifier.algorithm = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
algorithmIdentifier.parameters = parser2;
|
||||
return algorithmIdentifier;
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C1C0 RID: 49600 RVA: 0x002C16A0 File Offset: 0x002BF8A0
|
||||
[Token(Token = "0x600C1C0")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public AlgorithmIdentifier(DerObjectIdentifier algorithm)
|
||||
{
|
||||
this.algorithm = algorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1C1 RID: 49601 RVA: 0x002C16BC File Offset: 0x002BF8BC
|
||||
[Token(Token = "0x600C1C1")]
|
||||
[Address(RVA = "0x2719E00", Offset = "0x2718C00", VA = "0x182719E00")]
|
||||
[Obsolete]
|
||||
public AlgorithmIdentifier(string algorithm)
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier(algorithm);
|
||||
this.algorithm = derObjectIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1C2 RID: 49602 RVA: 0x002C16E0 File Offset: 0x002BF8E0
|
||||
[Token(Token = "0x600C1C2")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public AlgorithmIdentifier(DerObjectIdentifier algorithm, Asn1Encodable parameters)
|
||||
{
|
||||
this.algorithm = algorithm;
|
||||
this.parameters = parameters;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1C3 RID: 49603 RVA: 0x002C1704 File Offset: 0x002BF904
|
||||
[Token(Token = "0x600C1C3")]
|
||||
[Address(RVA = "0x2719C70", Offset = "0x2718A70", VA = "0x182719C70")]
|
||||
internal AlgorithmIdentifier(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.algorithm = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable < (ulong)2L)
|
||||
{
|
||||
int num = 0;
|
||||
this.parameters = num;
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.parameters = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x17001DDF RID: 7647
|
||||
// (get) Token: 0x0600C1C4 RID: 49604 RVA: 0x002C1750 File Offset: 0x002BF950
|
||||
[Token(Token = "0x17001DDF")]
|
||||
public virtual DerObjectIdentifier Algorithm
|
||||
{
|
||||
[Token(Token = "0x600C1C4")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.algorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DE0 RID: 7648
|
||||
// (get) Token: 0x0600C1C5 RID: 49605 RVA: 0x002C1764 File Offset: 0x002BF964
|
||||
[Token(Token = "0x17001DE0")]
|
||||
[Obsolete]
|
||||
public virtual DerObjectIdentifier ObjectID
|
||||
{
|
||||
[Token(Token = "0x600C1C5")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.algorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DE1 RID: 7649
|
||||
// (get) Token: 0x0600C1C6 RID: 49606 RVA: 0x002C1778 File Offset: 0x002BF978
|
||||
[Token(Token = "0x17001DE1")]
|
||||
public virtual Asn1Encodable Parameters
|
||||
{
|
||||
[Token(Token = "0x600C1C6")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.parameters;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1C7 RID: 49607 RVA: 0x002C178C File Offset: 0x002BF98C
|
||||
[Token(Token = "0x600C1C7")]
|
||||
[Address(RVA = "0x2719B00", Offset = "0x2718900", VA = "0x182719B00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.algorithm;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Encodable asn1Encodable = this.parameters;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1Encodable;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A55 RID: 31317
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A55")]
|
||||
private readonly DerObjectIdentifier algorithm;
|
||||
|
||||
// Token: 0x04007A56 RID: 31318
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A56")]
|
||||
private readonly Asn1Encodable parameters;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DEE RID: 7662
|
||||
[Token(Token = "0x2001DEE")]
|
||||
public class AttCertIssuer : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C1C8 RID: 49608 RVA: 0x002C17EC File Offset: 0x002BF9EC
|
||||
[Token(Token = "0x600C1C8")]
|
||||
[Address(RVA = "0x271DE40", Offset = "0x271CC40", VA = "0x18271DE40")]
|
||||
public static AttCertIssuer GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C1C8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttCertIssuer BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttCertIssuer::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_55:
|
||||
stloc:string(var_11_5C, call:string(Platform::GetTypeName, ldloc:GeneralNames[exp:object](var_9)))
|
||||
stloc:ArgumentException(var_12_74, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_11_5C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C1C9 RID: 49609 RVA: 0x002C1870 File Offset: 0x002BFA70
|
||||
[Token(Token = "0x600C1C9")]
|
||||
[Address(RVA = "0x271DE10", Offset = "0x271CC10", VA = "0x18271DE10")]
|
||||
public static AttCertIssuer GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AttCertIssuer.GetInstance(obj.GetObject());
|
||||
}
|
||||
|
||||
// Token: 0x0600C1CA RID: 49610 RVA: 0x002C1890 File Offset: 0x002BFA90
|
||||
[Token(Token = "0x600C1CA")]
|
||||
[Address(RVA = "0x271E130", Offset = "0x271CF30", VA = "0x18271E130")]
|
||||
public AttCertIssuer(GeneralNames names)
|
||||
{
|
||||
this.obj = names;
|
||||
Asn1Object asn1Object = names.ToAsn1Object();
|
||||
this.choiceObj = asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1CB RID: 49611 RVA: 0x002C18C0 File Offset: 0x002BFAC0
|
||||
[Token(Token = "0x600C1CB")]
|
||||
[Address(RVA = "0x271E180", Offset = "0x271CF80", VA = "0x18271E180")]
|
||||
public AttCertIssuer(V2Form v2Form)
|
||||
{
|
||||
this.obj = v2Form;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, v2Form);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
this.choiceObj = derTaggedObject;
|
||||
}
|
||||
|
||||
// Token: 0x17001DE2 RID: 7650
|
||||
// (get) Token: 0x0600C1CC RID: 49612 RVA: 0x002C18F0 File Offset: 0x002BFAF0
|
||||
[Token(Token = "0x17001DE2")]
|
||||
public Asn1Encodable Issuer
|
||||
{
|
||||
[Token(Token = "0x600C1CC")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.obj;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1CD RID: 49613 RVA: 0x002C1904 File Offset: 0x002BFB04
|
||||
[Token(Token = "0x600C1CD")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.choiceObj;
|
||||
}
|
||||
|
||||
// Token: 0x04007A57 RID: 31319
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A57")]
|
||||
internal readonly Asn1Encodable obj;
|
||||
|
||||
// Token: 0x04007A58 RID: 31320
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A58")]
|
||||
internal readonly Asn1Object choiceObj;
|
||||
}
|
||||
}
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DEF RID: 7663
|
||||
[Token(Token = "0x2001DEF")]
|
||||
public class AttCertValidityPeriod : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C1CE RID: 49614 RVA: 0x002C1918 File Offset: 0x002BFB18
|
||||
[Token(Token = "0x600C1CE")]
|
||||
[Address(RVA = "0x271E200", Offset = "0x271D000", VA = "0x18271E200")]
|
||||
public static AttCertValidityPeriod GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C1CE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttCertValidityPeriod BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttCertValidityPeriod::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_3F)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C1CF RID: 49615 RVA: 0x002C1980 File Offset: 0x002BFB80
|
||||
[Token(Token = "0x600C1CF")]
|
||||
[Address(RVA = "0x271E4E0", Offset = "0x271D2E0", VA = "0x18271E4E0")]
|
||||
public static AttCertValidityPeriod GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return AttCertValidityPeriod.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C1D0 RID: 49616 RVA: 0x002C199C File Offset: 0x002BFB9C
|
||||
[Token(Token = "0x600C1D0")]
|
||||
[Address(RVA = "0x271E610", Offset = "0x271D410", VA = "0x18271E610")]
|
||||
private AttCertValidityPeriod(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerGeneralizedTime derGeneralizedTime;
|
||||
this.notBeforeTime = derGeneralizedTime;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerGeneralizedTime derGeneralizedTime2;
|
||||
this.notAfterTime = derGeneralizedTime2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1D1 RID: 49617 RVA: 0x002C19D4 File Offset: 0x002BFBD4
|
||||
[Token(Token = "0x600C1D1")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public AttCertValidityPeriod(DerGeneralizedTime notBeforeTime, DerGeneralizedTime notAfterTime)
|
||||
{
|
||||
this.notBeforeTime = notBeforeTime;
|
||||
this.notAfterTime = notAfterTime;
|
||||
}
|
||||
|
||||
// Token: 0x17001DE3 RID: 7651
|
||||
// (get) Token: 0x0600C1D2 RID: 49618 RVA: 0x002C19F8 File Offset: 0x002BFBF8
|
||||
[Token(Token = "0x17001DE3")]
|
||||
public DerGeneralizedTime NotBeforeTime
|
||||
{
|
||||
[Token(Token = "0x600C1D2")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.notBeforeTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DE4 RID: 7652
|
||||
// (get) Token: 0x0600C1D3 RID: 49619 RVA: 0x002C1A0C File Offset: 0x002BFC0C
|
||||
[Token(Token = "0x17001DE4")]
|
||||
public DerGeneralizedTime NotAfterTime
|
||||
{
|
||||
[Token(Token = "0x600C1D3")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.notAfterTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1D4 RID: 49620 RVA: 0x002C1A20 File Offset: 0x002BFC20
|
||||
[Token(Token = "0x600C1D4")]
|
||||
[Address(RVA = "0x271E500", Offset = "0x271D300", VA = "0x18271E500", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerGeneralizedTime derGeneralizedTime = this.notBeforeTime;
|
||||
if (derGeneralizedTime != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derGeneralizedTime;
|
||||
DerGeneralizedTime derGeneralizedTime2 = this.notAfterTime;
|
||||
if (derGeneralizedTime2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derGeneralizedTime2;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A59 RID: 31321
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A59")]
|
||||
private readonly DerGeneralizedTime notBeforeTime;
|
||||
|
||||
// Token: 0x04007A5A RID: 31322
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A5A")]
|
||||
private readonly DerGeneralizedTime notAfterTime;
|
||||
}
|
||||
}
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF1 RID: 7665
|
||||
[Token(Token = "0x2001DF1")]
|
||||
public class AttributeCertificate : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C1DC RID: 49628 RVA: 0x002C1BB4 File Offset: 0x002BFDB4
|
||||
[Token(Token = "0x600C1DC")]
|
||||
[Address(RVA = "0x271F040", Offset = "0x271DE40", VA = "0x18271F040")]
|
||||
public static AttributeCertificate GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1SequenceParser parser3;
|
||||
if (obj == 0)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
AttributeCertificate attributeCertificate;
|
||||
AttributeCertificateInfo attributeCertificateInfo;
|
||||
attributeCertificate.acinfo = attributeCertificateInfo;
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
attributeCertificate.signatureAlgorithm = algorithmIdentifier;
|
||||
parser3 = instance.Parser;
|
||||
DerBitString derBitString;
|
||||
attributeCertificate.signatureValue = derBitString;
|
||||
return attributeCertificate;
|
||||
}
|
||||
if (parser3 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C1DD RID: 49629 RVA: 0x002C1C28 File Offset: 0x002BFE28
|
||||
[Token(Token = "0x600C1DD")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
public AttributeCertificate(AttributeCertificateInfo acinfo, AlgorithmIdentifier signatureAlgorithm, DerBitString signatureValue)
|
||||
{
|
||||
this.acinfo = acinfo;
|
||||
this.signatureAlgorithm = signatureAlgorithm;
|
||||
this.signatureValue = signatureValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1DE RID: 49630 RVA: 0x002C1C50 File Offset: 0x002BFE50
|
||||
[Token(Token = "0x600C1DE")]
|
||||
[Address(RVA = "0x271F420", Offset = "0x271E220", VA = "0x18271F420")]
|
||||
private AttributeCertificate(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
AttributeCertificateInfo attributeCertificateInfo;
|
||||
this.acinfo = attributeCertificateInfo;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.signatureAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.signatureValue = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x17001DE7 RID: 7655
|
||||
// (get) Token: 0x0600C1DF RID: 49631 RVA: 0x002C1C98 File Offset: 0x002BFE98
|
||||
[Token(Token = "0x17001DE7")]
|
||||
public AttributeCertificateInfo ACInfo
|
||||
{
|
||||
[Token(Token = "0x600C1DF")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.acinfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DE8 RID: 7656
|
||||
// (get) Token: 0x0600C1E0 RID: 49632 RVA: 0x002C1CAC File Offset: 0x002BFEAC
|
||||
[Token(Token = "0x17001DE8")]
|
||||
public AlgorithmIdentifier SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C1E0")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.signatureAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DE9 RID: 7657
|
||||
// (get) Token: 0x0600C1E1 RID: 49633 RVA: 0x002C1CC0 File Offset: 0x002BFEC0
|
||||
[Token(Token = "0x17001DE9")]
|
||||
public DerBitString SignatureValue
|
||||
{
|
||||
[Token(Token = "0x600C1E1")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.signatureValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1E2 RID: 49634 RVA: 0x002C1CD4 File Offset: 0x002BFED4
|
||||
[Token(Token = "0x600C1E2")]
|
||||
[Address(RVA = "0x271F280", Offset = "0x271E080", VA = "0x18271F280")]
|
||||
public byte[] GetSignatureOctets()
|
||||
{
|
||||
Asn1Object asn1Object = this.signatureValue.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C1E3 RID: 49635 RVA: 0x002C1CF4 File Offset: 0x002BFEF4
|
||||
[Token(Token = "0x600C1E3")]
|
||||
[Address(RVA = "0x271F2B0", Offset = "0x271E0B0", VA = "0x18271F2B0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
AttributeCertificateInfo attributeCertificateInfo = this.acinfo;
|
||||
if (attributeCertificateInfo != 0)
|
||||
{
|
||||
}
|
||||
array[0] = attributeCertificateInfo;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.signatureAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.signatureValue;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derBitString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A5D RID: 31325
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A5D")]
|
||||
private readonly AttributeCertificateInfo acinfo;
|
||||
|
||||
// Token: 0x04007A5E RID: 31326
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A5E")]
|
||||
private readonly AlgorithmIdentifier signatureAlgorithm;
|
||||
|
||||
// Token: 0x04007A5F RID: 31327
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007A5F")]
|
||||
private readonly DerBitString signatureValue;
|
||||
}
|
||||
}
|
||||
+319
@@ -0,0 +1,319 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF2 RID: 7666
|
||||
[Token(Token = "0x2001DF2")]
|
||||
public class AttributeCertificateInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C1E4 RID: 49636 RVA: 0x002C1D50 File Offset: 0x002BFF50
|
||||
[Token(Token = "0x600C1E4")]
|
||||
[Address(RVA = "0x271E730", Offset = "0x271D530", VA = "0x18271E730")]
|
||||
public static AttributeCertificateInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return AttributeCertificateInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C1E5 RID: 49637 RVA: 0x002C1D6C File Offset: 0x002BFF6C
|
||||
[Token(Token = "0x600C1E5")]
|
||||
[Address(RVA = "0x271E750", Offset = "0x271D550", VA = "0x18271E750")]
|
||||
public static AttributeCertificateInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C1E5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeCertificateInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeCertificateInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_28)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C1E6 RID: 49638 RVA: 0x002C1DBC File Offset: 0x002BFFBC
|
||||
[Token(Token = "0x600C1E6")]
|
||||
[Address(RVA = "0x271ED20", Offset = "0x271DB20", VA = "0x18271ED20")]
|
||||
private AttributeCertificateInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.version = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Holder holder;
|
||||
this.holder = holder;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
AttCertIssuer attCertIssuer;
|
||||
this.issuer = attCertIssuer;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.signature = algorithmIdentifier;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
this.serialNumber = derInteger2;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
AttCertValidityPeriod attCertValidityPeriod;
|
||||
this.attrCertValidityPeriod = attCertValidityPeriod;
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.attributes = asn1Sequence;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)7 < asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser8 = seq.Parser;
|
||||
if (parser8 == 0)
|
||||
{
|
||||
if (parser8 == 0 && parser8 == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser9 = seq.Parser;
|
||||
X509Extensions x509Extensions;
|
||||
this.extensions = x509Extensions;
|
||||
}
|
||||
Asn1SequenceParser parser10 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.issuerUniqueID = derBitString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DEA RID: 7658
|
||||
// (get) Token: 0x0600C1E7 RID: 49639 RVA: 0x002C1E94 File Offset: 0x002C0094
|
||||
[Token(Token = "0x17001DEA")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C1E7")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DEB RID: 7659
|
||||
// (get) Token: 0x0600C1E8 RID: 49640 RVA: 0x002C1EA8 File Offset: 0x002C00A8
|
||||
[Token(Token = "0x17001DEB")]
|
||||
public Holder Holder
|
||||
{
|
||||
[Token(Token = "0x600C1E8")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.holder;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DEC RID: 7660
|
||||
// (get) Token: 0x0600C1E9 RID: 49641 RVA: 0x002C1EBC File Offset: 0x002C00BC
|
||||
[Token(Token = "0x17001DEC")]
|
||||
public AttCertIssuer Issuer
|
||||
{
|
||||
[Token(Token = "0x600C1E9")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DED RID: 7661
|
||||
// (get) Token: 0x0600C1EA RID: 49642 RVA: 0x002C1ED0 File Offset: 0x002C00D0
|
||||
[Token(Token = "0x17001DED")]
|
||||
public AlgorithmIdentifier Signature
|
||||
{
|
||||
[Token(Token = "0x600C1EA")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.signature;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DEE RID: 7662
|
||||
// (get) Token: 0x0600C1EB RID: 49643 RVA: 0x002C1EE4 File Offset: 0x002C00E4
|
||||
[Token(Token = "0x17001DEE")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C1EB")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DEF RID: 7663
|
||||
// (get) Token: 0x0600C1EC RID: 49644 RVA: 0x002C1EF8 File Offset: 0x002C00F8
|
||||
[Token(Token = "0x17001DEF")]
|
||||
public AttCertValidityPeriod AttrCertValidityPeriod
|
||||
{
|
||||
[Token(Token = "0x600C1EC")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.attrCertValidityPeriod;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DF0 RID: 7664
|
||||
// (get) Token: 0x0600C1ED RID: 49645 RVA: 0x002C1F0C File Offset: 0x002C010C
|
||||
[Token(Token = "0x17001DF0")]
|
||||
public Asn1Sequence Attributes
|
||||
{
|
||||
[Token(Token = "0x600C1ED")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
||||
get
|
||||
{
|
||||
return this.attributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DF1 RID: 7665
|
||||
// (get) Token: 0x0600C1EE RID: 49646 RVA: 0x002C1F20 File Offset: 0x002C0120
|
||||
[Token(Token = "0x17001DF1")]
|
||||
public DerBitString IssuerUniqueID
|
||||
{
|
||||
[Token(Token = "0x600C1EE")]
|
||||
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
|
||||
get
|
||||
{
|
||||
return this.issuerUniqueID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DF2 RID: 7666
|
||||
// (get) Token: 0x0600C1EF RID: 49647 RVA: 0x002C1F34 File Offset: 0x002C0134
|
||||
[Token(Token = "0x17001DF2")]
|
||||
public X509Extensions Extensions
|
||||
{
|
||||
[Token(Token = "0x600C1EF")]
|
||||
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290")]
|
||||
get
|
||||
{
|
||||
return this.extensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1F0 RID: 49648 RVA: 0x002C1F48 File Offset: 0x002C0148
|
||||
[Token(Token = "0x600C1F0")]
|
||||
[Address(RVA = "0x271E940", Offset = "0x271D740", VA = "0x18271E940", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[7];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Holder holder = this.holder;
|
||||
if (holder != 0)
|
||||
{
|
||||
}
|
||||
array[1] = holder;
|
||||
AttCertIssuer attCertIssuer = this.issuer;
|
||||
if (attCertIssuer != 0)
|
||||
{
|
||||
}
|
||||
array[2] = attCertIssuer;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.signature;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[3] = algorithmIdentifier;
|
||||
DerInteger derInteger2 = this.serialNumber;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[4] = derInteger2;
|
||||
AttCertValidityPeriod attCertValidityPeriod = this.attrCertValidityPeriod;
|
||||
if (attCertValidityPeriod != 0)
|
||||
{
|
||||
}
|
||||
array[5] = attCertValidityPeriod;
|
||||
Asn1Sequence asn1Sequence = this.attributes;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array[6] = asn1Sequence;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.issuerUniqueID != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerBitString derBitString = this.issuerUniqueID;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derBitString;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.extensions != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
X509Extensions x509Extensions = this.extensions;
|
||||
if (x509Extensions != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = x509Extensions;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A60 RID: 31328
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A60")]
|
||||
internal readonly DerInteger version;
|
||||
|
||||
// Token: 0x04007A61 RID: 31329
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A61")]
|
||||
internal readonly Holder holder;
|
||||
|
||||
// Token: 0x04007A62 RID: 31330
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007A62")]
|
||||
internal readonly AttCertIssuer issuer;
|
||||
|
||||
// Token: 0x04007A63 RID: 31331
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007A63")]
|
||||
internal readonly AlgorithmIdentifier signature;
|
||||
|
||||
// Token: 0x04007A64 RID: 31332
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007A64")]
|
||||
internal readonly DerInteger serialNumber;
|
||||
|
||||
// Token: 0x04007A65 RID: 31333
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007A65")]
|
||||
internal readonly AttCertValidityPeriod attrCertValidityPeriod;
|
||||
|
||||
// Token: 0x04007A66 RID: 31334
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007A66")]
|
||||
internal readonly Asn1Sequence attributes;
|
||||
|
||||
// Token: 0x04007A67 RID: 31335
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007A67")]
|
||||
internal readonly DerBitString issuerUniqueID;
|
||||
|
||||
// Token: 0x04007A68 RID: 31336
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007A68")]
|
||||
internal readonly X509Extensions extensions;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF3 RID: 7667
|
||||
[Token(Token = "0x2001DF3")]
|
||||
public class AttributeTable
|
||||
{
|
||||
// Token: 0x0600C1F1 RID: 49649 RVA: 0x002C206C File Offset: 0x002C026C
|
||||
[Token(Token = "0x600C1F1")]
|
||||
[Address(RVA = "0x271FA20", Offset = "0x271E820", VA = "0x18271FA20")]
|
||||
public AttributeTable(IDictionary attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1F2 RID: 49650 RVA: 0x002C2090 File Offset: 0x002C0290
|
||||
[Token(Token = "0x600C1F2")]
|
||||
[Address(RVA = "0x271FA90", Offset = "0x271E890", VA = "0x18271FA90")]
|
||||
[Obsolete]
|
||||
public AttributeTable(Hashtable attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1F3 RID: 49651 RVA: 0x002C20B4 File Offset: 0x002C02B4
|
||||
[Token(Token = "0x600C1F3")]
|
||||
[Address(RVA = "0x271F8A0", Offset = "0x271E6A0", VA = "0x18271F8A0")]
|
||||
public AttributeTable(Asn1EncodableVector v)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(v.Count);
|
||||
int num = 0;
|
||||
this.attributes = dictionary;
|
||||
int count = v.Count;
|
||||
if (num != count)
|
||||
{
|
||||
int num2 = 0;
|
||||
AttributeX509 instance = AttributeX509.GetInstance(v[num]);
|
||||
IDictionary dictionary2 = this.attributes;
|
||||
DerObjectIdentifier derObjectIdentifier = instance.attrType;
|
||||
if (num < num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
derObjectIdentifier += derObjectIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1F4 RID: 49652 RVA: 0x002C2128 File Offset: 0x002C0328
|
||||
[Token(Token = "0x600C1F4")]
|
||||
[Address(RVA = "0x271F700", Offset = "0x271E500", VA = "0x18271F700")]
|
||||
public AttributeTable(Asn1Set s)
|
||||
{
|
||||
int num = 0;
|
||||
IDictionary dictionary;
|
||||
this.attributes = dictionary;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num != asn1Encodable)
|
||||
{
|
||||
IEnumerator enumerator = s.GetEnumerator();
|
||||
IDictionary dictionary2 = this.attributes;
|
||||
AttributeX509 attributeX;
|
||||
DerObjectIdentifier derObjectIdentifier = attributeX.attrType;
|
||||
if (num < 0)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
derObjectIdentifier += derObjectIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1F5 RID: 49653 RVA: 0x002C2180 File Offset: 0x002C0380
|
||||
[Token(Token = "0x600C1F5")]
|
||||
[Address(RVA = "0x271F590", Offset = "0x271E390", VA = "0x18271F590")]
|
||||
public AttributeX509 Get(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C1F6 RID: 49654 RVA: 0x002C21A4 File Offset: 0x002C03A4
|
||||
[Token(Token = "0x600C1F6")]
|
||||
[Address(RVA = "0x271F6A0", Offset = "0x271E4A0", VA = "0x18271F6A0")]
|
||||
[Obsolete]
|
||||
public Hashtable ToHashtable()
|
||||
{
|
||||
return new Hashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600C1F7 RID: 49655 RVA: 0x002C21BC File Offset: 0x002C03BC
|
||||
[Token(Token = "0x600C1F7")]
|
||||
[Address(RVA = "0x271F640", Offset = "0x271E440", VA = "0x18271F640")]
|
||||
public IDictionary ToDictionary()
|
||||
{
|
||||
return Platform.CreateHashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x04007A69 RID: 31337
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A69")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF0 RID: 7664
|
||||
[Token(Token = "0x2001DF0")]
|
||||
public class AttributeX509 : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C1D5 RID: 49621 RVA: 0x002C1A68 File Offset: 0x002BFC68
|
||||
[Token(Token = "0x600C1D5")]
|
||||
[Address(RVA = "0x271FB00", Offset = "0x271E900", VA = "0x18271FB00")]
|
||||
public static AttributeX509 GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C1D5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeX509 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeX509::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_31:
|
||||
stloc:string(var_9_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_37)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C1D6 RID: 49622 RVA: 0x002C1AC8 File Offset: 0x002BFCC8
|
||||
[Token(Token = "0x600C1D6")]
|
||||
[Address(RVA = "0x271FF10", Offset = "0x271ED10", VA = "0x18271FF10")]
|
||||
private AttributeX509(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.attrType = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1Set asn1Set;
|
||||
this.attrValues = asn1Set;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1D7 RID: 49623 RVA: 0x002C1B00 File Offset: 0x002BFD00
|
||||
[Token(Token = "0x600C1D7")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public AttributeX509(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17001DE5 RID: 7653
|
||||
// (get) Token: 0x0600C1D8 RID: 49624 RVA: 0x002C1B24 File Offset: 0x002BFD24
|
||||
[Token(Token = "0x17001DE5")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600C1D8")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1D9 RID: 49625 RVA: 0x002C1B38 File Offset: 0x002BFD38
|
||||
[Token(Token = "0x600C1D9")]
|
||||
[Address(RVA = "0x260E070", Offset = "0x260CE70", VA = "0x18260E070")]
|
||||
public Asn1Encodable[] GetAttributeValues()
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.attrValues).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001DE6 RID: 7654
|
||||
// (get) Token: 0x0600C1DA RID: 49626 RVA: 0x002C1B58 File Offset: 0x002BFD58
|
||||
[Token(Token = "0x17001DE6")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600C1DA")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1DB RID: 49627 RVA: 0x002C1B6C File Offset: 0x002BFD6C
|
||||
[Token(Token = "0x600C1DB")]
|
||||
[Address(RVA = "0x271FE00", Offset = "0x271EC00", VA = "0x18271FE00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.attrType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Set asn1Set = this.attrValues;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Set;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A5B RID: 31323
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A5B")]
|
||||
private readonly DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x04007A5C RID: 31324
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A5C")]
|
||||
private readonly Asn1Set attrValues;
|
||||
}
|
||||
}
|
||||
+151
@@ -0,0 +1,151 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF4 RID: 7668
|
||||
[Token(Token = "0x2001DF4")]
|
||||
public class AuthorityInformationAccess : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C1F8 RID: 49656 RVA: 0x002C21D4 File Offset: 0x002C03D4
|
||||
[Token(Token = "0x600C1F8")]
|
||||
[Address(RVA = "0x27200E0", Offset = "0x271EEE0", VA = "0x1827200E0")]
|
||||
public static AuthorityInformationAccess GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
int num = 0;
|
||||
AccessDescription[] array2;
|
||||
if (obj == 0)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1Encodable asn1Encodable;
|
||||
AccessDescription[] array = new AccessDescription[asn1Encodable];
|
||||
AuthorityInformationAccess authorityInformationAccess;
|
||||
authorityInformationAccess.descriptions = array;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num < asn1Encodable2)
|
||||
{
|
||||
array2 = authorityInformationAccess.descriptions;
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
return authorityInformationAccess;
|
||||
}
|
||||
else if (array2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C1F9 RID: 49657 RVA: 0x002C2240 File Offset: 0x002C0440
|
||||
[Token(Token = "0x600C1F9")]
|
||||
[Address(RVA = "0x27206A0", Offset = "0x271F4A0", VA = "0x1827206A0")]
|
||||
private AuthorityInformationAccess(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
AccessDescription[] array = new AccessDescription[asn1Encodable];
|
||||
this.descriptions = array;
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num < asn1Encodable2)
|
||||
{
|
||||
AccessDescription[] array2 = this.descriptions;
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C1FA RID: 49658 RVA: 0x002C2294 File Offset: 0x002C0494
|
||||
[Token(Token = "0x600C1FA")]
|
||||
[Address(RVA = "0x27204F0", Offset = "0x271F2F0", VA = "0x1827204F0")]
|
||||
public AuthorityInformationAccess(AccessDescription description)
|
||||
{
|
||||
AccessDescription[] array = new AccessDescription[1];
|
||||
if (description != 0)
|
||||
{
|
||||
}
|
||||
array[0] = description;
|
||||
this.descriptions = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C1FB RID: 49659 RVA: 0x002C22C8 File Offset: 0x002C04C8
|
||||
[Token(Token = "0x600C1FB")]
|
||||
[Address(RVA = "0x27205A0", Offset = "0x271F3A0", VA = "0x1827205A0")]
|
||||
public AuthorityInformationAccess(DerObjectIdentifier oid, GeneralName location)
|
||||
{
|
||||
AccessDescription accessDescription;
|
||||
accessDescription.accessMethod = oid;
|
||||
accessDescription.accessLocation = location;
|
||||
base..ctor();
|
||||
this.descriptions = new AccessDescription[] { accessDescription };
|
||||
}
|
||||
|
||||
// Token: 0x0600C1FC RID: 49660 RVA: 0x002C2308 File Offset: 0x002C0508
|
||||
[Token(Token = "0x600C1FC")]
|
||||
[Address(RVA = "0x2720060", Offset = "0x271EE60", VA = "0x182720060")]
|
||||
public AccessDescription[] GetAccessDescriptions()
|
||||
{
|
||||
AccessDescription[] array = this.descriptions;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C1FD RID: 49661 RVA: 0x002C2324 File Offset: 0x002C0524
|
||||
[Token(Token = "0x600C1FD")]
|
||||
[Address(RVA = "0x2720340", Offset = "0x271F140", VA = "0x182720340", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C1FD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AuthorityInformationAccess::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_0B, newobj:DerSequence(DerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AccessDescription[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](AuthorityInformationAccess::descriptions, ldloc:AuthorityInformationAccess(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: 0x0600C1FE RID: 49662 RVA: 0x002C233C File Offset: 0x002C053C
|
||||
[Token(Token = "0x600C1FE")]
|
||||
[Address(RVA = "0x27203A0", Offset = "0x271F1A0", VA = "0x1827203A0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append("AuthorityInformationAccess:");
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
|
||||
AccessDescription[] array = this.descriptions;
|
||||
int num = 0;
|
||||
int length = array.Length;
|
||||
if (num < length)
|
||||
{
|
||||
AccessDescription accessDescription = array[num];
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(" ");
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(accessDescription);
|
||||
StringBuilder stringBuilder6 = stringBuilder.Append(newLine);
|
||||
num++;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A6A RID: 31338
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A6A")]
|
||||
private readonly AccessDescription[] descriptions;
|
||||
}
|
||||
}
|
||||
+290
@@ -0,0 +1,290 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF5 RID: 7669
|
||||
[Token(Token = "0x2001DF5")]
|
||||
public class AuthorityKeyIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C1FF RID: 49663 RVA: 0x002C23BC File Offset: 0x002C05BC
|
||||
[Token(Token = "0x600C1FF")]
|
||||
[Address(RVA = "0x2720AB0", Offset = "0x271F8B0", VA = "0x182720AB0")]
|
||||
public static AuthorityKeyIdentifier GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return AuthorityKeyIdentifier.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C200 RID: 49664 RVA: 0x002C23D8 File Offset: 0x002C05D8
|
||||
[Token(Token = "0x600C200")]
|
||||
[Address(RVA = "0x2720820", Offset = "0x271F620", VA = "0x182720820")]
|
||||
public static AuthorityKeyIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C200)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AuthorityKeyIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AuthorityKeyIdentifier::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3C:
|
||||
stloc:string(var_9_42, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_5A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_42)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C201 RID: 49665 RVA: 0x002C2440 File Offset: 0x002C0640
|
||||
[Token(Token = "0x600C201")]
|
||||
[Address(RVA = "0x2721240", Offset = "0x2720040", VA = "0x182721240")]
|
||||
protected internal AuthorityKeyIdentifier(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
Asn1OctetString asn1OctetString;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_5F;
|
||||
}
|
||||
uint num2;
|
||||
if (num2 != (uint)0)
|
||||
{
|
||||
if (num2 != (uint)0)
|
||||
{
|
||||
if (num2 != (uint)1)
|
||||
{
|
||||
goto IL_53;
|
||||
}
|
||||
DerInteger derInteger;
|
||||
this.certserno = derInteger;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
GeneralNames instance = GeneralNames.GetInstance(asn1Sequence);
|
||||
this.certissuer = instance;
|
||||
}
|
||||
this.keyidentifier = asn1OctetString;
|
||||
}
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_53:
|
||||
ArgumentException ex = new ArgumentException("illegal tag");
|
||||
IL_5F:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C202 RID: 49666 RVA: 0x002C24B8 File Offset: 0x002C06B8
|
||||
[Token(Token = "0x600C202")]
|
||||
[Address(RVA = "0x2721110", Offset = "0x271FF10", VA = "0x182721110")]
|
||||
public AuthorityKeyIdentifier(SubjectPublicKeyInfo spki)
|
||||
{
|
||||
byte[] array = new byte[new Sha1Digest()];
|
||||
int length = spki.keyData.GetOctets().Length;
|
||||
DerOctetString derOctetString = new DerOctetString(array);
|
||||
this.keyidentifier = derOctetString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C203 RID: 49667 RVA: 0x002C2500 File Offset: 0x002C0700
|
||||
[Token(Token = "0x600C203")]
|
||||
[Address(RVA = "0x2720F00", Offset = "0x271FD00", VA = "0x182720F00")]
|
||||
public AuthorityKeyIdentifier(SubjectPublicKeyInfo spki, GeneralNames name, BigInteger serialNumber)
|
||||
{
|
||||
byte[] array = new byte[new Sha1Digest()];
|
||||
int length = spki.keyData.GetOctets().Length;
|
||||
DerOctetString derOctetString = new DerOctetString(array);
|
||||
this.keyidentifier = derOctetString;
|
||||
this.certissuer = name;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.certserno = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C204 RID: 49668 RVA: 0x002C255C File Offset: 0x002C075C
|
||||
[Token(Token = "0x600C204")]
|
||||
[Address(RVA = "0x2721060", Offset = "0x271FE60", VA = "0x182721060")]
|
||||
public AuthorityKeyIdentifier(GeneralNames name, BigInteger serialNumber)
|
||||
{
|
||||
this.keyidentifier = (ulong)0L;
|
||||
GeneralNames instance = GeneralNames.GetInstance(name.ToAsn1Object());
|
||||
this.certissuer = instance;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.certserno = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C205 RID: 49669 RVA: 0x002C25A0 File Offset: 0x002C07A0
|
||||
[Token(Token = "0x600C205")]
|
||||
[Address(RVA = "0x2721450", Offset = "0x2720250", VA = "0x182721450")]
|
||||
public AuthorityKeyIdentifier(byte[] keyIdentifier)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(keyIdentifier);
|
||||
int num = 0;
|
||||
this.keyidentifier = derOctetString;
|
||||
this.certissuer = num;
|
||||
this.certserno = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600C206 RID: 49670 RVA: 0x002C25D4 File Offset: 0x002C07D4
|
||||
[Token(Token = "0x600C206")]
|
||||
[Address(RVA = "0x2720E20", Offset = "0x271FC20", VA = "0x182720E20")]
|
||||
public AuthorityKeyIdentifier(byte[] keyIdentifier, GeneralNames name, BigInteger serialNumber)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(keyIdentifier);
|
||||
this.keyidentifier = derOctetString;
|
||||
GeneralNames instance = GeneralNames.GetInstance(name.ToAsn1Object());
|
||||
this.certissuer = instance;
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
this.certserno = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C207 RID: 49671 RVA: 0x002C261C File Offset: 0x002C081C
|
||||
[Token(Token = "0x600C207")]
|
||||
[Address(RVA = "0x2720AD0", Offset = "0x271F8D0", VA = "0x182720AD0")]
|
||||
public byte[] GetKeyIdentifier()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C207)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AuthorityKeyIdentifier::GetKeyIdentifier()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:Stream(var_2_13, call:Stream(Asn1OctetStringParser::GetOctetStream, ldloc:Asn1OctetString[exp:Asn1OctetStringParser](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: 0x17001DF3 RID: 7667
|
||||
// (get) Token: 0x0600C208 RID: 49672 RVA: 0x002C263C File Offset: 0x002C083C
|
||||
[Token(Token = "0x17001DF3")]
|
||||
public GeneralNames AuthorityCertIssuer
|
||||
{
|
||||
[Token(Token = "0x600C208")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.certissuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DF4 RID: 7668
|
||||
// (get) Token: 0x0600C209 RID: 49673 RVA: 0x002C2650 File Offset: 0x002C0850
|
||||
[Token(Token = "0x17001DF4")]
|
||||
public BigInteger AuthorityCertSerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C209")]
|
||||
[Address(RVA = "0x27214D0", Offset = "0x27202D0", VA = "0x1827214D0")]
|
||||
get
|
||||
{
|
||||
DerInteger derInteger = this.certserno;
|
||||
if (derInteger == 0)
|
||||
{
|
||||
}
|
||||
return derInteger.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C20A RID: 49674 RVA: 0x002C2670 File Offset: 0x002C0870
|
||||
[Token(Token = "0x600C20A")]
|
||||
[Address(RVA = "0x2720AF0", Offset = "0x271F8F0", VA = "0x182720AF0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.keyidentifier != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.keyidentifier;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1OctetString);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.certissuer != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
GeneralNames generalNames = this.certissuer;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, generalNames);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.certserno != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.certserno;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num4 != 0, 2, derInteger);
|
||||
num4 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C20B RID: 49675 RVA: 0x002C274C File Offset: 0x002C094C
|
||||
[Token(Token = "0x600C20B")]
|
||||
[Address(RVA = "0x2720DB0", Offset = "0x271FBB0", VA = "0x182720DB0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
Stream octetStream = this.keyidentifier.GetOctetStream();
|
||||
return "AuthorityKeyIdentifier: KeyID(" + octetStream + ")";
|
||||
}
|
||||
|
||||
// Token: 0x04007A6B RID: 31339
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A6B")]
|
||||
internal readonly Asn1OctetString keyidentifier;
|
||||
|
||||
// Token: 0x04007A6C RID: 31340
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A6C")]
|
||||
internal readonly GeneralNames certissuer;
|
||||
|
||||
// Token: 0x04007A6D RID: 31341
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007A6D")]
|
||||
internal readonly DerInteger certserno;
|
||||
}
|
||||
}
|
||||
+215
@@ -0,0 +1,215 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF6 RID: 7670
|
||||
[Token(Token = "0x2001DF6")]
|
||||
public class BasicConstraints : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C20C RID: 49676 RVA: 0x002C277C File Offset: 0x002C097C
|
||||
[Token(Token = "0x600C20C")]
|
||||
[Address(RVA = "0x27214F0", Offset = "0x27202F0", VA = "0x1827214F0")]
|
||||
public static BasicConstraints GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return BasicConstraints.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C20D RID: 49677 RVA: 0x002C2798 File Offset: 0x002C0998
|
||||
[Token(Token = "0x600C20D")]
|
||||
[Address(RVA = "0x2721510", Offset = "0x2720310", VA = "0x182721510")]
|
||||
public static BasicConstraints GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C20D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.BasicConstraints BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.BasicConstraints::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_40:
|
||||
stloc:string(var_9_46, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_5E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_46)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C20E RID: 49678 RVA: 0x002C2804 File Offset: 0x002C0A04
|
||||
[Token(Token = "0x600C20E")]
|
||||
[Address(RVA = "0x2721BC0", Offset = "0x27209C0", VA = "0x182721BC0")]
|
||||
private BasicConstraints(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C20E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.BasicConstraints::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_66:
|
||||
stloc:ArgumentException(var_11_75, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("wrong sequence in constructor"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C20F RID: 49679 RVA: 0x002C2888 File Offset: 0x002C0A88
|
||||
[Token(Token = "0x600C20F")]
|
||||
[Address(RVA = "0x2721E20", Offset = "0x2720C20", VA = "0x182721E20")]
|
||||
public BasicConstraints(bool cA)
|
||||
{
|
||||
if (cA)
|
||||
{
|
||||
DerBoolean @true = DerBoolean.True;
|
||||
this.cA = @true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C210 RID: 49680 RVA: 0x002C28AC File Offset: 0x002C0AAC
|
||||
[Token(Token = "0x600C210")]
|
||||
[Address(RVA = "0x2721D80", Offset = "0x2720B80", VA = "0x182721D80")]
|
||||
public BasicConstraints(int pathLenConstraint)
|
||||
{
|
||||
DerBoolean @true = DerBoolean.True;
|
||||
this.cA = @true;
|
||||
DerInteger derInteger = new DerInteger(pathLenConstraint);
|
||||
this.pathLenConstraint = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C211 RID: 49681 RVA: 0x002C28DC File Offset: 0x002C0ADC
|
||||
[Token(Token = "0x600C211")]
|
||||
[Address(RVA = "0x27217A0", Offset = "0x27205A0", VA = "0x1827217A0")]
|
||||
public bool IsCA()
|
||||
{
|
||||
DerBoolean derBoolean = this.cA;
|
||||
if (derBoolean == 0)
|
||||
{
|
||||
}
|
||||
return derBoolean.IsTrue;
|
||||
}
|
||||
|
||||
// Token: 0x17001DF5 RID: 7669
|
||||
// (get) Token: 0x0600C212 RID: 49682 RVA: 0x002C28FC File Offset: 0x002C0AFC
|
||||
[Token(Token = "0x17001DF5")]
|
||||
public BigInteger PathLenConstraint
|
||||
{
|
||||
[Token(Token = "0x600C212")]
|
||||
[Address(RVA = "0x2721EA0", Offset = "0x2720CA0", VA = "0x182721EA0")]
|
||||
get
|
||||
{
|
||||
DerInteger derInteger = this.pathLenConstraint;
|
||||
if (derInteger == 0)
|
||||
{
|
||||
}
|
||||
return derInteger.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C213 RID: 49683 RVA: 0x002C291C File Offset: 0x002C0B1C
|
||||
[Token(Token = "0x600C213")]
|
||||
[Address(RVA = "0x27217C0", Offset = "0x27205C0", VA = "0x1827217C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.cA != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerBoolean derBoolean = this.cA;
|
||||
if (derBoolean != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derBoolean;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.pathLenConstraint != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.pathLenConstraint;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derInteger;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C214 RID: 49684 RVA: 0x002C2994 File Offset: 0x002C0B94
|
||||
[Token(Token = "0x600C214")]
|
||||
[Address(RVA = "0x2721970", Offset = "0x2720770", VA = "0x182721970", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
if (this.pathLenConstraint != (ulong)0L)
|
||||
{
|
||||
object[] array = new object[4];
|
||||
if ("BasicConstraints: isCa(" != 0)
|
||||
{
|
||||
}
|
||||
array[0] = "BasicConstraints: isCa(";
|
||||
DerBoolean derBoolean = this.cA;
|
||||
if (derBoolean == 0)
|
||||
{
|
||||
}
|
||||
bool isTrue = derBoolean.IsTrue;
|
||||
string text;
|
||||
if (text != 0)
|
||||
{
|
||||
}
|
||||
array[1] = text;
|
||||
if ("), pathLenConstraint = " != 0)
|
||||
{
|
||||
}
|
||||
array[2] = "), pathLenConstraint = ";
|
||||
BigInteger value = this.pathLenConstraint.Value;
|
||||
if (value != 0)
|
||||
{
|
||||
}
|
||||
array[3] = value;
|
||||
return string.Concat(array);
|
||||
}
|
||||
DerBoolean derBoolean2 = this.cA;
|
||||
if (derBoolean2 == 0)
|
||||
{
|
||||
}
|
||||
bool isTrue2 = derBoolean2.IsTrue;
|
||||
string text2;
|
||||
return "BasicConstraints: isCa(" + text2 + ")";
|
||||
}
|
||||
|
||||
// Token: 0x04007A6E RID: 31342
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A6E")]
|
||||
private readonly DerBoolean cA;
|
||||
|
||||
// Token: 0x04007A6F RID: 31343
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A6F")]
|
||||
private readonly DerInteger pathLenConstraint;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DFA RID: 7674
|
||||
[Token(Token = "0x2001DFA")]
|
||||
public class CertPolicyID : DerObjectIdentifier
|
||||
{
|
||||
// Token: 0x0600C223 RID: 49699 RVA: 0x002C2DE4 File Offset: 0x002C0FE4
|
||||
[Token(Token = "0x600C223")]
|
||||
[Address(RVA = "0x2723E40", Offset = "0x2722C40", VA = "0x182723E40")]
|
||||
public CertPolicyID(string id)
|
||||
: base(id)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+239
@@ -0,0 +1,239 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DFB RID: 7675
|
||||
[Token(Token = "0x2001DFB")]
|
||||
public class CertificateList : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C224 RID: 49700 RVA: 0x002C2DF8 File Offset: 0x002C0FF8
|
||||
[Token(Token = "0x600C224")]
|
||||
[Address(RVA = "0x2723EB0", Offset = "0x2722CB0", VA = "0x182723EB0")]
|
||||
public static CertificateList GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return CertificateList.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C225 RID: 49701 RVA: 0x002C2E14 File Offset: 0x002C1014
|
||||
[Token(Token = "0x600C225")]
|
||||
[Address(RVA = "0x2723ED0", Offset = "0x2722CD0", VA = "0x182723ED0")]
|
||||
public static CertificateList GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C225)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificateList BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificateList::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_54:
|
||||
stloc:ArgumentException(var_12_63, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("sequence wrong size for CertificateList"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C226 RID: 49702 RVA: 0x002C2E88 File Offset: 0x002C1088
|
||||
[Token(Token = "0x600C226")]
|
||||
[Address(RVA = "0x2724290", Offset = "0x2723090", VA = "0x182724290")]
|
||||
private CertificateList(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C226)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificateList::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_40:
|
||||
stloc:ArgumentException(var_7_4F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("sequence wrong size for CertificateList"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x17001DF7 RID: 7671
|
||||
// (get) Token: 0x0600C227 RID: 49703 RVA: 0x002C2EE8 File Offset: 0x002C10E8
|
||||
[Token(Token = "0x17001DF7")]
|
||||
public TbsCertificateList TbsCertList
|
||||
{
|
||||
[Token(Token = "0x600C227")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.tbsCertList;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C228 RID: 49704 RVA: 0x002C2EFC File Offset: 0x002C10FC
|
||||
[Token(Token = "0x600C228")]
|
||||
[Address(RVA = "0x2724100", Offset = "0x2722F00", VA = "0x182724100")]
|
||||
public CrlEntry[] GetRevokedCertificates()
|
||||
{
|
||||
return this.tbsCertList.GetRevokedCertificates();
|
||||
}
|
||||
|
||||
// Token: 0x0600C229 RID: 49705 RVA: 0x002C2F1C File Offset: 0x002C111C
|
||||
[Token(Token = "0x600C229")]
|
||||
[Address(RVA = "0x27240E0", Offset = "0x2722EE0", VA = "0x1827240E0")]
|
||||
public IEnumerable GetRevokedCertificateEnumeration()
|
||||
{
|
||||
return this.tbsCertList.GetRevokedCertificateEnumeration();
|
||||
}
|
||||
|
||||
// Token: 0x17001DF8 RID: 7672
|
||||
// (get) Token: 0x0600C22A RID: 49706 RVA: 0x002C2F3C File Offset: 0x002C113C
|
||||
[Token(Token = "0x17001DF8")]
|
||||
public AlgorithmIdentifier SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C22A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.sigAlgID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DF9 RID: 7673
|
||||
// (get) Token: 0x0600C22B RID: 49707 RVA: 0x002C2F50 File Offset: 0x002C1150
|
||||
[Token(Token = "0x17001DF9")]
|
||||
public DerBitString Signature
|
||||
{
|
||||
[Token(Token = "0x600C22B")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.sig;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C22C RID: 49708 RVA: 0x002C2F64 File Offset: 0x002C1164
|
||||
[Token(Token = "0x600C22C")]
|
||||
[Address(RVA = "0x271F280", Offset = "0x271E080", VA = "0x18271F280")]
|
||||
public byte[] GetSignatureOctets()
|
||||
{
|
||||
Asn1Object asn1Object = this.sig.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001DFA RID: 7674
|
||||
// (get) Token: 0x0600C22D RID: 49709 RVA: 0x002C2F84 File Offset: 0x002C1184
|
||||
[Token(Token = "0x17001DFA")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x600C22D")]
|
||||
[Address(RVA = "0x27243D0", Offset = "0x27231D0", VA = "0x1827243D0")]
|
||||
get
|
||||
{
|
||||
return this.tbsCertList.Version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DFB RID: 7675
|
||||
// (get) Token: 0x0600C22E RID: 49710 RVA: 0x002C2FA4 File Offset: 0x002C11A4
|
||||
[Token(Token = "0x17001DFB")]
|
||||
public X509Name Issuer
|
||||
{
|
||||
[Token(Token = "0x600C22E")]
|
||||
[Address(RVA = "0x407190", Offset = "0x405F90", VA = "0x180407190")]
|
||||
get
|
||||
{
|
||||
return this.tbsCertList.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DFC RID: 7676
|
||||
// (get) Token: 0x0600C22F RID: 49711 RVA: 0x002C2FC4 File Offset: 0x002C11C4
|
||||
[Token(Token = "0x17001DFC")]
|
||||
public Time ThisUpdate
|
||||
{
|
||||
[Token(Token = "0x600C22F")]
|
||||
[Address(RVA = "0x42FC20", Offset = "0x42EA20", VA = "0x18042FC20")]
|
||||
get
|
||||
{
|
||||
return this.tbsCertList.thisUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DFD RID: 7677
|
||||
// (get) Token: 0x0600C230 RID: 49712 RVA: 0x002C2FE4 File Offset: 0x002C11E4
|
||||
[Token(Token = "0x17001DFD")]
|
||||
public Time NextUpdate
|
||||
{
|
||||
[Token(Token = "0x600C230")]
|
||||
[Address(RVA = "0x532820", Offset = "0x531620", VA = "0x180532820")]
|
||||
get
|
||||
{
|
||||
return this.tbsCertList.nextUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C231 RID: 49713 RVA: 0x002C3004 File Offset: 0x002C1204
|
||||
[Token(Token = "0x600C231")]
|
||||
[Address(RVA = "0x2724120", Offset = "0x2722F20", VA = "0x182724120", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
TbsCertificateList tbsCertificateList = this.tbsCertList;
|
||||
if (tbsCertificateList != 0)
|
||||
{
|
||||
}
|
||||
array[0] = tbsCertificateList;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.sigAlgID;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.sig;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derBitString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A7C RID: 31356
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A7C")]
|
||||
private readonly TbsCertificateList tbsCertList;
|
||||
|
||||
// Token: 0x04007A7D RID: 31357
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A7D")]
|
||||
private readonly AlgorithmIdentifier sigAlgID;
|
||||
|
||||
// Token: 0x04007A7E RID: 31358
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007A7E")]
|
||||
private readonly DerBitString sig;
|
||||
}
|
||||
}
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DFC RID: 7676
|
||||
[Token(Token = "0x2001DFC")]
|
||||
public class CertificatePair : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C232 RID: 49714 RVA: 0x002C3060 File Offset: 0x002C1260
|
||||
[Token(Token = "0x600C232")]
|
||||
[Address(RVA = "0x27243F0", Offset = "0x27231F0", VA = "0x1827243F0")]
|
||||
public static CertificatePair GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C232)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePair BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePair::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C233 RID: 49715 RVA: 0x002C30B4 File Offset: 0x002C12B4
|
||||
[Token(Token = "0x600C233")]
|
||||
[Address(RVA = "0x27247F0", Offset = "0x27235F0", VA = "0x1827247F0")]
|
||||
private CertificatePair(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
Asn1Encodable asn1Encodable;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable != (ulong)1L && asn1Encodable2 != (ulong)2L)
|
||||
{
|
||||
goto IL_52;
|
||||
}
|
||||
X509CertificateStructure instance2;
|
||||
if (seq.GetEnumerator() != 0)
|
||||
{
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
if (asn1TaggedObject.tagNo != 0)
|
||||
{
|
||||
X509CertificateStructure instance = X509CertificateStructure.GetInstance(asn1TaggedObject, true);
|
||||
this.reverse = instance;
|
||||
}
|
||||
instance2 = X509CertificateStructure.GetInstance(asn1TaggedObject, true);
|
||||
this.forward = instance2;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_52:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C234 RID: 49716 RVA: 0x002C3164 File Offset: 0x002C1364
|
||||
[Token(Token = "0x600C234")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public CertificatePair(X509CertificateStructure forward, X509CertificateStructure reverse)
|
||||
{
|
||||
this.forward = forward;
|
||||
this.reverse = reverse;
|
||||
}
|
||||
|
||||
// Token: 0x0600C235 RID: 49717 RVA: 0x002C3188 File Offset: 0x002C1388
|
||||
[Token(Token = "0x600C235")]
|
||||
[Address(RVA = "0x27245F0", Offset = "0x27233F0", VA = "0x1827245F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.forward != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
X509CertificateStructure x509CertificateStructure = this.forward;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num, x509CertificateStructure);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.reverse != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
X509CertificateStructure x509CertificateStructure2 = this.reverse;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(1, x509CertificateStructure2);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001DFE RID: 7678
|
||||
// (get) Token: 0x0600C236 RID: 49718 RVA: 0x002C3218 File Offset: 0x002C1418
|
||||
[Token(Token = "0x17001DFE")]
|
||||
public X509CertificateStructure Forward
|
||||
{
|
||||
[Token(Token = "0x600C236")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.forward;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DFF RID: 7679
|
||||
// (get) Token: 0x0600C237 RID: 49719 RVA: 0x002C322C File Offset: 0x002C142C
|
||||
[Token(Token = "0x17001DFF")]
|
||||
public X509CertificateStructure Reverse
|
||||
{
|
||||
[Token(Token = "0x600C237")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.reverse;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007A7F RID: 31359
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A7F")]
|
||||
private X509CertificateStructure forward;
|
||||
|
||||
// Token: 0x04007A80 RID: 31360
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A80")]
|
||||
private X509CertificateStructure reverse;
|
||||
}
|
||||
}
|
||||
+165
@@ -0,0 +1,165 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DFD RID: 7677
|
||||
[Token(Token = "0x2001DFD")]
|
||||
public class CertificatePolicies : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C238 RID: 49720 RVA: 0x002C3240 File Offset: 0x002C1440
|
||||
[Token(Token = "0x600C238")]
|
||||
[Address(RVA = "0x2724A60", Offset = "0x2723860", VA = "0x182724A60")]
|
||||
public static CertificatePolicies GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C238)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePolicies BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePolicies::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_3:
|
||||
brtrue(IL_00, ceq:bool(ldloc:object(obj), ldc.i4:int32[exp:object](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.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: 0x0600C239 RID: 49721 RVA: 0x002C32A8 File Offset: 0x002C14A8
|
||||
[Token(Token = "0x600C239")]
|
||||
[Address(RVA = "0x2724C70", Offset = "0x2723A70", VA = "0x182724C70")]
|
||||
public static CertificatePolicies GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return CertificatePolicies.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C23A RID: 49722 RVA: 0x002C32C4 File Offset: 0x002C14C4
|
||||
[Token(Token = "0x600C23A")]
|
||||
[Address(RVA = "0x2724EC0", Offset = "0x2723CC0", VA = "0x182724EC0")]
|
||||
public CertificatePolicies(PolicyInformation name)
|
||||
{
|
||||
PolicyInformation[] array = new PolicyInformation[1];
|
||||
if (name != 0)
|
||||
{
|
||||
}
|
||||
array[0] = name;
|
||||
this.policyInformation = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C23B RID: 49723 RVA: 0x002C32F8 File Offset: 0x002C14F8
|
||||
[Token(Token = "0x600C23B")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public CertificatePolicies(PolicyInformation[] policyInformation)
|
||||
{
|
||||
this.policyInformation = policyInformation;
|
||||
}
|
||||
|
||||
// Token: 0x0600C23C RID: 49724 RVA: 0x002C3314 File Offset: 0x002C1514
|
||||
[Token(Token = "0x600C23C")]
|
||||
[Address(RVA = "0x2724F70", Offset = "0x2723D70", VA = "0x182724F70")]
|
||||
private CertificatePolicies(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
PolicyInformation[] array = new PolicyInformation[asn1Encodable];
|
||||
this.policyInformation = array;
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num < asn1Encodable2)
|
||||
{
|
||||
PolicyInformation[] array2 = this.policyInformation;
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PolicyInformation policyInformation;
|
||||
if (policyInformation != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array2[0] = policyInformation;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C23D RID: 49725 RVA: 0x002C3364 File Offset: 0x002C1564
|
||||
[Token(Token = "0x600C23D")]
|
||||
[Address(RVA = "0x2724C90", Offset = "0x2723A90", VA = "0x182724C90", Slot = "6")]
|
||||
public virtual PolicyInformation[] GetPolicyInformation()
|
||||
{
|
||||
PolicyInformation[] array = this.policyInformation;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C23E RID: 49726 RVA: 0x002C3380 File Offset: 0x002C1580
|
||||
[Token(Token = "0x600C23E")]
|
||||
[Address(RVA = "0x2724D10", Offset = "0x2723B10", VA = "0x182724D10", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C23E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePolicies::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_0B, newobj:DerSequence(DerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PolicyInformation[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](CertificatePolicies::policyInformation, ldloc:CertificatePolicies(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: 0x0600C23F RID: 49727 RVA: 0x002C3398 File Offset: 0x002C1598
|
||||
[Token(Token = "0x600C23F")]
|
||||
[Address(RVA = "0x2724D70", Offset = "0x2723B70", VA = "0x182724D70", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder("CertificatePolicies:");
|
||||
PolicyInformation[] array = this.policyInformation;
|
||||
if (array != 0 && array.Length != 0)
|
||||
{
|
||||
PolicyInformation policyInformation = this.policyInformation[0];
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(policyInformation);
|
||||
PolicyInformation[] array2 = this.policyInformation;
|
||||
if ((uint)1 < (uint)array2.Length)
|
||||
{
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(", ");
|
||||
PolicyInformation[] array3 = this.policyInformation;
|
||||
PolicyInformation policyInformation2;
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(policyInformation2);
|
||||
PolicyInformation[] array4 = this.policyInformation;
|
||||
}
|
||||
}
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A81 RID: 31361
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A81")]
|
||||
private readonly PolicyInformation[] policyInformation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,157 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF7 RID: 7671
|
||||
[Token(Token = "0x2001DF7")]
|
||||
public class CrlDistPoint : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C215 RID: 49685 RVA: 0x002C2A50 File Offset: 0x002C0C50
|
||||
[Token(Token = "0x600C215")]
|
||||
[Address(RVA = "0x27253D0", Offset = "0x27241D0", VA = "0x1827253D0")]
|
||||
public static CrlDistPoint GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return CrlDistPoint.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C216 RID: 49686 RVA: 0x002C2A6C File Offset: 0x002C0C6C
|
||||
[Token(Token = "0x600C216")]
|
||||
[Address(RVA = "0x27251D0", Offset = "0x2723FD0", VA = "0x1827251D0")]
|
||||
public static CrlDistPoint GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C216)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CrlDistPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CrlDistPoint::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_30:
|
||||
stloc:string(var_7_36, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_8_4E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_7_36)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C217 RID: 49687 RVA: 0x002C2AC8 File Offset: 0x002C0CC8
|
||||
[Token(Token = "0x600C217")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private CrlDistPoint(Asn1Sequence seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600C218 RID: 49688 RVA: 0x002C2AE4 File Offset: 0x002C0CE4
|
||||
[Token(Token = "0x600C218")]
|
||||
[Address(RVA = "0x2725640", Offset = "0x2724440", VA = "0x182725640")]
|
||||
public CrlDistPoint(DistributionPoint[] points)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(points);
|
||||
this.seq = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C219 RID: 49689 RVA: 0x002C2B08 File Offset: 0x002C0D08
|
||||
[Token(Token = "0x600C219")]
|
||||
[Address(RVA = "0x27250A0", Offset = "0x2723EA0", VA = "0x1827250A0")]
|
||||
public DistributionPoint[] GetDistributionPoints()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.seq;
|
||||
Asn1Encodable asn1Encodable;
|
||||
DistributionPoint[] array = new DistributionPoint[asn1Encodable];
|
||||
int num = 0;
|
||||
Asn1Sequence asn1Sequence2 = this.seq;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num != asn1Encodable2)
|
||||
{
|
||||
Asn1SequenceParser parser = this.seq.Parser;
|
||||
DistributionPoint distributionPoint;
|
||||
if (distributionPoint != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = distributionPoint;
|
||||
Asn1Sequence asn1Sequence3 = this.seq;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C21A RID: 49690 RVA: 0x002C2B60 File Offset: 0x002C0D60
|
||||
[Token(Token = "0x600C21A")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C21A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CrlDistPoint::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CrlDistPoint::seq, ldloc:CrlDistPoint(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: 0x0600C21B RID: 49691 RVA: 0x002C2B74 File Offset: 0x002C0D74
|
||||
[Token(Token = "0x600C21B")]
|
||||
[Address(RVA = "0x27253F0", Offset = "0x27241F0", VA = "0x1827253F0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append("CRLDistPoint:");
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
|
||||
Asn1Sequence asn1Sequence = this.seq;
|
||||
Asn1Encodable asn1Encodable;
|
||||
DistributionPoint[] array = new DistributionPoint[asn1Encodable];
|
||||
int num = 0;
|
||||
Asn1Sequence asn1Sequence2 = this.seq;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num != asn1Encodable2)
|
||||
{
|
||||
Asn1SequenceParser parser = this.seq.Parser;
|
||||
DistributionPoint distributionPoint;
|
||||
if (distributionPoint != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = distributionPoint;
|
||||
Asn1Sequence asn1Sequence3 = this.seq;
|
||||
}
|
||||
if (num != array.Length)
|
||||
{
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(" ");
|
||||
DistributionPoint distributionPoint2 = array[num];
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(distributionPoint2);
|
||||
StringBuilder stringBuilder6 = stringBuilder.Append(newLine);
|
||||
num++;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A70 RID: 31344
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A70")]
|
||||
internal readonly Asn1Sequence seq;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E1B RID: 7707
|
||||
[Token(Token = "0x2001E1B")]
|
||||
public class CrlEntry : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C322 RID: 49954 RVA: 0x002C7360 File Offset: 0x002C5560
|
||||
[Token(Token = "0x600C322")]
|
||||
[Address(RVA = "0x27256B0", Offset = "0x27244B0", VA = "0x1827256B0")]
|
||||
public CrlEntry(Asn1Sequence seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.userCertificate = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Time time;
|
||||
this.revocationDate = time;
|
||||
}
|
||||
|
||||
// Token: 0x17001E32 RID: 7730
|
||||
// (get) Token: 0x0600C323 RID: 49955 RVA: 0x002C73A0 File Offset: 0x002C55A0
|
||||
[Token(Token = "0x17001E32")]
|
||||
public DerInteger UserCertificate
|
||||
{
|
||||
[Token(Token = "0x600C323")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.userCertificate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E33 RID: 7731
|
||||
// (get) Token: 0x0600C324 RID: 49956 RVA: 0x002C73B4 File Offset: 0x002C55B4
|
||||
[Token(Token = "0x17001E33")]
|
||||
public Time RevocationDate
|
||||
{
|
||||
[Token(Token = "0x600C324")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.revocationDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E34 RID: 7732
|
||||
// (get) Token: 0x0600C325 RID: 49957 RVA: 0x002C73C8 File Offset: 0x002C55C8
|
||||
[Token(Token = "0x17001E34")]
|
||||
public X509Extensions Extensions
|
||||
{
|
||||
[Token(Token = "0x600C325")]
|
||||
[Address(RVA = "0x27257F0", Offset = "0x27245F0", VA = "0x1827257F0")]
|
||||
get
|
||||
{
|
||||
if (this.crlEntryExtensions == (ulong)0L)
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.seq;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable == (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser = this.seq.Parser;
|
||||
X509Extensions x509Extensions;
|
||||
this.crlEntryExtensions = x509Extensions;
|
||||
}
|
||||
}
|
||||
return this.crlEntryExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C326 RID: 49958 RVA: 0x002C740C File Offset: 0x002C560C
|
||||
[Token(Token = "0x600C326")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C326)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CrlEntry::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CrlEntry::seq, ldloc:CrlEntry(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: 0x04007AF6 RID: 31478
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AF6")]
|
||||
internal Asn1Sequence seq;
|
||||
|
||||
// Token: 0x04007AF7 RID: 31479
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AF7")]
|
||||
internal DerInteger userCertificate;
|
||||
|
||||
// Token: 0x04007AF8 RID: 31480
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AF8")]
|
||||
internal Time revocationDate;
|
||||
|
||||
// Token: 0x04007AF9 RID: 31481
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007AF9")]
|
||||
internal X509Extensions crlEntryExtensions;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF8 RID: 7672
|
||||
[Token(Token = "0x2001DF8")]
|
||||
public class CrlNumber : DerInteger
|
||||
{
|
||||
// Token: 0x0600C21C RID: 49692 RVA: 0x002C2C30 File Offset: 0x002C0E30
|
||||
[Token(Token = "0x600C21C")]
|
||||
[Address(RVA = "0x27258F0", Offset = "0x27246F0", VA = "0x1827258F0")]
|
||||
public CrlNumber(BigInteger number)
|
||||
: base(number)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17001DF6 RID: 7670
|
||||
// (get) Token: 0x0600C21D RID: 49693 RVA: 0x002C2C44 File Offset: 0x002C0E44
|
||||
[Token(Token = "0x17001DF6")]
|
||||
public BigInteger Number
|
||||
{
|
||||
[Token(Token = "0x600C21D")]
|
||||
[Address(RVA = "0x2725900", Offset = "0x2724700", VA = "0x182725900")]
|
||||
get
|
||||
{
|
||||
return base.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C21E RID: 49694 RVA: 0x002C2C58 File Offset: 0x002C0E58
|
||||
[Token(Token = "0x600C21E")]
|
||||
[Address(RVA = "0x27258A0", Offset = "0x27246A0", VA = "0x1827258A0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
BigInteger positiveValue = base.PositiveValue;
|
||||
return "CRLNumber: " + positiveValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF9 RID: 7673
|
||||
[Token(Token = "0x2001DF9")]
|
||||
public class CrlReason : DerEnumerated
|
||||
{
|
||||
// Token: 0x0600C21F RID: 49695 RVA: 0x002C2C78 File Offset: 0x002C0E78
|
||||
[Token(Token = "0x600C21F")]
|
||||
[Address(RVA = "0x2725E90", Offset = "0x2724C90", VA = "0x182725E90")]
|
||||
public CrlReason(int reason)
|
||||
: base(reason)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C220 RID: 49696 RVA: 0x002C2C8C File Offset: 0x002C0E8C
|
||||
[Token(Token = "0x600C220")]
|
||||
[Address(RVA = "0x2725E00", Offset = "0x2724C00", VA = "0x182725E00")]
|
||||
public CrlReason(DerEnumerated reason)
|
||||
{
|
||||
int intValue = reason.Value.IntValue;
|
||||
base..ctor(intValue);
|
||||
}
|
||||
|
||||
// Token: 0x0600C221 RID: 49697 RVA: 0x002C2CB4 File Offset: 0x002C0EB4
|
||||
[Token(Token = "0x600C221")]
|
||||
[Address(RVA = "0x2725910", Offset = "0x2724710", VA = "0x182725910", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
BigInteger value = base.Value;
|
||||
int num = 0;
|
||||
if (value.IntValue > 10)
|
||||
{
|
||||
}
|
||||
return "CrlReason: " + num;
|
||||
}
|
||||
|
||||
// Token: 0x0600C222 RID: 49698 RVA: 0x002C2CE8 File Offset: 0x002C0EE8
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C222")]
|
||||
[Address(RVA = "0x27259D0", Offset = "0x27247D0", VA = "0x1827259D0")]
|
||||
static CrlReason()
|
||||
{
|
||||
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";
|
||||
}
|
||||
|
||||
// Token: 0x04007A71 RID: 31345
|
||||
[Token(Token = "0x4007A71")]
|
||||
public const int Unspecified = 0;
|
||||
|
||||
// Token: 0x04007A72 RID: 31346
|
||||
[Token(Token = "0x4007A72")]
|
||||
public const int KeyCompromise = 1;
|
||||
|
||||
// Token: 0x04007A73 RID: 31347
|
||||
[Token(Token = "0x4007A73")]
|
||||
public const int CACompromise = 2;
|
||||
|
||||
// Token: 0x04007A74 RID: 31348
|
||||
[Token(Token = "0x4007A74")]
|
||||
public const int AffiliationChanged = 3;
|
||||
|
||||
// Token: 0x04007A75 RID: 31349
|
||||
[Token(Token = "0x4007A75")]
|
||||
public const int Superseded = 4;
|
||||
|
||||
// Token: 0x04007A76 RID: 31350
|
||||
[Token(Token = "0x4007A76")]
|
||||
public const int CessationOfOperation = 5;
|
||||
|
||||
// Token: 0x04007A77 RID: 31351
|
||||
[Token(Token = "0x4007A77")]
|
||||
public const int CertificateHold = 6;
|
||||
|
||||
// Token: 0x04007A78 RID: 31352
|
||||
[Token(Token = "0x4007A78")]
|
||||
public const int RemoveFromCrl = 8;
|
||||
|
||||
// Token: 0x04007A79 RID: 31353
|
||||
[Token(Token = "0x4007A79")]
|
||||
public const int PrivilegeWithdrawn = 9;
|
||||
|
||||
// Token: 0x04007A7A RID: 31354
|
||||
[Token(Token = "0x4007A7A")]
|
||||
public const int AACompromise = 10;
|
||||
|
||||
// Token: 0x04007A7B RID: 31355
|
||||
[Token(Token = "0x4007A7B")]
|
||||
private static readonly string[] ReasonString;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DFF RID: 7679
|
||||
[Token(Token = "0x2001DFF")]
|
||||
public class DigestInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C248 RID: 49736 RVA: 0x002C35E4 File Offset: 0x002C17E4
|
||||
[Token(Token = "0x600C248")]
|
||||
[Address(RVA = "0x2725EF0", Offset = "0x2724CF0", VA = "0x182725EF0")]
|
||||
public static DigestInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return DigestInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C249 RID: 49737 RVA: 0x002C3600 File Offset: 0x002C1800
|
||||
[Token(Token = "0x600C249")]
|
||||
[Address(RVA = "0x2725F10", Offset = "0x2724D10", VA = "0x182725F10")]
|
||||
public static DigestInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C249)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DigestInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DigestInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_38:
|
||||
stloc:string(var_8_3E, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_56, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_3E)), ldstr:string("obj")))
|
||||
stloc:ArgumentException(var_10_67, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C24A RID: 49738 RVA: 0x002C3678 File Offset: 0x002C1878
|
||||
[Token(Token = "0x600C24A")]
|
||||
[Address(RVA = "0x2726430", Offset = "0x2725230", VA = "0x182726430")]
|
||||
public DigestInfo(AlgorithmIdentifier algID, byte[] digest)
|
||||
{
|
||||
this.algID = algID;
|
||||
this.digest = digest;
|
||||
}
|
||||
|
||||
// Token: 0x0600C24B RID: 49739 RVA: 0x002C369C File Offset: 0x002C189C
|
||||
[Token(Token = "0x600C24B")]
|
||||
[Address(RVA = "0x2726320", Offset = "0x2725120", VA = "0x182726320")]
|
||||
private DigestInfo(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C24B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DigestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_39:
|
||||
stloc:ArgumentException(var_6_48, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x17001E03 RID: 7683
|
||||
// (get) Token: 0x0600C24C RID: 49740 RVA: 0x002C36F4 File Offset: 0x002C18F4
|
||||
[Token(Token = "0x17001E03")]
|
||||
public AlgorithmIdentifier AlgorithmID
|
||||
{
|
||||
[Token(Token = "0x600C24C")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.algID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C24D RID: 49741 RVA: 0x002C3708 File Offset: 0x002C1908
|
||||
[Token(Token = "0x600C24D")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
public byte[] GetDigest()
|
||||
{
|
||||
return this.digest;
|
||||
}
|
||||
|
||||
// Token: 0x0600C24E RID: 49742 RVA: 0x002C371C File Offset: 0x002C191C
|
||||
[Token(Token = "0x600C24E")]
|
||||
[Address(RVA = "0x27261E0", Offset = "0x2724FE0", VA = "0x1827261E0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.algID;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = algorithmIdentifier;
|
||||
DerOctetString derOctetString = new DerOctetString(this.digest);
|
||||
if (derOctetString != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derOctetString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A85 RID: 31365
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A85")]
|
||||
private readonly byte[] digest;
|
||||
|
||||
// Token: 0x04007A86 RID: 31366
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A86")]
|
||||
private readonly AlgorithmIdentifier algID;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E00 RID: 7680
|
||||
[Token(Token = "0x2001E00")]
|
||||
public class DisplayText : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C24F RID: 49743 RVA: 0x002C3768 File Offset: 0x002C1968
|
||||
[Token(Token = "0x600C24F")]
|
||||
[Address(RVA = "0x2726B80", Offset = "0x2725980", VA = "0x182726B80")]
|
||||
public DisplayText(int type, string text)
|
||||
{
|
||||
if (text.m_stringLength > 200)
|
||||
{
|
||||
int num = 0;
|
||||
uint num2;
|
||||
string text2 = text.Substring(num, (int)num2);
|
||||
}
|
||||
this.contentType = type;
|
||||
if (type != 0)
|
||||
{
|
||||
if (type != 0)
|
||||
{
|
||||
if (type != 0 && type == 1)
|
||||
{
|
||||
DerVisibleString derVisibleString = new DerVisibleString(text);
|
||||
this.contents = derVisibleString;
|
||||
return;
|
||||
}
|
||||
DerUtf8String derUtf8String = new DerUtf8String(text);
|
||||
}
|
||||
DerBmpString derBmpString = new DerBmpString(text);
|
||||
}
|
||||
DerIA5String derIA5String = new DerIA5String(text);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C250 RID: 49744 RVA: 0x002C37D8 File Offset: 0x002C19D8
|
||||
[Token(Token = "0x600C250")]
|
||||
[Address(RVA = "0x2726C90", Offset = "0x2725A90", VA = "0x182726C90")]
|
||||
public DisplayText(string text)
|
||||
{
|
||||
if (text.m_stringLength > 200)
|
||||
{
|
||||
int num = 0;
|
||||
string text2 = text.Substring(num, 200);
|
||||
}
|
||||
this.contentType = (int)((ulong)2L);
|
||||
DerUtf8String derUtf8String = new DerUtf8String(text);
|
||||
this.contents = derUtf8String;
|
||||
}
|
||||
|
||||
// Token: 0x0600C251 RID: 49745 RVA: 0x002C3824 File Offset: 0x002C1A24
|
||||
[Token(Token = "0x600C251")]
|
||||
[Address(RVA = "0x4F28D0", Offset = "0x4F16D0", VA = "0x1804F28D0")]
|
||||
public DisplayText(IAsn1String contents)
|
||||
{
|
||||
this.contents = contents;
|
||||
}
|
||||
|
||||
// Token: 0x0600C252 RID: 49746 RVA: 0x002C3840 File Offset: 0x002C1A40
|
||||
[Token(Token = "0x600C252")]
|
||||
[Address(RVA = "0x2726890", Offset = "0x2725690", VA = "0x182726890")]
|
||||
public static DisplayText GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C252)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DisplayText BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DisplayText::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_21:
|
||||
stloc:string(var_3_27, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_4_3D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_3_27)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C253 RID: 49747 RVA: 0x002C388C File Offset: 0x002C1A8C
|
||||
[Token(Token = "0x600C253")]
|
||||
[Address(RVA = "0x2726B00", Offset = "0x2725900", VA = "0x182726B00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C253)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DisplayText::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0F:
|
||||
brtrue(IL_0F, cne:bool(ldloc:IAsn1String(var_0_06), ldc.i4:int32[exp:IAsn1String](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: 0x0600C254 RID: 49748 RVA: 0x002C38AC File Offset: 0x002C1AAC
|
||||
[Token(Token = "0x600C254")]
|
||||
[Address(RVA = "0x2726A50", Offset = "0x2725850", VA = "0x182726A50")]
|
||||
public string GetString()
|
||||
{
|
||||
IAsn1String asn1String = this.contents;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
return asn1String.GetString();
|
||||
}
|
||||
|
||||
// Token: 0x04007A87 RID: 31367
|
||||
[Token(Token = "0x4007A87")]
|
||||
public const int ContentTypeIA5String = 0;
|
||||
|
||||
// Token: 0x04007A88 RID: 31368
|
||||
[Token(Token = "0x4007A88")]
|
||||
public const int ContentTypeBmpString = 1;
|
||||
|
||||
// Token: 0x04007A89 RID: 31369
|
||||
[Token(Token = "0x4007A89")]
|
||||
public const int ContentTypeUtf8String = 2;
|
||||
|
||||
// Token: 0x04007A8A RID: 31370
|
||||
[Token(Token = "0x4007A8A")]
|
||||
public const int ContentTypeVisibleString = 3;
|
||||
|
||||
// Token: 0x04007A8B RID: 31371
|
||||
[Token(Token = "0x4007A8B")]
|
||||
public const int DisplayTextMaximumSize = 200;
|
||||
|
||||
// Token: 0x04007A8C RID: 31372
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A8C")]
|
||||
internal readonly int contentType;
|
||||
|
||||
// Token: 0x04007A8D RID: 31373
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A8D")]
|
||||
internal readonly IAsn1String contents;
|
||||
}
|
||||
}
|
||||
+240
@@ -0,0 +1,240 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E01 RID: 7681
|
||||
[Token(Token = "0x2001E01")]
|
||||
public class DistributionPoint : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C255 RID: 49749 RVA: 0x002C38E0 File Offset: 0x002C1AE0
|
||||
[Token(Token = "0x600C255")]
|
||||
[Address(RVA = "0x27272F0", Offset = "0x27260F0", VA = "0x1827272F0")]
|
||||
public static DistributionPoint GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return DistributionPoint.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C256 RID: 49750 RVA: 0x002C38FC File Offset: 0x002C1AFC
|
||||
[Token(Token = "0x600C256")]
|
||||
[Address(RVA = "0x2727310", Offset = "0x2726110", VA = "0x182727310")]
|
||||
public static DistributionPoint GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C256)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPoint::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_95:
|
||||
stloc:ArgumentException(var_16_A6, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid DistributionPoint: "), ldloc:string(var_15))))
|
||||
}
|
||||
|
||||
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: 0x0600C257 RID: 49751 RVA: 0x002C39B0 File Offset: 0x002C1BB0
|
||||
[Token(Token = "0x600C257")]
|
||||
[Address(RVA = "0x2727AA0", Offset = "0x27268A0", VA = "0x182727AA0")]
|
||||
private DistributionPoint(Asn1Sequence seq)
|
||||
{
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num != asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
int tagNo = asn1TaggedObject.tagNo;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 1)
|
||||
{
|
||||
goto IL_7D;
|
||||
}
|
||||
int num2 = 0;
|
||||
GeneralNames instance = GeneralNames.GetInstance(Asn1Sequence.GetInstance(asn1TaggedObject, num2 != 0));
|
||||
num++;
|
||||
this.cRLIssuer = instance;
|
||||
}
|
||||
int num3 = 0;
|
||||
ReasonFlags reasonFlags = new ReasonFlags(DerBitString.GetInstance(asn1TaggedObject, num3 != 0));
|
||||
num++;
|
||||
this.reasons = reasonFlags;
|
||||
}
|
||||
ulong num4;
|
||||
DistributionPointName instance2 = DistributionPointName.GetInstance(Asn1TaggedObject.GetInstance(asn1TaggedObject, num4 != 0UL));
|
||||
this.distributionPoint = instance2;
|
||||
IL_7D:
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C258 RID: 49752 RVA: 0x002C3A44 File Offset: 0x002C1C44
|
||||
[Token(Token = "0x600C258")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
public DistributionPoint(DistributionPointName distributionPointName, ReasonFlags reasons, GeneralNames crlIssuer)
|
||||
{
|
||||
this.distributionPoint = distributionPointName;
|
||||
this.reasons = reasons;
|
||||
this.cRLIssuer = crlIssuer;
|
||||
}
|
||||
|
||||
// Token: 0x17001E04 RID: 7684
|
||||
// (get) Token: 0x0600C259 RID: 49753 RVA: 0x002C3A6C File Offset: 0x002C1C6C
|
||||
[Token(Token = "0x17001E04")]
|
||||
public DistributionPointName DistributionPointName
|
||||
{
|
||||
[Token(Token = "0x600C259")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.distributionPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E05 RID: 7685
|
||||
// (get) Token: 0x0600C25A RID: 49754 RVA: 0x002C3A80 File Offset: 0x002C1C80
|
||||
[Token(Token = "0x17001E05")]
|
||||
public ReasonFlags Reasons
|
||||
{
|
||||
[Token(Token = "0x600C25A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.reasons;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E06 RID: 7686
|
||||
// (get) Token: 0x0600C25B RID: 49755 RVA: 0x002C3A94 File Offset: 0x002C1C94
|
||||
[Token(Token = "0x17001E06")]
|
||||
public GeneralNames CrlIssuer
|
||||
{
|
||||
[Token(Token = "0x600C25B")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.cRLIssuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C25C RID: 49756 RVA: 0x002C3AA8 File Offset: 0x002C1CA8
|
||||
[Token(Token = "0x600C25C")]
|
||||
[Address(RVA = "0x2727640", Offset = "0x2726440", VA = "0x182727640", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.distributionPoint != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DistributionPointName distributionPointName = this.distributionPoint;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num, distributionPointName);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.reasons != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
ReasonFlags reasonFlags = this.reasons;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num2 != 0, 1, reasonFlags);
|
||||
num2 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.cRLIssuer != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
GeneralNames generalNames = this.cRLIssuer;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num3 != 0, 2, generalNames);
|
||||
num3 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C25D RID: 49757 RVA: 0x002C3B7C File Offset: 0x002C1D7C
|
||||
[Token(Token = "0x600C25D")]
|
||||
[Address(RVA = "0x2727900", Offset = "0x2726700", VA = "0x182727900", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append("DistributionPoint: [");
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
|
||||
DistributionPointName distributionPointName = this.distributionPoint;
|
||||
if (distributionPointName != 0)
|
||||
{
|
||||
int hashCode = distributionPointName.GetHashCode();
|
||||
}
|
||||
ReasonFlags reasonFlags = this.reasons;
|
||||
if (reasonFlags != 0)
|
||||
{
|
||||
int hashCode2 = reasonFlags.GetHashCode();
|
||||
}
|
||||
GeneralNames generalNames = this.cRLIssuer;
|
||||
if (generalNames != 0)
|
||||
{
|
||||
int hashCode3 = generalNames.GetHashCode();
|
||||
}
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append("]");
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(newLine);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C25E RID: 49758 RVA: 0x002C3C08 File Offset: 0x002C1E08
|
||||
[Token(Token = "0x600C25E")]
|
||||
[Address(RVA = "0x2727C10", Offset = "0x2726A10", VA = "0x182727C10")]
|
||||
private void appendObject(StringBuilder buf, string sep, string name, string val)
|
||||
{
|
||||
StringBuilder stringBuilder = buf.Append(" ");
|
||||
StringBuilder stringBuilder2 = buf.Append(name);
|
||||
StringBuilder stringBuilder3 = buf.Append(":");
|
||||
StringBuilder stringBuilder4 = buf.Append(sep);
|
||||
StringBuilder stringBuilder5 = buf.Append(" ");
|
||||
StringBuilder stringBuilder6 = buf.Append(" ");
|
||||
StringBuilder stringBuilder7 = buf.Append(sep);
|
||||
}
|
||||
|
||||
// Token: 0x04007A8E RID: 31374
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A8E")]
|
||||
internal readonly DistributionPointName distributionPoint;
|
||||
|
||||
// Token: 0x04007A8F RID: 31375
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A8F")]
|
||||
internal readonly ReasonFlags reasons;
|
||||
|
||||
// Token: 0x04007A90 RID: 31376
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007A90")]
|
||||
internal readonly GeneralNames cRLIssuer;
|
||||
}
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E02 RID: 7682
|
||||
[Token(Token = "0x2001E02")]
|
||||
public class DistributionPointName : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C25F RID: 49759 RVA: 0x002C3C68 File Offset: 0x002C1E68
|
||||
[Token(Token = "0x600C25F")]
|
||||
[Address(RVA = "0x2726F50", Offset = "0x2725D50", VA = "0x182726F50")]
|
||||
public static DistributionPointName GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return DistributionPointName.GetInstance(Asn1TaggedObject.GetInstance(obj, true));
|
||||
}
|
||||
|
||||
// Token: 0x0600C260 RID: 49760 RVA: 0x002C3C84 File Offset: 0x002C1E84
|
||||
[Token(Token = "0x600C260")]
|
||||
[Address(RVA = "0x2726D30", Offset = "0x2725B30", VA = "0x182726D30")]
|
||||
public static DistributionPointName GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C260)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPointName BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPointName::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4D:
|
||||
stloc:string(var_10_53, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_6B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_10_53)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C261 RID: 49761 RVA: 0x002C3D00 File Offset: 0x002C1F00
|
||||
[Token(Token = "0x600C261")]
|
||||
[Address(RVA = "0x27271A0", Offset = "0x2725FA0", VA = "0x1827271A0")]
|
||||
public DistributionPointName(int type, Asn1Encodable name)
|
||||
{
|
||||
this.type = type;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
// Token: 0x0600C262 RID: 49762 RVA: 0x002C3D24 File Offset: 0x002C1F24
|
||||
[Token(Token = "0x600C262")]
|
||||
[Address(RVA = "0x27271E0", Offset = "0x2725FE0", VA = "0x1827271E0")]
|
||||
public DistributionPointName(GeneralNames name)
|
||||
{
|
||||
this.type = (int)((ulong)0L);
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
// Token: 0x17001E07 RID: 7687
|
||||
// (get) Token: 0x0600C263 RID: 49763 RVA: 0x002C3D48 File Offset: 0x002C1F48
|
||||
[Token(Token = "0x17001E07")]
|
||||
public int PointType
|
||||
{
|
||||
[Token(Token = "0x600C263")]
|
||||
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
|
||||
get
|
||||
{
|
||||
return this.type;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E08 RID: 7688
|
||||
// (get) Token: 0x0600C264 RID: 49764 RVA: 0x002C3D5C File Offset: 0x002C1F5C
|
||||
[Token(Token = "0x17001E08")]
|
||||
public Asn1Encodable Name
|
||||
{
|
||||
[Token(Token = "0x600C264")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C265 RID: 49765 RVA: 0x002C3D70 File Offset: 0x002C1F70
|
||||
[Token(Token = "0x600C265")]
|
||||
[Address(RVA = "0x2727130", Offset = "0x2725F30", VA = "0x182727130")]
|
||||
public DistributionPointName(Asn1TaggedObject obj)
|
||||
{
|
||||
int tagNo = obj.tagNo;
|
||||
this.type = tagNo;
|
||||
int num = 0;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
Asn1Set instance = Asn1Set.GetInstance(obj, num != 0);
|
||||
this.name = instance;
|
||||
return;
|
||||
}
|
||||
GeneralNames instance2 = GeneralNames.GetInstance(Asn1Sequence.GetInstance(obj, num != 0));
|
||||
this.name = instance2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C266 RID: 49766 RVA: 0x002C3DC4 File Offset: 0x002C1FC4
|
||||
[Token(Token = "0x600C266")]
|
||||
[Address(RVA = "0x2726F70", Offset = "0x2725D70", VA = "0x182726F70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C266)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPointName::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:int32(var_0_06, ldfld:int32(DistributionPointName::type, ldloc:DistributionPointName(this)))
|
||||
stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(DistributionPointName::name, ldloc:DistributionPointName(this)))
|
||||
stloc:DerTaggedObject(var_2_17, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:int32[exp:bool](var_4), ldloc:int32(var_0_06), ldloc:Asn1Encodable(var_1_0D)))
|
||||
stloc:int32(var_4, 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.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: 0x0600C267 RID: 49767 RVA: 0x002C3DEC File Offset: 0x002C1FEC
|
||||
[Token(Token = "0x600C267")]
|
||||
[Address(RVA = "0x2726FE0", Offset = "0x2725DE0", VA = "0x182726FE0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append("DistributionPointName: [");
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
|
||||
Asn1Encodable asn1Encodable = this.name;
|
||||
if (this.type != 0)
|
||||
{
|
||||
int hashCode = asn1Encodable.GetHashCode();
|
||||
}
|
||||
int hashCode2 = asn1Encodable.GetHashCode();
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append("]");
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(newLine);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C268 RID: 49768 RVA: 0x002C3E58 File Offset: 0x002C2058
|
||||
[Token(Token = "0x600C268")]
|
||||
[Address(RVA = "0x2727210", Offset = "0x2726010", VA = "0x182727210")]
|
||||
private void appendObject(StringBuilder buf, string sep, string name, string val)
|
||||
{
|
||||
StringBuilder stringBuilder = buf.Append(" ");
|
||||
StringBuilder stringBuilder2 = buf.Append(name);
|
||||
StringBuilder stringBuilder3 = buf.Append(":");
|
||||
StringBuilder stringBuilder4 = buf.Append(sep);
|
||||
StringBuilder stringBuilder5 = buf.Append(" ");
|
||||
StringBuilder stringBuilder6 = buf.Append(" ");
|
||||
StringBuilder stringBuilder7 = buf.Append(sep);
|
||||
}
|
||||
|
||||
// Token: 0x04007A91 RID: 31377
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A91")]
|
||||
internal readonly Asn1Encodable name;
|
||||
|
||||
// Token: 0x04007A92 RID: 31378
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A92")]
|
||||
internal readonly int type;
|
||||
|
||||
// Token: 0x04007A93 RID: 31379
|
||||
[Token(Token = "0x4007A93")]
|
||||
public const int FullName = 0;
|
||||
|
||||
// Token: 0x04007A94 RID: 31380
|
||||
[Token(Token = "0x4007A94")]
|
||||
public const int NameRelativeToCrlIssuer = 1;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DFE RID: 7678
|
||||
[Token(Token = "0x2001DFE")]
|
||||
public class DsaParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C240 RID: 49728 RVA: 0x002C341C File Offset: 0x002C161C
|
||||
[Token(Token = "0x600C240")]
|
||||
[Address(RVA = "0x2727CF0", Offset = "0x2726AF0", VA = "0x182727CF0")]
|
||||
public static DsaParameter GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return DsaParameter.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C241 RID: 49729 RVA: 0x002C3438 File Offset: 0x002C1638
|
||||
[Token(Token = "0x600C241")]
|
||||
[Address(RVA = "0x2727D10", Offset = "0x2726B10", VA = "0x182727D10")]
|
||||
public static DsaParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C241)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DsaParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DsaParameter::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_41:
|
||||
stloc:string(var_10_47, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_5A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid DsaParameter: "), ldloc:string(var_10_47))))
|
||||
}
|
||||
|
||||
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: 0x0600C242 RID: 49730 RVA: 0x002C34A0 File Offset: 0x002C16A0
|
||||
[Token(Token = "0x600C242")]
|
||||
[Address(RVA = "0x27282D0", Offset = "0x27270D0", VA = "0x1827282D0")]
|
||||
public DsaParameter(BigInteger p, BigInteger q, BigInteger g)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(p);
|
||||
this.p = derInteger;
|
||||
DerInteger derInteger2 = new DerInteger(q);
|
||||
this.q = derInteger2;
|
||||
DerInteger derInteger3 = new DerInteger(g);
|
||||
this.g = derInteger3;
|
||||
}
|
||||
|
||||
// Token: 0x0600C243 RID: 49731 RVA: 0x002C34E0 File Offset: 0x002C16E0
|
||||
[Token(Token = "0x600C243")]
|
||||
[Address(RVA = "0x2728180", Offset = "0x2726F80", VA = "0x182728180")]
|
||||
private DsaParameter(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.p = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
this.q = derInteger2;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerInteger derInteger3;
|
||||
this.g = derInteger3;
|
||||
}
|
||||
|
||||
// Token: 0x17001E00 RID: 7680
|
||||
// (get) Token: 0x0600C244 RID: 49732 RVA: 0x002C3528 File Offset: 0x002C1728
|
||||
[Token(Token = "0x17001E00")]
|
||||
public BigInteger P
|
||||
{
|
||||
[Token(Token = "0x600C244")]
|
||||
[Address(RVA = "0x27283C0", Offset = "0x27271C0", VA = "0x1827283C0")]
|
||||
get
|
||||
{
|
||||
return this.p.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E01 RID: 7681
|
||||
// (get) Token: 0x0600C245 RID: 49733 RVA: 0x002C3548 File Offset: 0x002C1748
|
||||
[Token(Token = "0x17001E01")]
|
||||
public BigInteger Q
|
||||
{
|
||||
[Token(Token = "0x600C245")]
|
||||
[Address(RVA = "0x27283E0", Offset = "0x27271E0", VA = "0x1827283E0")]
|
||||
get
|
||||
{
|
||||
return this.q.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E02 RID: 7682
|
||||
// (get) Token: 0x0600C246 RID: 49734 RVA: 0x002C3568 File Offset: 0x002C1768
|
||||
[Token(Token = "0x17001E02")]
|
||||
public BigInteger G
|
||||
{
|
||||
[Token(Token = "0x600C246")]
|
||||
[Address(RVA = "0x27283A0", Offset = "0x27271A0", VA = "0x1827283A0")]
|
||||
get
|
||||
{
|
||||
return this.g.PositiveValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C247 RID: 49735 RVA: 0x002C3588 File Offset: 0x002C1788
|
||||
[Token(Token = "0x600C247")]
|
||||
[Address(RVA = "0x2728010", Offset = "0x2726E10", VA = "0x182728010", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.p;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
DerInteger derInteger2 = this.q;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger2;
|
||||
DerInteger derInteger3 = this.g;
|
||||
if (derInteger3 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derInteger3;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007A82 RID: 31362
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A82")]
|
||||
internal readonly DerInteger p;
|
||||
|
||||
// Token: 0x04007A83 RID: 31363
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A83")]
|
||||
internal readonly DerInteger q;
|
||||
|
||||
// Token: 0x04007A84 RID: 31364
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007A84")]
|
||||
internal readonly DerInteger g;
|
||||
}
|
||||
}
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E03 RID: 7683
|
||||
[Token(Token = "0x2001E03")]
|
||||
public class ExtendedKeyUsage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C269 RID: 49769 RVA: 0x002C3EB8 File Offset: 0x002C20B8
|
||||
[Token(Token = "0x600C269")]
|
||||
[Address(RVA = "0x2728480", Offset = "0x2727280", VA = "0x182728480")]
|
||||
public static ExtendedKeyUsage GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return ExtendedKeyUsage.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C26A RID: 49770 RVA: 0x002C3ED4 File Offset: 0x002C20D4
|
||||
[Token(Token = "0x600C26A")]
|
||||
[Address(RVA = "0x27284A0", Offset = "0x27272A0", VA = "0x1827284A0")]
|
||||
public static ExtendedKeyUsage GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C26A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.ExtendedKeyUsage BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.ExtendedKeyUsage::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3C:
|
||||
stloc:string(var_9_42, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_55, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid ExtendedKeyUsage: "), ldloc:string(var_9_42))))
|
||||
}
|
||||
|
||||
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: 0x0600C26B RID: 49771 RVA: 0x002C3F38 File Offset: 0x002C2138
|
||||
[Token(Token = "0x600C26B")]
|
||||
[Address(RVA = "0x2728C60", Offset = "0x2727A60", VA = "0x182728C60")]
|
||||
private ExtendedKeyUsage(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.usageTable = dictionary;
|
||||
base..ctor();
|
||||
this.seq = seq;
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0 || enumerator == 0)
|
||||
{
|
||||
goto IL_4B;
|
||||
}
|
||||
IDictionary dictionary2 = this.usageTable;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_4B:
|
||||
ArgumentException ex = new ArgumentException("Only DerObjectIdentifier instances allowed in ExtendedKeyUsage.");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C26C RID: 49772 RVA: 0x002C3FA4 File Offset: 0x002C21A4
|
||||
[Token(Token = "0x600C26C")]
|
||||
[Address(RVA = "0x2728AD0", Offset = "0x27278D0", VA = "0x182728AD0")]
|
||||
public ExtendedKeyUsage(params KeyPurposeID[] usages)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.usageTable = dictionary;
|
||||
base..ctor();
|
||||
DerSequence derSequence = new DerSequence(usages);
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
this.seq = derSequence;
|
||||
int length = usages.Length;
|
||||
if (num2 < length)
|
||||
{
|
||||
IDictionary dictionary2 = this.usageTable;
|
||||
KeyPurposeID keyPurposeID = usages[num2];
|
||||
if (num2 < num)
|
||||
{
|
||||
num2 += num2;
|
||||
num2++;
|
||||
}
|
||||
num2++;
|
||||
keyPurposeID += keyPurposeID;
|
||||
num2++;
|
||||
num2 += 19;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C26D RID: 49773 RVA: 0x002C402C File Offset: 0x002C222C
|
||||
[Token(Token = "0x600C26D")]
|
||||
[Address(RVA = "0x2728C50", Offset = "0x2727A50", VA = "0x182728C50")]
|
||||
[Obsolete]
|
||||
public ExtendedKeyUsage(ArrayList usages)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C26E RID: 49774 RVA: 0x002C403C File Offset: 0x002C223C
|
||||
[Token(Token = "0x600C26E")]
|
||||
[Address(RVA = "0x2728860", Offset = "0x2727660", VA = "0x182728860")]
|
||||
public ExtendedKeyUsage(IEnumerable usages)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.usageTable = dictionary;
|
||||
base..ctor();
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
ArrayTypeMismatchException ex;
|
||||
if (ex != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto Block_1;
|
||||
}
|
||||
}
|
||||
DerObjectIdentifier instance = DerObjectIdentifier.GetInstance(asn1EncodableVector);
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
throw new ArrayTypeMismatchException();
|
||||
Block_1:
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
this.seq = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C26F RID: 49775 RVA: 0x002C40D4 File Offset: 0x002C22D4
|
||||
[Token(Token = "0x600C26F")]
|
||||
[Address(RVA = "0x27287A0", Offset = "0x27275A0", VA = "0x1827287A0")]
|
||||
public bool HasKeyPurposeId(KeyPurposeID keyPurposeId)
|
||||
{
|
||||
IDictionary dictionary = this.usageTable;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
object obj = dictionary[keyPurposeId];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C270 RID: 49776 RVA: 0x002C4100 File Offset: 0x002C2300
|
||||
[Token(Token = "0x600C270")]
|
||||
[Address(RVA = "0x2728720", Offset = "0x2727520", VA = "0x182728720")]
|
||||
[Obsolete]
|
||||
public ArrayList GetUsages()
|
||||
{
|
||||
IDictionary dictionary = this.usageTable;
|
||||
ArrayList arrayList;
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
// Token: 0x0600C271 RID: 49777 RVA: 0x002C411C File Offset: 0x002C231C
|
||||
[Token(Token = "0x600C271")]
|
||||
[Address(RVA = "0x2728400", Offset = "0x2727200", VA = "0x182728400")]
|
||||
public IList GetAllUsages()
|
||||
{
|
||||
IDictionary dictionary = this.usageTable;
|
||||
IList list;
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x17001E09 RID: 7689
|
||||
// (get) Token: 0x0600C272 RID: 49778 RVA: 0x002C4138 File Offset: 0x002C2338
|
||||
[Token(Token = "0x17001E09")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600C272")]
|
||||
[Address(RVA = "0x2728E50", Offset = "0x2727C50", VA = "0x182728E50")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = this.usageTable;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C273 RID: 49779 RVA: 0x002C4154 File Offset: 0x002C2354
|
||||
[Token(Token = "0x600C273")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C273)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.ExtendedKeyUsage::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(ExtendedKeyUsage::seq, ldloc:ExtendedKeyUsage(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: 0x04007A95 RID: 31381
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A95")]
|
||||
internal readonly IDictionary usageTable;
|
||||
|
||||
// Token: 0x04007A96 RID: 31382
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A96")]
|
||||
internal readonly Asn1Sequence seq;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,470 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E04 RID: 7684
|
||||
[Token(Token = "0x2001E04")]
|
||||
public class GeneralName : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C274 RID: 49780 RVA: 0x002C4168 File Offset: 0x002C2368
|
||||
[Token(Token = "0x600C274")]
|
||||
[Address(RVA = "0x27298A0", Offset = "0x27286A0", VA = "0x1827298A0")]
|
||||
public GeneralName(X509Name directoryName)
|
||||
{
|
||||
this.obj = directoryName;
|
||||
this.tag = (int)((ulong)4L);
|
||||
}
|
||||
|
||||
// Token: 0x0600C275 RID: 49781 RVA: 0x002C418C File Offset: 0x002C238C
|
||||
[Token(Token = "0x600C275")]
|
||||
[Address(RVA = "0x582150", Offset = "0x580F50", VA = "0x180582150")]
|
||||
public GeneralName(Asn1Object name, int tag)
|
||||
{
|
||||
this.obj = name;
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
// Token: 0x0600C276 RID: 49782 RVA: 0x002C41B0 File Offset: 0x002C23B0
|
||||
[Token(Token = "0x600C276")]
|
||||
[Address(RVA = "0x2729860", Offset = "0x2728660", VA = "0x182729860")]
|
||||
public GeneralName(int tag, Asn1Encodable name)
|
||||
{
|
||||
this.tag = tag;
|
||||
this.obj = name;
|
||||
}
|
||||
|
||||
// Token: 0x0600C277 RID: 49783 RVA: 0x002C41D4 File Offset: 0x002C23D4
|
||||
[Token(Token = "0x600C277")]
|
||||
[Address(RVA = "0x27296B0", Offset = "0x27284B0", VA = "0x1827296B0")]
|
||||
public GeneralName(int tag, string name)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C277)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName::.ctor(System.Int32,System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_6F:
|
||||
stloc:ArgumentException(var_7_7E, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("IP Address is invalid"), ldstr:string("name")))
|
||||
}
|
||||
|
||||
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: 0x0600C278 RID: 49784 RVA: 0x002C4260 File Offset: 0x002C2460
|
||||
[Token(Token = "0x600C278")]
|
||||
[Address(RVA = "0x2728FA0", Offset = "0x2727DA0", VA = "0x182728FA0")]
|
||||
public static GeneralName GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C278)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_7:
|
||||
brtrue(IL_00, ceq:bool(ldloc:object(obj), ldc.i4:int32[exp:object](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: 0x0600C279 RID: 49785 RVA: 0x002C4358 File Offset: 0x002C2558
|
||||
[Token(Token = "0x600C279")]
|
||||
[Address(RVA = "0x2728F80", Offset = "0x2727D80", VA = "0x182728F80")]
|
||||
public static GeneralName GetInstance(Asn1TaggedObject tagObj, bool explicitly)
|
||||
{
|
||||
return GeneralName.GetInstance(Asn1TaggedObject.GetInstance(tagObj, true));
|
||||
}
|
||||
|
||||
// Token: 0x17001E0A RID: 7690
|
||||
// (get) Token: 0x0600C27A RID: 49786 RVA: 0x002C4374 File Offset: 0x002C2574
|
||||
[Token(Token = "0x17001E0A")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600C27A")]
|
||||
[Address(RVA = "0x40B720", Offset = "0x40A520", VA = "0x18040B720")]
|
||||
get
|
||||
{
|
||||
return this.tag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E0B RID: 7691
|
||||
// (get) Token: 0x0600C27B RID: 49787 RVA: 0x002C4388 File Offset: 0x002C2588
|
||||
[Token(Token = "0x17001E0B")]
|
||||
public Asn1Encodable Name
|
||||
{
|
||||
[Token(Token = "0x600C27B")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.obj;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C27C RID: 49788 RVA: 0x002C439C File Offset: 0x002C259C
|
||||
[Token(Token = "0x600C27C")]
|
||||
[Address(RVA = "0x2729540", Offset = "0x2728340", VA = "0x182729540", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
int num = this.tag;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(num);
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(": ");
|
||||
if (this.tag <= 5)
|
||||
{
|
||||
X509Name instance = X509Name.GetInstance(this.obj);
|
||||
int hashCode = instance.GetHashCode();
|
||||
string @string = DerIA5String.GetInstance(instance).GetString();
|
||||
}
|
||||
int hashCode2 = this.obj.GetHashCode();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C27D RID: 49789 RVA: 0x002C440C File Offset: 0x002C260C
|
||||
[Token(Token = "0x600C27D")]
|
||||
[Address(RVA = "0x272A130", Offset = "0x2728F30", VA = "0x18272A130")]
|
||||
private byte[] toGeneralNameEncoding(string ip)
|
||||
{
|
||||
if (!BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net.IPAddress.IsValidIPv6WithNetmask(ip) && !BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net.IPAddress.IsValidIPv6(ip))
|
||||
{
|
||||
if (BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net.IPAddress.IsValidIPv4WithNetmask(ip) || !BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Net.IPAddress.IsValidIPv4(ip))
|
||||
{
|
||||
}
|
||||
uint num2;
|
||||
int num = ip.IndexOf((char)num2);
|
||||
byte[] array = new byte[8];
|
||||
int num3 = 0;
|
||||
string text = ip.Substring(num3, num);
|
||||
int num4 = 0;
|
||||
int num5 = 0;
|
||||
this.parseIPv4(text, array, num5);
|
||||
int num6 = num + 1;
|
||||
string text2 = ip.Substring(num6);
|
||||
int num7 = 0;
|
||||
int num8 = int.Parse(text2);
|
||||
if (num8 != 0)
|
||||
{
|
||||
num4 += num7;
|
||||
num4 -= num7;
|
||||
num4 += 4;
|
||||
num4++;
|
||||
while (num4 != num8)
|
||||
{
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
uint num10;
|
||||
int num9 = ip.IndexOf((char)num10);
|
||||
byte[] array2 = new byte[32];
|
||||
int num11 = 0;
|
||||
string text3 = ip.Substring(num11, num9);
|
||||
int[] array3 = this.parseIPv6(text3);
|
||||
int num12 = 0;
|
||||
int num13 = 0;
|
||||
this.copyInts(array3, array2, num13);
|
||||
int num14 = num9 + 1;
|
||||
string text4 = ip.Substring(num14);
|
||||
int[] array4 = new int[8];
|
||||
int num15 = 0;
|
||||
int num16 = int.Parse(text4);
|
||||
int[] array5;
|
||||
if (num16 != 0)
|
||||
{
|
||||
num12 += num15;
|
||||
num12 -= num15;
|
||||
int num17 = array4[num12];
|
||||
num12++;
|
||||
array4[0] = num17;
|
||||
while (num12 != num16)
|
||||
{
|
||||
}
|
||||
array5 = this.parseIPv6(text4);
|
||||
}
|
||||
uint num18;
|
||||
this.copyInts(array5, array2, (int)num18);
|
||||
int[] array6 = this.parseIPv6(text4);
|
||||
int num19 = 0;
|
||||
this.copyInts(array6, array2, num19);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C27E RID: 49790 RVA: 0x002C4588 File Offset: 0x002C2788
|
||||
[Token(Token = "0x600C27E")]
|
||||
[Address(RVA = "0x2729990", Offset = "0x2728790", VA = "0x182729990")]
|
||||
private void parseIPv4Mask(string mask, byte[] addr, int offset)
|
||||
{
|
||||
int num = int.Parse(mask);
|
||||
int num2 = 0;
|
||||
if (num != 0)
|
||||
{
|
||||
num2++;
|
||||
while (num2 != num)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C27F RID: 49791 RVA: 0x002C45B0 File Offset: 0x002C27B0
|
||||
[Token(Token = "0x600C27F")]
|
||||
[Address(RVA = "0x2729A20", Offset = "0x2728820", VA = "0x182729A20")]
|
||||
private void parseIPv4(string ip, byte[] addr, int offset)
|
||||
{
|
||||
char[] array = new char[2];
|
||||
array[0] = (char)((uint)46);
|
||||
array[0] = (char)((uint)47);
|
||||
string[] array2 = ip.Split(array);
|
||||
int num = 0;
|
||||
int length = array2.Length;
|
||||
if (num < length)
|
||||
{
|
||||
int num2 = int.Parse(array2[num]);
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C280 RID: 49792 RVA: 0x002C4608 File Offset: 0x002C2808
|
||||
[Token(Token = "0x600C280")]
|
||||
[Address(RVA = "0x272A080", Offset = "0x2728E80", VA = "0x18272A080")]
|
||||
private int[] parseMask(string mask)
|
||||
{
|
||||
int[] array = new int[8];
|
||||
int num = 0;
|
||||
int num2 = int.Parse(mask);
|
||||
int num3 = 0;
|
||||
if (num2 != 0)
|
||||
{
|
||||
num3 += num;
|
||||
num3 -= num;
|
||||
int num4 = array[num3];
|
||||
num3++;
|
||||
array[0] = num4;
|
||||
while (num3 != num2)
|
||||
{
|
||||
}
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C281 RID: 49793 RVA: 0x002C4660 File Offset: 0x002C2860
|
||||
[Token(Token = "0x600C281")]
|
||||
[Address(RVA = "0x27298D0", Offset = "0x27286D0", VA = "0x1827298D0")]
|
||||
private void copyInts(int[] parsedIp, byte[] addr, int offSet)
|
||||
{
|
||||
int num = 0;
|
||||
int length = parsedIp.Length;
|
||||
if (num != length)
|
||||
{
|
||||
int num2 = parsedIp[num];
|
||||
int num3 = parsedIp[num];
|
||||
num++;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C282 RID: 49794 RVA: 0x002C4694 File Offset: 0x002C2894
|
||||
[Token(Token = "0x600C282")]
|
||||
[Address(RVA = "0x2729B60", Offset = "0x2728960", VA = "0x182729B60")]
|
||||
private int[] parseIPv6(string ip)
|
||||
{
|
||||
int num4;
|
||||
int[] array3;
|
||||
for (;;)
|
||||
{
|
||||
if (Platform.StartsWith(ip, "::"))
|
||||
{
|
||||
goto IL_2E;
|
||||
}
|
||||
if (Platform.EndsWith(ip, "::"))
|
||||
{
|
||||
int stringLength = ip.m_stringLength;
|
||||
int num = 0;
|
||||
string text = ip.Substring(num, stringLength);
|
||||
goto IL_2E;
|
||||
}
|
||||
IL_36:
|
||||
uint num2;
|
||||
char[] array = new char[] { (char)num2 };
|
||||
int num3 = 0;
|
||||
string text2;
|
||||
string[] array2 = text2.Split(array);
|
||||
num4 = 0;
|
||||
array3 = new int[0];
|
||||
if (num4 < num3)
|
||||
{
|
||||
num4 += num4;
|
||||
num4++;
|
||||
}
|
||||
int num5 = 0;
|
||||
if (num4 == 0)
|
||||
{
|
||||
goto IL_146;
|
||||
}
|
||||
if (num4 < num5)
|
||||
{
|
||||
num4 += num4;
|
||||
num4++;
|
||||
}
|
||||
if (num4 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
IL_2E:
|
||||
text2 = ip.Substring(1);
|
||||
goto IL_36;
|
||||
}
|
||||
char[] array4 = new char[1];
|
||||
string[] array5;
|
||||
int num6 = int.Parse(array5[0]);
|
||||
int num7 = int.Parse(array5[1]);
|
||||
num4++;
|
||||
array3[0] = num6;
|
||||
num6 = int.Parse(array5[2]);
|
||||
string text3 = array5[3];
|
||||
int num8 = 0;
|
||||
int num9 = int.Parse(text3);
|
||||
num4++;
|
||||
array3[0] = num6;
|
||||
num8 += num8;
|
||||
num4 += 19;
|
||||
num8 += num8;
|
||||
num4++;
|
||||
num4 += 19;
|
||||
num4++;
|
||||
int num10;
|
||||
array3[0] = num10;
|
||||
num4++;
|
||||
array3[0] = num4;
|
||||
IL_146:
|
||||
int num11 = array3.Length;
|
||||
if (num4 != num11)
|
||||
{
|
||||
num11 -= num4;
|
||||
num4 -= num4;
|
||||
num11 += num4;
|
||||
Array.Copy(array3, num4, array3, num11, num4);
|
||||
int num12 = array3.Length;
|
||||
num12 -= num4;
|
||||
num12 += num4;
|
||||
if (num4 != num12)
|
||||
{
|
||||
num4++;
|
||||
array3[0] = num4;
|
||||
}
|
||||
}
|
||||
return array3;
|
||||
}
|
||||
|
||||
// Token: 0x0600C283 RID: 49795 RVA: 0x002C4850 File Offset: 0x002C2A50
|
||||
[Token(Token = "0x600C283")]
|
||||
[Address(RVA = "0x27294C0", Offset = "0x27282C0", VA = "0x1827294C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C283)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:int32(var_0_06, ldfld:int32(GeneralName::tag, ldloc:GeneralName(this)))
|
||||
stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(GeneralName::obj, ldloc:GeneralName(this)))
|
||||
stloc:DerTaggedObject(var_2_17, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:bool(var_4), ldloc:int32(var_0_06), ldloc:Asn1Encodable(var_1_0D)))
|
||||
stloc:bool(var_4, ceq:bool(ldloc:int32(var_0_06), ldc.i4:int32(4)))
|
||||
}
|
||||
|
||||
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: 0x04007A97 RID: 31383
|
||||
[Token(Token = "0x4007A97")]
|
||||
public const int OtherName = 0;
|
||||
|
||||
// Token: 0x04007A98 RID: 31384
|
||||
[Token(Token = "0x4007A98")]
|
||||
public const int Rfc822Name = 1;
|
||||
|
||||
// Token: 0x04007A99 RID: 31385
|
||||
[Token(Token = "0x4007A99")]
|
||||
public const int DnsName = 2;
|
||||
|
||||
// Token: 0x04007A9A RID: 31386
|
||||
[Token(Token = "0x4007A9A")]
|
||||
public const int X400Address = 3;
|
||||
|
||||
// Token: 0x04007A9B RID: 31387
|
||||
[Token(Token = "0x4007A9B")]
|
||||
public const int DirectoryName = 4;
|
||||
|
||||
// Token: 0x04007A9C RID: 31388
|
||||
[Token(Token = "0x4007A9C")]
|
||||
public const int EdiPartyName = 5;
|
||||
|
||||
// Token: 0x04007A9D RID: 31389
|
||||
[Token(Token = "0x4007A9D")]
|
||||
public const int UniformResourceIdentifier = 6;
|
||||
|
||||
// Token: 0x04007A9E RID: 31390
|
||||
[Token(Token = "0x4007A9E")]
|
||||
public const int IPAddress = 7;
|
||||
|
||||
// Token: 0x04007A9F RID: 31391
|
||||
[Token(Token = "0x4007A9F")]
|
||||
public const int RegisteredID = 8;
|
||||
|
||||
// Token: 0x04007AA0 RID: 31392
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AA0")]
|
||||
internal readonly Asn1Encodable obj;
|
||||
|
||||
// Token: 0x04007AA1 RID: 31393
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AA1")]
|
||||
internal readonly int tag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E05 RID: 7685
|
||||
[Token(Token = "0x2001E05")]
|
||||
public class GeneralNames : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C284 RID: 49796 RVA: 0x002C487C File Offset: 0x002C2A7C
|
||||
[Token(Token = "0x600C284")]
|
||||
[Address(RVA = "0x272A4C0", Offset = "0x27292C0", VA = "0x18272A4C0")]
|
||||
public static GeneralNames GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C284)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralNames BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralNames::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_53:
|
||||
stloc:string(var_9_59, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_71, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_59)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C285 RID: 49797 RVA: 0x002C48FC File Offset: 0x002C2AFC
|
||||
[Token(Token = "0x600C285")]
|
||||
[Address(RVA = "0x272A4A0", Offset = "0x27292A0", VA = "0x18272A4A0")]
|
||||
public static GeneralNames GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return GeneralNames.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C286 RID: 49798 RVA: 0x002C4918 File Offset: 0x002C2B18
|
||||
[Token(Token = "0x600C286")]
|
||||
[Address(RVA = "0x272AA70", Offset = "0x2729870", VA = "0x18272AA70")]
|
||||
public GeneralNames(GeneralName name)
|
||||
{
|
||||
GeneralName[] array = new GeneralName[1];
|
||||
if (name != 0)
|
||||
{
|
||||
}
|
||||
array[0] = name;
|
||||
this.names = array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C287 RID: 49799 RVA: 0x002C494C File Offset: 0x002C2B4C
|
||||
[Token(Token = "0x600C287")]
|
||||
[Address(RVA = "0x272A9E0", Offset = "0x27297E0", VA = "0x18272A9E0")]
|
||||
public GeneralNames(GeneralName[] names)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C288 RID: 49800 RVA: 0x002C4968 File Offset: 0x002C2B68
|
||||
[Token(Token = "0x600C288")]
|
||||
[Address(RVA = "0x272AB20", Offset = "0x2729920", VA = "0x18272AB20")]
|
||||
private GeneralNames(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
GeneralName[] array = new GeneralName[asn1Encodable];
|
||||
this.names = array;
|
||||
int num = 0;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num != asn1Encodable2)
|
||||
{
|
||||
GeneralName[] array2 = this.names;
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
GeneralName generalName;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array2[0] = generalName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C289 RID: 49801 RVA: 0x002C49B8 File Offset: 0x002C2BB8
|
||||
[Token(Token = "0x600C289")]
|
||||
[Address(RVA = "0x272A7B0", Offset = "0x27295B0", VA = "0x18272A7B0")]
|
||||
public GeneralName[] GetNames()
|
||||
{
|
||||
GeneralName[] array = this.names;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C28A RID: 49802 RVA: 0x002C49D4 File Offset: 0x002C2BD4
|
||||
[Token(Token = "0x600C28A")]
|
||||
[Address(RVA = "0x272A830", Offset = "0x2729630", VA = "0x18272A830", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C28A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralNames::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_0B, newobj:DerSequence(DerSequence::.ctor, ldfld:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](GeneralNames::names, ldloc:GeneralNames(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: 0x0600C28B RID: 49803 RVA: 0x002C49EC File Offset: 0x002C2BEC
|
||||
[Token(Token = "0x600C28B")]
|
||||
[Address(RVA = "0x272A890", Offset = "0x2729690", VA = "0x18272A890", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append("GeneralNames:");
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
|
||||
GeneralName[] array = this.names;
|
||||
int num = 0;
|
||||
int length = array.Length;
|
||||
if (num < length)
|
||||
{
|
||||
GeneralName generalName = array[num];
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(" ");
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(generalName);
|
||||
StringBuilder stringBuilder6 = stringBuilder.Append(newLine);
|
||||
num++;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AA2 RID: 31394
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AA2")]
|
||||
private readonly GeneralName[] names;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E06 RID: 7686
|
||||
[Token(Token = "0x2001E06")]
|
||||
public class GeneralSubtree : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C28C RID: 49804 RVA: 0x002C4A6C File Offset: 0x002C2C6C
|
||||
[Token(Token = "0x600C28C")]
|
||||
[Address(RVA = "0x272B050", Offset = "0x2729E50", VA = "0x18272B050")]
|
||||
private GeneralSubtree(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
GeneralName generalName;
|
||||
this.baseName = generalName;
|
||||
if (seq != 0)
|
||||
{
|
||||
if (seq != 0)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
int num = 0;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
DerInteger instance = DerInteger.GetInstance(asn1TaggedObject, num != 0);
|
||||
this.minimum = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
}
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject2;
|
||||
if (asn1TaggedObject2.tagNo != 0)
|
||||
{
|
||||
int num2 = 0;
|
||||
DerInteger instance2 = DerInteger.GetInstance(asn1TaggedObject2, num2 != 0);
|
||||
this.maximum = instance2;
|
||||
return;
|
||||
}
|
||||
int num3 = 0;
|
||||
DerInteger instance3 = DerInteger.GetInstance(asn1TaggedObject2, num3 != 0);
|
||||
this.minimum = instance3;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C28D RID: 49805 RVA: 0x002C4B00 File Offset: 0x002C2D00
|
||||
[Token(Token = "0x600C28D")]
|
||||
[Address(RVA = "0x272B390", Offset = "0x272A190", VA = "0x18272B390")]
|
||||
public GeneralSubtree(GeneralName baseName, BigInteger minimum, BigInteger maximum)
|
||||
{
|
||||
this.baseName = baseName;
|
||||
if (minimum != 0)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(minimum);
|
||||
this.minimum = derInteger;
|
||||
}
|
||||
if (maximum != 0)
|
||||
{
|
||||
DerInteger derInteger2 = new DerInteger(maximum);
|
||||
this.maximum = derInteger2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C28E RID: 49806 RVA: 0x002C4B40 File Offset: 0x002C2D40
|
||||
[Token(Token = "0x600C28E")]
|
||||
[Address(RVA = "0x272B440", Offset = "0x272A240", VA = "0x18272B440")]
|
||||
public GeneralSubtree(GeneralName baseName)
|
||||
{
|
||||
this.baseName = baseName;
|
||||
}
|
||||
|
||||
// Token: 0x0600C28F RID: 49807 RVA: 0x002C4B5C File Offset: 0x002C2D5C
|
||||
[Token(Token = "0x600C28F")]
|
||||
[Address(RVA = "0x272AC50", Offset = "0x2729A50", VA = "0x18272AC50")]
|
||||
public static GeneralSubtree GetInstance(Asn1TaggedObject o, bool isExplicit)
|
||||
{
|
||||
return new GeneralSubtree(Asn1Sequence.GetInstance(o, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C290 RID: 49808 RVA: 0x002C4B78 File Offset: 0x002C2D78
|
||||
[Token(Token = "0x600C290")]
|
||||
[Address(RVA = "0x272ACC0", Offset = "0x2729AC0", VA = "0x18272ACC0")]
|
||||
public static GeneralSubtree GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new GeneralSubtree(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E0C RID: 7692
|
||||
// (get) Token: 0x0600C291 RID: 49809 RVA: 0x002C4BAC File Offset: 0x002C2DAC
|
||||
[Token(Token = "0x17001E0C")]
|
||||
public GeneralName Base
|
||||
{
|
||||
[Token(Token = "0x600C291")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.baseName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E0D RID: 7693
|
||||
// (get) Token: 0x0600C292 RID: 49810 RVA: 0x002C4BC0 File Offset: 0x002C2DC0
|
||||
[Token(Token = "0x17001E0D")]
|
||||
public BigInteger Minimum
|
||||
{
|
||||
[Token(Token = "0x600C292")]
|
||||
[Address(RVA = "0x272B490", Offset = "0x272A290", VA = "0x18272B490")]
|
||||
get
|
||||
{
|
||||
DerInteger derInteger = this.minimum;
|
||||
if (derInteger == 0)
|
||||
{
|
||||
return BigInteger.Zero;
|
||||
}
|
||||
return derInteger.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E0E RID: 7694
|
||||
// (get) Token: 0x0600C293 RID: 49811 RVA: 0x002C4BE4 File Offset: 0x002C2DE4
|
||||
[Token(Token = "0x17001E0E")]
|
||||
public BigInteger Maximum
|
||||
{
|
||||
[Token(Token = "0x600C293")]
|
||||
[Address(RVA = "0x27214D0", Offset = "0x27202D0", VA = "0x1827214D0")]
|
||||
get
|
||||
{
|
||||
DerInteger derInteger = this.maximum;
|
||||
if (derInteger == 0)
|
||||
{
|
||||
}
|
||||
return derInteger.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C294 RID: 49812 RVA: 0x002C4C04 File Offset: 0x002C2E04
|
||||
[Token(Token = "0x600C294")]
|
||||
[Address(RVA = "0x272ADC0", Offset = "0x2729BC0", VA = "0x18272ADC0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
GeneralName generalName = this.baseName;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
array[0] = generalName;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerInteger derInteger = this.minimum;
|
||||
if (derInteger != 0 && derInteger.Value.sign != 0)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerInteger derInteger2 = this.minimum;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, derInteger2);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.maximum != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerInteger derInteger3 = this.maximum;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, derInteger3);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AA3 RID: 31395
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AA3")]
|
||||
private readonly GeneralName baseName;
|
||||
|
||||
// Token: 0x04007AA4 RID: 31396
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AA4")]
|
||||
private readonly DerInteger minimum;
|
||||
|
||||
// Token: 0x04007AA5 RID: 31397
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AA5")]
|
||||
private readonly DerInteger maximum;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,291 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E07 RID: 7687
|
||||
[Token(Token = "0x2001E07")]
|
||||
public class Holder : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C295 RID: 49813 RVA: 0x002C4CD4 File Offset: 0x002C2ED4
|
||||
[Token(Token = "0x600C295")]
|
||||
[Address(RVA = "0x272B510", Offset = "0x272A310", VA = "0x18272B510")]
|
||||
public static Holder GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C295)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Holder BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Holder::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_68:
|
||||
stloc:string(var_12_6E, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_13_86, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_12_6E)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C296 RID: 49814 RVA: 0x002C4D68 File Offset: 0x002C2F68
|
||||
[Token(Token = "0x600C296")]
|
||||
[Address(RVA = "0x272BC40", Offset = "0x272AA40", VA = "0x18272BC40")]
|
||||
public Holder(Asn1TaggedObject tagObj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C296)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Holder::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1TaggedObject)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_58:
|
||||
stloc:ArgumentException(var_5_62, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown tag in Holder")))
|
||||
}
|
||||
|
||||
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: 0x0600C297 RID: 49815 RVA: 0x002C4DD8 File Offset: 0x002C2FD8
|
||||
[Token(Token = "0x600C297")]
|
||||
[Address(RVA = "0x272BD50", Offset = "0x272AB50", VA = "0x18272BD50")]
|
||||
private Holder(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C297)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Holder::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_8E:
|
||||
stloc:ArgumentException(var_12_98, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown tag in Holder")))
|
||||
}
|
||||
|
||||
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: 0x0600C298 RID: 49816 RVA: 0x002C4E80 File Offset: 0x002C3080
|
||||
[Token(Token = "0x600C298")]
|
||||
[Address(RVA = "0x272BBA0", Offset = "0x272A9A0", VA = "0x18272BBA0")]
|
||||
public Holder(IssuerSerial baseCertificateID)
|
||||
{
|
||||
this.baseCertificateID = baseCertificateID;
|
||||
this.version = (int)((ulong)1L);
|
||||
}
|
||||
|
||||
// Token: 0x0600C299 RID: 49817 RVA: 0x002C4EA4 File Offset: 0x002C30A4
|
||||
[Token(Token = "0x600C299")]
|
||||
[Address(RVA = "0x272BD10", Offset = "0x272AB10", VA = "0x18272BD10")]
|
||||
public Holder(IssuerSerial baseCertificateID, int version)
|
||||
{
|
||||
this.baseCertificateID = baseCertificateID;
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
// Token: 0x17001E0F RID: 7695
|
||||
// (get) Token: 0x0600C29A RID: 49818 RVA: 0x002C4EC8 File Offset: 0x002C30C8
|
||||
[Token(Token = "0x17001E0F")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x600C29A")]
|
||||
[Address(RVA = "0x42EE50", Offset = "0x42DC50", VA = "0x18042EE50")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C29B RID: 49819 RVA: 0x002C4EDC File Offset: 0x002C30DC
|
||||
[Token(Token = "0x600C29B")]
|
||||
[Address(RVA = "0x272BC10", Offset = "0x272AA10", VA = "0x18272BC10")]
|
||||
public Holder(GeneralNames entityName)
|
||||
{
|
||||
this.entityName = entityName;
|
||||
this.version = (int)((ulong)1L);
|
||||
}
|
||||
|
||||
// Token: 0x0600C29C RID: 49820 RVA: 0x002C4F00 File Offset: 0x002C3100
|
||||
[Token(Token = "0x600C29C")]
|
||||
[Address(RVA = "0x272BBD0", Offset = "0x272A9D0", VA = "0x18272BBD0")]
|
||||
public Holder(GeneralNames entityName, int version)
|
||||
{
|
||||
this.entityName = entityName;
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
// Token: 0x0600C29D RID: 49821 RVA: 0x002C4F24 File Offset: 0x002C3124
|
||||
[Token(Token = "0x600C29D")]
|
||||
[Address(RVA = "0x272BF20", Offset = "0x272AD20", VA = "0x18272BF20")]
|
||||
public Holder(ObjectDigestInfo objectDigestInfo)
|
||||
{
|
||||
this.objectDigestInfo = objectDigestInfo;
|
||||
this.version = (int)((ulong)1L);
|
||||
}
|
||||
|
||||
// Token: 0x17001E10 RID: 7696
|
||||
// (get) Token: 0x0600C29E RID: 49822 RVA: 0x002C4F48 File Offset: 0x002C3148
|
||||
[Token(Token = "0x17001E10")]
|
||||
public IssuerSerial BaseCertificateID
|
||||
{
|
||||
[Token(Token = "0x600C29E")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.baseCertificateID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E11 RID: 7697
|
||||
// (get) Token: 0x0600C29F RID: 49823 RVA: 0x002C4F5C File Offset: 0x002C315C
|
||||
[Token(Token = "0x17001E11")]
|
||||
public GeneralNames EntityName
|
||||
{
|
||||
[Token(Token = "0x600C29F")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.entityName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E12 RID: 7698
|
||||
// (get) Token: 0x0600C2A0 RID: 49824 RVA: 0x002C4F70 File Offset: 0x002C3170
|
||||
[Token(Token = "0x17001E12")]
|
||||
public ObjectDigestInfo ObjectDigestInfo
|
||||
{
|
||||
[Token(Token = "0x600C2A0")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.objectDigestInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2A1 RID: 49825 RVA: 0x002C4F84 File Offset: 0x002C3184
|
||||
[Token(Token = "0x600C2A1")]
|
||||
[Address(RVA = "0x272B850", Offset = "0x272A650", VA = "0x18272B850", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
if (this.version != 1)
|
||||
{
|
||||
GeneralNames generalNames = this.entityName;
|
||||
if (generalNames == 0)
|
||||
{
|
||||
IssuerSerial issuerSerial = this.baseCertificateID;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, issuerSerial);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
}
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, generalNames);
|
||||
num3 = 0;
|
||||
}
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.baseCertificateID != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
IssuerSerial issuerSerial2 = this.baseCertificateID;
|
||||
int num4;
|
||||
int num5;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num4 != 0, num5, issuerSerial2);
|
||||
num5 = 0;
|
||||
num4 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.entityName != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
GeneralNames generalNames2 = this.entityName;
|
||||
int num6;
|
||||
DerTaggedObject derTaggedObject4 = new DerTaggedObject(num6 != 0, 1, generalNames2);
|
||||
num6 = 0;
|
||||
if (derTaggedObject4 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject4;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.objectDigestInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
ObjectDigestInfo objectDigestInfo = this.objectDigestInfo;
|
||||
int num7;
|
||||
DerTaggedObject derTaggedObject5 = new DerTaggedObject(num7 != 0, 2, objectDigestInfo);
|
||||
num7 = 0;
|
||||
if (derTaggedObject5 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject5;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AA6 RID: 31398
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AA6")]
|
||||
internal readonly IssuerSerial baseCertificateID;
|
||||
|
||||
// Token: 0x04007AA7 RID: 31399
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AA7")]
|
||||
internal readonly GeneralNames entityName;
|
||||
|
||||
// Token: 0x04007AA8 RID: 31400
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AA8")]
|
||||
internal readonly ObjectDigestInfo objectDigestInfo;
|
||||
|
||||
// Token: 0x04007AA9 RID: 31401
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007AA9")]
|
||||
private readonly int version;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E08 RID: 7688
|
||||
[Token(Token = "0x2001E08")]
|
||||
public class IetfAttrSyntax : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2A2 RID: 49826 RVA: 0x002C50A4 File Offset: 0x002C32A4
|
||||
[Token(Token = "0x600C2A2")]
|
||||
[Address(RVA = "0x272C580", Offset = "0x272B380", VA = "0x18272C580")]
|
||||
public IetfAttrSyntax(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2A2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IetfAttrSyntax::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_118:
|
||||
stloc:ArgumentException(var_27_122, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Non-IetfAttrSyntax encoding")))
|
||||
}
|
||||
|
||||
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: 0x17001E13 RID: 7699
|
||||
// (get) Token: 0x0600C2A3 RID: 49827 RVA: 0x002C51D4 File Offset: 0x002C33D4
|
||||
[Token(Token = "0x17001E13")]
|
||||
public GeneralNames PolicyAuthority
|
||||
{
|
||||
[Token(Token = "0x600C2A3")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.policyAuthority;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E14 RID: 7700
|
||||
// (get) Token: 0x0600C2A4 RID: 49828 RVA: 0x002C51E8 File Offset: 0x002C33E8
|
||||
[Token(Token = "0x17001E14")]
|
||||
public int ValueType
|
||||
{
|
||||
[Token(Token = "0x600C2A4")]
|
||||
[Address(RVA = "0x3F7310", Offset = "0x3F6110", VA = "0x1803F7310")]
|
||||
get
|
||||
{
|
||||
return this.valueChoice;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2A5 RID: 49829 RVA: 0x002C51FC File Offset: 0x002C33FC
|
||||
[Token(Token = "0x600C2A5")]
|
||||
[Address(RVA = "0x272BF50", Offset = "0x272AD50", VA = "0x18272BF50")]
|
||||
public object[] GetValues()
|
||||
{
|
||||
Asn1OctetString[] array3;
|
||||
int num10;
|
||||
Asn1Encodable asn1Encodable3;
|
||||
do
|
||||
{
|
||||
int num = this.valueChoice;
|
||||
Asn1EncodableVector asn1EncodableVector = this.values;
|
||||
if (num != 1)
|
||||
{
|
||||
if (num != 2)
|
||||
{
|
||||
DerUtf8String[] array = new DerUtf8String[asn1EncodableVector.Count];
|
||||
int num2 = 0;
|
||||
int num3 = 0;
|
||||
if (num3 == array.Length)
|
||||
{
|
||||
goto IL_131;
|
||||
}
|
||||
Asn1Encodable asn1Encodable = this.values[num2];
|
||||
if (asn1Encodable != 0 && (asn1Encodable == 0 || asn1Encodable == 0))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int num4 = 0;
|
||||
num2++;
|
||||
array[0] = num4;
|
||||
}
|
||||
int num5;
|
||||
DerObjectIdentifier[] array2 = new DerObjectIdentifier[num5];
|
||||
int num6 = 0;
|
||||
int num7 = 0;
|
||||
if (num7 == array2.Length)
|
||||
{
|
||||
goto IL_131;
|
||||
}
|
||||
Asn1Encodable asn1Encodable2 = this.values[num6];
|
||||
if (asn1Encodable2 != 0 && (asn1Encodable2 == 0 || asn1Encodable2 == 0))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int num8 = 0;
|
||||
num6++;
|
||||
array2[0] = num8;
|
||||
}
|
||||
int num9;
|
||||
array3 = new Asn1OctetString[num9];
|
||||
num10 = 0;
|
||||
int num11 = 0;
|
||||
if (num11 == array3.Length)
|
||||
{
|
||||
goto IL_131;
|
||||
}
|
||||
asn1Encodable3 = this.values[num10];
|
||||
}
|
||||
while (asn1Encodable3 != 0 && (asn1Encodable3 == 0 || asn1Encodable3 == 0));
|
||||
int num12 = 0;
|
||||
num10++;
|
||||
array3[0] = num12;
|
||||
IL_131:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2A6 RID: 49830 RVA: 0x002C5340 File Offset: 0x002C3540
|
||||
[Token(Token = "0x600C2A6")]
|
||||
[Address(RVA = "0x272C390", Offset = "0x272B190", VA = "0x18272C390", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.policyAuthority != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
GeneralNames generalNames = this.policyAuthority;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num, generalNames);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerSequence derSequence = new DerSequence(this.values);
|
||||
if (derSequence != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derSequence;
|
||||
asn1EncodableVector.Add(array2);
|
||||
DerSequence derSequence2 = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AAA RID: 31402
|
||||
[Token(Token = "0x4007AAA")]
|
||||
public const int ValueOctets = 1;
|
||||
|
||||
// Token: 0x04007AAB RID: 31403
|
||||
[Token(Token = "0x4007AAB")]
|
||||
public const int ValueOid = 2;
|
||||
|
||||
// Token: 0x04007AAC RID: 31404
|
||||
[Token(Token = "0x4007AAC")]
|
||||
public const int ValueUtf8 = 3;
|
||||
|
||||
// Token: 0x04007AAD RID: 31405
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AAD")]
|
||||
internal readonly GeneralNames policyAuthority;
|
||||
|
||||
// Token: 0x04007AAE RID: 31406
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AAE")]
|
||||
internal readonly Asn1EncodableVector values;
|
||||
|
||||
// Token: 0x04007AAF RID: 31407
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AAF")]
|
||||
internal int valueChoice;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E09 RID: 7689
|
||||
[Token(Token = "0x2001E09")]
|
||||
public class IssuerSerial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2A7 RID: 49831 RVA: 0x002C53C0 File Offset: 0x002C35C0
|
||||
[Token(Token = "0x600C2A7")]
|
||||
[Address(RVA = "0x2B36B60", Offset = "0x2B35960", VA = "0x182B36B60")]
|
||||
public static IssuerSerial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2A7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IssuerSerial BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IssuerSerial::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C2A8 RID: 49832 RVA: 0x002C5414 File Offset: 0x002C3614
|
||||
[Token(Token = "0x600C2A8")]
|
||||
[Address(RVA = "0x2B36B40", Offset = "0x2B35940", VA = "0x182B36B40")]
|
||||
public static IssuerSerial GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return IssuerSerial.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C2A9 RID: 49833 RVA: 0x002C5430 File Offset: 0x002C3630
|
||||
[Token(Token = "0x600C2A9")]
|
||||
[Address(RVA = "0x2B36F20", Offset = "0x2B35D20", VA = "0x182B36F20")]
|
||||
private IssuerSerial(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable == (ulong)2L || asn1Encodable2 == (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
GeneralNames generalNames;
|
||||
this.issuer = generalNames;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.serial = derInteger;
|
||||
Asn1Encodable asn1Encodable3;
|
||||
if (asn1Encodable3 == (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.issuerUid = derBitString;
|
||||
}
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2AA RID: 49834 RVA: 0x002C54A4 File Offset: 0x002C36A4
|
||||
[Token(Token = "0x600C2AA")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public IssuerSerial(GeneralNames issuer, DerInteger serial)
|
||||
{
|
||||
this.issuer = issuer;
|
||||
this.serial = serial;
|
||||
}
|
||||
|
||||
// Token: 0x17001E15 RID: 7701
|
||||
// (get) Token: 0x0600C2AB RID: 49835 RVA: 0x002C54C8 File Offset: 0x002C36C8
|
||||
[Token(Token = "0x17001E15")]
|
||||
public GeneralNames Issuer
|
||||
{
|
||||
[Token(Token = "0x600C2AB")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E16 RID: 7702
|
||||
// (get) Token: 0x0600C2AC RID: 49836 RVA: 0x002C54DC File Offset: 0x002C36DC
|
||||
[Token(Token = "0x17001E16")]
|
||||
public DerInteger Serial
|
||||
{
|
||||
[Token(Token = "0x600C2AC")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.serial;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E17 RID: 7703
|
||||
// (get) Token: 0x0600C2AD RID: 49837 RVA: 0x002C54F0 File Offset: 0x002C36F0
|
||||
[Token(Token = "0x17001E17")]
|
||||
public DerBitString IssuerUid
|
||||
{
|
||||
[Token(Token = "0x600C2AD")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.issuerUid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2AE RID: 49838 RVA: 0x002C5504 File Offset: 0x002C3704
|
||||
[Token(Token = "0x600C2AE")]
|
||||
[Address(RVA = "0x2B36D60", Offset = "0x2B35B60", VA = "0x182B36D60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
GeneralNames generalNames = this.issuer;
|
||||
if (generalNames != 0)
|
||||
{
|
||||
}
|
||||
array[0] = generalNames;
|
||||
DerInteger derInteger = this.serial;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.issuerUid != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerBitString derBitString = this.issuerUid;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derBitString;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AB0 RID: 31408
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AB0")]
|
||||
internal readonly GeneralNames issuer;
|
||||
|
||||
// Token: 0x04007AB1 RID: 31409
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AB1")]
|
||||
internal readonly DerInteger serial;
|
||||
|
||||
// Token: 0x04007AB2 RID: 31410
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AB2")]
|
||||
internal readonly DerBitString issuerUid;
|
||||
}
|
||||
}
|
||||
+358
@@ -0,0 +1,358 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E0A RID: 7690
|
||||
[Token(Token = "0x2001E0A")]
|
||||
public class IssuingDistributionPoint : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2AF RID: 49839 RVA: 0x002C5584 File Offset: 0x002C3784
|
||||
[Token(Token = "0x600C2AF")]
|
||||
[Address(RVA = "0x2B372C0", Offset = "0x2B360C0", VA = "0x182B372C0")]
|
||||
public static IssuingDistributionPoint GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return IssuingDistributionPoint.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B0 RID: 49840 RVA: 0x002C55A0 File Offset: 0x002C37A0
|
||||
[Token(Token = "0x600C2B0")]
|
||||
[Address(RVA = "0x2B370C0", Offset = "0x2B35EC0", VA = "0x182B370C0")]
|
||||
public static IssuingDistributionPoint GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2B0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IssuingDistributionPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IssuingDistributionPoint::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C2B1 RID: 49841 RVA: 0x002C55F4 File Offset: 0x002C37F4
|
||||
[Token(Token = "0x600C2B1")]
|
||||
[Address(RVA = "0x2B37800", Offset = "0x2B36600", VA = "0x182B37800")]
|
||||
public IssuingDistributionPoint(DistributionPointName distributionPoint, bool onlyContainsUserCerts, bool onlyContainsCACerts, ReasonFlags onlySomeReasons, bool indirectCRL, bool onlyContainsAttributeCerts)
|
||||
{
|
||||
this._indirectCRL = false;
|
||||
this._onlyContainsAttributeCerts = false;
|
||||
this._distributionPoint = distributionPoint;
|
||||
this._onlyContainsCACerts = onlyContainsCACerts;
|
||||
this._onlyContainsUserCerts = onlyContainsUserCerts;
|
||||
this._onlySomeReasons = 0;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (distributionPoint != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, distributionPoint);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (onlyContainsUserCerts)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerBoolean @true = DerBoolean.True;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num2 != 0, 1, @true);
|
||||
num2 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (onlyContainsCACerts)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerBoolean true2 = DerBoolean.True;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num3 != 0, 2, true2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject4;
|
||||
if (derTaggedObject4 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject4;
|
||||
asn1EncodableVector.Add(array4);
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
DerBoolean true3 = DerBoolean.True;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject5 = new DerTaggedObject(num4 != 0, 4, true3);
|
||||
num4 = 0;
|
||||
if (derTaggedObject5 != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = derTaggedObject5;
|
||||
asn1EncodableVector.Add(array5);
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
DerBoolean true4 = DerBoolean.True;
|
||||
int num5;
|
||||
DerTaggedObject derTaggedObject6 = new DerTaggedObject(num5 != 0, 5, true4);
|
||||
num5 = 0;
|
||||
if (derTaggedObject6 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject6;
|
||||
asn1EncodableVector.Add(array6);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
this.seq = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B2 RID: 49842 RVA: 0x002C5774 File Offset: 0x002C3974
|
||||
[Token(Token = "0x600C2B2")]
|
||||
[Address(RVA = "0x2B37530", Offset = "0x2B36330", VA = "0x182B37530")]
|
||||
private IssuingDistributionPoint(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2B2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IssuingDistributionPoint::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_DA:
|
||||
stloc:ArgumentException(var_17_E4, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown tag in IssuingDistributionPoint")))
|
||||
}
|
||||
|
||||
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: 0x17001E18 RID: 7704
|
||||
// (get) Token: 0x0600C2B3 RID: 49843 RVA: 0x002C5868 File Offset: 0x002C3A68
|
||||
[Token(Token = "0x17001E18")]
|
||||
public bool OnlyContainsUserCerts
|
||||
{
|
||||
[Token(Token = "0x600C2B3")]
|
||||
[Address(RVA = "0x42C2C0", Offset = "0x42B0C0", VA = "0x18042C2C0")]
|
||||
get
|
||||
{
|
||||
return this._onlyContainsUserCerts;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E19 RID: 7705
|
||||
// (get) Token: 0x0600C2B4 RID: 49844 RVA: 0x002C587C File Offset: 0x002C3A7C
|
||||
[Token(Token = "0x17001E19")]
|
||||
public bool OnlyContainsCACerts
|
||||
{
|
||||
[Token(Token = "0x600C2B4")]
|
||||
[Address(RVA = "0x50FC80", Offset = "0x50EA80", VA = "0x18050FC80")]
|
||||
get
|
||||
{
|
||||
return this._onlyContainsCACerts;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E1A RID: 7706
|
||||
// (get) Token: 0x0600C2B5 RID: 49845 RVA: 0x002C5890 File Offset: 0x002C3A90
|
||||
[Token(Token = "0x17001E1A")]
|
||||
public bool IsIndirectCrl
|
||||
{
|
||||
[Token(Token = "0x600C2B5")]
|
||||
[Address(RVA = "0x494270", Offset = "0x493070", VA = "0x180494270")]
|
||||
get
|
||||
{
|
||||
return this._indirectCRL;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E1B RID: 7707
|
||||
// (get) Token: 0x0600C2B6 RID: 49846 RVA: 0x002C58A4 File Offset: 0x002C3AA4
|
||||
[Token(Token = "0x17001E1B")]
|
||||
public bool OnlyContainsAttributeCerts
|
||||
{
|
||||
[Token(Token = "0x600C2B6")]
|
||||
[Address(RVA = "0x494260", Offset = "0x493060", VA = "0x180494260")]
|
||||
get
|
||||
{
|
||||
return this._onlyContainsAttributeCerts;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E1C RID: 7708
|
||||
// (get) Token: 0x0600C2B7 RID: 49847 RVA: 0x002C58B8 File Offset: 0x002C3AB8
|
||||
[Token(Token = "0x17001E1C")]
|
||||
public DistributionPointName DistributionPoint
|
||||
{
|
||||
[Token(Token = "0x600C2B7")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this._distributionPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E1D RID: 7709
|
||||
// (get) Token: 0x0600C2B8 RID: 49848 RVA: 0x002C58CC File Offset: 0x002C3ACC
|
||||
[Token(Token = "0x17001E1D")]
|
||||
public ReasonFlags OnlySomeReasons
|
||||
{
|
||||
[Token(Token = "0x600C2B8")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this._onlySomeReasons;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2B9 RID: 49849 RVA: 0x002C58E0 File Offset: 0x002C3AE0
|
||||
[Token(Token = "0x600C2B9")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2B9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IssuingDistributionPoint::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(IssuingDistributionPoint::seq, ldloc:IssuingDistributionPoint(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: 0x0600C2BA RID: 49850 RVA: 0x002C58F4 File Offset: 0x002C3AF4
|
||||
[Token(Token = "0x600C2BA")]
|
||||
[Address(RVA = "0x2B372E0", Offset = "0x2B360E0", VA = "0x182B372E0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
string newLine = Platform.NewLine;
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append("IssuingDistributionPoint: [");
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
|
||||
DistributionPointName distributionPoint = this._distributionPoint;
|
||||
if (distributionPoint != 0)
|
||||
{
|
||||
int hashCode = distributionPoint.GetHashCode();
|
||||
}
|
||||
if (this._onlyContainsUserCerts)
|
||||
{
|
||||
string text;
|
||||
this.appendObject(stringBuilder, newLine, "onlyContainsUserCerts", text);
|
||||
}
|
||||
if (this._onlyContainsCACerts)
|
||||
{
|
||||
string text2;
|
||||
this.appendObject(stringBuilder, newLine, "onlyContainsCACerts", text2);
|
||||
}
|
||||
ReasonFlags onlySomeReasons = this._onlySomeReasons;
|
||||
if (onlySomeReasons != 0)
|
||||
{
|
||||
int hashCode2 = onlySomeReasons.GetHashCode();
|
||||
}
|
||||
if (this._onlyContainsAttributeCerts)
|
||||
{
|
||||
string text3;
|
||||
this.appendObject(stringBuilder, newLine, "onlyContainsAttributeCerts", text3);
|
||||
}
|
||||
if (this._indirectCRL)
|
||||
{
|
||||
string text4;
|
||||
this.appendObject(stringBuilder, newLine, "indirectCRL", text4);
|
||||
}
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append("]");
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append(newLine);
|
||||
int hashCode3 = stringBuilder.GetHashCode();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2BB RID: 49851 RVA: 0x002C59D4 File Offset: 0x002C3BD4
|
||||
[Token(Token = "0x600C2BB")]
|
||||
[Address(RVA = "0x2B37DD0", Offset = "0x2B36BD0", VA = "0x182B37DD0")]
|
||||
private void appendObject(StringBuilder buf, string sep, string name, string val)
|
||||
{
|
||||
StringBuilder stringBuilder = buf.Append(" ");
|
||||
StringBuilder stringBuilder2 = buf.Append(name);
|
||||
StringBuilder stringBuilder3 = buf.Append(":");
|
||||
StringBuilder stringBuilder4 = buf.Append(sep);
|
||||
StringBuilder stringBuilder5 = buf.Append(" ");
|
||||
StringBuilder stringBuilder6 = buf.Append(" ");
|
||||
StringBuilder stringBuilder7 = buf.Append(sep);
|
||||
}
|
||||
|
||||
// Token: 0x04007AB3 RID: 31411
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AB3")]
|
||||
private readonly DistributionPointName _distributionPoint;
|
||||
|
||||
// Token: 0x04007AB4 RID: 31412
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AB4")]
|
||||
private readonly bool _onlyContainsUserCerts;
|
||||
|
||||
// Token: 0x04007AB5 RID: 31413
|
||||
[FieldOffset(Offset = "0x19")]
|
||||
[Token(Token = "0x4007AB5")]
|
||||
private readonly bool _onlyContainsCACerts;
|
||||
|
||||
// Token: 0x04007AB6 RID: 31414
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AB6")]
|
||||
private readonly ReasonFlags _onlySomeReasons;
|
||||
|
||||
// Token: 0x04007AB7 RID: 31415
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007AB7")]
|
||||
private readonly bool _indirectCRL;
|
||||
|
||||
// Token: 0x04007AB8 RID: 31416
|
||||
[FieldOffset(Offset = "0x29")]
|
||||
[Token(Token = "0x4007AB8")]
|
||||
private readonly bool _onlyContainsAttributeCerts;
|
||||
|
||||
// Token: 0x04007AB9 RID: 31417
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007AB9")]
|
||||
private readonly Asn1Sequence seq;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E0B RID: 7691
|
||||
[Token(Token = "0x2001E0B")]
|
||||
public sealed class KeyPurposeID : DerObjectIdentifier
|
||||
{
|
||||
// Token: 0x0600C2BC RID: 49852 RVA: 0x002C5A34 File Offset: 0x002C3C34
|
||||
[Token(Token = "0x600C2BC")]
|
||||
[Address(RVA = "0x2B38490", Offset = "0x2B37290", VA = "0x182B38490")]
|
||||
private KeyPurposeID(string id)
|
||||
: base(id)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007ABA RID: 31418
|
||||
[Token(Token = "0x4007ABA")]
|
||||
private const string IdKP = "1.3.6.1.5.5.7.3";
|
||||
|
||||
// Token: 0x04007ABB RID: 31419
|
||||
[Token(Token = "0x4007ABB")]
|
||||
public static readonly KeyPurposeID AnyExtendedKeyUsage = new KeyPurposeID(X509Extensions.ExtendedKeyUsage.identifier + ".0");
|
||||
|
||||
// Token: 0x04007ABC RID: 31420
|
||||
[Token(Token = "0x4007ABC")]
|
||||
public static readonly KeyPurposeID IdKPServerAuth = new KeyPurposeID("1.3.6.1.5.5.7.3.1");
|
||||
|
||||
// Token: 0x04007ABD RID: 31421
|
||||
[Token(Token = "0x4007ABD")]
|
||||
public static readonly KeyPurposeID IdKPClientAuth = new KeyPurposeID("1.3.6.1.5.5.7.3.2");
|
||||
|
||||
// Token: 0x04007ABE RID: 31422
|
||||
[Token(Token = "0x4007ABE")]
|
||||
public static readonly KeyPurposeID IdKPCodeSigning = new KeyPurposeID("1.3.6.1.5.5.7.3.3");
|
||||
|
||||
// Token: 0x04007ABF RID: 31423
|
||||
[Token(Token = "0x4007ABF")]
|
||||
public static readonly KeyPurposeID IdKPEmailProtection = new KeyPurposeID("1.3.6.1.5.5.7.3.4");
|
||||
|
||||
// Token: 0x04007AC0 RID: 31424
|
||||
[Token(Token = "0x4007AC0")]
|
||||
public static readonly KeyPurposeID IdKPIpsecEndSystem = new KeyPurposeID("1.3.6.1.5.5.7.3.5");
|
||||
|
||||
// Token: 0x04007AC1 RID: 31425
|
||||
[Token(Token = "0x4007AC1")]
|
||||
public static readonly KeyPurposeID IdKPIpsecTunnel = new KeyPurposeID("1.3.6.1.5.5.7.3.6");
|
||||
|
||||
// Token: 0x04007AC2 RID: 31426
|
||||
[Token(Token = "0x4007AC2")]
|
||||
public static readonly KeyPurposeID IdKPIpsecUser = new KeyPurposeID("1.3.6.1.5.5.7.3.7");
|
||||
|
||||
// Token: 0x04007AC3 RID: 31427
|
||||
[Token(Token = "0x4007AC3")]
|
||||
public static readonly KeyPurposeID IdKPTimeStamping = new KeyPurposeID("1.3.6.1.5.5.7.3.8");
|
||||
|
||||
// Token: 0x04007AC4 RID: 31428
|
||||
[Token(Token = "0x4007AC4")]
|
||||
public static readonly KeyPurposeID IdKPOcspSigning = new KeyPurposeID("1.3.6.1.5.5.7.3.9");
|
||||
|
||||
// Token: 0x04007AC5 RID: 31429
|
||||
[Token(Token = "0x4007AC5")]
|
||||
public static readonly KeyPurposeID IdKPSmartCardLogon = new KeyPurposeID("1.3.6.1.4.1.311.20.2.2");
|
||||
|
||||
// Token: 0x04007AC6 RID: 31430
|
||||
[Token(Token = "0x4007AC6")]
|
||||
public static readonly KeyPurposeID IdKPMacAddress = new KeyPurposeID("1.3.6.1.1.1.1.22");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E0C RID: 7692
|
||||
[Token(Token = "0x2001E0C")]
|
||||
public class KeyUsage : DerBitString
|
||||
{
|
||||
// Token: 0x0600C2BE RID: 49854 RVA: 0x002C5B20 File Offset: 0x002C3D20
|
||||
[Token(Token = "0x600C2BE")]
|
||||
[Address(RVA = "0x2B38500", Offset = "0x2B37300", VA = "0x182B38500")]
|
||||
public new static KeyUsage GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
return KeyUsage.GetInstance(asn1Object);
|
||||
}
|
||||
}
|
||||
else if (obj != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
DerBitString instance = DerBitString.GetInstance(obj);
|
||||
byte[] octets = instance.GetOctets();
|
||||
byte[] bytes = instance.GetBytes();
|
||||
KeyUsage keyUsage;
|
||||
return keyUsage;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2BF RID: 49855 RVA: 0x002C5B78 File Offset: 0x002C3D78
|
||||
[Token(Token = "0x600C2BF")]
|
||||
[Address(RVA = "0x2B388A0", Offset = "0x2B376A0", VA = "0x182B388A0")]
|
||||
public KeyUsage(int usage)
|
||||
: base(usage)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C0 RID: 49856 RVA: 0x002C5B8C File Offset: 0x002C3D8C
|
||||
[Token(Token = "0x600C2C0")]
|
||||
[Address(RVA = "0x2B387F0", Offset = "0x2B375F0", VA = "0x182B387F0")]
|
||||
private KeyUsage(DerBitString usage)
|
||||
{
|
||||
byte[] octets = usage.GetOctets();
|
||||
byte[] bytes = usage.GetBytes();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C1 RID: 49857 RVA: 0x002C5BB0 File Offset: 0x002C3DB0
|
||||
[Token(Token = "0x600C2C1")]
|
||||
[Address(RVA = "0x2B38730", Offset = "0x2B37530", VA = "0x182B38730", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
byte[] octets = this.GetOctets();
|
||||
if (octets.Length != 1)
|
||||
{
|
||||
byte b = octets[0];
|
||||
}
|
||||
byte b2 = octets[0];
|
||||
string text;
|
||||
return "KeyUsage: 0x" + text;
|
||||
}
|
||||
|
||||
// Token: 0x04007AC7 RID: 31431
|
||||
[Token(Token = "0x4007AC7")]
|
||||
public const int DigitalSignature = 128;
|
||||
|
||||
// Token: 0x04007AC8 RID: 31432
|
||||
[Token(Token = "0x4007AC8")]
|
||||
public const int NonRepudiation = 64;
|
||||
|
||||
// Token: 0x04007AC9 RID: 31433
|
||||
[Token(Token = "0x4007AC9")]
|
||||
public const int KeyEncipherment = 32;
|
||||
|
||||
// Token: 0x04007ACA RID: 31434
|
||||
[Token(Token = "0x4007ACA")]
|
||||
public const int DataEncipherment = 16;
|
||||
|
||||
// Token: 0x04007ACB RID: 31435
|
||||
[Token(Token = "0x4007ACB")]
|
||||
public const int KeyAgreement = 8;
|
||||
|
||||
// Token: 0x04007ACC RID: 31436
|
||||
[Token(Token = "0x4007ACC")]
|
||||
public const int KeyCertSign = 4;
|
||||
|
||||
// Token: 0x04007ACD RID: 31437
|
||||
[Token(Token = "0x4007ACD")]
|
||||
public const int CrlSign = 2;
|
||||
|
||||
// Token: 0x04007ACE RID: 31438
|
||||
[Token(Token = "0x4007ACE")]
|
||||
public const int EncipherOnly = 1;
|
||||
|
||||
// Token: 0x04007ACF RID: 31439
|
||||
[Token(Token = "0x4007ACF")]
|
||||
public const int DecipherOnly = 32768;
|
||||
}
|
||||
}
|
||||
+237
@@ -0,0 +1,237 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E0D RID: 7693
|
||||
[Token(Token = "0x2001E0D")]
|
||||
public class NameConstraints : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2C2 RID: 49858 RVA: 0x002C5BF0 File Offset: 0x002C3DF0
|
||||
[Token(Token = "0x600C2C2")]
|
||||
[Address(RVA = "0x2B391C0", Offset = "0x2B37FC0", VA = "0x182B391C0")]
|
||||
public static NameConstraints GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2C2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.NameConstraints BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.NameConstraints::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C2C3 RID: 49859 RVA: 0x002C5C44 File Offset: 0x002C3E44
|
||||
[Token(Token = "0x600C2C3")]
|
||||
[Address(RVA = "0x2B395D0", Offset = "0x2B383D0", VA = "0x182B395D0")]
|
||||
public NameConstraints(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
Asn1Sequence instance2;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
ulong num2;
|
||||
num2 += (ulong)1L;
|
||||
int num3 = 0;
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_6A;
|
||||
}
|
||||
Asn1Sequence instance;
|
||||
if (num3 == 0)
|
||||
{
|
||||
int num4 = 0;
|
||||
instance = Asn1Sequence.GetInstance(num, num4 != 0);
|
||||
this.permitted = instance;
|
||||
}
|
||||
while (instance != (ulong)1L)
|
||||
{
|
||||
}
|
||||
int num5 = 0;
|
||||
instance2 = Asn1Sequence.GetInstance(num, num5 != 0);
|
||||
this.excluded = instance2;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_6A:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C4 RID: 49860 RVA: 0x002C5CC8 File Offset: 0x002C3EC8
|
||||
[Token(Token = "0x600C2C4")]
|
||||
[Address(RVA = "0x2B397E0", Offset = "0x2B385E0", VA = "0x182B397E0")]
|
||||
public NameConstraints(ArrayList permitted, ArrayList excluded)
|
||||
{
|
||||
if (permitted != 0)
|
||||
{
|
||||
DerSequence derSequence = this.CreateSequence(permitted);
|
||||
this.permitted = derSequence;
|
||||
}
|
||||
if (excluded != 0)
|
||||
{
|
||||
DerSequence derSequence2 = this.CreateSequence(excluded);
|
||||
this.excluded = derSequence2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C5 RID: 49861 RVA: 0x002C5D04 File Offset: 0x002C3F04
|
||||
[Token(Token = "0x600C2C5")]
|
||||
[Address(RVA = "0x2B397E0", Offset = "0x2B385E0", VA = "0x182B397E0")]
|
||||
public NameConstraints(IList permitted, IList excluded)
|
||||
{
|
||||
if (permitted != 0)
|
||||
{
|
||||
DerSequence derSequence = this.CreateSequence(permitted);
|
||||
this.permitted = derSequence;
|
||||
}
|
||||
if (excluded != 0)
|
||||
{
|
||||
DerSequence derSequence2 = this.CreateSequence(excluded);
|
||||
this.excluded = derSequence2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C6 RID: 49862 RVA: 0x002C5D40 File Offset: 0x002C3F40
|
||||
[Token(Token = "0x600C2C6")]
|
||||
[Address(RVA = "0x2B38F30", Offset = "0x2B37D30", VA = "0x182B38F30")]
|
||||
private DerSequence CreateSequence(IList subtrees)
|
||||
{
|
||||
GeneralSubtree[] array;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
array = new GeneralSubtree[0];
|
||||
num = 0;
|
||||
if (num < subtrees)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num >= array)
|
||||
{
|
||||
goto IL_4B;
|
||||
}
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
ulong num3;
|
||||
num3 += num3;
|
||||
num3 += num3;
|
||||
}
|
||||
while (num == 0 || num == 0);
|
||||
num++;
|
||||
array[0] = num;
|
||||
IL_4B:
|
||||
return new DerSequence(array);
|
||||
}
|
||||
|
||||
// Token: 0x17001E1E RID: 7710
|
||||
// (get) Token: 0x0600C2C7 RID: 49863 RVA: 0x002C5DA4 File Offset: 0x002C3FA4
|
||||
[Token(Token = "0x17001E1E")]
|
||||
public Asn1Sequence PermittedSubtrees
|
||||
{
|
||||
[Token(Token = "0x600C2C7")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.permitted;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E1F RID: 7711
|
||||
// (get) Token: 0x0600C2C8 RID: 49864 RVA: 0x002C5DB8 File Offset: 0x002C3FB8
|
||||
[Token(Token = "0x17001E1F")]
|
||||
public Asn1Sequence ExcludedSubtrees
|
||||
{
|
||||
[Token(Token = "0x600C2C8")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.excluded;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2C9 RID: 49865 RVA: 0x002C5DCC File Offset: 0x002C3FCC
|
||||
[Token(Token = "0x600C2C9")]
|
||||
[Address(RVA = "0x2B393C0", Offset = "0x2B381C0", VA = "0x182B393C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.permitted != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence = this.permitted;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Sequence);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.excluded != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence2 = this.excluded;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, asn1Sequence2);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AD0 RID: 31440
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AD0")]
|
||||
private Asn1Sequence permitted;
|
||||
|
||||
// Token: 0x04007AD1 RID: 31441
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AD1")]
|
||||
private Asn1Sequence excluded;
|
||||
}
|
||||
}
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E0E RID: 7694
|
||||
[Token(Token = "0x2001E0E")]
|
||||
public class NoticeReference : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2CA RID: 49866 RVA: 0x002C5E64 File Offset: 0x002C4064
|
||||
[Token(Token = "0x600C2CA")]
|
||||
[Address(RVA = "0x2B39FC0", Offset = "0x2B38DC0", VA = "0x182B39FC0")]
|
||||
private static Asn1EncodableVector ConvertVector(IList numbers)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
ArrayTypeMismatchException ex;
|
||||
if (ex != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
return asn1EncodableVector;
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector != 0 && (asn1EncodableVector != 0 || asn1EncodableVector != 0) && asn1EncodableVector != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
ArgumentException ex2 = new ArgumentException();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2CB RID: 49867 RVA: 0x002C5EDC File Offset: 0x002C40DC
|
||||
[Token(Token = "0x600C2CB")]
|
||||
[Address(RVA = "0x2B3A950", Offset = "0x2B39750", VA = "0x182B3A950")]
|
||||
public NoticeReference(string organization, IList numbers)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = NoticeReference.ConvertVector(numbers);
|
||||
DisplayText displayText = new DisplayText(organization);
|
||||
base..ctor();
|
||||
this.organization = displayText;
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
this.noticeNumbers = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2CC RID: 49868 RVA: 0x002C5F14 File Offset: 0x002C4114
|
||||
[Token(Token = "0x600C2CC")]
|
||||
[Address(RVA = "0x2B3A770", Offset = "0x2B39570", VA = "0x182B3A770")]
|
||||
public NoticeReference(string organization, Asn1EncodableVector noticeNumbers)
|
||||
{
|
||||
DisplayText displayText = new DisplayText(organization);
|
||||
base..ctor();
|
||||
this.organization = displayText;
|
||||
DerSequence derSequence = new DerSequence(noticeNumbers);
|
||||
this.noticeNumbers = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2CD RID: 49869 RVA: 0x002C5F44 File Offset: 0x002C4144
|
||||
[Token(Token = "0x600C2CD")]
|
||||
[Address(RVA = "0x2B3A6F0", Offset = "0x2B394F0", VA = "0x182B3A6F0")]
|
||||
public NoticeReference(DisplayText organization, Asn1EncodableVector noticeNumbers)
|
||||
{
|
||||
this.organization = organization;
|
||||
DerSequence derSequence = new DerSequence(noticeNumbers);
|
||||
this.noticeNumbers = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2CE RID: 49870 RVA: 0x002C5F6C File Offset: 0x002C416C
|
||||
[Token(Token = "0x600C2CE")]
|
||||
[Address(RVA = "0x2B3A830", Offset = "0x2B39630", VA = "0x182B3A830")]
|
||||
private NoticeReference(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DisplayText displayText;
|
||||
this.organization = displayText;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.noticeNumbers = asn1Sequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2CF RID: 49871 RVA: 0x002C5FA4 File Offset: 0x002C41A4
|
||||
[Token(Token = "0x600C2CF")]
|
||||
[Address(RVA = "0x2B3A2B0", Offset = "0x2B390B0", VA = "0x182B3A2B0")]
|
||||
public static NoticeReference GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
NoticeReference noticeReference;
|
||||
DisplayText displayText;
|
||||
noticeReference.organization = displayText;
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
noticeReference.noticeNumbers = asn1Sequence;
|
||||
return noticeReference;
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001E20 RID: 7712
|
||||
// (get) Token: 0x0600C2D0 RID: 49872 RVA: 0x002C600C File Offset: 0x002C420C
|
||||
[Token(Token = "0x17001E20")]
|
||||
public virtual DisplayText Organization
|
||||
{
|
||||
[Token(Token = "0x600C2D0")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.organization;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2D1 RID: 49873 RVA: 0x002C6020 File Offset: 0x002C4220
|
||||
[Token(Token = "0x600C2D1")]
|
||||
[Address(RVA = "0x2B3A4B0", Offset = "0x2B392B0", VA = "0x182B3A4B0", Slot = "7")]
|
||||
public virtual DerInteger[] GetNoticeNumbers()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.noticeNumbers;
|
||||
Asn1Encodable asn1Encodable;
|
||||
DerInteger[] array = new DerInteger[asn1Encodable];
|
||||
int num = 0;
|
||||
Asn1Sequence asn1Sequence2 = this.noticeNumbers;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num != asn1Encodable2)
|
||||
{
|
||||
Asn1SequenceParser parser = this.noticeNumbers.Parser;
|
||||
DerInteger derInteger;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = derInteger;
|
||||
Asn1Sequence asn1Sequence3 = this.noticeNumbers;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2D2 RID: 49874 RVA: 0x002C6078 File Offset: 0x002C4278
|
||||
[Token(Token = "0x600C2D2")]
|
||||
[Address(RVA = "0x2B3A5E0", Offset = "0x2B393E0", VA = "0x182B3A5E0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DisplayText displayText = this.organization;
|
||||
if (displayText != 0)
|
||||
{
|
||||
}
|
||||
array[0] = displayText;
|
||||
Asn1Sequence asn1Sequence = this.noticeNumbers;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Sequence;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AD2 RID: 31442
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AD2")]
|
||||
private readonly DisplayText organization;
|
||||
|
||||
// Token: 0x04007AD3 RID: 31443
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AD3")]
|
||||
private readonly Asn1Sequence noticeNumbers;
|
||||
}
|
||||
}
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E0F RID: 7695
|
||||
[Token(Token = "0x2001E0F")]
|
||||
public class ObjectDigestInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2D3 RID: 49875 RVA: 0x002C60C0 File Offset: 0x002C42C0
|
||||
[Token(Token = "0x600C2D3")]
|
||||
[Address(RVA = "0x2B3AA10", Offset = "0x2B39810", VA = "0x182B3AA10")]
|
||||
public static ObjectDigestInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2D3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.ObjectDigestInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.ObjectDigestInfo::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C2D4 RID: 49876 RVA: 0x002C6114 File Offset: 0x002C4314
|
||||
[Token(Token = "0x600C2D4")]
|
||||
[Address(RVA = "0x2B3AC10", Offset = "0x2B39A10", VA = "0x182B3AC10")]
|
||||
public static ObjectDigestInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return ObjectDigestInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600C2D5 RID: 49877 RVA: 0x002C6130 File Offset: 0x002C4330
|
||||
[Token(Token = "0x600C2D5")]
|
||||
[Address(RVA = "0x2B3B0A0", Offset = "0x2B39EA0", VA = "0x182B3B0A0")]
|
||||
public ObjectDigestInfo(int digestedObjectType, string otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, byte[] objectDigest)
|
||||
{
|
||||
DerEnumerated derEnumerated = new DerEnumerated(digestedObjectType);
|
||||
this.digestedObjectType = derEnumerated;
|
||||
if (digestedObjectType == 2)
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier(otherObjectTypeID);
|
||||
this.otherObjectTypeID = derObjectIdentifier;
|
||||
}
|
||||
this.digestAlgorithm = digestAlgorithm;
|
||||
DerBitString derBitString;
|
||||
this.objectDigest = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2D6 RID: 49878 RVA: 0x002C6174 File Offset: 0x002C4374
|
||||
[Token(Token = "0x600C2D6")]
|
||||
[Address(RVA = "0x2B3AE80", Offset = "0x2B39C80", VA = "0x182B3AE80")]
|
||||
private ObjectDigestInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerEnumerated derEnumerated;
|
||||
this.digestedObjectType = derEnumerated;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable == (ulong)4L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.otherObjectTypeID = derObjectIdentifier;
|
||||
}
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.digestAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.objectDigest = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x17001E21 RID: 7713
|
||||
// (get) Token: 0x0600C2D7 RID: 49879 RVA: 0x002C61D4 File Offset: 0x002C43D4
|
||||
[Token(Token = "0x17001E21")]
|
||||
public DerEnumerated DigestedObjectType
|
||||
{
|
||||
[Token(Token = "0x600C2D7")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.digestedObjectType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E22 RID: 7714
|
||||
// (get) Token: 0x0600C2D8 RID: 49880 RVA: 0x002C61E8 File Offset: 0x002C43E8
|
||||
[Token(Token = "0x17001E22")]
|
||||
public DerObjectIdentifier OtherObjectTypeID
|
||||
{
|
||||
[Token(Token = "0x600C2D8")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.otherObjectTypeID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E23 RID: 7715
|
||||
// (get) Token: 0x0600C2D9 RID: 49881 RVA: 0x002C61FC File Offset: 0x002C43FC
|
||||
[Token(Token = "0x17001E23")]
|
||||
public AlgorithmIdentifier DigestAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C2D9")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.digestAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E24 RID: 7716
|
||||
// (get) Token: 0x0600C2DA RID: 49882 RVA: 0x002C6210 File Offset: 0x002C4410
|
||||
[Token(Token = "0x17001E24")]
|
||||
public DerBitString ObjectDigest
|
||||
{
|
||||
[Token(Token = "0x600C2DA")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.objectDigest;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2DB RID: 49883 RVA: 0x002C6224 File Offset: 0x002C4424
|
||||
[Token(Token = "0x600C2DB")]
|
||||
[Address(RVA = "0x2B3AC30", Offset = "0x2B39A30", VA = "0x182B3AC30", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerEnumerated derEnumerated = this.digestedObjectType;
|
||||
if (derEnumerated != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derEnumerated;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.otherObjectTypeID != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.otherObjectTypeID;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derObjectIdentifier;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.digestAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.objectDigest;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array3[1] = derBitString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AD4 RID: 31444
|
||||
[Token(Token = "0x4007AD4")]
|
||||
public const int PublicKey = 0;
|
||||
|
||||
// Token: 0x04007AD5 RID: 31445
|
||||
[Token(Token = "0x4007AD5")]
|
||||
public const int PublicKeyCert = 1;
|
||||
|
||||
// Token: 0x04007AD6 RID: 31446
|
||||
[Token(Token = "0x4007AD6")]
|
||||
public const int OtherObjectDigest = 2;
|
||||
|
||||
// Token: 0x04007AD7 RID: 31447
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AD7")]
|
||||
internal readonly DerEnumerated digestedObjectType;
|
||||
|
||||
// Token: 0x04007AD8 RID: 31448
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AD8")]
|
||||
internal readonly DerObjectIdentifier otherObjectTypeID;
|
||||
|
||||
// Token: 0x04007AD9 RID: 31449
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AD9")]
|
||||
internal readonly AlgorithmIdentifier digestAlgorithm;
|
||||
|
||||
// Token: 0x04007ADA RID: 31450
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007ADA")]
|
||||
internal readonly DerBitString objectDigest;
|
||||
}
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E10 RID: 7696
|
||||
[Token(Token = "0x2001E10")]
|
||||
public class PolicyInformation : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2DC RID: 49884 RVA: 0x002C62CC File Offset: 0x002C44CC
|
||||
[Token(Token = "0x600C2DC")]
|
||||
[Address(RVA = "0x2B3BF10", Offset = "0x2B3AD10", VA = "0x182B3BF10")]
|
||||
private PolicyInformation(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.policyIdentifier = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.policyQualifiers = asn1Sequence;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2DD RID: 49885 RVA: 0x002C630C File Offset: 0x002C450C
|
||||
[Token(Token = "0x600C2DD")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public PolicyInformation(DerObjectIdentifier policyIdentifier)
|
||||
{
|
||||
this.policyIdentifier = policyIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2DE RID: 49886 RVA: 0x002C6328 File Offset: 0x002C4528
|
||||
[Token(Token = "0x600C2DE")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public PolicyInformation(DerObjectIdentifier policyIdentifier, Asn1Sequence policyQualifiers)
|
||||
{
|
||||
this.policyIdentifier = policyIdentifier;
|
||||
this.policyQualifiers = policyQualifiers;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2DF RID: 49887 RVA: 0x002C634C File Offset: 0x002C454C
|
||||
[Token(Token = "0x600C2DF")]
|
||||
[Address(RVA = "0x2B3BB40", Offset = "0x2B3A940", VA = "0x182B3BB40")]
|
||||
public static PolicyInformation GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2DF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PolicyInformation BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PolicyInformation::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_3:
|
||||
brtrue(IL_00, ceq:bool(ldloc:object(obj), ldc.i4:int32[exp:object](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.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: 0x17001E25 RID: 7717
|
||||
// (get) Token: 0x0600C2E0 RID: 49888 RVA: 0x002C63A0 File Offset: 0x002C45A0
|
||||
[Token(Token = "0x17001E25")]
|
||||
public DerObjectIdentifier PolicyIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C2E0")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.policyIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E26 RID: 7718
|
||||
// (get) Token: 0x0600C2E1 RID: 49889 RVA: 0x002C63B4 File Offset: 0x002C45B4
|
||||
[Token(Token = "0x17001E26")]
|
||||
public Asn1Sequence PolicyQualifiers
|
||||
{
|
||||
[Token(Token = "0x600C2E1")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.policyQualifiers;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E2 RID: 49890 RVA: 0x002C63C8 File Offset: 0x002C45C8
|
||||
[Token(Token = "0x600C2E2")]
|
||||
[Address(RVA = "0x2B3BDA0", Offset = "0x2B3ABA0", VA = "0x182B3BDA0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.policyIdentifier;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.policyQualifiers != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence = this.policyQualifiers;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1Sequence;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007ADB RID: 31451
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007ADB")]
|
||||
private readonly DerObjectIdentifier policyIdentifier;
|
||||
|
||||
// Token: 0x04007ADC RID: 31452
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007ADC")]
|
||||
private readonly Asn1Sequence policyQualifiers;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E11 RID: 7697
|
||||
[Token(Token = "0x2001E11")]
|
||||
public class PolicyMappings : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2E3 RID: 49891 RVA: 0x002C6434 File Offset: 0x002C4634
|
||||
[Token(Token = "0x600C2E3")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public PolicyMappings(Asn1Sequence seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E4 RID: 49892 RVA: 0x002C6450 File Offset: 0x002C4650
|
||||
[Token(Token = "0x600C2E4")]
|
||||
[Address(RVA = "0x2B3C090", Offset = "0x2B3AE90", VA = "0x182B3C090")]
|
||||
public PolicyMappings(Hashtable mappings)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E5 RID: 49893 RVA: 0x002C6460 File Offset: 0x002C4660
|
||||
[Token(Token = "0x600C2E5")]
|
||||
[Address(RVA = "0x2B3C0A0", Offset = "0x2B3AEA0", VA = "0x182B3C0A0")]
|
||||
public PolicyMappings(IDictionary mappings)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
DerSequence derSequence;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
if (num < asn1EncodableVector)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (asn1EncodableVector != 0 && asn1EncodableVector == 0)
|
||||
{
|
||||
goto IL_E5;
|
||||
}
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num != 0 && num == 0)
|
||||
{
|
||||
goto IL_E5;
|
||||
}
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derObjectIdentifier;
|
||||
DerObjectIdentifier derObjectIdentifier2 = new DerObjectIdentifier(num);
|
||||
if (derObjectIdentifier2 != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = derObjectIdentifier2;
|
||||
derSequence = new DerSequence(array2);
|
||||
if (derSequence != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derSequence;
|
||||
}
|
||||
if (derSequence != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
DerSequence derSequence2 = new DerSequence(num);
|
||||
derSequence2.seq = derSequence2;
|
||||
return;
|
||||
IL_E5:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C2E6 RID: 49894 RVA: 0x002C6558 File Offset: 0x002C4758
|
||||
[Token(Token = "0x600C2E6")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2E6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PolicyMappings::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PolicyMappings::seq, ldloc:PolicyMappings(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: 0x04007ADD RID: 31453
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007ADD")]
|
||||
private readonly Asn1Sequence seq;
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E12 RID: 7698
|
||||
[Token(Token = "0x2001E12")]
|
||||
public sealed class PolicyQualifierID : DerObjectIdentifier
|
||||
{
|
||||
// Token: 0x0600C2E7 RID: 49895 RVA: 0x002C656C File Offset: 0x002C476C
|
||||
[Token(Token = "0x600C2E7")]
|
||||
[Address(RVA = "0x2B3C640", Offset = "0x2B3B440", VA = "0x182B3C640")]
|
||||
private PolicyQualifierID(string id)
|
||||
: base(id)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007ADE RID: 31454
|
||||
[Token(Token = "0x4007ADE")]
|
||||
private const string IdQt = "1.3.6.1.5.5.7.2";
|
||||
|
||||
// Token: 0x04007ADF RID: 31455
|
||||
[Token(Token = "0x4007ADF")]
|
||||
public static readonly PolicyQualifierID IdQtCps = new PolicyQualifierID("1.3.6.1.5.5.7.2.1");
|
||||
|
||||
// Token: 0x04007AE0 RID: 31456
|
||||
[Token(Token = "0x4007AE0")]
|
||||
public static readonly PolicyQualifierID IdQtUnotice = new PolicyQualifierID("1.3.6.1.5.5.7.2.2");
|
||||
}
|
||||
}
|
||||
+125
@@ -0,0 +1,125 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E13 RID: 7699
|
||||
[Token(Token = "0x2001E13")]
|
||||
public class PolicyQualifierInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2E9 RID: 49897 RVA: 0x002C65AC File Offset: 0x002C47AC
|
||||
[Token(Token = "0x600C2E9")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public PolicyQualifierInfo(DerObjectIdentifier policyQualifierId, Asn1Encodable qualifier)
|
||||
{
|
||||
this.policyQualifierId = policyQualifierId;
|
||||
this.qualifier = qualifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2EA RID: 49898 RVA: 0x002C65D0 File Offset: 0x002C47D0
|
||||
[Token(Token = "0x600C2EA")]
|
||||
[Address(RVA = "0x2B3CB30", Offset = "0x2B3B930", VA = "0x182B3CB30")]
|
||||
public PolicyQualifierInfo(string cps)
|
||||
{
|
||||
PolicyQualifierID idQtCps = PolicyQualifierID.IdQtCps;
|
||||
this.policyQualifierId = idQtCps;
|
||||
DerIA5String derIA5String = new DerIA5String(cps);
|
||||
this.qualifier = derIA5String;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2EB RID: 49899 RVA: 0x002C6600 File Offset: 0x002C4800
|
||||
[Token(Token = "0x600C2EB")]
|
||||
[Address(RVA = "0x2B3C9E0", Offset = "0x2B3B7E0", VA = "0x182B3C9E0")]
|
||||
private PolicyQualifierInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.policyQualifierId = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.qualifier = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2EC RID: 49900 RVA: 0x002C6638 File Offset: 0x002C4838
|
||||
[Token(Token = "0x600C2EC")]
|
||||
[Address(RVA = "0x2B3C6B0", Offset = "0x2B3B4B0", VA = "0x182B3C6B0")]
|
||||
public static PolicyQualifierInfo GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
PolicyQualifierInfo policyQualifierInfo;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
policyQualifierInfo.policyQualifierId = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = instance.Parser;
|
||||
policyQualifierInfo.qualifier = parser2;
|
||||
return policyQualifierInfo;
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001E27 RID: 7719
|
||||
// (get) Token: 0x0600C2ED RID: 49901 RVA: 0x002C66A0 File Offset: 0x002C48A0
|
||||
[Token(Token = "0x17001E27")]
|
||||
public virtual DerObjectIdentifier PolicyQualifierId
|
||||
{
|
||||
[Token(Token = "0x600C2ED")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.policyQualifierId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E28 RID: 7720
|
||||
// (get) Token: 0x0600C2EE RID: 49902 RVA: 0x002C66B4 File Offset: 0x002C48B4
|
||||
[Token(Token = "0x17001E28")]
|
||||
public virtual Asn1Encodable Qualifier
|
||||
{
|
||||
[Token(Token = "0x600C2EE")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.qualifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2EF RID: 49903 RVA: 0x002C66C8 File Offset: 0x002C48C8
|
||||
[Token(Token = "0x600C2EF")]
|
||||
[Address(RVA = "0x2B3C8D0", Offset = "0x2B3B6D0", VA = "0x182B3C8D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.policyQualifierId;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable = this.qualifier;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Encodable;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AE1 RID: 31457
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AE1")]
|
||||
private readonly DerObjectIdentifier policyQualifierId;
|
||||
|
||||
// Token: 0x04007AE2 RID: 31458
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AE2")]
|
||||
private readonly Asn1Encodable qualifier;
|
||||
}
|
||||
}
|
||||
+161
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E14 RID: 7700
|
||||
[Token(Token = "0x2001E14")]
|
||||
public class PrivateKeyUsagePeriod : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2F0 RID: 49904 RVA: 0x002C6710 File Offset: 0x002C4910
|
||||
[Token(Token = "0x600C2F0")]
|
||||
[Address(RVA = "0x2B3CBE0", Offset = "0x2B3B9E0", VA = "0x182B3CBE0")]
|
||||
public static PrivateKeyUsagePeriod GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2F0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PrivateKeyUsagePeriod BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PrivateKeyUsagePeriod::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3C:
|
||||
stloc:string(var_9_42, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_5A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_9_42)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C2F1 RID: 49905 RVA: 0x002C6778 File Offset: 0x002C4978
|
||||
[Token(Token = "0x600C2F1")]
|
||||
[Address(RVA = "0x2B3D080", Offset = "0x2B3BE80", VA = "0x182B3D080")]
|
||||
private PrivateKeyUsagePeriod(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
DerGeneralizedTime instance2;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
ulong num2;
|
||||
num2 += (ulong)1L;
|
||||
int num3 = 0;
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_67;
|
||||
}
|
||||
if (num3 != 0)
|
||||
{
|
||||
while (num3 != 1)
|
||||
{
|
||||
}
|
||||
int num4 = 0;
|
||||
DerGeneralizedTime instance = DerGeneralizedTime.GetInstance(num, num4 != 0);
|
||||
this._notAfter = instance;
|
||||
}
|
||||
int num5 = 0;
|
||||
instance2 = DerGeneralizedTime.GetInstance(num, num5 != 0);
|
||||
this._notBefore = instance2;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_67:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001E29 RID: 7721
|
||||
// (get) Token: 0x0600C2F2 RID: 49906 RVA: 0x002C67F8 File Offset: 0x002C49F8
|
||||
[Token(Token = "0x17001E29")]
|
||||
public DerGeneralizedTime NotBefore
|
||||
{
|
||||
[Token(Token = "0x600C2F2")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this._notBefore;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E2A RID: 7722
|
||||
// (get) Token: 0x0600C2F3 RID: 49907 RVA: 0x002C680C File Offset: 0x002C4A0C
|
||||
[Token(Token = "0x17001E2A")]
|
||||
public DerGeneralizedTime NotAfter
|
||||
{
|
||||
[Token(Token = "0x600C2F3")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this._notAfter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2F4 RID: 49908 RVA: 0x002C6820 File Offset: 0x002C4A20
|
||||
[Token(Token = "0x600C2F4")]
|
||||
[Address(RVA = "0x2B3CE70", Offset = "0x2B3BC70", VA = "0x182B3CE70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this._notBefore != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerGeneralizedTime notBefore = this._notBefore;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, notBefore);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this._notAfter != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerGeneralizedTime notAfter = this._notAfter;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, notAfter);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AE3 RID: 31459
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AE3")]
|
||||
private DerGeneralizedTime _notBefore;
|
||||
|
||||
// Token: 0x04007AE4 RID: 31460
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AE4")]
|
||||
private DerGeneralizedTime _notAfter;
|
||||
}
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
||||
{
|
||||
// Token: 0x02001E38 RID: 7736
|
||||
[Token(Token = "0x2001E38")]
|
||||
public class BiometricData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C41C RID: 50204 RVA: 0x002CBC5C File Offset: 0x002C9E5C
|
||||
[Token(Token = "0x600C41C")]
|
||||
[Address(RVA = "0x2B34970", Offset = "0x2B33770", VA = "0x182B34970")]
|
||||
public static BiometricData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C41C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.BiometricData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.BiometricData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_72:
|
||||
stloc:string(var_15_78, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_16_90, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_15_78)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C41D RID: 50205 RVA: 0x002CBCFC File Offset: 0x002C9EFC
|
||||
[Token(Token = "0x600C41D")]
|
||||
[Address(RVA = "0x2B34DF0", Offset = "0x2B33BF0", VA = "0x182B34DF0")]
|
||||
private BiometricData(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
TypeOfBiometricData typeOfBiometricData;
|
||||
this.typeOfBiometricData = typeOfBiometricData;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.hashAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.biometricDataHash = asn1OctetString;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
DerIA5String derIA5String;
|
||||
this.sourceDataUri = derIA5String;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C41E RID: 50206 RVA: 0x002CBD58 File Offset: 0x002C9F58
|
||||
[Token(Token = "0x600C41E")]
|
||||
[Address(RVA = "0x4F37F0", Offset = "0x4F25F0", VA = "0x1804F37F0")]
|
||||
public BiometricData(TypeOfBiometricData typeOfBiometricData, AlgorithmIdentifier hashAlgorithm, Asn1OctetString biometricDataHash, DerIA5String sourceDataUri)
|
||||
{
|
||||
this.typeOfBiometricData = typeOfBiometricData;
|
||||
this.biometricDataHash = biometricDataHash;
|
||||
this.sourceDataUri = 0;
|
||||
this.hashAlgorithm = hashAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600C41F RID: 50207 RVA: 0x002CBD88 File Offset: 0x002C9F88
|
||||
[Token(Token = "0x600C41F")]
|
||||
[Address(RVA = "0x2845D70", Offset = "0x2844B70", VA = "0x182845D70")]
|
||||
public BiometricData(TypeOfBiometricData typeOfBiometricData, AlgorithmIdentifier hashAlgorithm, Asn1OctetString biometricDataHash)
|
||||
{
|
||||
this.typeOfBiometricData = typeOfBiometricData;
|
||||
this.biometricDataHash = biometricDataHash;
|
||||
this.hashAlgorithm = hashAlgorithm;
|
||||
this.sourceDataUri = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x17001E67 RID: 7783
|
||||
// (get) Token: 0x0600C420 RID: 50208 RVA: 0x002CBDBC File Offset: 0x002C9FBC
|
||||
[Token(Token = "0x17001E67")]
|
||||
public TypeOfBiometricData TypeOfBiometricData
|
||||
{
|
||||
[Token(Token = "0x600C420")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.typeOfBiometricData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E68 RID: 7784
|
||||
// (get) Token: 0x0600C421 RID: 50209 RVA: 0x002CBDD0 File Offset: 0x002C9FD0
|
||||
[Token(Token = "0x17001E68")]
|
||||
public AlgorithmIdentifier HashAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C421")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.hashAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E69 RID: 7785
|
||||
// (get) Token: 0x0600C422 RID: 50210 RVA: 0x002CBDE4 File Offset: 0x002C9FE4
|
||||
[Token(Token = "0x17001E69")]
|
||||
public Asn1OctetString BiometricDataHash
|
||||
{
|
||||
[Token(Token = "0x600C422")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.biometricDataHash;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E6A RID: 7786
|
||||
// (get) Token: 0x0600C423 RID: 50211 RVA: 0x002CBDF8 File Offset: 0x002C9FF8
|
||||
[Token(Token = "0x17001E6A")]
|
||||
public DerIA5String SourceDataUri
|
||||
{
|
||||
[Token(Token = "0x600C423")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.sourceDataUri;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C424 RID: 50212 RVA: 0x002CBE0C File Offset: 0x002CA00C
|
||||
[Token(Token = "0x600C424")]
|
||||
[Address(RVA = "0x2B34BE0", Offset = "0x2B339E0", VA = "0x182B34BE0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
TypeOfBiometricData typeOfBiometricData = this.typeOfBiometricData;
|
||||
if (typeOfBiometricData != 0)
|
||||
{
|
||||
}
|
||||
array[0] = typeOfBiometricData;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
Asn1OctetString asn1OctetString = this.biometricDataHash;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[2] = asn1OctetString;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.sourceDataUri != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerIA5String derIA5String = this.sourceDataUri;
|
||||
if (derIA5String != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derIA5String;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007BC2 RID: 31682
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BC2")]
|
||||
private readonly TypeOfBiometricData typeOfBiometricData;
|
||||
|
||||
// Token: 0x04007BC3 RID: 31683
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007BC3")]
|
||||
private readonly AlgorithmIdentifier hashAlgorithm;
|
||||
|
||||
// Token: 0x04007BC4 RID: 31684
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007BC4")]
|
||||
private readonly Asn1OctetString biometricDataHash;
|
||||
|
||||
// Token: 0x04007BC5 RID: 31685
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007BC5")]
|
||||
private readonly DerIA5String sourceDataUri;
|
||||
}
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
||||
{
|
||||
// Token: 0x02001E39 RID: 7737
|
||||
[Token(Token = "0x2001E39")]
|
||||
public abstract class EtsiQCObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600C425 RID: 50213 RVA: 0x002CBEA4 File Offset: 0x002CA0A4
|
||||
[Token(Token = "0x600C425")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected EtsiQCObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007BC6 RID: 31686
|
||||
[Token(Token = "0x4007BC6")]
|
||||
public static readonly DerObjectIdentifier IdEtsiQcs = new DerObjectIdentifier("0.4.0.1862.1");
|
||||
|
||||
// Token: 0x04007BC7 RID: 31687
|
||||
[Token(Token = "0x4007BC7")]
|
||||
public static readonly DerObjectIdentifier IdEtsiQcsQcCompliance = new DerObjectIdentifier(EtsiQCObjectIdentifiers.IdEtsiQcs + ".1");
|
||||
|
||||
// Token: 0x04007BC8 RID: 31688
|
||||
[Token(Token = "0x4007BC8")]
|
||||
public static readonly DerObjectIdentifier IdEtsiQcsLimitValue = new DerObjectIdentifier(EtsiQCObjectIdentifiers.IdEtsiQcs + ".2");
|
||||
|
||||
// Token: 0x04007BC9 RID: 31689
|
||||
[Token(Token = "0x4007BC9")]
|
||||
public static readonly DerObjectIdentifier IdEtsiQcsRetentionPeriod = new DerObjectIdentifier(EtsiQCObjectIdentifiers.IdEtsiQcs + ".3");
|
||||
|
||||
// Token: 0x04007BCA RID: 31690
|
||||
[Token(Token = "0x4007BCA")]
|
||||
public static readonly DerObjectIdentifier IdEtsiQcsQcSscd = new DerObjectIdentifier(EtsiQCObjectIdentifiers.IdEtsiQcs + ".4");
|
||||
}
|
||||
}
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
||||
{
|
||||
// Token: 0x02001E3A RID: 7738
|
||||
[Token(Token = "0x2001E3A")]
|
||||
public class Iso4217CurrencyCode : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C427 RID: 50215 RVA: 0x002CBF38 File Offset: 0x002CA138
|
||||
[Token(Token = "0x600C427")]
|
||||
[Address(RVA = "0x2B361F0", Offset = "0x2B34FF0", VA = "0x182B361F0")]
|
||||
public static Iso4217CurrencyCode GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C427)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.Iso4217CurrencyCode BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.Iso4217CurrencyCode::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_78:
|
||||
stloc:string(var_10_7E, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_96, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_10_7E)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C428 RID: 50216 RVA: 0x002CBFDC File Offset: 0x002CA1DC
|
||||
[Token(Token = "0x600C428")]
|
||||
[Address(RVA = "0x2B36680", Offset = "0x2B35480", VA = "0x182B36680")]
|
||||
public Iso4217CurrencyCode(int numeric)
|
||||
{
|
||||
if (numeric - 1 <= 998)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(numeric);
|
||||
this.obj = derInteger;
|
||||
return;
|
||||
}
|
||||
object[] array = new object[5];
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C429 RID: 50217 RVA: 0x002CC078 File Offset: 0x002CA278
|
||||
[Token(Token = "0x600C429")]
|
||||
[Address(RVA = "0x2B36840", Offset = "0x2B35640", VA = "0x182B36840")]
|
||||
public Iso4217CurrencyCode(string alphabetic)
|
||||
{
|
||||
DerPrintableString derPrintableString = new DerPrintableString(alphabetic);
|
||||
this.obj = derPrintableString;
|
||||
}
|
||||
|
||||
// Token: 0x17001E6B RID: 7787
|
||||
// (get) Token: 0x0600C42A RID: 50218 RVA: 0x002CC0A0 File Offset: 0x002CA2A0
|
||||
[Token(Token = "0x17001E6B")]
|
||||
public bool IsAlphabetic
|
||||
{
|
||||
[Token(Token = "0x600C42A")]
|
||||
[Address(RVA = "0x2B369F0", Offset = "0x2B357F0", VA = "0x182B369F0")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.obj;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E6C RID: 7788
|
||||
// (get) Token: 0x0600C42B RID: 50219 RVA: 0x002CC0CC File Offset: 0x002CA2CC
|
||||
[Token(Token = "0x17001E6C")]
|
||||
public string Alphabetic
|
||||
{
|
||||
[Token(Token = "0x600C42B")]
|
||||
[Address(RVA = "0x2B36920", Offset = "0x2B35720", VA = "0x182B36920")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
do
|
||||
{
|
||||
asn1Encodable = this.obj;
|
||||
}
|
||||
while (asn1Encodable == 0 || asn1Encodable == 0);
|
||||
Asn1Object asn1Object = asn1Encodable.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E6D RID: 7789
|
||||
// (get) Token: 0x0600C42C RID: 50220 RVA: 0x002CC0F8 File Offset: 0x002CA2F8
|
||||
[Token(Token = "0x17001E6D")]
|
||||
public int Numeric
|
||||
{
|
||||
[Token(Token = "0x600C42C")]
|
||||
[Address(RVA = "0x2B36A70", Offset = "0x2B35870", VA = "0x182B36A70")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
do
|
||||
{
|
||||
asn1Encodable = this.obj;
|
||||
}
|
||||
while (asn1Encodable == 0 || asn1Encodable == 0);
|
||||
BigInteger bigInteger;
|
||||
return bigInteger.IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C42D RID: 50221 RVA: 0x002CC124 File Offset: 0x002CA324
|
||||
[Token(Token = "0x600C42D")]
|
||||
[Address(RVA = "0x53BA50", Offset = "0x53A850", VA = "0x18053BA50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.obj.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x04007BCB RID: 31691
|
||||
[Token(Token = "0x4007BCB")]
|
||||
internal const int AlphabeticMaxSize = 3;
|
||||
|
||||
// Token: 0x04007BCC RID: 31692
|
||||
[Token(Token = "0x4007BCC")]
|
||||
internal const int NumericMinSize = 1;
|
||||
|
||||
// Token: 0x04007BCD RID: 31693
|
||||
[Token(Token = "0x4007BCD")]
|
||||
internal const int NumericMaxSize = 999;
|
||||
|
||||
// Token: 0x04007BCE RID: 31694
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BCE")]
|
||||
internal Asn1Encodable obj;
|
||||
}
|
||||
}
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
||||
{
|
||||
// Token: 0x02001E3B RID: 7739
|
||||
[Token(Token = "0x2001E3B")]
|
||||
public class MonetaryValue : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C42E RID: 50222 RVA: 0x002CC144 File Offset: 0x002CA344
|
||||
[Token(Token = "0x600C42E")]
|
||||
[Address(RVA = "0x2B38900", Offset = "0x2B37700", VA = "0x182B38900")]
|
||||
public static MonetaryValue GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C42E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.MonetaryValue BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.MonetaryValue::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_5A:
|
||||
stloc:string(var_13_60, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_14_78, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_13_60)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C42F RID: 50223 RVA: 0x002CC1CC File Offset: 0x002CA3CC
|
||||
[Token(Token = "0x600C42F")]
|
||||
[Address(RVA = "0x2B38D40", Offset = "0x2B37B40", VA = "0x182B38D40")]
|
||||
private MonetaryValue(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Iso4217CurrencyCode iso4217CurrencyCode;
|
||||
this.currency = iso4217CurrencyCode;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.amount = derInteger;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
this.exponent = derInteger2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C430 RID: 50224 RVA: 0x002CC214 File Offset: 0x002CA414
|
||||
[Token(Token = "0x600C430")]
|
||||
[Address(RVA = "0x2B38E90", Offset = "0x2B37C90", VA = "0x182B38E90")]
|
||||
public MonetaryValue(Iso4217CurrencyCode currency, int amount, int exponent)
|
||||
{
|
||||
this.currency = currency;
|
||||
DerInteger derInteger = new DerInteger(amount);
|
||||
this.amount = derInteger;
|
||||
DerInteger derInteger2 = new DerInteger(amount);
|
||||
this.exponent = derInteger2;
|
||||
}
|
||||
|
||||
// Token: 0x17001E6E RID: 7790
|
||||
// (get) Token: 0x0600C431 RID: 50225 RVA: 0x002CC24C File Offset: 0x002CA44C
|
||||
[Token(Token = "0x17001E6E")]
|
||||
public Iso4217CurrencyCode Currency
|
||||
{
|
||||
[Token(Token = "0x600C431")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.currency;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E6F RID: 7791
|
||||
// (get) Token: 0x0600C432 RID: 50226 RVA: 0x002CC260 File Offset: 0x002CA460
|
||||
[Token(Token = "0x17001E6F")]
|
||||
public BigInteger Amount
|
||||
{
|
||||
[Token(Token = "0x600C432")]
|
||||
[Address(RVA = "0x283E1D0", Offset = "0x283CFD0", VA = "0x18283E1D0")]
|
||||
get
|
||||
{
|
||||
return this.amount.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E70 RID: 7792
|
||||
// (get) Token: 0x0600C433 RID: 50227 RVA: 0x002CC280 File Offset: 0x002CA480
|
||||
[Token(Token = "0x17001E70")]
|
||||
public BigInteger Exponent
|
||||
{
|
||||
[Token(Token = "0x600C433")]
|
||||
[Address(RVA = "0x283E1F0", Offset = "0x283CFF0", VA = "0x18283E1F0")]
|
||||
get
|
||||
{
|
||||
return this.exponent.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C434 RID: 50228 RVA: 0x002CC2A0 File Offset: 0x002CA4A0
|
||||
[Token(Token = "0x600C434")]
|
||||
[Address(RVA = "0x2B38BD0", Offset = "0x2B379D0", VA = "0x182B38BD0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
Iso4217CurrencyCode iso4217CurrencyCode = this.currency;
|
||||
if (iso4217CurrencyCode != 0)
|
||||
{
|
||||
}
|
||||
array[0] = iso4217CurrencyCode;
|
||||
DerInteger derInteger = this.amount;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
DerInteger derInteger2 = this.exponent;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derInteger2;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007BCF RID: 31695
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BCF")]
|
||||
internal Iso4217CurrencyCode currency;
|
||||
|
||||
// Token: 0x04007BD0 RID: 31696
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007BD0")]
|
||||
internal DerInteger amount;
|
||||
|
||||
// Token: 0x04007BD1 RID: 31697
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007BD1")]
|
||||
internal DerInteger exponent;
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
||||
{
|
||||
// Token: 0x02001E3C RID: 7740
|
||||
[Token(Token = "0x2001E3C")]
|
||||
public class QCStatement : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C435 RID: 50229 RVA: 0x002CC2FC File Offset: 0x002CA4FC
|
||||
[Token(Token = "0x600C435")]
|
||||
[Address(RVA = "0x2B3D290", Offset = "0x2B3C090", VA = "0x182B3D290")]
|
||||
public static QCStatement GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C435)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.QCStatement BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.QCStatement::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_50:
|
||||
stloc:string(var_10_56, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_6E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_10_56)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C436 RID: 50230 RVA: 0x002CC378 File Offset: 0x002CA578
|
||||
[Token(Token = "0x600C436")]
|
||||
[Address(RVA = "0x2B3D660", Offset = "0x2B3C460", VA = "0x182B3D660")]
|
||||
private QCStatement(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.qcStatementId = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.qcStatementInfo = parser2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C437 RID: 50231 RVA: 0x002CC3B4 File Offset: 0x002CA5B4
|
||||
[Token(Token = "0x600C437")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public QCStatement(DerObjectIdentifier qcStatementId)
|
||||
{
|
||||
this.qcStatementId = qcStatementId;
|
||||
}
|
||||
|
||||
// Token: 0x0600C438 RID: 50232 RVA: 0x002CC3D0 File Offset: 0x002CA5D0
|
||||
[Token(Token = "0x600C438")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public QCStatement(DerObjectIdentifier qcStatementId, Asn1Encodable qcStatementInfo)
|
||||
{
|
||||
this.qcStatementId = qcStatementId;
|
||||
this.qcStatementInfo = qcStatementInfo;
|
||||
}
|
||||
|
||||
// Token: 0x17001E71 RID: 7793
|
||||
// (get) Token: 0x0600C439 RID: 50233 RVA: 0x002CC3F4 File Offset: 0x002CA5F4
|
||||
[Token(Token = "0x17001E71")]
|
||||
public DerObjectIdentifier StatementId
|
||||
{
|
||||
[Token(Token = "0x600C439")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.qcStatementId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E72 RID: 7794
|
||||
// (get) Token: 0x0600C43A RID: 50234 RVA: 0x002CC408 File Offset: 0x002CA608
|
||||
[Token(Token = "0x17001E72")]
|
||||
public Asn1Encodable StatementInfo
|
||||
{
|
||||
[Token(Token = "0x600C43A")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.qcStatementInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C43B RID: 50235 RVA: 0x002CC41C File Offset: 0x002CA61C
|
||||
[Token(Token = "0x600C43B")]
|
||||
[Address(RVA = "0x2B3D4F0", Offset = "0x2B3C2F0", VA = "0x182B3D4F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.qcStatementId;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.qcStatementInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Encodable asn1Encodable = this.qcStatementInfo;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1Encodable;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007BD2 RID: 31698
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BD2")]
|
||||
private readonly DerObjectIdentifier qcStatementId;
|
||||
|
||||
// Token: 0x04007BD3 RID: 31699
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007BD3")]
|
||||
private readonly Asn1Encodable qcStatementInfo;
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
||||
{
|
||||
// Token: 0x02001E3D RID: 7741
|
||||
[Token(Token = "0x2001E3D")]
|
||||
public sealed class Rfc3739QCObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600C43C RID: 50236 RVA: 0x002CC488 File Offset: 0x002CA688
|
||||
[Token(Token = "0x600C43C")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
private Rfc3739QCObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007BD4 RID: 31700
|
||||
[Token(Token = "0x4007BD4")]
|
||||
public static readonly DerObjectIdentifier IdQcs = new DerObjectIdentifier("1.3.6.1.5.5.7.11");
|
||||
|
||||
// Token: 0x04007BD5 RID: 31701
|
||||
[Token(Token = "0x4007BD5")]
|
||||
public static readonly DerObjectIdentifier IdQcsPkixQCSyntaxV1 = new DerObjectIdentifier(Rfc3739QCObjectIdentifiers.IdQcs + ".1");
|
||||
|
||||
// Token: 0x04007BD6 RID: 31702
|
||||
[Token(Token = "0x4007BD6")]
|
||||
public static readonly DerObjectIdentifier IdQcsPkixQCSyntaxV2 = new DerObjectIdentifier(Rfc3739QCObjectIdentifiers.IdQcs + ".2");
|
||||
}
|
||||
}
|
||||
+164
@@ -0,0 +1,164 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
||||
{
|
||||
// Token: 0x02001E3E RID: 7742
|
||||
[Token(Token = "0x2001E3E")]
|
||||
public class SemanticsInformation : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C43E RID: 50238 RVA: 0x002CC4EC File Offset: 0x002CA6EC
|
||||
[Token(Token = "0x600C43E")]
|
||||
[Address(RVA = "0x2B3EF70", Offset = "0x2B3DD70", VA = "0x182B3EF70")]
|
||||
public static SemanticsInformation GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C43E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.SemanticsInformation BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.SemanticsInformation::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_32:
|
||||
stloc:string(var_7_38, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_8_50, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_7_38)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C43F RID: 50239 RVA: 0x002CC54C File Offset: 0x002CA74C
|
||||
[Token(Token = "0x600C43F")]
|
||||
[Address(RVA = "0x2B3F2E0", Offset = "0x2B3E0E0", VA = "0x182B3F2E0")]
|
||||
public SemanticsInformation(Asn1Sequence seq)
|
||||
{
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
int num = 0;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.semanticsIdentifier = derObjectIdentifier;
|
||||
if (derObjectIdentifier == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
GeneralName[] array = new GeneralName[asn1Encodable];
|
||||
this.nameRegistrationAuthorities = array;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num < asn1Encodable2)
|
||||
{
|
||||
GeneralName[] array2 = this.nameRegistrationAuthorities;
|
||||
Asn1Sequence asn1Sequence;
|
||||
Asn1SequenceParser parser = asn1Sequence.Parser;
|
||||
GeneralName generalName;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array2[0] = generalName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C440 RID: 50240 RVA: 0x002CC5C4 File Offset: 0x002CA7C4
|
||||
[Token(Token = "0x600C440")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public SemanticsInformation(DerObjectIdentifier semanticsIdentifier, GeneralName[] generalNames)
|
||||
{
|
||||
this.semanticsIdentifier = semanticsIdentifier;
|
||||
this.nameRegistrationAuthorities = generalNames;
|
||||
}
|
||||
|
||||
// Token: 0x0600C441 RID: 50241 RVA: 0x002CC5E8 File Offset: 0x002CA7E8
|
||||
[Token(Token = "0x600C441")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public SemanticsInformation(DerObjectIdentifier semanticsIdentifier)
|
||||
{
|
||||
this.semanticsIdentifier = semanticsIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600C442 RID: 50242 RVA: 0x002CC604 File Offset: 0x002CA804
|
||||
[Token(Token = "0x600C442")]
|
||||
[Address(RVA = "0x4F28D0", Offset = "0x4F16D0", VA = "0x1804F28D0")]
|
||||
public SemanticsInformation(GeneralName[] generalNames)
|
||||
{
|
||||
this.nameRegistrationAuthorities = generalNames;
|
||||
}
|
||||
|
||||
// Token: 0x17001E73 RID: 7795
|
||||
// (get) Token: 0x0600C443 RID: 50243 RVA: 0x002CC620 File Offset: 0x002CA820
|
||||
[Token(Token = "0x17001E73")]
|
||||
public DerObjectIdentifier SemanticsIdentifier
|
||||
{
|
||||
[Token(Token = "0x600C443")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.semanticsIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C444 RID: 50244 RVA: 0x002CC634 File Offset: 0x002CA834
|
||||
[Token(Token = "0x600C444")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
public GeneralName[] GetNameRegistrationAuthorities()
|
||||
{
|
||||
return this.nameRegistrationAuthorities;
|
||||
}
|
||||
|
||||
// Token: 0x0600C445 RID: 50245 RVA: 0x002CC648 File Offset: 0x002CA848
|
||||
[Token(Token = "0x600C445")]
|
||||
[Address(RVA = "0x2B3F120", Offset = "0x2B3DF20", VA = "0x182B3F120", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.semanticsIdentifier != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.semanticsIdentifier;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.nameRegistrationAuthorities != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerSequence derSequence = new DerSequence(this.nameRegistrationAuthorities);
|
||||
if (derSequence != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derSequence;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence2 = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007BD7 RID: 31703
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BD7")]
|
||||
private readonly DerObjectIdentifier semanticsIdentifier;
|
||||
|
||||
// Token: 0x04007BD8 RID: 31704
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007BD8")]
|
||||
private readonly GeneralName[] nameRegistrationAuthorities;
|
||||
}
|
||||
}
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified
|
||||
{
|
||||
// Token: 0x02001E3F RID: 7743
|
||||
[Token(Token = "0x2001E3F")]
|
||||
public class TypeOfBiometricData : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C446 RID: 50246 RVA: 0x002CC6C4 File Offset: 0x002CA8C4
|
||||
[Token(Token = "0x600C446")]
|
||||
[Address(RVA = "0x2B432A0", Offset = "0x2B420A0", VA = "0x182B432A0")]
|
||||
public static TypeOfBiometricData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C446)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.TypeOfBiometricData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.TypeOfBiometricData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_8A:
|
||||
stloc:ArgumentException(var_12_9B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("unknow PredefinedBiometricType : "), ldloc:ArgumentException[exp:object](var_11))))
|
||||
}
|
||||
|
||||
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: 0x0600C447 RID: 50247 RVA: 0x002CC770 File Offset: 0x002CA970
|
||||
[Token(Token = "0x600C447")]
|
||||
[Address(RVA = "0x2B43590", Offset = "0x2B42390", VA = "0x182B43590")]
|
||||
public TypeOfBiometricData(int predefinedBiometricType)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C447)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.TypeOfBiometricData::.ctor(System.Int32)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1D:
|
||||
stloc:ArgumentException(var_1_2D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("unknow PredefinedBiometricType : "), ldloc:int32[exp:object](predefinedBiometricType))))
|
||||
}
|
||||
|
||||
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: 0x0600C448 RID: 50248 RVA: 0x002CC7AC File Offset: 0x002CA9AC
|
||||
[Token(Token = "0x600C448")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public TypeOfBiometricData(DerObjectIdentifier biometricDataOid)
|
||||
{
|
||||
this.obj = biometricDataOid;
|
||||
}
|
||||
|
||||
// Token: 0x17001E74 RID: 7796
|
||||
// (get) Token: 0x0600C449 RID: 50249 RVA: 0x002CC7C8 File Offset: 0x002CA9C8
|
||||
[Token(Token = "0x17001E74")]
|
||||
public bool IsPredefined
|
||||
{
|
||||
[Token(Token = "0x600C449")]
|
||||
[Address(RVA = "0x2B436E0", Offset = "0x2B424E0", VA = "0x182B436E0")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable = this.obj;
|
||||
if (asn1Encodable == 0)
|
||||
{
|
||||
return 0 != 0;
|
||||
}
|
||||
return asn1Encodable != 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E75 RID: 7797
|
||||
// (get) Token: 0x0600C44A RID: 50250 RVA: 0x002CC7F4 File Offset: 0x002CA9F4
|
||||
[Token(Token = "0x17001E75")]
|
||||
public int PredefinedBiometricType
|
||||
{
|
||||
[Token(Token = "0x600C44A")]
|
||||
[Address(RVA = "0x2B43760", Offset = "0x2B42560", VA = "0x182B43760")]
|
||||
get
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
do
|
||||
{
|
||||
asn1Encodable = this.obj;
|
||||
}
|
||||
while (asn1Encodable == 0 || asn1Encodable == 0);
|
||||
BigInteger bigInteger;
|
||||
return bigInteger.IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E76 RID: 7798
|
||||
// (get) Token: 0x0600C44B RID: 50251 RVA: 0x002CC820 File Offset: 0x002CAA20
|
||||
[Token(Token = "0x17001E76")]
|
||||
public DerObjectIdentifier BiometricDataOid
|
||||
{
|
||||
[Token(Token = "0x600C44B")]
|
||||
[Address(RVA = "0x2B43660", Offset = "0x2B42460", VA = "0x182B43660")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C44B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Qualified.TypeOfBiometricData::get_BiometricDataOid()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0F:
|
||||
brtrue(IL_0F, cne:bool(ldloc:Asn1Encodable(var_0_06), ldc.i4:int32[exp:Asn1Encodable](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: 0x0600C44C RID: 50252 RVA: 0x002CC840 File Offset: 0x002CAA40
|
||||
[Token(Token = "0x600C44C")]
|
||||
[Address(RVA = "0x53BA50", Offset = "0x53A850", VA = "0x18053BA50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.obj.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x04007BD9 RID: 31705
|
||||
[Token(Token = "0x4007BD9")]
|
||||
public const int Picture = 0;
|
||||
|
||||
// Token: 0x04007BDA RID: 31706
|
||||
[Token(Token = "0x4007BDA")]
|
||||
public const int HandwrittenSignature = 1;
|
||||
|
||||
// Token: 0x04007BDB RID: 31707
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BDB")]
|
||||
internal Asn1Encodable obj;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E16 RID: 7702
|
||||
[Token(Token = "0x2001E16")]
|
||||
public class ReasonFlags : DerBitString
|
||||
{
|
||||
// Token: 0x0600C2FC RID: 49916 RVA: 0x002C6A60 File Offset: 0x002C4C60
|
||||
[Token(Token = "0x600C2FC")]
|
||||
[Address(RVA = "0x2B3D740", Offset = "0x2B3C540", VA = "0x182B3D740")]
|
||||
public ReasonFlags(int reasons)
|
||||
: base(reasons)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C2FD RID: 49917 RVA: 0x002C6A74 File Offset: 0x002C4C74
|
||||
[Token(Token = "0x600C2FD")]
|
||||
[Address(RVA = "0x2B3D7A0", Offset = "0x2B3C5A0", VA = "0x182B3D7A0")]
|
||||
public ReasonFlags(DerBitString reasons)
|
||||
{
|
||||
byte[] octets = reasons.GetOctets();
|
||||
byte[] bytes = reasons.GetBytes();
|
||||
}
|
||||
|
||||
// Token: 0x04007AE7 RID: 31463
|
||||
[Token(Token = "0x4007AE7")]
|
||||
public const int Unused = 128;
|
||||
|
||||
// Token: 0x04007AE8 RID: 31464
|
||||
[Token(Token = "0x4007AE8")]
|
||||
public const int KeyCompromise = 64;
|
||||
|
||||
// Token: 0x04007AE9 RID: 31465
|
||||
[Token(Token = "0x4007AE9")]
|
||||
public const int CACompromise = 32;
|
||||
|
||||
// Token: 0x04007AEA RID: 31466
|
||||
[Token(Token = "0x4007AEA")]
|
||||
public const int AffiliationChanged = 16;
|
||||
|
||||
// Token: 0x04007AEB RID: 31467
|
||||
[Token(Token = "0x4007AEB")]
|
||||
public const int Superseded = 8;
|
||||
|
||||
// Token: 0x04007AEC RID: 31468
|
||||
[Token(Token = "0x4007AEC")]
|
||||
public const int CessationOfOperation = 4;
|
||||
|
||||
// Token: 0x04007AED RID: 31469
|
||||
[Token(Token = "0x4007AED")]
|
||||
public const int CertificateHold = 2;
|
||||
|
||||
// Token: 0x04007AEE RID: 31470
|
||||
[Token(Token = "0x4007AEE")]
|
||||
public const int PrivilegeWithdrawn = 1;
|
||||
|
||||
// Token: 0x04007AEF RID: 31471
|
||||
[Token(Token = "0x4007AEF")]
|
||||
public const int AACompromise = 32768;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,272 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E17 RID: 7703
|
||||
[Token(Token = "0x2001E17")]
|
||||
public class RoleSyntax : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2FE RID: 49918 RVA: 0x002C6A98 File Offset: 0x002C4C98
|
||||
[Token(Token = "0x600C2FE")]
|
||||
[Address(RVA = "0x2B3DB10", Offset = "0x2B3C910", VA = "0x182B3DB10")]
|
||||
public static RoleSyntax GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new RoleSyntax(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2FF RID: 49919 RVA: 0x002C6ACC File Offset: 0x002C4CCC
|
||||
[Token(Token = "0x600C2FF")]
|
||||
[Address(RVA = "0x2B3E3D0", Offset = "0x2B3D1D0", VA = "0x182B3E3D0")]
|
||||
public RoleSyntax(GeneralNames roleAuthority, GeneralName roleName)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2FF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.RoleSyntax::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralNames,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2F:
|
||||
stloc:ArgumentException(var_3_39, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("the role name MUST be non empty and MUST use the URI option of GeneralName")))
|
||||
}
|
||||
|
||||
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: 0x0600C300 RID: 49920 RVA: 0x002C6B14 File Offset: 0x002C4D14
|
||||
[Token(Token = "0x600C300")]
|
||||
[Address(RVA = "0x2B3E2A0", Offset = "0x2B3D0A0", VA = "0x182B3E2A0")]
|
||||
public RoleSyntax(GeneralName roleName)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C300)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.RoleSyntax::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.GeneralName)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_31:
|
||||
stloc:ArgumentException(var_3_3B, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("the role name MUST be non empty and MUST use the URI option of GeneralName")))
|
||||
}
|
||||
|
||||
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: 0x0600C301 RID: 49921 RVA: 0x002C6B5C File Offset: 0x002C4D5C
|
||||
[Token(Token = "0x600C301")]
|
||||
[Address(RVA = "0x2B3E6E0", Offset = "0x2B3D4E0", VA = "0x182B3E6E0")]
|
||||
public RoleSyntax(string roleName)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C301)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.RoleSyntax::.ctor(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_49:
|
||||
stloc:ArgumentException(var_3_53, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("the role name MUST be non empty and MUST use the URI option of GeneralName")))
|
||||
}
|
||||
|
||||
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: 0x0600C302 RID: 49922 RVA: 0x002C6BBC File Offset: 0x002C4DBC
|
||||
[Token(Token = "0x600C302")]
|
||||
[Address(RVA = "0x2B3E510", Offset = "0x2B3D310", VA = "0x182B3E510")]
|
||||
private RoleSyntax(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C302)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.RoleSyntax::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_59:
|
||||
stloc:ArgumentException(var_10_63, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Unknown tag in RoleSyntax")))
|
||||
}
|
||||
|
||||
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: 0x17001E2D RID: 7725
|
||||
// (get) Token: 0x0600C303 RID: 49923 RVA: 0x002C6C30 File Offset: 0x002C4E30
|
||||
[Token(Token = "0x17001E2D")]
|
||||
public GeneralNames RoleAuthority
|
||||
{
|
||||
[Token(Token = "0x600C303")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.roleAuthority;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E2E RID: 7726
|
||||
// (get) Token: 0x0600C304 RID: 49924 RVA: 0x002C6C44 File Offset: 0x002C4E44
|
||||
[Token(Token = "0x17001E2E")]
|
||||
public GeneralName RoleName
|
||||
{
|
||||
[Token(Token = "0x600C304")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.roleName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C305 RID: 49925 RVA: 0x002C6C58 File Offset: 0x002C4E58
|
||||
[Token(Token = "0x600C305")]
|
||||
[Address(RVA = "0x2B3DDD0", Offset = "0x2B3CBD0", VA = "0x182B3DDD0")]
|
||||
public string GetRoleNameAsString()
|
||||
{
|
||||
Asn1Encodable obj = this.roleName.obj;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C306 RID: 49926 RVA: 0x002C6C78 File Offset: 0x002C4E78
|
||||
[Token(Token = "0x600C306")]
|
||||
[Address(RVA = "0x2B3DC10", Offset = "0x2B3CA10", VA = "0x182B3DC10")]
|
||||
public string[] GetRoleAuthorityAsString()
|
||||
{
|
||||
GeneralNames generalNames = this.roleAuthority;
|
||||
if (generalNames == 0)
|
||||
{
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
GeneralName[] names = generalNames.GetNames();
|
||||
string[] array = new string[names.Length];
|
||||
int num = 0;
|
||||
int length = names.Length;
|
||||
if (num >= length)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
GeneralName generalName;
|
||||
Asn1Encodable obj = generalName.obj;
|
||||
if (length == 0)
|
||||
{
|
||||
int hashCode = obj.GetHashCode();
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C307 RID: 49927 RVA: 0x002C6CE0 File Offset: 0x002C4EE0
|
||||
[Token(Token = "0x600C307")]
|
||||
[Address(RVA = "0x2B3DE70", Offset = "0x2B3CC70", VA = "0x182B3DE70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.roleAuthority != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
GeneralNames generalNames = this.roleAuthority;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, generalNames);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
GeneralName generalName = this.roleName;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, generalName);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C308 RID: 49928 RVA: 0x002C6D74 File Offset: 0x002C4F74
|
||||
[Token(Token = "0x600C308")]
|
||||
[Address(RVA = "0x2B3E080", Offset = "0x2B3CE80", VA = "0x182B3E080", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
Asn1Encodable obj = this.roleName.obj;
|
||||
string text;
|
||||
StringBuilder stringBuilder = new StringBuilder(text);
|
||||
GeneralNames generalNames = this.roleAuthority;
|
||||
if (generalNames != 0 && generalNames.GetNames().Length != 0)
|
||||
{
|
||||
string[] roleAuthorityAsString = this.GetRoleAuthorityAsString();
|
||||
string text2 = roleAuthorityAsString[0];
|
||||
StringBuilder stringBuilder3;
|
||||
StringBuilder stringBuilder2 = stringBuilder3.Append(text2);
|
||||
if ((uint)1 < (uint)roleAuthorityAsString.Length)
|
||||
{
|
||||
string text3;
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append(", ").Append(text3);
|
||||
}
|
||||
}
|
||||
StringBuilder stringBuilder5 = stringBuilder.Append("N/A");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AF0 RID: 31472
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AF0")]
|
||||
private readonly GeneralNames roleAuthority;
|
||||
|
||||
// Token: 0x04007AF1 RID: 31473
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AF1")]
|
||||
private readonly GeneralName roleName;
|
||||
}
|
||||
}
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E15 RID: 7701
|
||||
[Token(Token = "0x2001E15")]
|
||||
public class RsaPublicKeyStructure : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2F5 RID: 49909 RVA: 0x002C68B8 File Offset: 0x002C4AB8
|
||||
[Token(Token = "0x600C2F5")]
|
||||
[Address(RVA = "0x2B3EB60", Offset = "0x2B3D960", VA = "0x182B3EB60")]
|
||||
public static RsaPublicKeyStructure GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return RsaPublicKeyStructure.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C2F6 RID: 49910 RVA: 0x002C68D4 File Offset: 0x002C4AD4
|
||||
[Token(Token = "0x600C2F6")]
|
||||
[Address(RVA = "0x2B3E860", Offset = "0x2B3D660", VA = "0x182B3E860")]
|
||||
public static RsaPublicKeyStructure GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2F6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.RsaPublicKeyStructure BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.RsaPublicKeyStructure::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4B:
|
||||
stloc:string(var_11_51, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_64, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid RsaPublicKeyStructure: "), ldloc:string(var_11_51))))
|
||||
}
|
||||
|
||||
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: 0x0600C2F7 RID: 49911 RVA: 0x002C6948 File Offset: 0x002C4B48
|
||||
[Token(Token = "0x600C2F7")]
|
||||
[Address(RVA = "0x2B3ECE0", Offset = "0x2B3DAE0", VA = "0x182B3ECE0")]
|
||||
public RsaPublicKeyStructure(BigInteger modulus, BigInteger publicExponent)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2F7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.RsaPublicKeyStructure::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Math.BigInteger)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:ArgumentException(var_1_49, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not a valid RSA public exponent"), ldstr:string("publicExponent")))
|
||||
}
|
||||
|
||||
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: 0x0600C2F8 RID: 49912 RVA: 0x002C69A0 File Offset: 0x002C4BA0
|
||||
[Token(Token = "0x600C2F8")]
|
||||
[Address(RVA = "0x2B3EE30", Offset = "0x2B3DC30", VA = "0x182B3EE30")]
|
||||
private RsaPublicKeyStructure(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
BigInteger positiveValue = derInteger.PositiveValue;
|
||||
this.modulus = positiveValue;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
BigInteger positiveValue2 = derInteger2.PositiveValue;
|
||||
this.publicExponent = positiveValue2;
|
||||
}
|
||||
|
||||
// Token: 0x17001E2B RID: 7723
|
||||
// (get) Token: 0x0600C2F9 RID: 49913 RVA: 0x002C69E8 File Offset: 0x002C4BE8
|
||||
[Token(Token = "0x17001E2B")]
|
||||
public BigInteger Modulus
|
||||
{
|
||||
[Token(Token = "0x600C2F9")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.modulus;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E2C RID: 7724
|
||||
// (get) Token: 0x0600C2FA RID: 49914 RVA: 0x002C69FC File Offset: 0x002C4BFC
|
||||
[Token(Token = "0x17001E2C")]
|
||||
public BigInteger PublicExponent
|
||||
{
|
||||
[Token(Token = "0x600C2FA")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.publicExponent;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2FB RID: 49915 RVA: 0x002C6A10 File Offset: 0x002C4C10
|
||||
[Token(Token = "0x600C2FB")]
|
||||
[Address(RVA = "0x2B3EB80", Offset = "0x2B3D980", VA = "0x182B3EB80", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = new DerInteger(this.modulus);
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
DerInteger derInteger2 = new DerInteger(this.publicExponent);
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger2;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AE5 RID: 31461
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AE5")]
|
||||
private BigInteger modulus;
|
||||
|
||||
// Token: 0x04007AE6 RID: 31462
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AE6")]
|
||||
private BigInteger publicExponent;
|
||||
}
|
||||
}
|
||||
+197
@@ -0,0 +1,197 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI
|
||||
{
|
||||
// Token: 0x02001E35 RID: 7733
|
||||
[Token(Token = "0x2001E35")]
|
||||
public class NameOrPseudonym : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C407 RID: 50183 RVA: 0x002CB618 File Offset: 0x002C9818
|
||||
[Token(Token = "0x600C407")]
|
||||
[Address(RVA = "0x2B39A70", Offset = "0x2B38870", VA = "0x182B39A70")]
|
||||
public static NameOrPseudonym GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C407)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.NameOrPseudonym BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.NameOrPseudonym::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:string(var_6_39, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_51, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_39)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C408 RID: 50184 RVA: 0x002CB678 File Offset: 0x002C9878
|
||||
[Token(Token = "0x600C408")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public NameOrPseudonym(DirectoryString pseudonym)
|
||||
{
|
||||
this.pseudonym = pseudonym;
|
||||
}
|
||||
|
||||
// Token: 0x0600C409 RID: 50185 RVA: 0x002CB694 File Offset: 0x002C9894
|
||||
[Token(Token = "0x600C409")]
|
||||
[Address(RVA = "0x2B39D90", Offset = "0x2B38B90", VA = "0x182B39D90")]
|
||||
private NameOrPseudonym(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C409)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.NameOrPseudonym::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:Asn1SequenceParser(var_5_39, callvirtgetter:Asn1SequenceParser(Asn1Sequence::get_Parser, ldloc:Asn1Sequence(seq)))
|
||||
stloc:ArgumentException(var_7_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Bad object encountered: "), ldloc:string(var_6))))
|
||||
}
|
||||
|
||||
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: 0x0600C40A RID: 50186 RVA: 0x002CB6F0 File Offset: 0x002C98F0
|
||||
[Token(Token = "0x600C40A")]
|
||||
[Address(RVA = "0x2B39F50", Offset = "0x2B38D50", VA = "0x182B39F50")]
|
||||
public NameOrPseudonym(string pseudonym)
|
||||
{
|
||||
DirectoryString directoryString = new DirectoryString(pseudonym);
|
||||
base..ctor();
|
||||
this.pseudonym = directoryString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C40B RID: 50187 RVA: 0x002CB714 File Offset: 0x002C9914
|
||||
[Token(Token = "0x600C40B")]
|
||||
[Address(RVA = "0x188D010", Offset = "0x188BE10", VA = "0x18188D010")]
|
||||
public NameOrPseudonym(DirectoryString surname, Asn1Sequence givenName)
|
||||
{
|
||||
this.surname = surname;
|
||||
this.givenName = givenName;
|
||||
}
|
||||
|
||||
// Token: 0x17001E5F RID: 7775
|
||||
// (get) Token: 0x0600C40C RID: 50188 RVA: 0x002CB738 File Offset: 0x002C9938
|
||||
[Token(Token = "0x17001E5F")]
|
||||
public DirectoryString Pseudonym
|
||||
{
|
||||
[Token(Token = "0x600C40C")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.pseudonym;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E60 RID: 7776
|
||||
// (get) Token: 0x0600C40D RID: 50189 RVA: 0x002CB74C File Offset: 0x002C994C
|
||||
[Token(Token = "0x17001E60")]
|
||||
public DirectoryString Surname
|
||||
{
|
||||
[Token(Token = "0x600C40D")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.surname;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C40E RID: 50190 RVA: 0x002CB760 File Offset: 0x002C9960
|
||||
[Token(Token = "0x600C40E")]
|
||||
[Address(RVA = "0x2B39840", Offset = "0x2B38640", VA = "0x182B39840")]
|
||||
public DirectoryString[] GetGivenName()
|
||||
{
|
||||
int num;
|
||||
DirectoryString[] array;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
Asn1Sequence asn1Sequence = this.givenName;
|
||||
Asn1Encodable asn1Encodable;
|
||||
array = new DirectoryString[asn1Encodable];
|
||||
IEnumerator enumerator = this.givenName.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
DirectoryString instance = DirectoryString.GetInstance(num);
|
||||
if (instance != 0)
|
||||
{
|
||||
}
|
||||
array[0] = instance;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C40F RID: 50191 RVA: 0x002CB7E0 File Offset: 0x002C99E0
|
||||
[Token(Token = "0x600C40F")]
|
||||
[Address(RVA = "0x2B39C50", Offset = "0x2B38A50", VA = "0x182B39C50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
DirectoryString directoryString = this.pseudonym;
|
||||
if (directoryString == 0)
|
||||
{
|
||||
DirectoryString directoryString2 = this.surname;
|
||||
if (directoryString2 != 0)
|
||||
{
|
||||
}
|
||||
Asn1Encodable[] array;
|
||||
array[0] = directoryString2;
|
||||
Asn1Sequence asn1Sequence = this.givenName;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Sequence;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
}
|
||||
return directoryString.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x04007BB2 RID: 31666
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BB2")]
|
||||
private readonly DirectoryString pseudonym;
|
||||
|
||||
// Token: 0x04007BB3 RID: 31667
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007BB3")]
|
||||
private readonly DirectoryString surname;
|
||||
|
||||
// Token: 0x04007BB4 RID: 31668
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007BB4")]
|
||||
private readonly Asn1Sequence givenName;
|
||||
}
|
||||
}
|
||||
+284
@@ -0,0 +1,284 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI
|
||||
{
|
||||
// Token: 0x02001E36 RID: 7734
|
||||
[Token(Token = "0x2001E36")]
|
||||
public class PersonalData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C410 RID: 50192 RVA: 0x002CB834 File Offset: 0x002C9A34
|
||||
[Token(Token = "0x600C410")]
|
||||
[Address(RVA = "0x2B3B180", Offset = "0x2B39F80", VA = "0x182B3B180")]
|
||||
public static PersonalData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C410)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.PersonalData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.PersonalData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C411 RID: 50193 RVA: 0x002CB888 File Offset: 0x002C9A88
|
||||
[Token(Token = "0x600C411")]
|
||||
[Address(RVA = "0x2B3B8A0", Offset = "0x2B3A6A0", VA = "0x182B3B8A0")]
|
||||
private PersonalData(Asn1Sequence seq)
|
||||
{
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
NameOrPseudonym nameOrPseudonym;
|
||||
this.nameOrPseudonym = nameOrPseudonym;
|
||||
if (nameOrPseudonym != 0)
|
||||
{
|
||||
Asn1TaggedObject instance = Asn1TaggedObject.GetInstance(nameOrPseudonym);
|
||||
int tagNo = instance.tagNo;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
ulong num;
|
||||
DirectoryString instance2 = DirectoryString.GetInstance(instance, num != 0UL);
|
||||
this.postalAddress = instance2;
|
||||
}
|
||||
int num2 = 0;
|
||||
string @string = DerPrintableString.GetInstance(instance, num2 != 0).GetString();
|
||||
this.gender = @string;
|
||||
}
|
||||
ulong num3;
|
||||
DirectoryString instance3 = DirectoryString.GetInstance(instance, num3 != 0UL);
|
||||
this.placeOfBirth = instance3;
|
||||
}
|
||||
int num4 = 0;
|
||||
DerGeneralizedTime instance4 = DerGeneralizedTime.GetInstance(instance, num4 != 0);
|
||||
this.dateOfBirth = instance4;
|
||||
}
|
||||
int num5 = 0;
|
||||
BigInteger value = DerInteger.GetInstance(instance, num5 != 0).Value;
|
||||
this.nameDistinguisher = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C412 RID: 50194 RVA: 0x002CB95C File Offset: 0x002C9B5C
|
||||
[Token(Token = "0x600C412")]
|
||||
[Address(RVA = "0x2B3B830", Offset = "0x2B3A630", VA = "0x182B3B830")]
|
||||
public PersonalData(NameOrPseudonym nameOrPseudonym, BigInteger nameDistinguisher, DerGeneralizedTime dateOfBirth, DirectoryString placeOfBirth, string gender, DirectoryString postalAddress)
|
||||
{
|
||||
this.gender = 0;
|
||||
this.postalAddress = 0;
|
||||
this.nameOrPseudonym = nameOrPseudonym;
|
||||
this.nameDistinguisher = nameDistinguisher;
|
||||
this.placeOfBirth = 0;
|
||||
this.dateOfBirth = dateOfBirth;
|
||||
}
|
||||
|
||||
// Token: 0x17001E61 RID: 7777
|
||||
// (get) Token: 0x0600C413 RID: 50195 RVA: 0x002CB99C File Offset: 0x002C9B9C
|
||||
[Token(Token = "0x17001E61")]
|
||||
public NameOrPseudonym NameOrPseudonym
|
||||
{
|
||||
[Token(Token = "0x600C413")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.nameOrPseudonym;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E62 RID: 7778
|
||||
// (get) Token: 0x0600C414 RID: 50196 RVA: 0x002CB9B0 File Offset: 0x002C9BB0
|
||||
[Token(Token = "0x17001E62")]
|
||||
public BigInteger NameDistinguisher
|
||||
{
|
||||
[Token(Token = "0x600C414")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.nameDistinguisher;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E63 RID: 7779
|
||||
// (get) Token: 0x0600C415 RID: 50197 RVA: 0x002CB9C4 File Offset: 0x002C9BC4
|
||||
[Token(Token = "0x17001E63")]
|
||||
public DerGeneralizedTime DateOfBirth
|
||||
{
|
||||
[Token(Token = "0x600C415")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.dateOfBirth;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E64 RID: 7780
|
||||
// (get) Token: 0x0600C416 RID: 50198 RVA: 0x002CB9D8 File Offset: 0x002C9BD8
|
||||
[Token(Token = "0x17001E64")]
|
||||
public DirectoryString PlaceOfBirth
|
||||
{
|
||||
[Token(Token = "0x600C416")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.placeOfBirth;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E65 RID: 7781
|
||||
// (get) Token: 0x0600C417 RID: 50199 RVA: 0x002CB9EC File Offset: 0x002C9BEC
|
||||
[Token(Token = "0x17001E65")]
|
||||
public string Gender
|
||||
{
|
||||
[Token(Token = "0x600C417")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.gender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E66 RID: 7782
|
||||
// (get) Token: 0x0600C418 RID: 50200 RVA: 0x002CBA00 File Offset: 0x002C9C00
|
||||
[Token(Token = "0x17001E66")]
|
||||
public DirectoryString PostalAddress
|
||||
{
|
||||
[Token(Token = "0x600C418")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.postalAddress;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C419 RID: 50201 RVA: 0x002CBA14 File Offset: 0x002C9C14
|
||||
[Token(Token = "0x600C419")]
|
||||
[Address(RVA = "0x2B3B380", Offset = "0x2B3A180", VA = "0x182B3B380", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
NameOrPseudonym nameOrPseudonym = this.nameOrPseudonym;
|
||||
if (nameOrPseudonym != 0)
|
||||
{
|
||||
}
|
||||
array[0] = nameOrPseudonym;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array);
|
||||
int num = 0;
|
||||
if (this.nameDistinguisher != num)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[0];
|
||||
DerInteger derInteger = new DerInteger(this.nameDistinguisher);
|
||||
int num2;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num2 != 0, num3, derInteger);
|
||||
num3 = 0;
|
||||
num2 = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.dateOfBirth != num)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerGeneralizedTime derGeneralizedTime = this.dateOfBirth;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num4 != 0, 1, derGeneralizedTime);
|
||||
num4 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
if (this.placeOfBirth != num)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
DirectoryString directoryString = this.placeOfBirth;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, directoryString);
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
if (this.gender != num)
|
||||
{
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
DerPrintableString derPrintableString = new DerPrintableString(this.gender, true);
|
||||
int num5;
|
||||
DerTaggedObject derTaggedObject4 = new DerTaggedObject(num5 != 0, 3, derPrintableString);
|
||||
num5 = 0;
|
||||
if (derTaggedObject4 != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = derTaggedObject4;
|
||||
asn1EncodableVector.Add(array5);
|
||||
}
|
||||
if (this.postalAddress != num)
|
||||
{
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
DirectoryString directoryString2 = this.postalAddress;
|
||||
DerTaggedObject derTaggedObject5 = new DerTaggedObject(true, 4, directoryString2);
|
||||
if (derTaggedObject5 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject5;
|
||||
asn1EncodableVector.Add(array6);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007BB5 RID: 31669
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BB5")]
|
||||
private readonly NameOrPseudonym nameOrPseudonym;
|
||||
|
||||
// Token: 0x04007BB6 RID: 31670
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007BB6")]
|
||||
private readonly BigInteger nameDistinguisher;
|
||||
|
||||
// Token: 0x04007BB7 RID: 31671
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007BB7")]
|
||||
private readonly DerGeneralizedTime dateOfBirth;
|
||||
|
||||
// Token: 0x04007BB8 RID: 31672
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007BB8")]
|
||||
private readonly DirectoryString placeOfBirth;
|
||||
|
||||
// Token: 0x04007BB9 RID: 31673
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007BB9")]
|
||||
private readonly string gender;
|
||||
|
||||
// Token: 0x04007BBA RID: 31674
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007BBA")]
|
||||
private readonly DirectoryString postalAddress;
|
||||
}
|
||||
}
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI
|
||||
{
|
||||
// Token: 0x02001E37 RID: 7735
|
||||
[Token(Token = "0x2001E37")]
|
||||
public sealed class SigIObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600C41A RID: 50202 RVA: 0x002CBB94 File Offset: 0x002C9D94
|
||||
[Token(Token = "0x600C41A")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
private SigIObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007BBB RID: 31675
|
||||
[Token(Token = "0x4007BBB")]
|
||||
public static readonly DerObjectIdentifier IdSigI = new DerObjectIdentifier("1.3.36.8");
|
||||
|
||||
// Token: 0x04007BBC RID: 31676
|
||||
[Token(Token = "0x4007BBC")]
|
||||
public static readonly DerObjectIdentifier IdSigIKP = new DerObjectIdentifier(SigIObjectIdentifiers.IdSigI + ".2");
|
||||
|
||||
// Token: 0x04007BBD RID: 31677
|
||||
[Token(Token = "0x4007BBD")]
|
||||
public static readonly DerObjectIdentifier IdSigICP = new DerObjectIdentifier(SigIObjectIdentifiers.IdSigI + ".1");
|
||||
|
||||
// Token: 0x04007BBE RID: 31678
|
||||
[Token(Token = "0x4007BBE")]
|
||||
public static readonly DerObjectIdentifier IdSigION = new DerObjectIdentifier(SigIObjectIdentifiers.IdSigI + ".4");
|
||||
|
||||
// Token: 0x04007BBF RID: 31679
|
||||
[Token(Token = "0x4007BBF")]
|
||||
public static readonly DerObjectIdentifier IdSigIKPDirectoryService = new DerObjectIdentifier(SigIObjectIdentifiers.IdSigIKP + ".1");
|
||||
|
||||
// Token: 0x04007BC0 RID: 31680
|
||||
[Token(Token = "0x4007BC0")]
|
||||
public static readonly DerObjectIdentifier IdSigIONPersonalData = new DerObjectIdentifier(SigIObjectIdentifiers.IdSigION + ".1");
|
||||
|
||||
// Token: 0x04007BC1 RID: 31681
|
||||
[Token(Token = "0x4007BC1")]
|
||||
public static readonly DerObjectIdentifier IdSigICPSigConform = new DerObjectIdentifier(SigIObjectIdentifiers.IdSigICP + ".1");
|
||||
}
|
||||
}
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E18 RID: 7704
|
||||
[Token(Token = "0x2001E18")]
|
||||
public class SubjectDirectoryAttributes : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C309 RID: 49929 RVA: 0x002C6DFC File Offset: 0x002C4FFC
|
||||
[Token(Token = "0x600C309")]
|
||||
[Address(RVA = "0x2B3F7D0", Offset = "0x2B3E5D0", VA = "0x182B3F7D0")]
|
||||
public static SubjectDirectoryAttributes GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C309)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectDirectoryAttributes BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectDirectoryAttributes::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C30A RID: 49930 RVA: 0x002C6E50 File Offset: 0x002C5050
|
||||
[Token(Token = "0x600C30A")]
|
||||
[Address(RVA = "0x2B3FCA0", Offset = "0x2B3EAA0", VA = "0x182B3FCA0")]
|
||||
private SubjectDirectoryAttributes(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.attributes = list;
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(num);
|
||||
IList list2 = this.attributes;
|
||||
AttributeX509 attributeX = AttributeX509.GetInstance(instance);
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
attributeX += attributeX;
|
||||
num++;
|
||||
num += 19;
|
||||
attributeX += attributeX;
|
||||
num += 2;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600C30B RID: 49931 RVA: 0x002C6EE8 File Offset: 0x002C50E8
|
||||
[Token(Token = "0x600C30B")]
|
||||
[Address(RVA = "0x2B3FF00", Offset = "0x2B3ED00", VA = "0x182B3FF00")]
|
||||
[Obsolete]
|
||||
public SubjectDirectoryAttributes(ArrayList attributes)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(attributes);
|
||||
this.attributes = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600C30C RID: 49932 RVA: 0x002C6F0C File Offset: 0x002C510C
|
||||
[Token(Token = "0x600C30C")]
|
||||
[Address(RVA = "0x2B3FF00", Offset = "0x2B3ED00", VA = "0x182B3FF00")]
|
||||
public SubjectDirectoryAttributes(IList attributes)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(attributes);
|
||||
this.attributes = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600C30D RID: 49933 RVA: 0x002C6F30 File Offset: 0x002C5130
|
||||
[Token(Token = "0x600C30D")]
|
||||
[Address(RVA = "0x2B3F9D0", Offset = "0x2B3E7D0", VA = "0x182B3F9D0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C30D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectDirectoryAttributes::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_70:
|
||||
stloc:DerSequence(var_10_76, newobj:DerSequence(DerSequence::.ctor, ldloc:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeX509[][exp:class BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable[]](var_1_0D)))
|
||||
}
|
||||
|
||||
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: 0x17001E2F RID: 7727
|
||||
// (get) Token: 0x0600C30E RID: 49934 RVA: 0x002C6FB4 File Offset: 0x002C51B4
|
||||
[Token(Token = "0x17001E2F")]
|
||||
public IEnumerable Attributes
|
||||
{
|
||||
[Token(Token = "0x600C30E")]
|
||||
[Address(RVA = "0x2B3FF70", Offset = "0x2B3ED70", VA = "0x182B3FF70")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C30E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectDirectoryAttributes::get_Attributes()
|
||||
|
||||
---> 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](SubjectDirectoryAttributes::attributes, ldloc:SubjectDirectoryAttributes(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: 0x04007AF2 RID: 31474
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AF2")]
|
||||
private readonly IList attributes;
|
||||
}
|
||||
}
|
||||
+186
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Digests;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E19 RID: 7705
|
||||
[Token(Token = "0x2001E19")]
|
||||
public class SubjectKeyIdentifier : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C30F RID: 49935 RVA: 0x002C6FCC File Offset: 0x002C51CC
|
||||
[Token(Token = "0x600C30F")]
|
||||
[Address(RVA = "0x2B40320", Offset = "0x2B3F120", VA = "0x182B40320")]
|
||||
public static SubjectKeyIdentifier GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return SubjectKeyIdentifier.GetInstance(Asn1OctetString.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C310 RID: 49936 RVA: 0x002C6FE8 File Offset: 0x002C51E8
|
||||
[Token(Token = "0x600C310")]
|
||||
[Address(RVA = "0x2B40340", Offset = "0x2B3F140", VA = "0x182B40340")]
|
||||
public static SubjectKeyIdentifier GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C310)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectKeyIdentifier BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectKeyIdentifier::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_42:
|
||||
stloc:string(var_10_48, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_5B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid SubjectKeyIdentifier: "), ldloc:string(var_10_48))))
|
||||
}
|
||||
|
||||
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: 0x0600C311 RID: 49937 RVA: 0x002C7054 File Offset: 0x002C5254
|
||||
[Token(Token = "0x600C311")]
|
||||
[Address(RVA = "0x2B406A0", Offset = "0x2B3F4A0", VA = "0x182B406A0")]
|
||||
public SubjectKeyIdentifier(byte[] keyID)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C311)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectKeyIdentifier::.ctor(System.Byte[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("keyID")))
|
||||
}
|
||||
|
||||
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: 0x0600C312 RID: 49938 RVA: 0x002C7080 File Offset: 0x002C5280
|
||||
[Token(Token = "0x600C312")]
|
||||
[Address(RVA = "0x2B40720", Offset = "0x2B3F520", VA = "0x182B40720")]
|
||||
public SubjectKeyIdentifier(Asn1OctetString keyID)
|
||||
{
|
||||
Stream octetStream = keyID.GetOctetStream();
|
||||
this.keyIdentifier = octetStream;
|
||||
}
|
||||
|
||||
// Token: 0x0600C313 RID: 49939 RVA: 0x002C70A8 File Offset: 0x002C52A8
|
||||
[Token(Token = "0x600C313")]
|
||||
[Address(RVA = "0x2B40770", Offset = "0x2B3F570", VA = "0x182B40770")]
|
||||
public SubjectKeyIdentifier(SubjectPublicKeyInfo spki)
|
||||
{
|
||||
byte[] digest = SubjectKeyIdentifier.GetDigest(spki);
|
||||
this.keyIdentifier = digest;
|
||||
}
|
||||
|
||||
// Token: 0x0600C314 RID: 49940 RVA: 0x002C70CC File Offset: 0x002C52CC
|
||||
[Token(Token = "0x600C314")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
public byte[] GetKeyIdentifier()
|
||||
{
|
||||
return this.keyIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600C315 RID: 49941 RVA: 0x002C70E0 File Offset: 0x002C52E0
|
||||
[Token(Token = "0x600C315")]
|
||||
[Address(RVA = "0x2B40640", Offset = "0x2B3F440", VA = "0x182B40640", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C315)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectKeyIdentifier::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerOctetString(var_0_0B, newobj:DerOctetString(DerOctetString::.ctor, ldfld:uint8[](SubjectKeyIdentifier::keyIdentifier, ldloc:SubjectKeyIdentifier(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: 0x0600C316 RID: 49942 RVA: 0x002C70F8 File Offset: 0x002C52F8
|
||||
[Token(Token = "0x600C316")]
|
||||
[Address(RVA = "0x2B3FFD0", Offset = "0x2B3EDD0", VA = "0x182B3FFD0")]
|
||||
public static SubjectKeyIdentifier CreateSha1KeyIdentifier(SubjectPublicKeyInfo keyInfo)
|
||||
{
|
||||
byte[] digest = SubjectKeyIdentifier.GetDigest(keyInfo);
|
||||
SubjectKeyIdentifier subjectKeyIdentifier;
|
||||
subjectKeyIdentifier.keyIdentifier = digest;
|
||||
return subjectKeyIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600C317 RID: 49943 RVA: 0x002C7114 File Offset: 0x002C5314
|
||||
[Token(Token = "0x600C317")]
|
||||
[Address(RVA = "0x2B40030", Offset = "0x2B3EE30", VA = "0x182B40030")]
|
||||
public static SubjectKeyIdentifier CreateTruncatedSha1KeyIdentifier(SubjectPublicKeyInfo keyInfo)
|
||||
{
|
||||
byte[] digest = SubjectKeyIdentifier.GetDigest(keyInfo);
|
||||
byte[] array = new byte[8];
|
||||
int length = array.Length;
|
||||
int num = 0;
|
||||
int length2 = digest.Length;
|
||||
Array.Copy(digest, length2, array, num, length);
|
||||
byte b = array[0];
|
||||
array[0] = b;
|
||||
array[0] = b;
|
||||
SubjectKeyIdentifier subjectKeyIdentifier;
|
||||
subjectKeyIdentifier.keyIdentifier = array;
|
||||
return subjectKeyIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600C318 RID: 49944 RVA: 0x002C7178 File Offset: 0x002C5378
|
||||
[Token(Token = "0x600C318")]
|
||||
[Address(RVA = "0x2B40140", Offset = "0x2B3EF40", VA = "0x182B40140")]
|
||||
private static byte[] GetDigest(SubjectPublicKeyInfo spki)
|
||||
{
|
||||
Sha1Digest sha1Digest = new Sha1Digest();
|
||||
byte[] array = new byte[sha1Digest];
|
||||
DerBitString keyData = spki.keyData;
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
int num2 = 0;
|
||||
if (num < num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x04007AF3 RID: 31475
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AF3")]
|
||||
private readonly byte[] keyIdentifier;
|
||||
}
|
||||
}
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E1A RID: 7706
|
||||
[Token(Token = "0x2001E1A")]
|
||||
public class SubjectPublicKeyInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C319 RID: 49945 RVA: 0x002C71C4 File Offset: 0x002C53C4
|
||||
[Token(Token = "0x600C319")]
|
||||
[Address(RVA = "0x2B407A0", Offset = "0x2B3F5A0", VA = "0x182B407A0")]
|
||||
public static SubjectPublicKeyInfo GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return SubjectPublicKeyInfo.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C31A RID: 49946 RVA: 0x002C71E0 File Offset: 0x002C53E0
|
||||
[Token(Token = "0x600C31A")]
|
||||
[Address(RVA = "0x2B407C0", Offset = "0x2B3F5C0", VA = "0x182B407C0")]
|
||||
public static SubjectPublicKeyInfo GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
if (obj == 0)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
||||
Asn1SequenceParser parser = instance.Parser;
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
subjectPublicKeyInfo.algID = algorithmIdentifier;
|
||||
parser2 = instance.Parser;
|
||||
DerBitString derBitString;
|
||||
subjectPublicKeyInfo.keyData = derBitString;
|
||||
return subjectPublicKeyInfo;
|
||||
}
|
||||
if (parser2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C31B RID: 49947 RVA: 0x002C7248 File Offset: 0x002C5448
|
||||
[Token(Token = "0x600C31B")]
|
||||
[Address(RVA = "0x2B40C80", Offset = "0x2B3FA80", VA = "0x182B40C80")]
|
||||
public SubjectPublicKeyInfo(AlgorithmIdentifier algID, Asn1Encodable publicKey)
|
||||
{
|
||||
DerBitString derBitString = new DerBitString(publicKey);
|
||||
this.keyData = derBitString;
|
||||
this.algID = algID;
|
||||
}
|
||||
|
||||
// Token: 0x0600C31C RID: 49948 RVA: 0x002C7270 File Offset: 0x002C5470
|
||||
[Token(Token = "0x600C31C")]
|
||||
[Address(RVA = "0x2B40D00", Offset = "0x2B3FB00", VA = "0x182B40D00")]
|
||||
public SubjectPublicKeyInfo(AlgorithmIdentifier algID, byte[] publicKey)
|
||||
{
|
||||
DerBitString derBitString = new DerBitString(publicKey);
|
||||
this.keyData = derBitString;
|
||||
this.algID = algID;
|
||||
}
|
||||
|
||||
// Token: 0x0600C31D RID: 49949 RVA: 0x002C7298 File Offset: 0x002C5498
|
||||
[Token(Token = "0x600C31D")]
|
||||
[Address(RVA = "0x2B40B30", Offset = "0x2B3F930", VA = "0x182B40B30")]
|
||||
private SubjectPublicKeyInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.algID = algorithmIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.keyData = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x17001E30 RID: 7728
|
||||
// (get) Token: 0x0600C31E RID: 49950 RVA: 0x002C72D0 File Offset: 0x002C54D0
|
||||
[Token(Token = "0x17001E30")]
|
||||
public AlgorithmIdentifier AlgorithmID
|
||||
{
|
||||
[Token(Token = "0x600C31E")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.algID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C31F RID: 49951 RVA: 0x002C72E4 File Offset: 0x002C54E4
|
||||
[Token(Token = "0x600C31F")]
|
||||
[Address(RVA = "0x2B409E0", Offset = "0x2B3F7E0", VA = "0x182B409E0")]
|
||||
public Asn1Object GetPublicKey()
|
||||
{
|
||||
string @string = this.keyData.GetString();
|
||||
Asn1Object asn1Object;
|
||||
return asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x17001E31 RID: 7729
|
||||
// (get) Token: 0x0600C320 RID: 49952 RVA: 0x002C7304 File Offset: 0x002C5504
|
||||
[Token(Token = "0x17001E31")]
|
||||
public DerBitString PublicKeyData
|
||||
{
|
||||
[Token(Token = "0x600C320")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.keyData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C321 RID: 49953 RVA: 0x002C7318 File Offset: 0x002C5518
|
||||
[Token(Token = "0x600C321")]
|
||||
[Address(RVA = "0x2B40A20", Offset = "0x2B3F820", VA = "0x182B40A20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.algID;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.keyData;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derBitString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007AF4 RID: 31476
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AF4")]
|
||||
private readonly AlgorithmIdentifier algID;
|
||||
|
||||
// Token: 0x04007AF5 RID: 31477
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AF5")]
|
||||
private readonly DerBitString keyData;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E20 RID: 7712
|
||||
[Token(Token = "0x2001E20")]
|
||||
public class Target : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C34A RID: 49994 RVA: 0x002C79D4 File Offset: 0x002C5BD4
|
||||
[Token(Token = "0x600C34A")]
|
||||
[Address(RVA = "0x2B41200", Offset = "0x2B40000", VA = "0x182B41200")]
|
||||
public static Target GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C34A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Target BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Target::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_28)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C34B RID: 49995 RVA: 0x002C7A24 File Offset: 0x002C5C24
|
||||
[Token(Token = "0x600C34B")]
|
||||
[Address(RVA = "0x2B41490", Offset = "0x2B40290", VA = "0x182B41490")]
|
||||
private Target(Asn1TaggedObject tagObj)
|
||||
{
|
||||
int tagNo = tagObj.tagNo;
|
||||
if (tagNo == 0)
|
||||
{
|
||||
GeneralName instance = GeneralName.GetInstance(tagObj, true);
|
||||
this.targetName = instance;
|
||||
return;
|
||||
}
|
||||
GeneralName instance2 = GeneralName.GetInstance(tagObj, tagNo != 0);
|
||||
this.targetGroup = instance2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C34C RID: 49996 RVA: 0x002C7A68 File Offset: 0x002C5C68
|
||||
[Token(Token = "0x600C34C")]
|
||||
[Address(RVA = "0x2B41580", Offset = "0x2B40380", VA = "0x182B41580")]
|
||||
public Target(Target.Choice type, GeneralName name)
|
||||
{
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject((int)type, name);
|
||||
}
|
||||
|
||||
// Token: 0x17001E49 RID: 7753
|
||||
// (get) Token: 0x0600C34D RID: 49997 RVA: 0x002C7A80 File Offset: 0x002C5C80
|
||||
[Token(Token = "0x17001E49")]
|
||||
public virtual GeneralName TargetGroup
|
||||
{
|
||||
[Token(Token = "0x600C34D")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.targetGroup;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E4A RID: 7754
|
||||
// (get) Token: 0x0600C34E RID: 49998 RVA: 0x002C7A94 File Offset: 0x002C5C94
|
||||
[Token(Token = "0x17001E4A")]
|
||||
public virtual GeneralName TargetName
|
||||
{
|
||||
[Token(Token = "0x600C34E")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.targetName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C34F RID: 49999 RVA: 0x002C7AA8 File Offset: 0x002C5CA8
|
||||
[Token(Token = "0x600C34F")]
|
||||
[Address(RVA = "0x2B413F0", Offset = "0x2B401F0", VA = "0x182B413F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C34F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Target::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_23:
|
||||
stloc:DerTaggedObject(var_4_2C, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldc.i4:bool(1), ldloc:int32(var_6), ldloc:GeneralName[exp:Asn1Encodable](var_0_06)))
|
||||
stloc:int32(var_6, 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.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: 0x04007B10 RID: 31504
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B10")]
|
||||
private readonly GeneralName targetName;
|
||||
|
||||
// Token: 0x04007B11 RID: 31505
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B11")]
|
||||
private readonly GeneralName targetGroup;
|
||||
|
||||
// Token: 0x02001E21 RID: 7713
|
||||
[Token(Token = "0x2001E21")]
|
||||
public enum Choice
|
||||
{
|
||||
// Token: 0x04007B13 RID: 31507
|
||||
[Token(Token = "0x4007B13")]
|
||||
Name,
|
||||
// Token: 0x04007B14 RID: 31508
|
||||
[Token(Token = "0x4007B14")]
|
||||
Group
|
||||
}
|
||||
}
|
||||
}
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E22 RID: 7714
|
||||
[Token(Token = "0x2001E22")]
|
||||
public class TargetInformation : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C350 RID: 50000 RVA: 0x002C7AE8 File Offset: 0x002C5CE8
|
||||
[Token(Token = "0x600C350")]
|
||||
[Address(RVA = "0x2B40D80", Offset = "0x2B3FB80", VA = "0x182B40D80")]
|
||||
public static TargetInformation GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C350)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TargetInformation BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TargetInformation::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2F)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C351 RID: 50001 RVA: 0x002C7B40 File Offset: 0x002C5D40
|
||||
[Token(Token = "0x600C351")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private TargetInformation(Asn1Sequence targets)
|
||||
{
|
||||
this.targets = targets;
|
||||
}
|
||||
|
||||
// Token: 0x0600C352 RID: 50002 RVA: 0x002C7B5C File Offset: 0x002C5D5C
|
||||
[Token(Token = "0x600C352")]
|
||||
[Address(RVA = "0x2B40F70", Offset = "0x2B3FD70", VA = "0x182B40F70", Slot = "6")]
|
||||
public virtual Targets[] GetTargetsObjects()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.targets;
|
||||
Asn1Encodable asn1Encodable;
|
||||
Targets[] array = new Targets[asn1Encodable];
|
||||
int num = 0;
|
||||
Asn1Sequence asn1Sequence2 = this.targets;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num < asn1Encodable2)
|
||||
{
|
||||
Asn1SequenceParser parser = this.targets.Parser;
|
||||
Targets targets;
|
||||
if (targets != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = targets;
|
||||
Asn1Sequence asn1Sequence3 = this.targets;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C353 RID: 50003 RVA: 0x002C7BB4 File Offset: 0x002C5DB4
|
||||
[Token(Token = "0x600C353")]
|
||||
[Address(RVA = "0x2B410A0", Offset = "0x2B3FEA0", VA = "0x182B410A0")]
|
||||
public TargetInformation(Targets targets)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(targets);
|
||||
this.targets = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C354 RID: 50004 RVA: 0x002C7BD8 File Offset: 0x002C5DD8
|
||||
[Token(Token = "0x600C354")]
|
||||
[Address(RVA = "0x2B41110", Offset = "0x2B3FF10", VA = "0x182B41110")]
|
||||
public TargetInformation(Target[] targets)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(targets);
|
||||
Targets targets2;
|
||||
targets2.targets = derSequence;
|
||||
base..ctor();
|
||||
DerSequence derSequence2 = new DerSequence(targets2);
|
||||
this.targets = derSequence2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C355 RID: 50005 RVA: 0x002C7C08 File Offset: 0x002C5E08
|
||||
[Token(Token = "0x600C355")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C355)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TargetInformation::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(TargetInformation::targets, ldloc:TargetInformation(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: 0x04007B15 RID: 31509
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B15")]
|
||||
private readonly Asn1Sequence targets;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E23 RID: 7715
|
||||
[Token(Token = "0x2001E23")]
|
||||
public class Targets : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C356 RID: 50006 RVA: 0x002C7C1C File Offset: 0x002C5E1C
|
||||
[Token(Token = "0x600C356")]
|
||||
[Address(RVA = "0x2B41600", Offset = "0x2B40400", VA = "0x182B41600")]
|
||||
public static Targets GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C356)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Targets BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Targets::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2F)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C357 RID: 50007 RVA: 0x002C7C74 File Offset: 0x002C5E74
|
||||
[Token(Token = "0x600C357")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
private Targets(Asn1Sequence targets)
|
||||
{
|
||||
this.targets = targets;
|
||||
}
|
||||
|
||||
// Token: 0x0600C358 RID: 50008 RVA: 0x002C7C90 File Offset: 0x002C5E90
|
||||
[Token(Token = "0x600C358")]
|
||||
[Address(RVA = "0x2B41920", Offset = "0x2B40720", VA = "0x182B41920")]
|
||||
public Targets(Target[] targets)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(targets);
|
||||
this.targets = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C359 RID: 50009 RVA: 0x002C7CB4 File Offset: 0x002C5EB4
|
||||
[Token(Token = "0x600C359")]
|
||||
[Address(RVA = "0x2B417F0", Offset = "0x2B405F0", VA = "0x182B417F0", Slot = "6")]
|
||||
public virtual Target[] GetTargets()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.targets;
|
||||
Asn1Encodable asn1Encodable;
|
||||
Target[] array = new Target[asn1Encodable];
|
||||
int num = 0;
|
||||
Asn1Sequence asn1Sequence2 = this.targets;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num < asn1Encodable2)
|
||||
{
|
||||
Asn1SequenceParser parser = this.targets.Parser;
|
||||
Target target;
|
||||
if (target != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = target;
|
||||
Asn1Sequence asn1Sequence3 = this.targets;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C35A RID: 50010 RVA: 0x002C7D0C File Offset: 0x002C5F0C
|
||||
[Token(Token = "0x600C35A")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C35A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Targets::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(Targets::targets, ldloc:Targets(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: 0x04007B16 RID: 31510
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B16")]
|
||||
private readonly Asn1Sequence targets;
|
||||
}
|
||||
}
|
||||
+378
@@ -0,0 +1,378 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E1C RID: 7708
|
||||
[Token(Token = "0x2001E1C")]
|
||||
public class TbsCertificateList : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C327 RID: 49959 RVA: 0x002C7420 File Offset: 0x002C5620
|
||||
[Token(Token = "0x600C327")]
|
||||
[Address(RVA = "0x2B41B40", Offset = "0x2B40940", VA = "0x182B41B40")]
|
||||
public static TbsCertificateList GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return TbsCertificateList.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C328 RID: 49960 RVA: 0x002C743C File Offset: 0x002C563C
|
||||
[Token(Token = "0x600C328")]
|
||||
[Address(RVA = "0x2B41990", Offset = "0x2B40790", VA = "0x182B41990")]
|
||||
public static TbsCertificateList GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C328)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateList BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateList::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1B:
|
||||
stloc:string(var_5_21, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_6_39, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_5_21)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C329 RID: 49961 RVA: 0x002C7484 File Offset: 0x002C5684
|
||||
[Token(Token = "0x600C329")]
|
||||
[Address(RVA = "0x2B41D50", Offset = "0x2B40B50", VA = "0x182B41D50")]
|
||||
internal TbsCertificateList(Asn1Sequence seq)
|
||||
{
|
||||
this.seq = seq;
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser != 0 && parser != 0)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
}
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.signature = algorithmIdentifier;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
X509Name x509Name;
|
||||
this.issuer = x509Name;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
Time time;
|
||||
this.thisUpdate = time;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (derInteger < asn1Encodable && (seq.Parser != 0 || seq.Parser != 0 || seq.Parser != 0))
|
||||
{
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
Time time2;
|
||||
this.nextUpdate = time2;
|
||||
}
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (derInteger < asn1Encodable2 && seq.Parser == 0)
|
||||
{
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.revokedCertificates = asn1Sequence;
|
||||
}
|
||||
Asn1Encodable asn1Encodable3;
|
||||
if (derInteger < asn1Encodable3 && seq.Parser != 0)
|
||||
{
|
||||
Asn1SequenceParser parser8 = seq.Parser;
|
||||
X509Extensions x509Extensions;
|
||||
this.crlExtensions = x509Extensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E35 RID: 7733
|
||||
// (get) Token: 0x0600C32A RID: 49962 RVA: 0x002C7570 File Offset: 0x002C5770
|
||||
[Token(Token = "0x17001E35")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x600C32A")]
|
||||
[Address(RVA = "0x2B42140", Offset = "0x2B40F40", VA = "0x182B42140")]
|
||||
get
|
||||
{
|
||||
int intValue = this.version.Value.IntValue;
|
||||
return intValue + 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E36 RID: 7734
|
||||
// (get) Token: 0x0600C32B RID: 49963 RVA: 0x002C759C File Offset: 0x002C579C
|
||||
[Token(Token = "0x17001E36")]
|
||||
public DerInteger VersionNumber
|
||||
{
|
||||
[Token(Token = "0x600C32B")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E37 RID: 7735
|
||||
// (get) Token: 0x0600C32C RID: 49964 RVA: 0x002C75B0 File Offset: 0x002C57B0
|
||||
[Token(Token = "0x17001E37")]
|
||||
public AlgorithmIdentifier Signature
|
||||
{
|
||||
[Token(Token = "0x600C32C")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.signature;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E38 RID: 7736
|
||||
// (get) Token: 0x0600C32D RID: 49965 RVA: 0x002C75C4 File Offset: 0x002C57C4
|
||||
[Token(Token = "0x17001E38")]
|
||||
public X509Name Issuer
|
||||
{
|
||||
[Token(Token = "0x600C32D")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E39 RID: 7737
|
||||
// (get) Token: 0x0600C32E RID: 49966 RVA: 0x002C75D8 File Offset: 0x002C57D8
|
||||
[Token(Token = "0x17001E39")]
|
||||
public Time ThisUpdate
|
||||
{
|
||||
[Token(Token = "0x600C32E")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.thisUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E3A RID: 7738
|
||||
// (get) Token: 0x0600C32F RID: 49967 RVA: 0x002C75EC File Offset: 0x002C57EC
|
||||
[Token(Token = "0x17001E3A")]
|
||||
public Time NextUpdate
|
||||
{
|
||||
[Token(Token = "0x600C32F")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.nextUpdate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C330 RID: 49968 RVA: 0x002C7600 File Offset: 0x002C5800
|
||||
[Token(Token = "0x600C330")]
|
||||
[Address(RVA = "0x2B41C00", Offset = "0x2B40A00", VA = "0x182B41C00")]
|
||||
public CrlEntry[] GetRevokedCertificates()
|
||||
{
|
||||
if (this.revokedCertificates != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CrlEntry[] array = new CrlEntry[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.revokedCertificates.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
CrlEntry crlEntry = new CrlEntry(asn1Sequence);
|
||||
if (crlEntry != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = crlEntry;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C331 RID: 49969 RVA: 0x002C7658 File Offset: 0x002C5858
|
||||
[Token(Token = "0x600C331")]
|
||||
[Address(RVA = "0x2B41B60", Offset = "0x2B40960", VA = "0x182B41B60")]
|
||||
public IEnumerable GetRevokedCertificateEnumeration()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C331)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateList::GetRevokedCertificateEnumeration()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stfld:IEnumerable(RevokedCertificatesEnumeration::en, ldloc:RevokedCertificatesEnumeration(var_1), ldloc:Asn1Sequence[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: 0x17001E3B RID: 7739
|
||||
// (get) Token: 0x0600C332 RID: 49970 RVA: 0x002C7678 File Offset: 0x002C5878
|
||||
[Token(Token = "0x17001E3B")]
|
||||
public X509Extensions Extensions
|
||||
{
|
||||
[Token(Token = "0x600C332")]
|
||||
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
|
||||
get
|
||||
{
|
||||
return this.crlExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C333 RID: 49971 RVA: 0x002C768C File Offset: 0x002C588C
|
||||
[Token(Token = "0x600C333")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C333)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateList::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(TbsCertificateList::seq, ldloc:TbsCertificateList(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: 0x04007AFA RID: 31482
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AFA")]
|
||||
internal Asn1Sequence seq;
|
||||
|
||||
// Token: 0x04007AFB RID: 31483
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AFB")]
|
||||
internal DerInteger version;
|
||||
|
||||
// Token: 0x04007AFC RID: 31484
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AFC")]
|
||||
internal AlgorithmIdentifier signature;
|
||||
|
||||
// Token: 0x04007AFD RID: 31485
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007AFD")]
|
||||
internal X509Name issuer;
|
||||
|
||||
// Token: 0x04007AFE RID: 31486
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007AFE")]
|
||||
internal Time thisUpdate;
|
||||
|
||||
// Token: 0x04007AFF RID: 31487
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007AFF")]
|
||||
internal Time nextUpdate;
|
||||
|
||||
// Token: 0x04007B00 RID: 31488
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007B00")]
|
||||
internal Asn1Sequence revokedCertificates;
|
||||
|
||||
// Token: 0x04007B01 RID: 31489
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007B01")]
|
||||
internal X509Extensions crlExtensions;
|
||||
|
||||
// Token: 0x02001E1D RID: 7709
|
||||
[Token(Token = "0x2001E1D")]
|
||||
private class RevokedCertificatesEnumeration : IEnumerable
|
||||
{
|
||||
// Token: 0x0600C334 RID: 49972 RVA: 0x002C76A0 File Offset: 0x002C58A0
|
||||
[Token(Token = "0x600C334")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
internal RevokedCertificatesEnumeration(IEnumerable en)
|
||||
{
|
||||
this.en = en;
|
||||
}
|
||||
|
||||
// Token: 0x0600C335 RID: 49973 RVA: 0x002C76BC File Offset: 0x002C58BC
|
||||
[Token(Token = "0x600C335")]
|
||||
[Address(RVA = "0x2B3D850", Offset = "0x2B3C650", VA = "0x182B3D850", Slot = "4")]
|
||||
public IEnumerator GetEnumerator()
|
||||
{
|
||||
IEnumerable enumerable = this.en;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B02 RID: 31490
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B02")]
|
||||
private readonly IEnumerable en;
|
||||
|
||||
// Token: 0x02001E1E RID: 7710
|
||||
[Token(Token = "0x2001E1E")]
|
||||
private class RevokedCertificatesEnumerator : IEnumerator
|
||||
{
|
||||
// Token: 0x0600C336 RID: 49974 RVA: 0x000396E2 File Offset: 0x000378E2
|
||||
[Token(Token = "0x600C336")]
|
||||
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
||||
internal RevokedCertificatesEnumerator(IEnumerator e)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C337 RID: 49975 RVA: 0x002C76D8 File Offset: 0x002C58D8
|
||||
[Token(Token = "0x600C337")]
|
||||
[Address(RVA = "0x2B3D8D0", Offset = "0x2B3C6D0", VA = "0x182B3D8D0", Slot = "4")]
|
||||
public bool MoveNext()
|
||||
{
|
||||
return default(bool);
|
||||
}
|
||||
|
||||
// Token: 0x0600C338 RID: 49976 RVA: 0x000396E2 File Offset: 0x000378E2
|
||||
[Token(Token = "0x600C338")]
|
||||
[Address(RVA = "0x2B3D920", Offset = "0x2B3C720", VA = "0x182B3D920", Slot = "6")]
|
||||
public void Reset()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17001E3C RID: 7740
|
||||
// (get) Token: 0x0600C339 RID: 49977 RVA: 0x000624CE File Offset: 0x000606CE
|
||||
[Token(Token = "0x17001E3C")]
|
||||
public object Current
|
||||
{
|
||||
[Token(Token = "0x600C339")]
|
||||
[Address(RVA = "0x2B3D970", Offset = "0x2B3C770", VA = "0x182B3D970", Slot = "5")]
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007B03 RID: 31491
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B03")]
|
||||
private readonly IEnumerator e;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+371
@@ -0,0 +1,371 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E1F RID: 7711
|
||||
[Token(Token = "0x2001E1F")]
|
||||
public class TbsCertificateStructure : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C33A RID: 49978 RVA: 0x002C76F0 File Offset: 0x002C58F0
|
||||
[Token(Token = "0x600C33A")]
|
||||
[Address(RVA = "0x2B42170", Offset = "0x2B40F70", VA = "0x182B42170")]
|
||||
public static TbsCertificateStructure GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return TbsCertificateStructure.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C33B RID: 49979 RVA: 0x002C770C File Offset: 0x002C590C
|
||||
[Token(Token = "0x600C33B")]
|
||||
[Address(RVA = "0x2B42190", Offset = "0x2B40F90", VA = "0x182B42190")]
|
||||
public static TbsCertificateStructure GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new TbsCertificateStructure(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C33C RID: 49980 RVA: 0x002C7740 File Offset: 0x002C5940
|
||||
[Token(Token = "0x600C33C")]
|
||||
[Address(RVA = "0x2B42290", Offset = "0x2B41090", VA = "0x182B42290")]
|
||||
internal TbsCertificateStructure(Asn1Sequence seq)
|
||||
{
|
||||
ulong num2;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
this.seq = seq;
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser != 0 && parser != 0)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 == 0)
|
||||
{
|
||||
}
|
||||
if (parser2 == 0)
|
||||
{
|
||||
goto IL_147;
|
||||
}
|
||||
}
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
this.version = derInteger;
|
||||
BigInteger value = derInteger.Value;
|
||||
BigInteger value2 = this.version.Value;
|
||||
BigInteger value3 = this.version.Value;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
this.serialNumber = derInteger2;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.signature = algorithmIdentifier;
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
X509Name x509Name;
|
||||
this.issuer = x509Name;
|
||||
Asn1SequenceParser parser6 = seq.Parser;
|
||||
if (parser6 != 0)
|
||||
{
|
||||
Time time;
|
||||
this.startDate = time;
|
||||
Time time2;
|
||||
this.endDate = time2;
|
||||
Asn1SequenceParser parser7 = seq.Parser;
|
||||
X509Name x509Name2;
|
||||
this.subject = x509Name2;
|
||||
Asn1SequenceParser parser8 = seq.Parser;
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
this.subjectPublicKeyInfo = subjectPublicKeyInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
num2 += asn1Encodable;
|
||||
ulong num3;
|
||||
if (num3 == (ulong)0L)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (num2 > (ulong)0L)
|
||||
{
|
||||
Asn1SequenceParser parser9 = seq.Parser;
|
||||
if (parser9 != 0)
|
||||
{
|
||||
if (parser9 != 0)
|
||||
{
|
||||
ulong num4;
|
||||
if (parser9 != (ulong)1L || num4 != (ulong)0L)
|
||||
{
|
||||
goto IL_153;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
X509Extensions instance = X509Extensions.GetInstance(asn1Sequence);
|
||||
this.extensions = instance;
|
||||
}
|
||||
DerBitString derBitString;
|
||||
this.subjectUniqueID = derBitString;
|
||||
}
|
||||
DerBitString derBitString2;
|
||||
this.issuerUniqueID = derBitString2;
|
||||
}
|
||||
return;
|
||||
IL_147:
|
||||
ArgumentException ex = new ArgumentException("version number not recognised");
|
||||
IL_153:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001E3D RID: 7741
|
||||
// (get) Token: 0x0600C33D RID: 49981 RVA: 0x002C78B8 File Offset: 0x002C5AB8
|
||||
[Token(Token = "0x17001E3D")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x600C33D")]
|
||||
[Address(RVA = "0x2B42140", Offset = "0x2B40F40", VA = "0x182B42140")]
|
||||
get
|
||||
{
|
||||
int intValue = this.version.Value.IntValue;
|
||||
return intValue + 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E3E RID: 7742
|
||||
// (get) Token: 0x0600C33E RID: 49982 RVA: 0x002C78E4 File Offset: 0x002C5AE4
|
||||
[Token(Token = "0x17001E3E")]
|
||||
public DerInteger VersionNumber
|
||||
{
|
||||
[Token(Token = "0x600C33E")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E3F RID: 7743
|
||||
// (get) Token: 0x0600C33F RID: 49983 RVA: 0x002C78F8 File Offset: 0x002C5AF8
|
||||
[Token(Token = "0x17001E3F")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C33F")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E40 RID: 7744
|
||||
// (get) Token: 0x0600C340 RID: 49984 RVA: 0x002C790C File Offset: 0x002C5B0C
|
||||
[Token(Token = "0x17001E40")]
|
||||
public AlgorithmIdentifier Signature
|
||||
{
|
||||
[Token(Token = "0x600C340")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.signature;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E41 RID: 7745
|
||||
// (get) Token: 0x0600C341 RID: 49985 RVA: 0x002C7920 File Offset: 0x002C5B20
|
||||
[Token(Token = "0x17001E41")]
|
||||
public X509Name Issuer
|
||||
{
|
||||
[Token(Token = "0x600C341")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E42 RID: 7746
|
||||
// (get) Token: 0x0600C342 RID: 49986 RVA: 0x002C7934 File Offset: 0x002C5B34
|
||||
[Token(Token = "0x17001E42")]
|
||||
public Time StartDate
|
||||
{
|
||||
[Token(Token = "0x600C342")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.startDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E43 RID: 7747
|
||||
// (get) Token: 0x0600C343 RID: 49987 RVA: 0x002C7948 File Offset: 0x002C5B48
|
||||
[Token(Token = "0x17001E43")]
|
||||
public Time EndDate
|
||||
{
|
||||
[Token(Token = "0x600C343")]
|
||||
[Address(RVA = "0x408890", Offset = "0x407690", VA = "0x180408890")]
|
||||
get
|
||||
{
|
||||
return this.endDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E44 RID: 7748
|
||||
// (get) Token: 0x0600C344 RID: 49988 RVA: 0x002C795C File Offset: 0x002C5B5C
|
||||
[Token(Token = "0x17001E44")]
|
||||
public X509Name Subject
|
||||
{
|
||||
[Token(Token = "0x600C344")]
|
||||
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
|
||||
get
|
||||
{
|
||||
return this.subject;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E45 RID: 7749
|
||||
// (get) Token: 0x0600C345 RID: 49989 RVA: 0x002C7970 File Offset: 0x002C5B70
|
||||
[Token(Token = "0x17001E45")]
|
||||
public SubjectPublicKeyInfo SubjectPublicKeyInfo
|
||||
{
|
||||
[Token(Token = "0x600C345")]
|
||||
[Address(RVA = "0x415290", Offset = "0x414090", VA = "0x180415290")]
|
||||
get
|
||||
{
|
||||
return this.subjectPublicKeyInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E46 RID: 7750
|
||||
// (get) Token: 0x0600C346 RID: 49990 RVA: 0x002C7984 File Offset: 0x002C5B84
|
||||
[Token(Token = "0x17001E46")]
|
||||
public DerBitString IssuerUniqueID
|
||||
{
|
||||
[Token(Token = "0x600C346")]
|
||||
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40")]
|
||||
get
|
||||
{
|
||||
return this.issuerUniqueID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E47 RID: 7751
|
||||
// (get) Token: 0x0600C347 RID: 49991 RVA: 0x002C7998 File Offset: 0x002C5B98
|
||||
[Token(Token = "0x17001E47")]
|
||||
public DerBitString SubjectUniqueID
|
||||
{
|
||||
[Token(Token = "0x600C347")]
|
||||
[Address(RVA = "0x423DE0", Offset = "0x422BE0", VA = "0x180423DE0")]
|
||||
get
|
||||
{
|
||||
return this.subjectUniqueID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E48 RID: 7752
|
||||
// (get) Token: 0x0600C348 RID: 49992 RVA: 0x002C79AC File Offset: 0x002C5BAC
|
||||
[Token(Token = "0x17001E48")]
|
||||
public X509Extensions Extensions
|
||||
{
|
||||
[Token(Token = "0x600C348")]
|
||||
[Address(RVA = "0x423E10", Offset = "0x422C10", VA = "0x180423E10")]
|
||||
get
|
||||
{
|
||||
return this.extensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C349 RID: 49993 RVA: 0x002C79C0 File Offset: 0x002C5BC0
|
||||
[Token(Token = "0x600C349")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C349)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateStructure::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(TbsCertificateStructure::seq, ldloc:TbsCertificateStructure(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: 0x04007B04 RID: 31492
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B04")]
|
||||
internal Asn1Sequence seq;
|
||||
|
||||
// Token: 0x04007B05 RID: 31493
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B05")]
|
||||
internal DerInteger version;
|
||||
|
||||
// Token: 0x04007B06 RID: 31494
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B06")]
|
||||
internal DerInteger serialNumber;
|
||||
|
||||
// Token: 0x04007B07 RID: 31495
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007B07")]
|
||||
internal AlgorithmIdentifier signature;
|
||||
|
||||
// Token: 0x04007B08 RID: 31496
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B08")]
|
||||
internal X509Name issuer;
|
||||
|
||||
// Token: 0x04007B09 RID: 31497
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007B09")]
|
||||
internal Time startDate;
|
||||
|
||||
// Token: 0x04007B0A RID: 31498
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007B0A")]
|
||||
internal Time endDate;
|
||||
|
||||
// Token: 0x04007B0B RID: 31499
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007B0B")]
|
||||
internal X509Name subject;
|
||||
|
||||
// Token: 0x04007B0C RID: 31500
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007B0C")]
|
||||
internal SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
|
||||
// Token: 0x04007B0D RID: 31501
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4007B0D")]
|
||||
internal DerBitString issuerUniqueID;
|
||||
|
||||
// Token: 0x04007B0E RID: 31502
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4007B0E")]
|
||||
internal DerBitString subjectUniqueID;
|
||||
|
||||
// Token: 0x04007B0F RID: 31503
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4007B0F")]
|
||||
internal X509Extensions extensions;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E24 RID: 7716
|
||||
[Token(Token = "0x2001E24")]
|
||||
public class Time : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C35B RID: 50011 RVA: 0x002C7D20 File Offset: 0x002C5F20
|
||||
[Token(Token = "0x600C35B")]
|
||||
[Address(RVA = "0x2B42990", Offset = "0x2B41790", VA = "0x182B42990")]
|
||||
public static Time GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return Time.GetInstance(obj.GetObject());
|
||||
}
|
||||
|
||||
// Token: 0x0600C35C RID: 50012 RVA: 0x002C7D40 File Offset: 0x002C5F40
|
||||
[Token(Token = "0x600C35C")]
|
||||
[Address(RVA = "0x2B43030", Offset = "0x2B41E30", VA = "0x182B43030")]
|
||||
public Time(Asn1Object time)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C35C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_29:
|
||||
stloc:ArgumentException(var_3_33, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown object passed to Time")))
|
||||
}
|
||||
|
||||
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: 0x0600C35D RID: 50013 RVA: 0x002C7D80 File Offset: 0x002C5F80
|
||||
[Token(Token = "0x600C35D")]
|
||||
[Address(RVA = "0x2B43160", Offset = "0x2B41F60", VA = "0x182B43160")]
|
||||
public Time(DateTime date)
|
||||
{
|
||||
CultureInfo invariantCulture = CultureInfo.InvariantCulture;
|
||||
string text2;
|
||||
string text = text2 + "Z";
|
||||
int num = 0;
|
||||
int num2 = int.Parse(text.Substring(num, 4));
|
||||
num2 += -1950;
|
||||
if (num2 <= 99)
|
||||
{
|
||||
DerUtcTime derUtcTime = new DerUtcTime(text.Substring(2));
|
||||
this.time = derUtcTime;
|
||||
return;
|
||||
}
|
||||
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(text);
|
||||
this.time = derGeneralizedTime;
|
||||
}
|
||||
|
||||
// Token: 0x0600C35E RID: 50014 RVA: 0x002C7DF8 File Offset: 0x002C5FF8
|
||||
[Token(Token = "0x600C35E")]
|
||||
[Address(RVA = "0x2B429C0", Offset = "0x2B417C0", VA = "0x182B429C0")]
|
||||
public static Time GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C35E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_34:
|
||||
stloc:string(var_8_3A, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_52, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_3A)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C35F RID: 50015 RVA: 0x002C7E58 File Offset: 0x002C6058
|
||||
[Token(Token = "0x600C35F")]
|
||||
[Address(RVA = "0x2B42C50", Offset = "0x2B41A50", VA = "0x182B42C50")]
|
||||
public string GetTime()
|
||||
{
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
asn1Object = this.time;
|
||||
}
|
||||
while ((asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0)) || asn1Object == 0 || asn1Object == 0);
|
||||
string text;
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0600C360 RID: 50016 RVA: 0x002C7E98 File Offset: 0x002C6098
|
||||
[Token(Token = "0x600C360")]
|
||||
[Address(RVA = "0x2B42DF0", Offset = "0x2B41BF0", VA = "0x182B42DF0")]
|
||||
public DateTime ToDateTime()
|
||||
{
|
||||
Asn1Object asn1Object = this.time;
|
||||
if (asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0))
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
if (asn1Object != 0 && asn1Object != 0)
|
||||
{
|
||||
DateTime dateTime;
|
||||
return dateTime;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C361 RID: 50017 RVA: 0x002C7EF0 File Offset: 0x002C60F0
|
||||
[Token(Token = "0x600C361")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
return this.time;
|
||||
}
|
||||
|
||||
// Token: 0x0600C362 RID: 50018 RVA: 0x002C7F04 File Offset: 0x002C6104
|
||||
[Token(Token = "0x600C362")]
|
||||
[Address(RVA = "0x2B43020", Offset = "0x2B41E20", VA = "0x182B43020", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return this.GetTime();
|
||||
}
|
||||
|
||||
// Token: 0x04007B17 RID: 31511
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B17")]
|
||||
private readonly Asn1Object time;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E25 RID: 7717
|
||||
[Token(Token = "0x2001E25")]
|
||||
public class UserNotice : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C363 RID: 50019 RVA: 0x002C7F18 File Offset: 0x002C6118
|
||||
[Token(Token = "0x600C363")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public UserNotice(NoticeReference noticeRef, DisplayText explicitText)
|
||||
{
|
||||
this.noticeRef = noticeRef;
|
||||
this.explicitText = explicitText;
|
||||
}
|
||||
|
||||
// Token: 0x0600C364 RID: 50020 RVA: 0x002C7F3C File Offset: 0x002C613C
|
||||
[Token(Token = "0x600C364")]
|
||||
[Address(RVA = "0x2B43AE0", Offset = "0x2B428E0", VA = "0x182B43AE0")]
|
||||
public UserNotice(NoticeReference noticeRef, string str)
|
||||
{
|
||||
DisplayText displayText = new DisplayText(str);
|
||||
base..ctor();
|
||||
this.noticeRef = noticeRef;
|
||||
this.explicitText = displayText;
|
||||
}
|
||||
|
||||
// Token: 0x0600C365 RID: 50021 RVA: 0x002C7F64 File Offset: 0x002C6164
|
||||
[Token(Token = "0x600C365")]
|
||||
[Address(RVA = "0x2B43B60", Offset = "0x2B42960", VA = "0x182B43B60")]
|
||||
[Obsolete]
|
||||
public UserNotice(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable == (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
NoticeReference noticeReference;
|
||||
this.noticeRef = noticeReference;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable2 != (ulong)1L)
|
||||
{
|
||||
Asn1Encodable asn1Encodable3;
|
||||
if (asn1Encodable3 == 0)
|
||||
{
|
||||
this.noticeRef = (ulong)0L;
|
||||
this.explicitText = (ulong)0L;
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
else
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
NoticeReference noticeReference2;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
this.noticeRef = noticeReference2;
|
||||
this.explicitText = (ulong)0L;
|
||||
return;
|
||||
}
|
||||
this.noticeRef = (ulong)0L;
|
||||
DisplayText instance = DisplayText.GetInstance(noticeReference2);
|
||||
this.explicitText = instance;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C366 RID: 50022 RVA: 0x002C8014 File Offset: 0x002C6214
|
||||
[Token(Token = "0x600C366")]
|
||||
[Address(RVA = "0x2B43830", Offset = "0x2B42630", VA = "0x182B43830")]
|
||||
public static UserNotice GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new UserNotice(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E4B RID: 7755
|
||||
// (get) Token: 0x0600C367 RID: 50023 RVA: 0x002C8048 File Offset: 0x002C6248
|
||||
[Token(Token = "0x17001E4B")]
|
||||
public virtual NoticeReference NoticeRef
|
||||
{
|
||||
[Token(Token = "0x600C367")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.noticeRef;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E4C RID: 7756
|
||||
// (get) Token: 0x0600C368 RID: 50024 RVA: 0x002C805C File Offset: 0x002C625C
|
||||
[Token(Token = "0x17001E4C")]
|
||||
public virtual DisplayText ExplicitText
|
||||
{
|
||||
[Token(Token = "0x600C368")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.explicitText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C369 RID: 50025 RVA: 0x002C8070 File Offset: 0x002C6270
|
||||
[Token(Token = "0x600C369")]
|
||||
[Address(RVA = "0x2B43930", Offset = "0x2B42730", VA = "0x182B43930", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.noticeRef != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
NoticeReference noticeReference = this.noticeRef;
|
||||
if (noticeReference != 0)
|
||||
{
|
||||
}
|
||||
array[0] = noticeReference;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.explicitText != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DisplayText displayText = this.explicitText;
|
||||
if (displayText != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = displayText;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B18 RID: 31512
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B18")]
|
||||
private readonly NoticeReference noticeRef;
|
||||
|
||||
// Token: 0x04007B19 RID: 31513
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B19")]
|
||||
private readonly DisplayText explicitText;
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E26 RID: 7718
|
||||
[Token(Token = "0x2001E26")]
|
||||
public class V1TbsCertificateGenerator
|
||||
{
|
||||
// Token: 0x0600C36A RID: 50026 RVA: 0x002C80E8 File Offset: 0x002C62E8
|
||||
[Token(Token = "0x600C36A")]
|
||||
[Address(RVA = "0x2B44140", Offset = "0x2B42F40", VA = "0x182B44140")]
|
||||
public V1TbsCertificateGenerator()
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num2, derInteger);
|
||||
num2 = 0;
|
||||
this.version = derTaggedObject;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600C36B RID: 50027 RVA: 0x002C8118 File Offset: 0x002C6318
|
||||
[Token(Token = "0x600C36B")]
|
||||
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
|
||||
public void SetSerialNumber(DerInteger serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x0600C36C RID: 50028 RVA: 0x002C812C File Offset: 0x002C632C
|
||||
[Token(Token = "0x600C36C")]
|
||||
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
||||
public void SetSignature(AlgorithmIdentifier signature)
|
||||
{
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
// Token: 0x0600C36D RID: 50029 RVA: 0x002C8140 File Offset: 0x002C6340
|
||||
[Token(Token = "0x600C36D")]
|
||||
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
|
||||
public void SetIssuer(X509Name issuer)
|
||||
{
|
||||
this.issuer = issuer;
|
||||
}
|
||||
|
||||
// Token: 0x0600C36E RID: 50030 RVA: 0x002C8154 File Offset: 0x002C6354
|
||||
[Token(Token = "0x600C36E")]
|
||||
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
|
||||
public void SetStartDate(Time startDate)
|
||||
{
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C36F RID: 50031 RVA: 0x002C8168 File Offset: 0x002C6368
|
||||
[Token(Token = "0x600C36F")]
|
||||
[Address(RVA = "0x2B440D0", Offset = "0x2B42ED0", VA = "0x182B440D0")]
|
||||
public void SetStartDate(DerUtcTime startDate)
|
||||
{
|
||||
Time time = new Time(startDate);
|
||||
this.startDate = time;
|
||||
}
|
||||
|
||||
// Token: 0x0600C370 RID: 50032 RVA: 0x002C8184 File Offset: 0x002C6384
|
||||
[Token(Token = "0x600C370")]
|
||||
[Address(RVA = "0x5329E0", Offset = "0x5317E0", VA = "0x1805329E0")]
|
||||
public void SetEndDate(Time endDate)
|
||||
{
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C371 RID: 50033 RVA: 0x002C8198 File Offset: 0x002C6398
|
||||
[Token(Token = "0x600C371")]
|
||||
[Address(RVA = "0x2B44060", Offset = "0x2B42E60", VA = "0x182B44060")]
|
||||
public void SetEndDate(DerUtcTime endDate)
|
||||
{
|
||||
Time time = new Time(endDate);
|
||||
this.endDate = time;
|
||||
}
|
||||
|
||||
// Token: 0x0600C372 RID: 50034 RVA: 0x002C81B4 File Offset: 0x002C63B4
|
||||
[Token(Token = "0x600C372")]
|
||||
[Address(RVA = "0x403B30", Offset = "0x402930", VA = "0x180403B30")]
|
||||
public void SetSubject(X509Name subject)
|
||||
{
|
||||
this.subject = subject;
|
||||
}
|
||||
|
||||
// Token: 0x0600C373 RID: 50035 RVA: 0x002C81C8 File Offset: 0x002C63C8
|
||||
[Token(Token = "0x600C373")]
|
||||
[Address(RVA = "0x46AA50", Offset = "0x469850", VA = "0x18046AA50")]
|
||||
public void SetSubjectPublicKeyInfo(SubjectPublicKeyInfo pubKeyInfo)
|
||||
{
|
||||
this.subjectPublicKeyInfo = pubKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C374 RID: 50036 RVA: 0x002C81DC File Offset: 0x002C63DC
|
||||
[Token(Token = "0x600C374")]
|
||||
[Address(RVA = "0x2B43D90", Offset = "0x2B42B90", VA = "0x182B43D90")]
|
||||
public TbsCertificateStructure GenerateTbsCertificate()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C374)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateStructure BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.V1TbsCertificateGenerator::GenerateTbsCertificate()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_132:
|
||||
stloc:InvalidOperationException(var_10_13C, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("not all mandatory fields set in V1 TBScertificate generator")))
|
||||
}
|
||||
|
||||
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: 0x04007B1A RID: 31514
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B1A")]
|
||||
internal DerTaggedObject version;
|
||||
|
||||
// Token: 0x04007B1B RID: 31515
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B1B")]
|
||||
internal DerInteger serialNumber;
|
||||
|
||||
// Token: 0x04007B1C RID: 31516
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B1C")]
|
||||
internal AlgorithmIdentifier signature;
|
||||
|
||||
// Token: 0x04007B1D RID: 31517
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007B1D")]
|
||||
internal X509Name issuer;
|
||||
|
||||
// Token: 0x04007B1E RID: 31518
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B1E")]
|
||||
internal Time startDate;
|
||||
|
||||
// Token: 0x04007B1F RID: 31519
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007B1F")]
|
||||
internal Time endDate;
|
||||
|
||||
// Token: 0x04007B20 RID: 31520
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007B20")]
|
||||
internal X509Name subject;
|
||||
|
||||
// Token: 0x04007B21 RID: 31521
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007B21")]
|
||||
internal SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
}
|
||||
}
|
||||
+195
@@ -0,0 +1,195 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E27 RID: 7719
|
||||
[Token(Token = "0x2001E27")]
|
||||
public class V2AttributeCertificateInfoGenerator
|
||||
{
|
||||
// Token: 0x0600C375 RID: 50037 RVA: 0x002C8328 File Offset: 0x002C6528
|
||||
[Token(Token = "0x600C375")]
|
||||
[Address(RVA = "0x2B447A0", Offset = "0x2B435A0", VA = "0x182B447A0")]
|
||||
public V2AttributeCertificateInfoGenerator()
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(1);
|
||||
this.version = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
this.attributes = asn1EncodableVector;
|
||||
}
|
||||
|
||||
// Token: 0x0600C376 RID: 50038 RVA: 0x002C8350 File Offset: 0x002C6550
|
||||
[Token(Token = "0x600C376")]
|
||||
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
|
||||
public void SetHolder(Holder holder)
|
||||
{
|
||||
this.holder = holder;
|
||||
}
|
||||
|
||||
// Token: 0x0600C377 RID: 50039 RVA: 0x002C8364 File Offset: 0x002C6564
|
||||
[Token(Token = "0x600C377")]
|
||||
[Address(RVA = "0x2B44290", Offset = "0x2B43090", VA = "0x182B44290")]
|
||||
public void AddAttribute(string oid, Asn1Encodable value)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = this.attributes;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier(oid);
|
||||
DerSet derSet = new DerSet(value);
|
||||
AttributeX509 attributeX = new AttributeX509(derObjectIdentifier, derSet);
|
||||
if (attributeX != 0)
|
||||
{
|
||||
}
|
||||
array[0] = attributeX;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600C378 RID: 50040 RVA: 0x002C83B4 File Offset: 0x002C65B4
|
||||
[Token(Token = "0x600C378")]
|
||||
[Address(RVA = "0x2B441D0", Offset = "0x2B42FD0", VA = "0x182B441D0")]
|
||||
public void AddAttribute(AttributeX509 attribute)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = this.attributes;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (attribute != 0)
|
||||
{
|
||||
}
|
||||
array[0] = attribute;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
|
||||
// Token: 0x0600C379 RID: 50041 RVA: 0x002C83E8 File Offset: 0x002C65E8
|
||||
[Token(Token = "0x600C379")]
|
||||
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
|
||||
public void SetSerialNumber(DerInteger serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x0600C37A RID: 50042 RVA: 0x002C83FC File Offset: 0x002C65FC
|
||||
[Token(Token = "0x600C37A")]
|
||||
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
|
||||
public void SetSignature(AlgorithmIdentifier signature)
|
||||
{
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
// Token: 0x0600C37B RID: 50043 RVA: 0x002C8410 File Offset: 0x002C6610
|
||||
[Token(Token = "0x600C37B")]
|
||||
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
||||
public void SetIssuer(AttCertIssuer issuer)
|
||||
{
|
||||
this.issuer = issuer;
|
||||
}
|
||||
|
||||
// Token: 0x0600C37C RID: 50044 RVA: 0x002C8424 File Offset: 0x002C6624
|
||||
[Token(Token = "0x600C37C")]
|
||||
[Address(RVA = "0x46AB00", Offset = "0x469900", VA = "0x18046AB00")]
|
||||
public void SetStartDate(DerGeneralizedTime startDate)
|
||||
{
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C37D RID: 50045 RVA: 0x002C8438 File Offset: 0x002C6638
|
||||
[Token(Token = "0x600C37D")]
|
||||
[Address(RVA = "0x466B90", Offset = "0x465990", VA = "0x180466B90")]
|
||||
public void SetEndDate(DerGeneralizedTime endDate)
|
||||
{
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C37E RID: 50046 RVA: 0x002C844C File Offset: 0x002C664C
|
||||
[Token(Token = "0x600C37E")]
|
||||
[Address(RVA = "0x403B30", Offset = "0x402930", VA = "0x180403B30")]
|
||||
public void SetIssuerUniqueID(DerBitString issuerUniqueID)
|
||||
{
|
||||
this.issuerUniqueID = issuerUniqueID;
|
||||
}
|
||||
|
||||
// Token: 0x0600C37F RID: 50047 RVA: 0x002C8460 File Offset: 0x002C6660
|
||||
[Token(Token = "0x600C37F")]
|
||||
[Address(RVA = "0x46AA50", Offset = "0x469850", VA = "0x18046AA50")]
|
||||
public void SetExtensions(X509Extensions extensions)
|
||||
{
|
||||
this.extensions = extensions;
|
||||
}
|
||||
|
||||
// Token: 0x0600C380 RID: 50048 RVA: 0x002C8474 File Offset: 0x002C6674
|
||||
[Token(Token = "0x600C380")]
|
||||
[Address(RVA = "0x2B443C0", Offset = "0x2B431C0", VA = "0x182B443C0")]
|
||||
public AttributeCertificateInfo GenerateAttributeCertificateInfo()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C380)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeCertificateInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.V2AttributeCertificateInfoGenerator::GenerateAttributeCertificateInfo()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1BD:
|
||||
stloc:InvalidOperationException(var_17_1C7, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("not all mandatory fields set in V2 AttributeCertificateInfo generator")))
|
||||
}
|
||||
|
||||
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: 0x04007B22 RID: 31522
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B22")]
|
||||
internal DerInteger version;
|
||||
|
||||
// Token: 0x04007B23 RID: 31523
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B23")]
|
||||
internal Holder holder;
|
||||
|
||||
// Token: 0x04007B24 RID: 31524
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B24")]
|
||||
internal AttCertIssuer issuer;
|
||||
|
||||
// Token: 0x04007B25 RID: 31525
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007B25")]
|
||||
internal AlgorithmIdentifier signature;
|
||||
|
||||
// Token: 0x04007B26 RID: 31526
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B26")]
|
||||
internal DerInteger serialNumber;
|
||||
|
||||
// Token: 0x04007B27 RID: 31527
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007B27")]
|
||||
internal Asn1EncodableVector attributes;
|
||||
|
||||
// Token: 0x04007B28 RID: 31528
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007B28")]
|
||||
internal DerBitString issuerUniqueID;
|
||||
|
||||
// Token: 0x04007B29 RID: 31529
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007B29")]
|
||||
internal X509Extensions extensions;
|
||||
|
||||
// Token: 0x04007B2A RID: 31530
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007B2A")]
|
||||
internal DerGeneralizedTime startDate;
|
||||
|
||||
// Token: 0x04007B2B RID: 31531
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4007B2B")]
|
||||
internal DerGeneralizedTime endDate;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E28 RID: 7720
|
||||
[Token(Token = "0x2001E28")]
|
||||
public class V2Form : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C381 RID: 50049 RVA: 0x002C864C File Offset: 0x002C684C
|
||||
[Token(Token = "0x600C381")]
|
||||
[Address(RVA = "0x2B44840", Offset = "0x2B43640", VA = "0x182B44840")]
|
||||
public static V2Form GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
Asn1Sequence instance2;
|
||||
for (;;)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj, explicitly);
|
||||
if (instance == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (instance == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
instance2 = Asn1Sequence.GetInstance(instance);
|
||||
return new V2Form(instance2);
|
||||
}
|
||||
|
||||
// Token: 0x0600C382 RID: 50050 RVA: 0x002C8688 File Offset: 0x002C6888
|
||||
[Token(Token = "0x600C382")]
|
||||
[Address(RVA = "0x2B44940", Offset = "0x2B43740", VA = "0x182B44940")]
|
||||
public static V2Form GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new V2Form(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C383 RID: 50051 RVA: 0x002C86BC File Offset: 0x002C68BC
|
||||
[Token(Token = "0x600C383")]
|
||||
[Address(RVA = "0x2B44F90", Offset = "0x2B43D90", VA = "0x182B44F90")]
|
||||
public V2Form(GeneralNames issuerName)
|
||||
{
|
||||
int num = 0;
|
||||
this.issuerName = issuerName;
|
||||
this.baseCertificateID = num;
|
||||
this.objectDigestInfo = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600C384 RID: 50052 RVA: 0x002C86E8 File Offset: 0x002C68E8
|
||||
[Token(Token = "0x600C384")]
|
||||
[Address(RVA = "0x2AE0FC0", Offset = "0x2ADFDC0", VA = "0x182AE0FC0")]
|
||||
public V2Form(GeneralNames issuerName, IssuerSerial baseCertificateID)
|
||||
{
|
||||
this.issuerName = issuerName;
|
||||
this.baseCertificateID = baseCertificateID;
|
||||
this.objectDigestInfo = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600C385 RID: 50053 RVA: 0x002C8714 File Offset: 0x002C6914
|
||||
[Token(Token = "0x600C385")]
|
||||
[Address(RVA = "0x2B44F50", Offset = "0x2B43D50", VA = "0x182B44F50")]
|
||||
public V2Form(GeneralNames issuerName, ObjectDigestInfo objectDigestInfo)
|
||||
{
|
||||
this.issuerName = issuerName;
|
||||
this.objectDigestInfo = objectDigestInfo;
|
||||
this.baseCertificateID = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600C386 RID: 50054 RVA: 0x002C8740 File Offset: 0x002C6940
|
||||
[Token(Token = "0x600C386")]
|
||||
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
||||
public V2Form(GeneralNames issuerName, IssuerSerial baseCertificateID, ObjectDigestInfo objectDigestInfo)
|
||||
{
|
||||
this.issuerName = issuerName;
|
||||
this.baseCertificateID = baseCertificateID;
|
||||
this.objectDigestInfo = objectDigestInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C387 RID: 50055 RVA: 0x002C8768 File Offset: 0x002C6968
|
||||
[Token(Token = "0x600C387")]
|
||||
[Address(RVA = "0x2B44CE0", Offset = "0x2B43AE0", VA = "0x182B44CE0")]
|
||||
private V2Form(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0 || parser == 0)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
GeneralNames generalNames;
|
||||
this.issuerName = generalNames;
|
||||
}
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)1 != asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
if (asn1TaggedObject.tagNo != 0)
|
||||
{
|
||||
int num = 0;
|
||||
ObjectDigestInfo instance = ObjectDigestInfo.GetInstance(Asn1Sequence.GetInstance(asn1TaggedObject, num != 0));
|
||||
this.objectDigestInfo = instance;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
IssuerSerial instance2 = IssuerSerial.GetInstance(asn1Sequence);
|
||||
this.baseCertificateID = instance2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E4D RID: 7757
|
||||
// (get) Token: 0x0600C388 RID: 50056 RVA: 0x002C87FC File Offset: 0x002C69FC
|
||||
[Token(Token = "0x17001E4D")]
|
||||
public GeneralNames IssuerName
|
||||
{
|
||||
[Token(Token = "0x600C388")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.issuerName;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E4E RID: 7758
|
||||
// (get) Token: 0x0600C389 RID: 50057 RVA: 0x002C8810 File Offset: 0x002C6A10
|
||||
[Token(Token = "0x17001E4E")]
|
||||
public IssuerSerial BaseCertificateID
|
||||
{
|
||||
[Token(Token = "0x600C389")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.baseCertificateID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E4F RID: 7759
|
||||
// (get) Token: 0x0600C38A RID: 50058 RVA: 0x002C8824 File Offset: 0x002C6A24
|
||||
[Token(Token = "0x17001E4F")]
|
||||
public ObjectDigestInfo ObjectDigestInfo
|
||||
{
|
||||
[Token(Token = "0x600C38A")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.objectDigestInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C38B RID: 50059 RVA: 0x002C8838 File Offset: 0x002C6A38
|
||||
[Token(Token = "0x600C38B")]
|
||||
[Address(RVA = "0x2B44A40", Offset = "0x2B43840", VA = "0x182B44A40", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.issuerName != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
GeneralNames generalNames = this.issuerName;
|
||||
if (generalNames != 0)
|
||||
{
|
||||
}
|
||||
array[0] = generalNames;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.baseCertificateID != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
IssuerSerial issuerSerial = this.baseCertificateID;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, issuerSerial);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.objectDigestInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
ObjectDigestInfo objectDigestInfo = this.objectDigestInfo;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, objectDigestInfo);
|
||||
num3 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B2C RID: 31532
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B2C")]
|
||||
internal GeneralNames issuerName;
|
||||
|
||||
// Token: 0x04007B2D RID: 31533
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B2D")]
|
||||
internal IssuerSerial baseCertificateID;
|
||||
|
||||
// Token: 0x04007B2E RID: 31534
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B2E")]
|
||||
internal ObjectDigestInfo objectDigestInfo;
|
||||
}
|
||||
}
|
||||
+245
@@ -0,0 +1,245 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E29 RID: 7721
|
||||
[Token(Token = "0x2001E29")]
|
||||
public class V2TbsCertListGenerator
|
||||
{
|
||||
// Token: 0x0600C38C RID: 50060 RVA: 0x002C8904 File Offset: 0x002C6B04
|
||||
[Token(Token = "0x600C38C")]
|
||||
[Address(RVA = "0x2B45DC0", Offset = "0x2B44BC0", VA = "0x182B45DC0")]
|
||||
public V2TbsCertListGenerator()
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(1);
|
||||
this.version = derInteger;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600C38D RID: 50061 RVA: 0x002C8928 File Offset: 0x002C6B28
|
||||
[Token(Token = "0x600C38D")]
|
||||
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
|
||||
public void SetSignature(AlgorithmIdentifier signature)
|
||||
{
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
// Token: 0x0600C38E RID: 50062 RVA: 0x002C893C File Offset: 0x002C6B3C
|
||||
[Token(Token = "0x600C38E")]
|
||||
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
||||
public void SetIssuer(X509Name issuer)
|
||||
{
|
||||
this.issuer = issuer;
|
||||
}
|
||||
|
||||
// Token: 0x0600C38F RID: 50063 RVA: 0x002C8950 File Offset: 0x002C6B50
|
||||
[Token(Token = "0x600C38F")]
|
||||
[Address(RVA = "0x2B45D50", Offset = "0x2B44B50", VA = "0x182B45D50")]
|
||||
public void SetThisUpdate(DerUtcTime thisUpdate)
|
||||
{
|
||||
Time time = new Time(thisUpdate);
|
||||
this.thisUpdate = time;
|
||||
}
|
||||
|
||||
// Token: 0x0600C390 RID: 50064 RVA: 0x002C896C File Offset: 0x002C6B6C
|
||||
[Token(Token = "0x600C390")]
|
||||
[Address(RVA = "0x2B45CD0", Offset = "0x2B44AD0", VA = "0x182B45CD0")]
|
||||
public void SetNextUpdate(DerUtcTime nextUpdate)
|
||||
{
|
||||
if (nextUpdate != 0)
|
||||
{
|
||||
Time time = new Time(nextUpdate);
|
||||
}
|
||||
int num = 0;
|
||||
this.nextUpdate = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600C391 RID: 50065 RVA: 0x002C8994 File Offset: 0x002C6B94
|
||||
[Token(Token = "0x600C391")]
|
||||
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
|
||||
public void SetThisUpdate(Time thisUpdate)
|
||||
{
|
||||
this.thisUpdate = thisUpdate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C392 RID: 50066 RVA: 0x002C89A8 File Offset: 0x002C6BA8
|
||||
[Token(Token = "0x600C392")]
|
||||
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
|
||||
public void SetNextUpdate(Time nextUpdate)
|
||||
{
|
||||
this.nextUpdate = nextUpdate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C393 RID: 50067 RVA: 0x002C89BC File Offset: 0x002C6BBC
|
||||
[Token(Token = "0x600C393")]
|
||||
[Address(RVA = "0x2B45200", Offset = "0x2B44000", VA = "0x182B45200")]
|
||||
public void AddCrlEntry(Asn1Sequence crlEntry)
|
||||
{
|
||||
if (this.crlEntries == (ulong)0L)
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.crlEntries = list;
|
||||
}
|
||||
IList list2 = this.crlEntries;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C394 RID: 50068 RVA: 0x002C89F0 File Offset: 0x002C6BF0
|
||||
[Token(Token = "0x600C394")]
|
||||
[Address(RVA = "0x2B45600", Offset = "0x2B44400", VA = "0x182B45600")]
|
||||
public void AddCrlEntry(DerInteger userCertificate, DerUtcTime revocationDate, int reason)
|
||||
{
|
||||
Time time = new Time(revocationDate);
|
||||
int num = 0;
|
||||
this.AddCrlEntry(userCertificate, time, reason, num);
|
||||
}
|
||||
|
||||
// Token: 0x0600C395 RID: 50069 RVA: 0x002C8A10 File Offset: 0x002C6C10
|
||||
[Token(Token = "0x600C395")]
|
||||
[Address(RVA = "0x2B456A0", Offset = "0x2B444A0", VA = "0x182B456A0")]
|
||||
public void AddCrlEntry(DerInteger userCertificate, Time revocationDate, int reason)
|
||||
{
|
||||
int num = 0;
|
||||
this.AddCrlEntry(userCertificate, revocationDate, reason, num);
|
||||
}
|
||||
|
||||
// Token: 0x0600C396 RID: 50070 RVA: 0x002C8A2C File Offset: 0x002C6C2C
|
||||
[Token(Token = "0x600C396")]
|
||||
[Address(RVA = "0x2B45290", Offset = "0x2B44090", VA = "0x182B45290")]
|
||||
public void AddCrlEntry(DerInteger userCertificate, Time revocationDate, int reason, DerGeneralizedTime invalidityDate)
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
IList list2 = Platform.CreateArrayList();
|
||||
if (reason != 0)
|
||||
{
|
||||
CrlReason crlReason = new CrlReason(reason);
|
||||
DerObjectIdentifier reasonCode = X509Extensions.ReasonCode;
|
||||
DerOctetString derOctetString = new DerOctetString(crlReason.GetEncoded());
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
X509Extension x509Extension;
|
||||
x509Extension.FieldGetter(num2, num, reasonCode);
|
||||
x509Extension.critical = false;
|
||||
x509Extension.value = derOctetString;
|
||||
}
|
||||
DerObjectIdentifier invalidityDate2 = X509Extensions.InvalidityDate;
|
||||
byte[] array;
|
||||
DerOctetString derOctetString2 = new DerOctetString(array);
|
||||
int num3 = 0;
|
||||
int num4 = 0;
|
||||
X509Extension x509Extension2;
|
||||
x509Extension2.FieldGetter(num4, num3, invalidityDate2);
|
||||
x509Extension2.critical = false;
|
||||
x509Extension2.value = derOctetString2;
|
||||
if (x509Extension2 == 0)
|
||||
{
|
||||
int num5 = 0;
|
||||
this.AddCrlEntry(userCertificate, revocationDate, num5);
|
||||
return;
|
||||
}
|
||||
X509Extensions x509Extensions = new X509Extensions(list, list2);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C397 RID: 50071 RVA: 0x002C8B14 File Offset: 0x002C6D14
|
||||
[Token(Token = "0x600C397")]
|
||||
[Address(RVA = "0x2B44FC0", Offset = "0x2B43DC0", VA = "0x182B44FC0")]
|
||||
public void AddCrlEntry(DerInteger userCertificate, Time revocationDate, X509Extensions extensions)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
if (userCertificate != 0)
|
||||
{
|
||||
}
|
||||
array[0] = userCertificate;
|
||||
if (revocationDate != 0)
|
||||
{
|
||||
}
|
||||
array[1] = revocationDate;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (extensions != 0)
|
||||
{
|
||||
asn1EncodableVector.Add(new Asn1Encodable[] { extensions });
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
if (this.crlEntries == (ulong)0L)
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.crlEntries = list;
|
||||
}
|
||||
IList list2 = this.crlEntries;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C398 RID: 50072 RVA: 0x002C8B94 File Offset: 0x002C6D94
|
||||
[Token(Token = "0x600C398")]
|
||||
[Address(RVA = "0x5329E0", Offset = "0x5317E0", VA = "0x1805329E0")]
|
||||
public void SetExtensions(X509Extensions extensions)
|
||||
{
|
||||
this.extensions = extensions;
|
||||
}
|
||||
|
||||
// Token: 0x0600C399 RID: 50073 RVA: 0x002C8BA8 File Offset: 0x002C6DA8
|
||||
[Token(Token = "0x600C399")]
|
||||
[Address(RVA = "0x2B456C0", Offset = "0x2B444C0", VA = "0x182B456C0")]
|
||||
public TbsCertificateList GenerateTbsCertList()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C399)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateList BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.V2TbsCertListGenerator::GenerateTbsCertList()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1B1:
|
||||
stloc:InvalidOperationException(var_27_1BB, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("Not all mandatory fields set in V2 TbsCertList generator.")))
|
||||
}
|
||||
|
||||
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: 0x04007B2F RID: 31535
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B2F")]
|
||||
private DerInteger version;
|
||||
|
||||
// Token: 0x04007B30 RID: 31536
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B30")]
|
||||
private AlgorithmIdentifier signature;
|
||||
|
||||
// Token: 0x04007B31 RID: 31537
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B31")]
|
||||
private X509Name issuer;
|
||||
|
||||
// Token: 0x04007B32 RID: 31538
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007B32")]
|
||||
private Time thisUpdate;
|
||||
|
||||
// Token: 0x04007B33 RID: 31539
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B33")]
|
||||
private Time nextUpdate;
|
||||
|
||||
// Token: 0x04007B34 RID: 31540
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007B34")]
|
||||
private X509Extensions extensions;
|
||||
|
||||
// Token: 0x04007B35 RID: 31541
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007B35")]
|
||||
private IList crlEntries;
|
||||
}
|
||||
}
|
||||
+217
@@ -0,0 +1,217 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E2A RID: 7722
|
||||
[Token(Token = "0x2001E2A")]
|
||||
public class V3TbsCertificateGenerator
|
||||
{
|
||||
// Token: 0x0600C39A RID: 50074 RVA: 0x002C8D74 File Offset: 0x002C6F74
|
||||
[Token(Token = "0x600C39A")]
|
||||
[Address(RVA = "0x2B465A0", Offset = "0x2B453A0", VA = "0x182B465A0")]
|
||||
public V3TbsCertificateGenerator()
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(2);
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num, derInteger);
|
||||
num = 0;
|
||||
this.version = derTaggedObject;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600C39B RID: 50075 RVA: 0x002C8DA0 File Offset: 0x002C6FA0
|
||||
[Token(Token = "0x600C39B")]
|
||||
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
|
||||
public void SetSerialNumber(DerInteger serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x0600C39C RID: 50076 RVA: 0x002C8DB4 File Offset: 0x002C6FB4
|
||||
[Token(Token = "0x600C39C")]
|
||||
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
||||
public void SetSignature(AlgorithmIdentifier signature)
|
||||
{
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
// Token: 0x0600C39D RID: 50077 RVA: 0x002C8DC8 File Offset: 0x002C6FC8
|
||||
[Token(Token = "0x600C39D")]
|
||||
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
|
||||
public void SetIssuer(X509Name issuer)
|
||||
{
|
||||
this.issuer = issuer;
|
||||
}
|
||||
|
||||
// Token: 0x0600C39E RID: 50078 RVA: 0x002C8DDC File Offset: 0x002C6FDC
|
||||
[Token(Token = "0x600C39E")]
|
||||
[Address(RVA = "0x2B46530", Offset = "0x2B45330", VA = "0x182B46530")]
|
||||
public void SetStartDate(DerUtcTime startDate)
|
||||
{
|
||||
Time time = new Time(startDate);
|
||||
this.startDate = time;
|
||||
}
|
||||
|
||||
// Token: 0x0600C39F RID: 50079 RVA: 0x002C8DF8 File Offset: 0x002C6FF8
|
||||
[Token(Token = "0x600C39F")]
|
||||
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
|
||||
public void SetStartDate(Time startDate)
|
||||
{
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A0 RID: 50080 RVA: 0x002C8E0C File Offset: 0x002C700C
|
||||
[Token(Token = "0x600C3A0")]
|
||||
[Address(RVA = "0x2B463A0", Offset = "0x2B451A0", VA = "0x182B463A0")]
|
||||
public void SetEndDate(DerUtcTime endDate)
|
||||
{
|
||||
Time time = new Time(endDate);
|
||||
this.endDate = time;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A1 RID: 50081 RVA: 0x002C8E28 File Offset: 0x002C7028
|
||||
[Token(Token = "0x600C3A1")]
|
||||
[Address(RVA = "0x5329E0", Offset = "0x5317E0", VA = "0x1805329E0")]
|
||||
public void SetEndDate(Time endDate)
|
||||
{
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A2 RID: 50082 RVA: 0x002C8E3C File Offset: 0x002C703C
|
||||
[Token(Token = "0x600C3A2")]
|
||||
[Address(RVA = "0x403B30", Offset = "0x402930", VA = "0x180403B30")]
|
||||
public void SetSubject(X509Name subject)
|
||||
{
|
||||
this.subject = subject;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A3 RID: 50083 RVA: 0x002C8E50 File Offset: 0x002C7050
|
||||
[Token(Token = "0x600C3A3")]
|
||||
[Address(RVA = "0x567490", Offset = "0x566290", VA = "0x180567490")]
|
||||
public void SetIssuerUniqueID(DerBitString uniqueID)
|
||||
{
|
||||
this.issuerUniqueID = uniqueID;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A4 RID: 50084 RVA: 0x002C8E64 File Offset: 0x002C7064
|
||||
[Token(Token = "0x600C3A4")]
|
||||
[Address(RVA = "0x687270", Offset = "0x686070", VA = "0x180687270")]
|
||||
public void SetSubjectUniqueID(DerBitString uniqueID)
|
||||
{
|
||||
this.subjectUniqueID = uniqueID;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A5 RID: 50085 RVA: 0x002C8E78 File Offset: 0x002C7078
|
||||
[Token(Token = "0x600C3A5")]
|
||||
[Address(RVA = "0x46AA50", Offset = "0x469850", VA = "0x18046AA50")]
|
||||
public void SetSubjectPublicKeyInfo(SubjectPublicKeyInfo pubKeyInfo)
|
||||
{
|
||||
this.subjectPublicKeyInfo = pubKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A6 RID: 50086 RVA: 0x002C8E8C File Offset: 0x002C708C
|
||||
[Token(Token = "0x600C3A6")]
|
||||
[Address(RVA = "0x2B46410", Offset = "0x2B45210", VA = "0x182B46410")]
|
||||
public void SetExtensions(X509Extensions extensions)
|
||||
{
|
||||
this.extensions = extensions;
|
||||
if (extensions != 0)
|
||||
{
|
||||
IDictionary dictionary = extensions.extensions;
|
||||
DerObjectIdentifier subjectDirectoryAttributes = X509Extensions.SubjectDirectoryAttributes;
|
||||
this.altNamePresentAndCritical = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A7 RID: 50087 RVA: 0x002C8EC0 File Offset: 0x002C70C0
|
||||
[Token(Token = "0x600C3A7")]
|
||||
[Address(RVA = "0x2B45E20", Offset = "0x2B44C20", VA = "0x182B45E20")]
|
||||
public TbsCertificateStructure GenerateTbsCertificate()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3A7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateStructure BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.V3TbsCertificateGenerator::GenerateTbsCertificate()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_25F:
|
||||
stloc:InvalidOperationException(var_28_269, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("not all mandatory fields set in V3 TBScertificate generator")))
|
||||
}
|
||||
|
||||
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: 0x04007B36 RID: 31542
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B36")]
|
||||
internal DerTaggedObject version;
|
||||
|
||||
// Token: 0x04007B37 RID: 31543
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B37")]
|
||||
internal DerInteger serialNumber;
|
||||
|
||||
// Token: 0x04007B38 RID: 31544
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B38")]
|
||||
internal AlgorithmIdentifier signature;
|
||||
|
||||
// Token: 0x04007B39 RID: 31545
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007B39")]
|
||||
internal X509Name issuer;
|
||||
|
||||
// Token: 0x04007B3A RID: 31546
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B3A")]
|
||||
internal Time startDate;
|
||||
|
||||
// Token: 0x04007B3B RID: 31547
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007B3B")]
|
||||
internal Time endDate;
|
||||
|
||||
// Token: 0x04007B3C RID: 31548
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007B3C")]
|
||||
internal X509Name subject;
|
||||
|
||||
// Token: 0x04007B3D RID: 31549
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007B3D")]
|
||||
internal SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
|
||||
// Token: 0x04007B3E RID: 31550
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007B3E")]
|
||||
internal X509Extensions extensions;
|
||||
|
||||
// Token: 0x04007B3F RID: 31551
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4007B3F")]
|
||||
private bool altNamePresentAndCritical;
|
||||
|
||||
// Token: 0x04007B40 RID: 31552
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4007B40")]
|
||||
private DerBitString issuerUniqueID;
|
||||
|
||||
// Token: 0x04007B41 RID: 31553
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4007B41")]
|
||||
private DerBitString subjectUniqueID;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E2B RID: 7723
|
||||
[Token(Token = "0x2001E2B")]
|
||||
public class X509Attributes
|
||||
{
|
||||
// Token: 0x0600C3A8 RID: 50088 RVA: 0x002C9138 File Offset: 0x002C7338
|
||||
[Token(Token = "0x600C3A8")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public X509Attributes()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C3A9 RID: 50089 RVA: 0x002C914C File Offset: 0x002C734C
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600C3A9")]
|
||||
[Address(RVA = "0x2B46630", Offset = "0x2B45430", VA = "0x182B46630")]
|
||||
static X509Attributes()
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier("2.5.4.72");
|
||||
}
|
||||
|
||||
// Token: 0x04007B42 RID: 31554
|
||||
[Token(Token = "0x4007B42")]
|
||||
public static readonly DerObjectIdentifier RoleSyntax;
|
||||
}
|
||||
}
|
||||
+288
@@ -0,0 +1,288 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E2C RID: 7724
|
||||
[Token(Token = "0x2001E2C")]
|
||||
public class X509CertificateStructure : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C3AA RID: 50090 RVA: 0x002C9164 File Offset: 0x002C7364
|
||||
[Token(Token = "0x600C3AA")]
|
||||
[Address(RVA = "0x2B46690", Offset = "0x2B45490", VA = "0x182B46690")]
|
||||
public static X509CertificateStructure GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return X509CertificateStructure.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C3AB RID: 50091 RVA: 0x002C9180 File Offset: 0x002C7380
|
||||
[Token(Token = "0x600C3AB")]
|
||||
[Address(RVA = "0x2B466B0", Offset = "0x2B454B0", VA = "0x182B466B0")]
|
||||
public static X509CertificateStructure GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3AB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_54:
|
||||
stloc:ArgumentException(var_12_63, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("sequence wrong size for a certificate"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C3AC RID: 50092 RVA: 0x002C91F4 File Offset: 0x002C73F4
|
||||
[Token(Token = "0x600C3AC")]
|
||||
[Address(RVA = "0x2B46A30", Offset = "0x2B45830", VA = "0x182B46A30")]
|
||||
public X509CertificateStructure(TbsCertificateStructure tbsCert, AlgorithmIdentifier sigAlgID, DerBitString sig)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3AC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateStructure,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AlgorithmIdentifier,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerBitString)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:ArgumentNullException(var_1_3D, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("sigAlgID")))
|
||||
}
|
||||
|
||||
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: 0x0600C3AD RID: 50093 RVA: 0x002C9240 File Offset: 0x002C7440
|
||||
[Token(Token = "0x600C3AD")]
|
||||
[Address(RVA = "0x2B46B40", Offset = "0x2B45940", VA = "0x182B46B40")]
|
||||
private X509CertificateStructure(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3AD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_40:
|
||||
stloc:ArgumentException(var_7_4F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("sequence wrong size for a certificate"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x17001E50 RID: 7760
|
||||
// (get) Token: 0x0600C3AE RID: 50094 RVA: 0x002C92A0 File Offset: 0x002C74A0
|
||||
[Token(Token = "0x17001E50")]
|
||||
public TbsCertificateStructure TbsCertificate
|
||||
{
|
||||
[Token(Token = "0x600C3AE")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.tbsCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E51 RID: 7761
|
||||
// (get) Token: 0x0600C3AF RID: 50095 RVA: 0x002C92B4 File Offset: 0x002C74B4
|
||||
[Token(Token = "0x17001E51")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x600C3AF")]
|
||||
[Address(RVA = "0x28CA640", Offset = "0x28C9440", VA = "0x1828CA640")]
|
||||
get
|
||||
{
|
||||
int intValue = this.tbsCert.version.Value.IntValue;
|
||||
return intValue + 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E52 RID: 7762
|
||||
// (get) Token: 0x0600C3B0 RID: 50096 RVA: 0x002C92E4 File Offset: 0x002C74E4
|
||||
[Token(Token = "0x17001E52")]
|
||||
public DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600C3B0")]
|
||||
[Address(RVA = "0x434F10", Offset = "0x433D10", VA = "0x180434F10")]
|
||||
get
|
||||
{
|
||||
return this.tbsCert.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E53 RID: 7763
|
||||
// (get) Token: 0x0600C3B1 RID: 50097 RVA: 0x002C9304 File Offset: 0x002C7504
|
||||
[Token(Token = "0x17001E53")]
|
||||
public X509Name Issuer
|
||||
{
|
||||
[Token(Token = "0x600C3B1")]
|
||||
[Address(RVA = "0x42FC20", Offset = "0x42EA20", VA = "0x18042FC20")]
|
||||
get
|
||||
{
|
||||
return this.tbsCert.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E54 RID: 7764
|
||||
// (get) Token: 0x0600C3B2 RID: 50098 RVA: 0x002C9324 File Offset: 0x002C7524
|
||||
[Token(Token = "0x17001E54")]
|
||||
public Time StartDate
|
||||
{
|
||||
[Token(Token = "0x600C3B2")]
|
||||
[Address(RVA = "0x532820", Offset = "0x531620", VA = "0x180532820")]
|
||||
get
|
||||
{
|
||||
return this.tbsCert.startDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E55 RID: 7765
|
||||
// (get) Token: 0x0600C3B3 RID: 50099 RVA: 0x002C9344 File Offset: 0x002C7544
|
||||
[Token(Token = "0x17001E55")]
|
||||
public Time EndDate
|
||||
{
|
||||
[Token(Token = "0x600C3B3")]
|
||||
[Address(RVA = "0x2955E80", Offset = "0x2954C80", VA = "0x182955E80")]
|
||||
get
|
||||
{
|
||||
return this.tbsCert.endDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E56 RID: 7766
|
||||
// (get) Token: 0x0600C3B4 RID: 50100 RVA: 0x002C9364 File Offset: 0x002C7564
|
||||
[Token(Token = "0x17001E56")]
|
||||
public X509Name Subject
|
||||
{
|
||||
[Token(Token = "0x600C3B4")]
|
||||
[Address(RVA = "0x5327C0", Offset = "0x5315C0", VA = "0x1805327C0")]
|
||||
get
|
||||
{
|
||||
return this.tbsCert.subject;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E57 RID: 7767
|
||||
// (get) Token: 0x0600C3B5 RID: 50101 RVA: 0x002C9384 File Offset: 0x002C7584
|
||||
[Token(Token = "0x17001E57")]
|
||||
public SubjectPublicKeyInfo SubjectPublicKeyInfo
|
||||
{
|
||||
[Token(Token = "0x600C3B5")]
|
||||
[Address(RVA = "0x47B100", Offset = "0x479F00", VA = "0x18047B100")]
|
||||
get
|
||||
{
|
||||
return this.tbsCert.subjectPublicKeyInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E58 RID: 7768
|
||||
// (get) Token: 0x0600C3B6 RID: 50102 RVA: 0x002C93A4 File Offset: 0x002C75A4
|
||||
[Token(Token = "0x17001E58")]
|
||||
public AlgorithmIdentifier SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600C3B6")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.sigAlgID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E59 RID: 7769
|
||||
// (get) Token: 0x0600C3B7 RID: 50103 RVA: 0x002C93B8 File Offset: 0x002C75B8
|
||||
[Token(Token = "0x17001E59")]
|
||||
public DerBitString Signature
|
||||
{
|
||||
[Token(Token = "0x600C3B7")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.sig;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C3B8 RID: 50104 RVA: 0x002C93CC File Offset: 0x002C75CC
|
||||
[Token(Token = "0x600C3B8")]
|
||||
[Address(RVA = "0x271F280", Offset = "0x271E080", VA = "0x18271F280")]
|
||||
public byte[] GetSignatureOctets()
|
||||
{
|
||||
Asn1Object asn1Object = this.sig.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3B9 RID: 50105 RVA: 0x002C93EC File Offset: 0x002C75EC
|
||||
[Token(Token = "0x600C3B9")]
|
||||
[Address(RVA = "0x2B468C0", Offset = "0x2B456C0", VA = "0x182B468C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
TbsCertificateStructure tbsCertificateStructure = this.tbsCert;
|
||||
if (tbsCertificateStructure != 0)
|
||||
{
|
||||
}
|
||||
array[0] = tbsCertificateStructure;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.sigAlgID;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.sig;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derBitString;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B43 RID: 31555
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B43")]
|
||||
private readonly TbsCertificateStructure tbsCert;
|
||||
|
||||
// Token: 0x04007B44 RID: 31556
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B44")]
|
||||
private readonly AlgorithmIdentifier sigAlgID;
|
||||
|
||||
// Token: 0x04007B45 RID: 31557
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B45")]
|
||||
private readonly DerBitString sig;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E2D RID: 7725
|
||||
[Token(Token = "0x2001E2D")]
|
||||
public class X509DefaultEntryConverter : X509NameEntryConverter
|
||||
{
|
||||
// Token: 0x0600C3BA RID: 50106 RVA: 0x002C9448 File Offset: 0x002C7648
|
||||
[Token(Token = "0x600C3BA")]
|
||||
[Address(RVA = "0x2B46C80", Offset = "0x2B45A80", VA = "0x182B46C80", Slot = "4")]
|
||||
public override Asn1Object GetConvertedValue(DerObjectIdentifier oid, string value)
|
||||
{
|
||||
if (value.m_stringLength != 0)
|
||||
{
|
||||
int num = 0;
|
||||
char c = value[num];
|
||||
return Asn1Object.FromByteArray(Hex.Decode(value.Substring(1)));
|
||||
}
|
||||
DerUtf8String derUtf8String = new DerUtf8String(value);
|
||||
DerPrintableString derPrintableString = new DerPrintableString(value);
|
||||
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(value);
|
||||
DerIA5String derIA5String = new DerIA5String(value);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3BB RID: 50107 RVA: 0x002C94BC File Offset: 0x002C76BC
|
||||
[Token(Token = "0x600C3BB")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public X509DefaultEntryConverter()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E2E RID: 7726
|
||||
[Token(Token = "0x2001E2E")]
|
||||
public class X509Extension
|
||||
{
|
||||
// Token: 0x0600C3BC RID: 50108 RVA: 0x002C94D0 File Offset: 0x002C76D0
|
||||
[Token(Token = "0x600C3BC")]
|
||||
[Address(RVA = "0x2B472C0", Offset = "0x2B460C0", VA = "0x182B472C0")]
|
||||
public X509Extension(DerBoolean critical, Asn1OctetString value)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3BC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Extension::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerBoolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:ArgumentNullException(var_1_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("critical")))
|
||||
}
|
||||
|
||||
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: 0x0600C3BD RID: 50109 RVA: 0x002C9508 File Offset: 0x002C7708
|
||||
[Token(Token = "0x600C3BD")]
|
||||
[Address(RVA = "0x631740", Offset = "0x630540", VA = "0x180631740")]
|
||||
public X509Extension(bool critical, Asn1OctetString value)
|
||||
{
|
||||
this.critical = critical;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// Token: 0x17001E5A RID: 7770
|
||||
// (get) Token: 0x0600C3BE RID: 50110 RVA: 0x002C952C File Offset: 0x002C772C
|
||||
[Token(Token = "0x17001E5A")]
|
||||
public bool IsCritical
|
||||
{
|
||||
[Token(Token = "0x600C3BE")]
|
||||
[Address(RVA = "0x42D5E0", Offset = "0x42C3E0", VA = "0x18042D5E0")]
|
||||
get
|
||||
{
|
||||
return this.critical;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E5B RID: 7771
|
||||
// (get) Token: 0x0600C3BF RID: 50111 RVA: 0x002C9540 File Offset: 0x002C7740
|
||||
[Token(Token = "0x17001E5B")]
|
||||
public Asn1OctetString Value
|
||||
{
|
||||
[Token(Token = "0x600C3BF")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C3C0 RID: 50112 RVA: 0x002C9554 File Offset: 0x002C7754
|
||||
[Token(Token = "0x600C3C0")]
|
||||
[Address(RVA = "0x2B472B0", Offset = "0x2B460B0", VA = "0x182B472B0")]
|
||||
public Asn1Encodable GetParsedValue()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3C0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Extension::GetParsedValue()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Object(var_0_06, call:Asn1Object(X509Extension::ConvertValueToObject, ldloc:X509Extension(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: 0x0600C3C1 RID: 50113 RVA: 0x002C9568 File Offset: 0x002C7768
|
||||
[Token(Token = "0x600C3C1")]
|
||||
[Address(RVA = "0x2B47270", Offset = "0x2B46070", VA = "0x182B47270", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
this.value.Finalize();
|
||||
if (!this.critical)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3C2 RID: 50114 RVA: 0x002C9590 File Offset: 0x002C7790
|
||||
[Token(Token = "0x600C3C2")]
|
||||
[Address(RVA = "0x2B471A0", Offset = "0x2B45FA0", VA = "0x182B471A0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
Asn1OctetString asn1OctetString = this.value;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3C3 RID: 50115 RVA: 0x002C95B8 File Offset: 0x002C77B8
|
||||
[Token(Token = "0x600C3C3")]
|
||||
[Address(RVA = "0x2B470E0", Offset = "0x2B45EE0", VA = "0x182B470E0")]
|
||||
public static Asn1Object ConvertValueToObject(X509Extension ext)
|
||||
{
|
||||
Stream octetStream = ext.value.GetOctetStream();
|
||||
Asn1Object asn1Object;
|
||||
return asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x04007B46 RID: 31558
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B46")]
|
||||
internal bool critical;
|
||||
|
||||
// Token: 0x04007B47 RID: 31559
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B47")]
|
||||
internal Asn1OctetString value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,717 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E2F RID: 7727
|
||||
[Token(Token = "0x2001E2F")]
|
||||
public class X509Extensions : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C3C4 RID: 50116 RVA: 0x002C95E0 File Offset: 0x002C77E0
|
||||
[Token(Token = "0x600C3C4")]
|
||||
[Address(RVA = "0x2B48270", Offset = "0x2B47070", VA = "0x182B48270")]
|
||||
public static X509Extensions GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return X509Extensions.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C3C5 RID: 50117 RVA: 0x002C95FC File Offset: 0x002C77FC
|
||||
[Token(Token = "0x600C3C5")]
|
||||
[Address(RVA = "0x2B47FC0", Offset = "0x2B46DC0", VA = "0x182B47FC0")]
|
||||
public static X509Extensions GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3C5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Extensions BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Extensions::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_40:
|
||||
stloc:string(var_9_46, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_5E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_46)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
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: 0x0600C3C6 RID: 50118 RVA: 0x002C9668 File Offset: 0x002C7868
|
||||
[Token(Token = "0x600C3C6")]
|
||||
[Address(RVA = "0x2B49320", Offset = "0x2B48120", VA = "0x182B49320")]
|
||||
private X509Extensions(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
base..ctor();
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.ordering = list;
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
X509Extension x509Extension;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0 || enumerator == 0)
|
||||
{
|
||||
goto IL_112;
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
Asn1SequenceParser parser = asn1Sequence.Parser;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)3L)
|
||||
{
|
||||
}
|
||||
Asn1SequenceParser parser2 = asn1Sequence.Parser;
|
||||
DerBoolean derBoolean;
|
||||
bool isTrue = derBoolean.IsTrue;
|
||||
Asn1SequenceParser parser3 = asn1Sequence.Parser;
|
||||
IDictionary dictionary2 = this.extensions;
|
||||
Asn1OctetString asn1OctetString;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
goto IL_C2;
|
||||
}
|
||||
IDictionary dictionary3 = this.extensions;
|
||||
x509Extension.critical = isTrue;
|
||||
x509Extension.value = asn1OctetString;
|
||||
IList list2 = this.ordering;
|
||||
num = 0;
|
||||
}
|
||||
if (x509Extension != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_C2:
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
ArgumentException ex = new ArgumentException("repeated extension found: " + derObjectIdentifier);
|
||||
throw new NullReferenceException();
|
||||
IL_112:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3C7 RID: 50119 RVA: 0x002C9794 File Offset: 0x002C7994
|
||||
[Token(Token = "0x600C3C7")]
|
||||
[Address(RVA = "0x2B49BB0", Offset = "0x2B489B0", VA = "0x182B49BB0")]
|
||||
public X509Extensions(IDictionary extensions)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C3C8 RID: 50120 RVA: 0x002C97A4 File Offset: 0x002C79A4
|
||||
[Token(Token = "0x600C3C8")]
|
||||
[Address(RVA = "0x2B49BC0", Offset = "0x2B489C0", VA = "0x182B49BC0")]
|
||||
public X509Extensions(IList ordering, IDictionary extensions)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
base..ctor();
|
||||
if (ordering == 0)
|
||||
{
|
||||
}
|
||||
IList list = Platform.CreateArrayList(ordering);
|
||||
this.ordering = list;
|
||||
if (list != 0)
|
||||
{
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
goto IL_99;
|
||||
}
|
||||
IDictionary dictionary2 = this.extensions;
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_8D;
|
||||
}
|
||||
if (num < num)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
list += list;
|
||||
num += 5;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_8D:
|
||||
throw new NullReferenceException();
|
||||
IL_99:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3C9 RID: 50121 RVA: 0x002C9850 File Offset: 0x002C7A50
|
||||
[Token(Token = "0x600C3C9")]
|
||||
[Address(RVA = "0x2B48FA0", Offset = "0x2B47DA0", VA = "0x182B48FA0")]
|
||||
public X509Extensions(IList oids, IList values)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
base..ctor();
|
||||
IList list = Platform.CreateArrayList(oids);
|
||||
this.ordering = list;
|
||||
if (list != 0)
|
||||
{
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
goto IL_99;
|
||||
}
|
||||
IDictionary dictionary2 = this.extensions;
|
||||
num++;
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
num += 19;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto IL_8D;
|
||||
}
|
||||
if (num < num)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
list += list;
|
||||
num += 5;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_8D:
|
||||
throw new NullReferenceException();
|
||||
IL_99:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3CA RID: 50122 RVA: 0x002C98FC File Offset: 0x002C7AFC
|
||||
[Token(Token = "0x600C3CA")]
|
||||
[Address(RVA = "0x2B49BA0", Offset = "0x2B489A0", VA = "0x182B49BA0")]
|
||||
[Obsolete]
|
||||
public X509Extensions(Hashtable extensions)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C3CB RID: 50123 RVA: 0x002C990C File Offset: 0x002C7B0C
|
||||
[Token(Token = "0x600C3CB")]
|
||||
[Address(RVA = "0x2B49830", Offset = "0x2B48630", VA = "0x182B49830")]
|
||||
[Obsolete]
|
||||
public X509Extensions(ArrayList ordering, Hashtable extensions)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
base..ctor();
|
||||
if (ordering == 0)
|
||||
{
|
||||
}
|
||||
IList list = Platform.CreateArrayList(ordering);
|
||||
this.ordering = list;
|
||||
if (list != 0)
|
||||
{
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
goto IL_82;
|
||||
}
|
||||
IDictionary dictionary2 = this.extensions;
|
||||
num += num;
|
||||
num++;
|
||||
list += list;
|
||||
num += 5;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_82:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3CC RID: 50124 RVA: 0x002C99A0 File Offset: 0x002C7BA0
|
||||
[Token(Token = "0x600C3CC")]
|
||||
[Address(RVA = "0x2B49F80", Offset = "0x2B48D80", VA = "0x182B49F80")]
|
||||
[Obsolete]
|
||||
public X509Extensions(ArrayList oids, ArrayList values)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
base..ctor();
|
||||
IList list = Platform.CreateArrayList(oids);
|
||||
this.ordering = list;
|
||||
if (list != 0)
|
||||
{
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
goto IL_93;
|
||||
}
|
||||
IDictionary dictionary2 = this.extensions;
|
||||
num++;
|
||||
object syncRoot = values.SyncRoot;
|
||||
if (syncRoot == 0)
|
||||
{
|
||||
}
|
||||
if (syncRoot == 0)
|
||||
{
|
||||
goto IL_87;
|
||||
}
|
||||
if (num < syncRoot)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
list += list;
|
||||
num += 5;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_87:
|
||||
throw new NullReferenceException();
|
||||
IL_93:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3CD RID: 50125 RVA: 0x002C9A48 File Offset: 0x002C7C48
|
||||
[Token(Token = "0x600C3CD")]
|
||||
[Address(RVA = "0x2B482F0", Offset = "0x2B470F0", VA = "0x182B482F0")]
|
||||
[Obsolete]
|
||||
public IEnumerator Oids()
|
||||
{
|
||||
EnumerableProxy enumerableProxy = new EnumerableProxy(this.ordering);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001E5C RID: 7772
|
||||
// (get) Token: 0x0600C3CE RID: 50126 RVA: 0x002C9A68 File Offset: 0x002C7C68
|
||||
[Token(Token = "0x17001E5C")]
|
||||
public IEnumerable ExtensionOids
|
||||
{
|
||||
[Token(Token = "0x600C3CE")]
|
||||
[Address(RVA = "0x2B4A2B0", Offset = "0x2B490B0", VA = "0x182B4A2B0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3CE)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Extensions::get_ExtensionOids()
|
||||
|
||||
---> 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](X509Extensions::ordering, ldloc:X509Extensions(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: 0x0600C3CF RID: 50127 RVA: 0x002C9A80 File Offset: 0x002C7C80
|
||||
[Token(Token = "0x600C3CF")]
|
||||
[Address(RVA = "0x2B47F10", Offset = "0x2B46D10", VA = "0x182B47F10")]
|
||||
public X509Extension GetExtension(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.extensions;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3D0 RID: 50128 RVA: 0x002C9AA4 File Offset: 0x002C7CA4
|
||||
[Token(Token = "0x600C3D0")]
|
||||
[Address(RVA = "0x2B48380", Offset = "0x2B47180", VA = "0x182B48380", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
IList list = this.ordering;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
ArrayTypeMismatchException ex;
|
||||
if (ex != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
goto Block_3;
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
}
|
||||
int num2 = 0;
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
IDictionary dictionary = this.extensions;
|
||||
if (num2 == 0)
|
||||
{
|
||||
}
|
||||
if (num2 != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1EncodableVector;
|
||||
Asn1EncodableVector asn1EncodableVector2 = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerBoolean @true = DerBoolean.True;
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
Block_3:
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3D1 RID: 50129 RVA: 0x002C9BEC File Offset: 0x002C7DEC
|
||||
[Token(Token = "0x600C3D1")]
|
||||
[Address(RVA = "0x2B47840", Offset = "0x2B46640", VA = "0x182B47840")]
|
||||
public bool Equivalent(X509Extensions other)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IDictionary dictionary = this.extensions;
|
||||
IDictionary dictionary2 = other.extensions;
|
||||
IDictionary dictionary3 = this.extensions;
|
||||
IDictionary dictionary4 = this.extensions;
|
||||
}
|
||||
while (num != 0);
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3D2 RID: 50130 RVA: 0x002C9C44 File Offset: 0x002C7E44
|
||||
[Token(Token = "0x600C3D2")]
|
||||
[Address(RVA = "0x2B47B30", Offset = "0x2B46930", VA = "0x182B47B30")]
|
||||
public DerObjectIdentifier[] GetExtensionOids()
|
||||
{
|
||||
return X509Extensions.ToOidArray(this.ordering);
|
||||
}
|
||||
|
||||
// Token: 0x0600C3D3 RID: 50131 RVA: 0x002C9C5C File Offset: 0x002C7E5C
|
||||
[Token(Token = "0x600C3D3")]
|
||||
[Address(RVA = "0x2B482E0", Offset = "0x2B470E0", VA = "0x182B482E0")]
|
||||
public DerObjectIdentifier[] GetNonCriticalExtensionOids()
|
||||
{
|
||||
int num = 0;
|
||||
return this.GetExtensionOids(num != 0);
|
||||
}
|
||||
|
||||
// Token: 0x0600C3D4 RID: 50132 RVA: 0x002C9C74 File Offset: 0x002C7E74
|
||||
[Token(Token = "0x600C3D4")]
|
||||
[Address(RVA = "0x2B47B20", Offset = "0x2B46920", VA = "0x182B47B20")]
|
||||
public DerObjectIdentifier[] GetCriticalExtensionOids()
|
||||
{
|
||||
return this.GetExtensionOids(true);
|
||||
}
|
||||
|
||||
// Token: 0x0600C3D5 RID: 50133 RVA: 0x002C9C88 File Offset: 0x002C7E88
|
||||
[Token(Token = "0x600C3D5")]
|
||||
[Address(RVA = "0x2B47B90", Offset = "0x2B46990", VA = "0x182B47B90")]
|
||||
private DerObjectIdentifier[] GetExtensionOids(bool isCritical)
|
||||
{
|
||||
int num;
|
||||
IList list;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
list = Platform.CreateArrayList();
|
||||
IList list2 = this.ordering;
|
||||
if (list != 0)
|
||||
{
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
}
|
||||
if (list == 0)
|
||||
{
|
||||
goto IL_89;
|
||||
}
|
||||
IDictionary dictionary = this.extensions;
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
int num2 = 0;
|
||||
num2 += num2;
|
||||
num += 19;
|
||||
ulong num3;
|
||||
num = (int)((ulong)num + num3);
|
||||
if (num == 0 || num == 0)
|
||||
{
|
||||
goto IL_7D;
|
||||
}
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return X509Extensions.ToOidArray(list);
|
||||
IL_7D:
|
||||
throw new NullReferenceException();
|
||||
IL_89:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3D6 RID: 50134 RVA: 0x002C9D24 File Offset: 0x002C7F24
|
||||
[Token(Token = "0x600C3D6")]
|
||||
[Address(RVA = "0x2B48800", Offset = "0x2B47600", VA = "0x182B48800")]
|
||||
private static DerObjectIdentifier[] ToOidArray(IList oids)
|
||||
{
|
||||
DerObjectIdentifier[] array = new DerObjectIdentifier[0];
|
||||
int num = 0;
|
||||
num += num;
|
||||
num++;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x04007B48 RID: 31560
|
||||
[Token(Token = "0x4007B48")]
|
||||
public static readonly DerObjectIdentifier SubjectDirectoryAttributes = new DerObjectIdentifier("2.5.29.9");
|
||||
|
||||
// Token: 0x04007B49 RID: 31561
|
||||
[Token(Token = "0x4007B49")]
|
||||
public static readonly DerObjectIdentifier SubjectKeyIdentifier = new DerObjectIdentifier("2.5.29.14");
|
||||
|
||||
// Token: 0x04007B4A RID: 31562
|
||||
[Token(Token = "0x4007B4A")]
|
||||
public static readonly DerObjectIdentifier KeyUsage = new DerObjectIdentifier("2.5.29.15");
|
||||
|
||||
// Token: 0x04007B4B RID: 31563
|
||||
[Token(Token = "0x4007B4B")]
|
||||
public static readonly DerObjectIdentifier PrivateKeyUsagePeriod = new DerObjectIdentifier("2.5.29.16");
|
||||
|
||||
// Token: 0x04007B4C RID: 31564
|
||||
[Token(Token = "0x4007B4C")]
|
||||
public static readonly DerObjectIdentifier SubjectAlternativeName = new DerObjectIdentifier("2.5.29.17");
|
||||
|
||||
// Token: 0x04007B4D RID: 31565
|
||||
[Token(Token = "0x4007B4D")]
|
||||
public static readonly DerObjectIdentifier IssuerAlternativeName = new DerObjectIdentifier("2.5.29.18");
|
||||
|
||||
// Token: 0x04007B4E RID: 31566
|
||||
[Token(Token = "0x4007B4E")]
|
||||
public static readonly DerObjectIdentifier BasicConstraints = new DerObjectIdentifier("2.5.29.19");
|
||||
|
||||
// Token: 0x04007B4F RID: 31567
|
||||
[Token(Token = "0x4007B4F")]
|
||||
public static readonly DerObjectIdentifier CrlNumber = new DerObjectIdentifier("2.5.29.20");
|
||||
|
||||
// Token: 0x04007B50 RID: 31568
|
||||
[Token(Token = "0x4007B50")]
|
||||
public static readonly DerObjectIdentifier ReasonCode = new DerObjectIdentifier("2.5.29.21");
|
||||
|
||||
// Token: 0x04007B51 RID: 31569
|
||||
[Token(Token = "0x4007B51")]
|
||||
public static readonly DerObjectIdentifier InstructionCode = new DerObjectIdentifier("2.5.29.23");
|
||||
|
||||
// Token: 0x04007B52 RID: 31570
|
||||
[Token(Token = "0x4007B52")]
|
||||
public static readonly DerObjectIdentifier InvalidityDate = new DerObjectIdentifier("2.5.29.24");
|
||||
|
||||
// Token: 0x04007B53 RID: 31571
|
||||
[Token(Token = "0x4007B53")]
|
||||
public static readonly DerObjectIdentifier DeltaCrlIndicator = new DerObjectIdentifier("2.5.29.27");
|
||||
|
||||
// Token: 0x04007B54 RID: 31572
|
||||
[Token(Token = "0x4007B54")]
|
||||
public static readonly DerObjectIdentifier IssuingDistributionPoint = new DerObjectIdentifier("2.5.29.28");
|
||||
|
||||
// Token: 0x04007B55 RID: 31573
|
||||
[Token(Token = "0x4007B55")]
|
||||
public static readonly DerObjectIdentifier CertificateIssuer = new DerObjectIdentifier("2.5.29.29");
|
||||
|
||||
// Token: 0x04007B56 RID: 31574
|
||||
[Token(Token = "0x4007B56")]
|
||||
public static readonly DerObjectIdentifier NameConstraints = new DerObjectIdentifier("2.5.29.30");
|
||||
|
||||
// Token: 0x04007B57 RID: 31575
|
||||
[Token(Token = "0x4007B57")]
|
||||
public static readonly DerObjectIdentifier CrlDistributionPoints = new DerObjectIdentifier("2.5.29.31");
|
||||
|
||||
// Token: 0x04007B58 RID: 31576
|
||||
[Token(Token = "0x4007B58")]
|
||||
public static readonly DerObjectIdentifier CertificatePolicies = new DerObjectIdentifier("2.5.29.32");
|
||||
|
||||
// Token: 0x04007B59 RID: 31577
|
||||
[Token(Token = "0x4007B59")]
|
||||
public static readonly DerObjectIdentifier PolicyMappings = new DerObjectIdentifier("2.5.29.33");
|
||||
|
||||
// Token: 0x04007B5A RID: 31578
|
||||
[Token(Token = "0x4007B5A")]
|
||||
public static readonly DerObjectIdentifier AuthorityKeyIdentifier = new DerObjectIdentifier("2.5.29.35");
|
||||
|
||||
// Token: 0x04007B5B RID: 31579
|
||||
[Token(Token = "0x4007B5B")]
|
||||
public static readonly DerObjectIdentifier PolicyConstraints = new DerObjectIdentifier("2.5.29.36");
|
||||
|
||||
// Token: 0x04007B5C RID: 31580
|
||||
[Token(Token = "0x4007B5C")]
|
||||
public static readonly DerObjectIdentifier ExtendedKeyUsage = new DerObjectIdentifier("2.5.29.37");
|
||||
|
||||
// Token: 0x04007B5D RID: 31581
|
||||
[Token(Token = "0x4007B5D")]
|
||||
public static readonly DerObjectIdentifier FreshestCrl = new DerObjectIdentifier("2.5.29.46");
|
||||
|
||||
// Token: 0x04007B5E RID: 31582
|
||||
[Token(Token = "0x4007B5E")]
|
||||
public static readonly DerObjectIdentifier InhibitAnyPolicy = new DerObjectIdentifier("2.5.29.54");
|
||||
|
||||
// Token: 0x04007B5F RID: 31583
|
||||
[Token(Token = "0x4007B5F")]
|
||||
public static readonly DerObjectIdentifier AuthorityInfoAccess = new DerObjectIdentifier("1.3.6.1.5.5.7.1.1");
|
||||
|
||||
// Token: 0x04007B60 RID: 31584
|
||||
[Token(Token = "0x4007B60")]
|
||||
public static readonly DerObjectIdentifier SubjectInfoAccess = new DerObjectIdentifier("1.3.6.1.5.5.7.1.11");
|
||||
|
||||
// Token: 0x04007B61 RID: 31585
|
||||
[Token(Token = "0x4007B61")]
|
||||
public static readonly DerObjectIdentifier LogoType = new DerObjectIdentifier("1.3.6.1.5.5.7.1.12");
|
||||
|
||||
// Token: 0x04007B62 RID: 31586
|
||||
[Token(Token = "0x4007B62")]
|
||||
public static readonly DerObjectIdentifier BiometricInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.1.2");
|
||||
|
||||
// Token: 0x04007B63 RID: 31587
|
||||
[Token(Token = "0x4007B63")]
|
||||
public static readonly DerObjectIdentifier QCStatements = new DerObjectIdentifier("1.3.6.1.5.5.7.1.3");
|
||||
|
||||
// Token: 0x04007B64 RID: 31588
|
||||
[Token(Token = "0x4007B64")]
|
||||
public static readonly DerObjectIdentifier AuditIdentity = new DerObjectIdentifier("1.3.6.1.5.5.7.1.4");
|
||||
|
||||
// Token: 0x04007B65 RID: 31589
|
||||
[Token(Token = "0x4007B65")]
|
||||
public static readonly DerObjectIdentifier NoRevAvail = new DerObjectIdentifier("2.5.29.56");
|
||||
|
||||
// Token: 0x04007B66 RID: 31590
|
||||
[Token(Token = "0x4007B66")]
|
||||
public static readonly DerObjectIdentifier TargetInformation = new DerObjectIdentifier("2.5.29.55");
|
||||
|
||||
// Token: 0x04007B67 RID: 31591
|
||||
[Token(Token = "0x4007B67")]
|
||||
public static readonly DerObjectIdentifier ExpiredCertsOnCrl = new DerObjectIdentifier("2.5.29.60");
|
||||
|
||||
// Token: 0x04007B68 RID: 31592
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B68")]
|
||||
private readonly IDictionary extensions;
|
||||
|
||||
// Token: 0x04007B69 RID: 31593
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B69")]
|
||||
private readonly IList ordering;
|
||||
}
|
||||
}
|
||||
+117
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E30 RID: 7728
|
||||
[Token(Token = "0x2001E30")]
|
||||
public class X509ExtensionsGenerator
|
||||
{
|
||||
// Token: 0x0600C3D8 RID: 50136 RVA: 0x002C9F40 File Offset: 0x002C8140
|
||||
[Token(Token = "0x600C3D8")]
|
||||
[Address(RVA = "0x2B47720", Offset = "0x2B46520", VA = "0x182B47720")]
|
||||
public void Reset()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.extOrdering = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3D9 RID: 50137 RVA: 0x002C9F6C File Offset: 0x002C816C
|
||||
[Token(Token = "0x600C3D9")]
|
||||
[Address(RVA = "0x2B47360", Offset = "0x2B46160", VA = "0x182B47360")]
|
||||
public void AddExtension(DerObjectIdentifier oid, bool critical, Asn1Encodable extValue)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3D9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509ExtensionsGenerator::AddExtension(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier,System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_55:
|
||||
stloc:ArgumentException(var_10_6A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("extension "), ldloc:DerObjectIdentifier[exp:object](oid), ldstr:string[exp:object](" already added"))))
|
||||
}
|
||||
|
||||
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: 0x0600C3DA RID: 50138 RVA: 0x002C9FE4 File Offset: 0x002C81E4
|
||||
[Token(Token = "0x600C3DA")]
|
||||
[Address(RVA = "0x2B47550", Offset = "0x2B46350", VA = "0x182B47550")]
|
||||
public void AddExtension(DerObjectIdentifier oid, bool critical, byte[] extValue)
|
||||
{
|
||||
IDictionary dictionary = this.extensions;
|
||||
IList list = this.extOrdering;
|
||||
IDictionary dictionary2 = this.extensions;
|
||||
DerOctetString derOctetString = new DerOctetString(extValue);
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
X509Extension x509Extension;
|
||||
x509Extension.FieldGetter(num2, num, oid);
|
||||
x509Extension.critical = critical;
|
||||
x509Extension.value = derOctetString;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001E5D RID: 7773
|
||||
// (get) Token: 0x0600C3DB RID: 50139 RVA: 0x002CA04C File Offset: 0x002C824C
|
||||
[Token(Token = "0x17001E5D")]
|
||||
public bool IsEmpty
|
||||
{
|
||||
[Token(Token = "0x600C3DB")]
|
||||
[Address(RVA = "0x2B477F0", Offset = "0x2B465F0", VA = "0x182B477F0")]
|
||||
get
|
||||
{
|
||||
IList list = this.extOrdering;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C3DC RID: 50140 RVA: 0x002CA068 File Offset: 0x002C8268
|
||||
[Token(Token = "0x600C3DC")]
|
||||
[Address(RVA = "0x2B476B0", Offset = "0x2B464B0", VA = "0x182B476B0")]
|
||||
public X509Extensions Generate()
|
||||
{
|
||||
IList list = this.extOrdering;
|
||||
IDictionary dictionary = this.extensions;
|
||||
return new X509Extensions(list, dictionary);
|
||||
}
|
||||
|
||||
// Token: 0x0600C3DD RID: 50141 RVA: 0x002CA08C File Offset: 0x002C828C
|
||||
[Token(Token = "0x600C3DD")]
|
||||
[Address(RVA = "0x2B47780", Offset = "0x2B46580", VA = "0x182B47780")]
|
||||
public X509ExtensionsGenerator()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.extOrdering = list;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04007B6A RID: 31594
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B6A")]
|
||||
private IDictionary extensions;
|
||||
|
||||
// Token: 0x04007B6B RID: 31595
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B6B")]
|
||||
private IList extOrdering;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,1042 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E31 RID: 7729
|
||||
[Token(Token = "0x2001E31")]
|
||||
public class X509Name : Asn1Encodable
|
||||
{
|
||||
// Token: 0x17001E5E RID: 7774
|
||||
// (get) Token: 0x0600C3DE RID: 50142 RVA: 0x002CA0C0 File Offset: 0x002C82C0
|
||||
// (set) Token: 0x0600C3DF RID: 50143 RVA: 0x002CA0E8 File Offset: 0x002C82E8
|
||||
[Token(Token = "0x17001E5E")]
|
||||
public static bool DefaultReverse
|
||||
{
|
||||
[Token(Token = "0x600C3DE")]
|
||||
[Address(RVA = "0x2B4F3D0", Offset = "0x2B4E1D0", VA = "0x182B4F3D0")]
|
||||
get
|
||||
{
|
||||
bool[] array = X509Name.defaultReverse;
|
||||
return "{il2cpp array field local0->}" != (ulong)0L;
|
||||
}
|
||||
[Token(Token = "0x600C3DF")]
|
||||
[Address(RVA = "0x2B4F460", Offset = "0x2B4E260", VA = "0x182B4F460")]
|
||||
set
|
||||
{
|
||||
X509Name.defaultReverse[0] = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C3E0 RID: 50144 RVA: 0x002CA108 File Offset: 0x002C8308
|
||||
[Token(Token = "0x600C3E0")]
|
||||
[Address(RVA = "0x2B4BE70", Offset = "0x2B4AC70", VA = "0x182B4BE70")]
|
||||
static X509Name()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3E0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name::.cctor()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stsfld:DerObjectIdentifier(X509Name::C, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.6")))
|
||||
stsfld:DerObjectIdentifier(X509Name::O, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.10")))
|
||||
stsfld:DerObjectIdentifier(X509Name::OU, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.11")))
|
||||
stsfld:DerObjectIdentifier(X509Name::T, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.12")))
|
||||
stsfld:DerObjectIdentifier(X509Name::CN, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.3")))
|
||||
stsfld:DerObjectIdentifier(X509Name::Street, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.9")))
|
||||
stsfld:DerObjectIdentifier(X509Name::SerialNumber, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.5")))
|
||||
stsfld:DerObjectIdentifier(X509Name::L, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.7")))
|
||||
stsfld:DerObjectIdentifier(X509Name::ST, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.8")))
|
||||
stsfld:DerObjectIdentifier(X509Name::Surname, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.4")))
|
||||
stsfld:DerObjectIdentifier(X509Name::GivenName, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.42")))
|
||||
stsfld:DerObjectIdentifier(X509Name::Initials, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.43")))
|
||||
stsfld:DerObjectIdentifier(X509Name::Generation, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.44")))
|
||||
stsfld:DerObjectIdentifier(X509Name::UniqueIdentifier, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.45")))
|
||||
stsfld:DerObjectIdentifier(X509Name::BusinessCategory, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.15")))
|
||||
stsfld:DerObjectIdentifier(X509Name::PostalCode, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.17")))
|
||||
stsfld:DerObjectIdentifier(X509Name::DnQualifier, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.46")))
|
||||
stsfld:DerObjectIdentifier(X509Name::Pseudonym, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.65")))
|
||||
stsfld:DerObjectIdentifier(X509Name::DateOfBirth, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.3.6.1.5.5.7.9.1")))
|
||||
stsfld:DerObjectIdentifier(X509Name::PlaceOfBirth, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.3.6.1.5.5.7.9.2")))
|
||||
stsfld:DerObjectIdentifier(X509Name::Gender, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.3.6.1.5.5.7.9.3")))
|
||||
stsfld:DerObjectIdentifier(X509Name::CountryOfCitizenship, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.3.6.1.5.5.7.9.4")))
|
||||
stsfld:DerObjectIdentifier(X509Name::CountryOfResidence, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.3.6.1.5.5.7.9.5")))
|
||||
stsfld:DerObjectIdentifier(X509Name::NameAtBirth, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("1.3.36.8.3.14")))
|
||||
stsfld:DerObjectIdentifier(X509Name::PostalAddress, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.16")))
|
||||
stsfld:DerObjectIdentifier(X509Name::DmdName, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("2.5.4.54")))
|
||||
stsfld:DerObjectIdentifier(X509Name::TelephoneNumber, ldsfld:DerObjectIdentifier(X509ObjectIdentifiers::id_at_telephoneNumber))
|
||||
stsfld:DerObjectIdentifier(X509Name::OrganizationIdentifier, ldsfld:DerObjectIdentifier(X509ObjectIdentifiers::id_at_organizationIdentifier))
|
||||
stsfld:DerObjectIdentifier(X509Name::Name, ldsfld:DerObjectIdentifier(X509ObjectIdentifiers::id_at_name))
|
||||
stsfld:DerObjectIdentifier(X509Name::EmailAddress, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtEmailAddress))
|
||||
stsfld:DerObjectIdentifier(X509Name::UnstructuredName, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtUnstructuredName))
|
||||
stsfld:DerObjectIdentifier(X509Name::UnstructuredAddress, ldsfld:DerObjectIdentifier(PkcsObjectIdentifiers::Pkcs9AtUnstructuredAddress))
|
||||
stsfld:DerObjectIdentifier(X509Name::E, ldsfld:DerObjectIdentifier(X509Name::EmailAddress))
|
||||
stsfld:DerObjectIdentifier(X509Name::DC, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("0.9.2342.19200300.100.1.25")))
|
||||
stsfld:DerObjectIdentifier(X509Name::UID, newobj:DerObjectIdentifier(DerObjectIdentifier::.ctor, ldstr:string("0.9.2342.19200300.100.1.1")))
|
||||
stsfld:bool[](X509Name::defaultReverse, newarr:bool[]([mscorlib]System.Boolean, ldc.i4:int32(1)))
|
||||
stsfld:Hashtable(X509Name::DefaultSymbols, newobj:Hashtable(Hashtable::.ctor))
|
||||
stsfld:Hashtable(X509Name::RFC2253Symbols, newobj:Hashtable(Hashtable::.ctor))
|
||||
stsfld:Hashtable(X509Name::RFC1779Symbols, newobj:Hashtable(Hashtable::.ctor))
|
||||
stsfld:Hashtable(X509Name::DefaultLookup, newobj:Hashtable(Hashtable::.ctor))
|
||||
stloc:object(var_0_227, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_1_232, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_2_23D, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_3_248, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_4_253, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_5_25F, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_6_26B, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_7_277, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_8_283, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_9_28F, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_10_29B, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_11_2A7, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_12_2B3, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_13_2BF, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_14_2CB, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_15_2D7, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_16_2E3, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_17_2EF, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_18_2FB, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_19_307, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_20_313, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_21_31F, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_22_32B, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_23_337, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_24_343, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_25_34F, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_26_35B, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_27_367, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_28_373, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_29_37F, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_30_38B, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultSymbols)))
|
||||
stloc:object(var_31_397, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_32_3A3, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_33_3AF, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_34_3BB, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_35_3C7, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_36_3D3, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_37_3DF, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_38_3EB, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_39_3F7, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC2253Symbols)))
|
||||
stloc:object(var_40_403, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC1779Symbols)))
|
||||
stloc:object(var_41_40F, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC1779Symbols)))
|
||||
stloc:object(var_42_41B, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC1779Symbols)))
|
||||
stloc:object(var_43_427, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC1779Symbols)))
|
||||
stloc:object(var_44_433, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC1779Symbols)))
|
||||
stloc:object(var_45_43F, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC1779Symbols)))
|
||||
stloc:object(var_46_44B, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::RFC1779Symbols)))
|
||||
stloc:object(var_47_457, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultLookup)))
|
||||
stloc:object(var_48_463, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultLookup)))
|
||||
stloc:object(var_49_46F, callvirt:object(Hashtable::Clone, ldsfld:Hashtable(X509Name::DefaultLookup)))
|
||||
stloc:Hashtable(var_50_476, ldsfld:Hashtable(X509Name::DefaultLookup))
|
||||
}
|
||||
|
||||
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: 0x0600C3E1 RID: 50145 RVA: 0x002CA58C File Offset: 0x002C878C
|
||||
[Token(Token = "0x600C3E1")]
|
||||
[Address(RVA = "0x2B4AFD0", Offset = "0x2B49DD0", VA = "0x182B4AFD0")]
|
||||
public static X509Name GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return X509Name.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C3E2 RID: 50146 RVA: 0x002CA5A8 File Offset: 0x002C87A8
|
||||
[Token(Token = "0x600C3E2")]
|
||||
[Address(RVA = "0x2B4B040", Offset = "0x2B49E40", VA = "0x182B4B040")]
|
||||
public static X509Name GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3E2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_2:
|
||||
brtrue(IL_00, ceq:bool(ldloc:object(obj), ldc.i4:int32[exp:object](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.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: 0x0600C3E3 RID: 50147 RVA: 0x002CA5D8 File Offset: 0x002C87D8
|
||||
[Token(Token = "0x600C3E3")]
|
||||
[Address(RVA = "0x2B4E920", Offset = "0x2B4D720", VA = "0x182B4E920")]
|
||||
protected X509Name()
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.ordering = list;
|
||||
IList list2 = Platform.CreateArrayList();
|
||||
this.values = list2;
|
||||
IList list3 = Platform.CreateArrayList();
|
||||
this.added = list3;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3E4 RID: 50148 RVA: 0x002CA61C File Offset: 0x002C881C
|
||||
[Token(Token = "0x600C3E4")]
|
||||
[Address(RVA = "0x2B4E3B0", Offset = "0x2B4D1B0", VA = "0x182B4E3B0")]
|
||||
protected X509Name(Asn1Sequence seq)
|
||||
{
|
||||
int num2;
|
||||
do
|
||||
{
|
||||
int num = 0;
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.ordering = list;
|
||||
IList list2 = Platform.CreateArrayList();
|
||||
this.values = list2;
|
||||
IList list3 = Platform.CreateArrayList();
|
||||
this.added = list3;
|
||||
base..ctor();
|
||||
this.seq = seq;
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
string text2;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0 || enumerator == 0)
|
||||
{
|
||||
goto IL_130;
|
||||
}
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num < asn1Encodable)
|
||||
{
|
||||
Asn1Set asn1Set;
|
||||
IEnumerator enumerator2 = asn1Set.GetEnumerator();
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable2 != (ulong)2L)
|
||||
{
|
||||
goto IL_112;
|
||||
}
|
||||
IList list4 = this.ordering;
|
||||
Asn1Sequence asn1Sequence;
|
||||
Asn1SequenceParser parser = asn1Sequence.Parser;
|
||||
Asn1SequenceParser parser2 = asn1Sequence.Parser;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
IList list5 = this.values;
|
||||
IList list6 = this.values;
|
||||
byte[] array;
|
||||
string text = Hex.ToHexString(array);
|
||||
text2 = "#" + text;
|
||||
IList list7 = this.added;
|
||||
num++;
|
||||
}
|
||||
num2 = 0;
|
||||
}
|
||||
if (text2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num2 != 0);
|
||||
return;
|
||||
IL_112:
|
||||
ArgumentException ex = new ArgumentException("badly sized pair");
|
||||
throw new NullReferenceException();
|
||||
IL_130:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3E5 RID: 50149 RVA: 0x002CA764 File Offset: 0x002C8964
|
||||
[Token(Token = "0x600C3E5")]
|
||||
[Address(RVA = "0x2B4EA40", Offset = "0x2B4D840", VA = "0x182B4EA40")]
|
||||
public X509Name(IList ordering, IDictionary attributes)
|
||||
{
|
||||
X509DefaultEntryConverter x509DefaultEntryConverter = new X509DefaultEntryConverter();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3E6 RID: 50150 RVA: 0x002CA778 File Offset: 0x002C8978
|
||||
[Token(Token = "0x600C3E6")]
|
||||
[Address(RVA = "0x2B4DFB0", Offset = "0x2B4CDB0", VA = "0x182B4DFB0")]
|
||||
public X509Name(IList ordering, IDictionary attributes, X509NameEntryConverter converter)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.ordering = list;
|
||||
IList list2 = Platform.CreateArrayList();
|
||||
this.values = list2;
|
||||
IList list3 = Platform.CreateArrayList();
|
||||
this.added = list3;
|
||||
base..ctor();
|
||||
this.converter = converter;
|
||||
int num2;
|
||||
if (list3 != 0)
|
||||
{
|
||||
if (list3 == 0)
|
||||
{
|
||||
}
|
||||
num2 = 0;
|
||||
if (list3 == 0)
|
||||
{
|
||||
goto IL_9B;
|
||||
}
|
||||
if (num2 == 0)
|
||||
{
|
||||
goto IL_8C;
|
||||
}
|
||||
IList list4 = this.ordering;
|
||||
IList list5 = this.added;
|
||||
IList list6 = this.values;
|
||||
}
|
||||
if (num2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_8C:
|
||||
string text;
|
||||
ArgumentException ex = new ArgumentException(text);
|
||||
throw new NullReferenceException();
|
||||
IL_9B:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3E7 RID: 50151 RVA: 0x002CA828 File Offset: 0x002C8A28
|
||||
[Token(Token = "0x600C3E7")]
|
||||
[Address(RVA = "0x2B4E330", Offset = "0x2B4D130", VA = "0x182B4E330")]
|
||||
public X509Name(IList oids, IList values)
|
||||
{
|
||||
X509DefaultEntryConverter x509DefaultEntryConverter = new X509DefaultEntryConverter();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3E8 RID: 50152 RVA: 0x002CA83C File Offset: 0x002C8A3C
|
||||
[Token(Token = "0x600C3E8")]
|
||||
[Address(RVA = "0x2B4EB50", Offset = "0x2B4D950", VA = "0x182B4EB50")]
|
||||
public X509Name(IList oids, IList values, X509NameEntryConverter converter)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3E8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name::.ctor(System.Collections.IList,System.Collections.IList,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509NameEntryConverter)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_152:
|
||||
stloc:ArgumentException(var_15_15C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("'oids' must be same length as 'values'.")))
|
||||
}
|
||||
|
||||
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: 0x0600C3E9 RID: 50153 RVA: 0x002CA9A8 File Offset: 0x002C8BA8
|
||||
[Token(Token = "0x600C3E9")]
|
||||
[Address(RVA = "0x2B4EAC0", Offset = "0x2B4D8C0", VA = "0x182B4EAC0")]
|
||||
public X509Name(string dirName)
|
||||
{
|
||||
bool flag = X509Name.DefaultReverse;
|
||||
Hashtable defaultLookup = X509Name.DefaultLookup;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3EA RID: 50154 RVA: 0x002CA9C4 File Offset: 0x002C8BC4
|
||||
[Token(Token = "0x600C3EA")]
|
||||
[Address(RVA = "0x2B4E9A0", Offset = "0x2B4D7A0", VA = "0x182B4E9A0")]
|
||||
public X509Name(string dirName, X509NameEntryConverter converter)
|
||||
{
|
||||
bool flag = X509Name.DefaultReverse;
|
||||
Hashtable defaultLookup = X509Name.DefaultLookup;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3EB RID: 50155 RVA: 0x002CA9E0 File Offset: 0x002C8BE0
|
||||
[Token(Token = "0x600C3EB")]
|
||||
[Address(RVA = "0x2B4DF10", Offset = "0x2B4CD10", VA = "0x182B4DF10")]
|
||||
public X509Name(bool reverse, string dirName)
|
||||
{
|
||||
Hashtable defaultLookup = X509Name.DefaultLookup;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3EC RID: 50156 RVA: 0x002CA9F4 File Offset: 0x002C8BF4
|
||||
[Token(Token = "0x600C3EC")]
|
||||
[Address(RVA = "0x2B4E280", Offset = "0x2B4D080", VA = "0x182B4E280")]
|
||||
public X509Name(bool reverse, string dirName, X509NameEntryConverter converter)
|
||||
{
|
||||
Hashtable defaultLookup = X509Name.DefaultLookup;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3ED RID: 50157 RVA: 0x002CAA08 File Offset: 0x002C8C08
|
||||
[Token(Token = "0x600C3ED")]
|
||||
[Address(RVA = "0x2B4EFB0", Offset = "0x2B4DDB0", VA = "0x182B4EFB0")]
|
||||
public X509Name(bool reverse, IDictionary lookUp, string dirName)
|
||||
{
|
||||
X509DefaultEntryConverter x509DefaultEntryConverter = new X509DefaultEntryConverter();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3EE RID: 50158 RVA: 0x002CAA1C File Offset: 0x002C8C1C
|
||||
[Token(Token = "0x600C3EE")]
|
||||
[Address(RVA = "0x2B4A860", Offset = "0x2B49660", VA = "0x182B4A860")]
|
||||
private DerObjectIdentifier DecodeOid(string name, IDictionary lookUp)
|
||||
{
|
||||
if (!Platform.StartsWith(Platform.ToUpperInvariant(name), "OID."))
|
||||
{
|
||||
int num = 0;
|
||||
char c = name[num];
|
||||
int num2 = 0;
|
||||
char c2 = name[num2];
|
||||
return new DerObjectIdentifier(name);
|
||||
}
|
||||
return new DerObjectIdentifier(name.Substring(4));
|
||||
}
|
||||
|
||||
// Token: 0x0600C3EF RID: 50159 RVA: 0x002CAA88 File Offset: 0x002C8C88
|
||||
[Token(Token = "0x600C3EF")]
|
||||
[Address(RVA = "0x2B4D880", Offset = "0x2B4C680", VA = "0x182B4D880")]
|
||||
public X509Name(bool reverse, IDictionary lookUp, string dirName, X509NameEntryConverter converter)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C3EF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name::.ctor(System.Boolean,System.Collections.IDictionary,System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509NameEntryConverter)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22E:
|
||||
stloc:ArgumentException(var_59_238, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("badly formated directory string")))
|
||||
}
|
||||
|
||||
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: 0x0600C3F0 RID: 50160 RVA: 0x002CACD0 File Offset: 0x002C8ED0
|
||||
[Token(Token = "0x600C3F0")]
|
||||
[Address(RVA = "0x2B4B140", Offset = "0x2B49F40", VA = "0x182B4B140")]
|
||||
public IList GetOidList()
|
||||
{
|
||||
return Platform.CreateArrayList(this.ordering);
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F1 RID: 50161 RVA: 0x002CACE8 File Offset: 0x002C8EE8
|
||||
[Token(Token = "0x600C3F1")]
|
||||
[Address(RVA = "0x2B4B1A0", Offset = "0x2B49FA0", VA = "0x182B4B1A0")]
|
||||
public IList GetValueList()
|
||||
{
|
||||
int num = 0;
|
||||
return this.GetValueList(num);
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F2 RID: 50162 RVA: 0x002CAD00 File Offset: 0x002C8F00
|
||||
[Token(Token = "0x600C3F2")]
|
||||
[Address(RVA = "0x2B4B1B0", Offset = "0x2B49FB0", VA = "0x182B4B1B0")]
|
||||
public IList GetValueList(DerObjectIdentifier oid)
|
||||
{
|
||||
IList list;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
list = Platform.CreateArrayList();
|
||||
IList list2 = this.values;
|
||||
num = 0;
|
||||
if (0 == list)
|
||||
{
|
||||
return list;
|
||||
}
|
||||
if (oid != 0)
|
||||
{
|
||||
IList list3 = this.ordering;
|
||||
if (list == 0)
|
||||
{
|
||||
goto IL_3A;
|
||||
}
|
||||
}
|
||||
IList list4 = this.values;
|
||||
}
|
||||
while (list != 0 && list == 0);
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
IL_3A:
|
||||
IList list5 = this.values;
|
||||
num++;
|
||||
return list;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F3 RID: 50163 RVA: 0x002CAD5C File Offset: 0x002C8F5C
|
||||
[Token(Token = "0x600C3F3")]
|
||||
[Address(RVA = "0x2B4B370", Offset = "0x2B4A170", VA = "0x182B4B370", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
while (this.seq == 0)
|
||||
{
|
||||
int num = 0;
|
||||
IList list = this.ordering;
|
||||
int num2 = 0;
|
||||
if (num2 < num)
|
||||
{
|
||||
num2 += num2;
|
||||
num2++;
|
||||
}
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (num2 == asn1EncodableVector)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1EncodableVector asn1EncodableVector2;
|
||||
DerSet derSet = new DerSet(asn1EncodableVector2);
|
||||
if (derSet != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derSet;
|
||||
Asn1EncodableVector asn1EncodableVector3;
|
||||
asn1EncodableVector3.Add(array);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector3);
|
||||
this.seq = derSequence;
|
||||
break;
|
||||
}
|
||||
IList list2 = this.ordering;
|
||||
uint num3;
|
||||
if (num2 < (int)num3)
|
||||
{
|
||||
num2 += num2;
|
||||
num2++;
|
||||
}
|
||||
if (num2 == 0)
|
||||
{
|
||||
num2++;
|
||||
num2 += 19;
|
||||
num2 += 19;
|
||||
}
|
||||
if (num2 != 0)
|
||||
{
|
||||
IList list3 = this.values;
|
||||
if (num2 < num2)
|
||||
{
|
||||
num2 += num2;
|
||||
num2++;
|
||||
}
|
||||
if (num2 == 0 || num2 != 0)
|
||||
{
|
||||
if (num2 != 0)
|
||||
{
|
||||
IList list4 = this.added;
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerSet derSet2 = new DerSet(asn1EncodableVector);
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[2];
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F4 RID: 50164 RVA: 0x002CAEE8 File Offset: 0x002C90E8
|
||||
[Token(Token = "0x600C3F4")]
|
||||
[Address(RVA = "0x2B4AA50", Offset = "0x2B49850", VA = "0x182B4AA50")]
|
||||
public bool Equivalent(X509Name other, bool inOrder)
|
||||
{
|
||||
while (inOrder && other != 0)
|
||||
{
|
||||
if (other != this)
|
||||
{
|
||||
IList list = this.ordering;
|
||||
IList list2 = other.ordering;
|
||||
int num = 0;
|
||||
IList list3 = this.ordering;
|
||||
IList list4 = other.ordering;
|
||||
IList list5 = this.values;
|
||||
IList list6 = other.values;
|
||||
int num2 = 0;
|
||||
if (num2 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int num3 = 0;
|
||||
if (num3 == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (!X509Name.equivalentStrings(num3, num2))
|
||||
{
|
||||
break;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return this.Equivalent(other);
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F5 RID: 50165 RVA: 0x002CAF5C File Offset: 0x002C915C
|
||||
[Token(Token = "0x600C3F5")]
|
||||
[Address(RVA = "0x2B4ACA0", Offset = "0x2B49AA0", VA = "0x182B4ACA0")]
|
||||
public bool Equivalent(X509Name other)
|
||||
{
|
||||
while (other != 0)
|
||||
{
|
||||
if (other != this)
|
||||
{
|
||||
IList list = this.ordering;
|
||||
IList list2 = other.ordering;
|
||||
bool[] array = new bool[0];
|
||||
IList list3 = this.ordering;
|
||||
IList list4 = other.ordering;
|
||||
if (array == 0)
|
||||
{
|
||||
}
|
||||
if (0 != array)
|
||||
{
|
||||
IList list5 = this.ordering;
|
||||
IList list6 = this.values;
|
||||
if (array != 0 && array == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
int num = 0;
|
||||
IList list7 = other.ordering;
|
||||
if (num != 0)
|
||||
{
|
||||
IList list8 = other.values;
|
||||
if (num != 0 && num == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
num++;
|
||||
}
|
||||
}
|
||||
IL_83:
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
goto IL_83;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F6 RID: 50166 RVA: 0x002CAFF4 File Offset: 0x002C91F4
|
||||
[Token(Token = "0x600C3F6")]
|
||||
[Address(RVA = "0x2B4F2E0", Offset = "0x2B4E0E0", VA = "0x182B4F2E0")]
|
||||
private static bool equivalentStrings(string s1, string s2)
|
||||
{
|
||||
string text = X509Name.canonicalize(s1);
|
||||
string text2 = X509Name.canonicalize(s2);
|
||||
if (!text.Equals(text2))
|
||||
{
|
||||
string text3 = X509Name.stripInternalSpaces(text);
|
||||
string text4 = X509Name.stripInternalSpaces(text2);
|
||||
bool flag = text3.Equals(text4);
|
||||
if (!flag)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F7 RID: 50167 RVA: 0x002CB040 File Offset: 0x002C9240
|
||||
[Token(Token = "0x600C3F7")]
|
||||
[Address(RVA = "0x2B4F050", Offset = "0x2B4DE50", VA = "0x182B4F050")]
|
||||
private static string canonicalize(string s)
|
||||
{
|
||||
string text;
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
text = Platform.ToLowerInvariant(s).Trim();
|
||||
if (!Platform.StartsWith(text, "#"))
|
||||
{
|
||||
return text;
|
||||
}
|
||||
asn1Object = X509Name.decodeObject(text);
|
||||
if (asn1Object == 0)
|
||||
{
|
||||
return text;
|
||||
}
|
||||
}
|
||||
while (asn1Object == 0 || asn1Object == 0);
|
||||
string text3;
|
||||
string text2 = text3.Trim();
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F8 RID: 50168 RVA: 0x002CB088 File Offset: 0x002C9288
|
||||
[Token(Token = "0x600C3F8")]
|
||||
[Address(RVA = "0x2B4F1D0", Offset = "0x2B4DFD0", VA = "0x182B4F1D0")]
|
||||
private static Asn1Object decodeObject(string v)
|
||||
{
|
||||
return Asn1Object.FromByteArray(Hex.Decode(v.Substring(1)));
|
||||
}
|
||||
|
||||
// Token: 0x0600C3F9 RID: 50169 RVA: 0x002CB0BC File Offset: 0x002C92BC
|
||||
[Token(Token = "0x600C3F9")]
|
||||
[Address(RVA = "0x2B4F4F0", Offset = "0x2B4E2F0", VA = "0x182B4F4F0")]
|
||||
private static string stripInternalSpaces(string str)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
if (str.m_stringLength != 0)
|
||||
{
|
||||
int num = 0;
|
||||
char c = str[num];
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(c);
|
||||
if (1 < str.m_stringLength)
|
||||
{
|
||||
char c2 = str[1];
|
||||
if (c2 != c)
|
||||
{
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(c2);
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3FA RID: 50170 RVA: 0x002CB114 File Offset: 0x002C9314
|
||||
[Token(Token = "0x600C3FA")]
|
||||
[Address(RVA = "0x2B4A660", Offset = "0x2B49460", VA = "0x182B4A660")]
|
||||
private void AppendValue(StringBuilder buf, IDictionary oidSymbols, DerObjectIdentifier oid, string val)
|
||||
{
|
||||
while (0 == 0)
|
||||
{
|
||||
}
|
||||
string identifier = oid.identifier;
|
||||
StringBuilder stringBuilder = buf.Append(identifier);
|
||||
uint num;
|
||||
StringBuilder stringBuilder2 = buf.Append((char)num);
|
||||
int num2 = buf.Length;
|
||||
int num3 = buf.Length;
|
||||
bool flag;
|
||||
if (flag)
|
||||
{
|
||||
num2 += 2;
|
||||
}
|
||||
if (num2 != num3)
|
||||
{
|
||||
char c = buf[num2];
|
||||
char c2 = buf[num2];
|
||||
char c3 = buf[num2];
|
||||
char c4 = buf[num2];
|
||||
char c5 = buf[num2];
|
||||
char c6 = buf[num2];
|
||||
char c7 = buf[num2];
|
||||
char c8 = buf[num2];
|
||||
num2++;
|
||||
StringBuilder stringBuilder3 = buf.Insert(num2, "\\");
|
||||
num3++;
|
||||
num2++;
|
||||
while (num2 != num3)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C3FB RID: 50171 RVA: 0x002CB1DC File Offset: 0x002C93DC
|
||||
[Token(Token = "0x600C3FB")]
|
||||
[Address(RVA = "0x2B4B9D0", Offset = "0x2B4A7D0", VA = "0x182B4B9D0")]
|
||||
public string ToString(bool reverse, IDictionary oidSymbols)
|
||||
{
|
||||
ArrayList arrayList;
|
||||
int num;
|
||||
for (;;)
|
||||
{
|
||||
arrayList = new ArrayList();
|
||||
IList list = this.ordering;
|
||||
num = 0;
|
||||
if (num < oidSymbols)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num >= num)
|
||||
{
|
||||
goto IL_A1;
|
||||
}
|
||||
IList list2 = this.added;
|
||||
int num2 = 0;
|
||||
if (num2 < 1)
|
||||
{
|
||||
num2 += num2;
|
||||
num2++;
|
||||
}
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
IList list3 = this.ordering;
|
||||
IList list4 = this.values;
|
||||
if (stringBuilder == 0 || stringBuilder != 0)
|
||||
{
|
||||
stringBuilder += stringBuilder;
|
||||
stringBuilder += stringBuilder;
|
||||
uint num3;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append((char)num3);
|
||||
IList list5 = this.ordering;
|
||||
IList list6 = this.values;
|
||||
if (stringBuilder2 == 0 || stringBuilder2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
IList list7 = this.ordering;
|
||||
num++;
|
||||
IL_A1:
|
||||
StringBuilder stringBuilder3 = new StringBuilder();
|
||||
if (stringBuilder3 > 0)
|
||||
{
|
||||
int hashCode = arrayList.SyncRoot.GetHashCode();
|
||||
uint num4;
|
||||
StringBuilder stringBuilder4 = stringBuilder3.Append((char)num4);
|
||||
int hashCode2 = arrayList.SyncRoot.GetHashCode();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C3FC RID: 50172 RVA: 0x002CB2C0 File Offset: 0x002C94C0
|
||||
[Token(Token = "0x600C3FC")]
|
||||
[Address(RVA = "0x2B4B950", Offset = "0x2B4A750", VA = "0x182B4B950", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
bool flag = X509Name.DefaultReverse;
|
||||
Hashtable defaultSymbols = X509Name.DefaultSymbols;
|
||||
return this.ToString(flag, defaultSymbols);
|
||||
}
|
||||
|
||||
// Token: 0x04007B6C RID: 31596
|
||||
[Token(Token = "0x4007B6C")]
|
||||
public static readonly DerObjectIdentifier C;
|
||||
|
||||
// Token: 0x04007B6D RID: 31597
|
||||
[Token(Token = "0x4007B6D")]
|
||||
public static readonly DerObjectIdentifier O;
|
||||
|
||||
// Token: 0x04007B6E RID: 31598
|
||||
[Token(Token = "0x4007B6E")]
|
||||
public static readonly DerObjectIdentifier OU;
|
||||
|
||||
// Token: 0x04007B6F RID: 31599
|
||||
[Token(Token = "0x4007B6F")]
|
||||
public static readonly DerObjectIdentifier T;
|
||||
|
||||
// Token: 0x04007B70 RID: 31600
|
||||
[Token(Token = "0x4007B70")]
|
||||
public static readonly DerObjectIdentifier CN;
|
||||
|
||||
// Token: 0x04007B71 RID: 31601
|
||||
[Token(Token = "0x4007B71")]
|
||||
public static readonly DerObjectIdentifier Street;
|
||||
|
||||
// Token: 0x04007B72 RID: 31602
|
||||
[Token(Token = "0x4007B72")]
|
||||
public static readonly DerObjectIdentifier SerialNumber;
|
||||
|
||||
// Token: 0x04007B73 RID: 31603
|
||||
[Token(Token = "0x4007B73")]
|
||||
public static readonly DerObjectIdentifier L;
|
||||
|
||||
// Token: 0x04007B74 RID: 31604
|
||||
[Token(Token = "0x4007B74")]
|
||||
public static readonly DerObjectIdentifier ST;
|
||||
|
||||
// Token: 0x04007B75 RID: 31605
|
||||
[Token(Token = "0x4007B75")]
|
||||
public static readonly DerObjectIdentifier Surname;
|
||||
|
||||
// Token: 0x04007B76 RID: 31606
|
||||
[Token(Token = "0x4007B76")]
|
||||
public static readonly DerObjectIdentifier GivenName;
|
||||
|
||||
// Token: 0x04007B77 RID: 31607
|
||||
[Token(Token = "0x4007B77")]
|
||||
public static readonly DerObjectIdentifier Initials;
|
||||
|
||||
// Token: 0x04007B78 RID: 31608
|
||||
[Token(Token = "0x4007B78")]
|
||||
public static readonly DerObjectIdentifier Generation;
|
||||
|
||||
// Token: 0x04007B79 RID: 31609
|
||||
[Token(Token = "0x4007B79")]
|
||||
public static readonly DerObjectIdentifier UniqueIdentifier;
|
||||
|
||||
// Token: 0x04007B7A RID: 31610
|
||||
[Token(Token = "0x4007B7A")]
|
||||
public static readonly DerObjectIdentifier BusinessCategory;
|
||||
|
||||
// Token: 0x04007B7B RID: 31611
|
||||
[Token(Token = "0x4007B7B")]
|
||||
public static readonly DerObjectIdentifier PostalCode;
|
||||
|
||||
// Token: 0x04007B7C RID: 31612
|
||||
[Token(Token = "0x4007B7C")]
|
||||
public static readonly DerObjectIdentifier DnQualifier;
|
||||
|
||||
// Token: 0x04007B7D RID: 31613
|
||||
[Token(Token = "0x4007B7D")]
|
||||
public static readonly DerObjectIdentifier Pseudonym;
|
||||
|
||||
// Token: 0x04007B7E RID: 31614
|
||||
[Token(Token = "0x4007B7E")]
|
||||
public static readonly DerObjectIdentifier DateOfBirth;
|
||||
|
||||
// Token: 0x04007B7F RID: 31615
|
||||
[Token(Token = "0x4007B7F")]
|
||||
public static readonly DerObjectIdentifier PlaceOfBirth;
|
||||
|
||||
// Token: 0x04007B80 RID: 31616
|
||||
[Token(Token = "0x4007B80")]
|
||||
public static readonly DerObjectIdentifier Gender;
|
||||
|
||||
// Token: 0x04007B81 RID: 31617
|
||||
[Token(Token = "0x4007B81")]
|
||||
public static readonly DerObjectIdentifier CountryOfCitizenship;
|
||||
|
||||
// Token: 0x04007B82 RID: 31618
|
||||
[Token(Token = "0x4007B82")]
|
||||
public static readonly DerObjectIdentifier CountryOfResidence;
|
||||
|
||||
// Token: 0x04007B83 RID: 31619
|
||||
[Token(Token = "0x4007B83")]
|
||||
public static readonly DerObjectIdentifier NameAtBirth;
|
||||
|
||||
// Token: 0x04007B84 RID: 31620
|
||||
[Token(Token = "0x4007B84")]
|
||||
public static readonly DerObjectIdentifier PostalAddress;
|
||||
|
||||
// Token: 0x04007B85 RID: 31621
|
||||
[Token(Token = "0x4007B85")]
|
||||
public static readonly DerObjectIdentifier DmdName;
|
||||
|
||||
// Token: 0x04007B86 RID: 31622
|
||||
[Token(Token = "0x4007B86")]
|
||||
public static readonly DerObjectIdentifier TelephoneNumber;
|
||||
|
||||
// Token: 0x04007B87 RID: 31623
|
||||
[Token(Token = "0x4007B87")]
|
||||
public static readonly DerObjectIdentifier OrganizationIdentifier;
|
||||
|
||||
// Token: 0x04007B88 RID: 31624
|
||||
[Token(Token = "0x4007B88")]
|
||||
public static readonly DerObjectIdentifier Name;
|
||||
|
||||
// Token: 0x04007B89 RID: 31625
|
||||
[Token(Token = "0x4007B89")]
|
||||
public static readonly DerObjectIdentifier EmailAddress;
|
||||
|
||||
// Token: 0x04007B8A RID: 31626
|
||||
[Token(Token = "0x4007B8A")]
|
||||
public static readonly DerObjectIdentifier UnstructuredName;
|
||||
|
||||
// Token: 0x04007B8B RID: 31627
|
||||
[Token(Token = "0x4007B8B")]
|
||||
public static readonly DerObjectIdentifier UnstructuredAddress;
|
||||
|
||||
// Token: 0x04007B8C RID: 31628
|
||||
[Token(Token = "0x4007B8C")]
|
||||
public static readonly DerObjectIdentifier E;
|
||||
|
||||
// Token: 0x04007B8D RID: 31629
|
||||
[Token(Token = "0x4007B8D")]
|
||||
public static readonly DerObjectIdentifier DC;
|
||||
|
||||
// Token: 0x04007B8E RID: 31630
|
||||
[Token(Token = "0x4007B8E")]
|
||||
public static readonly DerObjectIdentifier UID;
|
||||
|
||||
// Token: 0x04007B8F RID: 31631
|
||||
[Token(Token = "0x4007B8F")]
|
||||
private static readonly bool[] defaultReverse;
|
||||
|
||||
// Token: 0x04007B90 RID: 31632
|
||||
[Token(Token = "0x4007B90")]
|
||||
public static readonly Hashtable DefaultSymbols;
|
||||
|
||||
// Token: 0x04007B91 RID: 31633
|
||||
[Token(Token = "0x4007B91")]
|
||||
public static readonly Hashtable RFC2253Symbols;
|
||||
|
||||
// Token: 0x04007B92 RID: 31634
|
||||
[Token(Token = "0x4007B92")]
|
||||
public static readonly Hashtable RFC1779Symbols;
|
||||
|
||||
// Token: 0x04007B93 RID: 31635
|
||||
[Token(Token = "0x4007B93")]
|
||||
public static readonly Hashtable DefaultLookup;
|
||||
|
||||
// Token: 0x04007B94 RID: 31636
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B94")]
|
||||
private readonly IList ordering;
|
||||
|
||||
// Token: 0x04007B95 RID: 31637
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B95")]
|
||||
private readonly X509NameEntryConverter converter;
|
||||
|
||||
// Token: 0x04007B96 RID: 31638
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B96")]
|
||||
private IList values;
|
||||
|
||||
// Token: 0x04007B97 RID: 31639
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007B97")]
|
||||
private IList added;
|
||||
|
||||
// Token: 0x04007B98 RID: 31640
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B98")]
|
||||
private Asn1Sequence seq;
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Encoders;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E32 RID: 7730
|
||||
[Token(Token = "0x2001E32")]
|
||||
public abstract class X509NameEntryConverter
|
||||
{
|
||||
// Token: 0x0600C3FD RID: 50173 RVA: 0x002CB2E4 File Offset: 0x002C94E4
|
||||
[Token(Token = "0x600C3FD")]
|
||||
[Address(RVA = "0x2B4A320", Offset = "0x2B49120", VA = "0x182B4A320")]
|
||||
protected Asn1Object ConvertHexEncoded(string hexString, int offset)
|
||||
{
|
||||
return Asn1Object.FromByteArray(Hex.Decode(hexString.Substring(offset)));
|
||||
}
|
||||
|
||||
// Token: 0x0600C3FE RID: 50174 RVA: 0x002CB308 File Offset: 0x002C9508
|
||||
[Token(Token = "0x600C3FE")]
|
||||
[Address(RVA = "0x2B4A310", Offset = "0x2B49110", VA = "0x182B4A310")]
|
||||
protected bool CanBePrintable(string str)
|
||||
{
|
||||
return DerPrintableString.IsPrintableString(str);
|
||||
}
|
||||
|
||||
// Token: 0x0600C3FF RID: 50175
|
||||
[Token(Token = "0x600C3FF")]
|
||||
[Address(Slot = "4")]
|
||||
public abstract Asn1Object GetConvertedValue(DerObjectIdentifier oid, string value);
|
||||
|
||||
// Token: 0x0600C400 RID: 50176 RVA: 0x002CB31C File Offset: 0x002C951C
|
||||
[Token(Token = "0x600C400")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected X509NameEntryConverter()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E33 RID: 7731
|
||||
[Token(Token = "0x2001E33")]
|
||||
public class X509NameTokenizer
|
||||
{
|
||||
// Token: 0x0600C401 RID: 50177 RVA: 0x002CB330 File Offset: 0x002C9530
|
||||
[Token(Token = "0x600C401")]
|
||||
[Address(RVA = "0x2B4A650", Offset = "0x2B49450", VA = "0x182B4A650")]
|
||||
public X509NameTokenizer(string oid)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600C402 RID: 50178 RVA: 0x002CB340 File Offset: 0x002C9540
|
||||
[Token(Token = "0x600C402")]
|
||||
[Address(RVA = "0x2B4A5C0", Offset = "0x2B493C0", VA = "0x182B4A5C0")]
|
||||
public X509NameTokenizer(string oid, char separator)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
this.buffer = stringBuilder;
|
||||
base..ctor();
|
||||
this.value = oid;
|
||||
this.separator = separator;
|
||||
this.index = (int)((ulong)4294967295L);
|
||||
}
|
||||
|
||||
// Token: 0x0600C403 RID: 50179 RVA: 0x002CB380 File Offset: 0x002C9580
|
||||
[Token(Token = "0x600C403")]
|
||||
[Address(RVA = "0x2B4A3B0", Offset = "0x2B491B0", VA = "0x182B4A3B0")]
|
||||
public bool HasMoreTokens()
|
||||
{
|
||||
int stringLength = this.value.m_stringLength;
|
||||
return this.index != stringLength;
|
||||
}
|
||||
|
||||
// Token: 0x0600C404 RID: 50180 RVA: 0x002CB3AC File Offset: 0x002C95AC
|
||||
[Token(Token = "0x600C404")]
|
||||
[Address(RVA = "0x2B4A3E0", Offset = "0x2B491E0", VA = "0x182B4A3E0")]
|
||||
public string NextToken()
|
||||
{
|
||||
string text = this.value;
|
||||
int num = this.index;
|
||||
if (num != text.m_stringLength)
|
||||
{
|
||||
StringBuilder stringBuilder = this.buffer;
|
||||
num++;
|
||||
int num2 = 0;
|
||||
int length = stringBuilder.Length;
|
||||
int num3 = 0;
|
||||
StringBuilder stringBuilder2 = stringBuilder.Remove(num3, length);
|
||||
string text2 = this.value;
|
||||
if (num != text2.m_stringLength)
|
||||
{
|
||||
char c = text2[num];
|
||||
if (c != this.separator)
|
||||
{
|
||||
StringBuilder stringBuilder3 = this.buffer.Append(c);
|
||||
StringBuilder stringBuilder4 = this.buffer;
|
||||
int num4 = stringBuilder4.Length - 1;
|
||||
char c2 = stringBuilder4[num4];
|
||||
if (this.separator != c)
|
||||
{
|
||||
StringBuilder stringBuilder5 = this.buffer;
|
||||
}
|
||||
StringBuilder stringBuilder6 = this.buffer.Append(c);
|
||||
if (num2 != 0)
|
||||
{
|
||||
StringBuilder stringBuilder7 = this.buffer;
|
||||
}
|
||||
string text3 = this.value;
|
||||
num++;
|
||||
}
|
||||
}
|
||||
StringBuilder stringBuilder8 = this.buffer;
|
||||
this.index = num;
|
||||
int hashCode = stringBuilder8.GetHashCode();
|
||||
string text4;
|
||||
return text4;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007B99 RID: 31641
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B99")]
|
||||
private string value;
|
||||
|
||||
// Token: 0x04007B9A RID: 31642
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B9A")]
|
||||
private int index;
|
||||
|
||||
// Token: 0x04007B9B RID: 31643
|
||||
[FieldOffset(Offset = "0x1C")]
|
||||
[Token(Token = "0x4007B9B")]
|
||||
private char separator;
|
||||
|
||||
// Token: 0x04007B9C RID: 31644
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B9C")]
|
||||
private StringBuilder buffer;
|
||||
}
|
||||
}
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E34 RID: 7732
|
||||
[Token(Token = "0x2001E34")]
|
||||
public abstract class X509ObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600C405 RID: 50181 RVA: 0x002CB4AC File Offset: 0x002C96AC
|
||||
[Token(Token = "0x600C405")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
protected X509ObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04007B9D RID: 31645
|
||||
[Token(Token = "0x4007B9D")]
|
||||
internal const string ID = "2.5.4";
|
||||
|
||||
// Token: 0x04007B9E RID: 31646
|
||||
[Token(Token = "0x4007B9E")]
|
||||
public static readonly DerObjectIdentifier CommonName = new DerObjectIdentifier("2.5.4.3");
|
||||
|
||||
// Token: 0x04007B9F RID: 31647
|
||||
[Token(Token = "0x4007B9F")]
|
||||
public static readonly DerObjectIdentifier CountryName = new DerObjectIdentifier("2.5.4.6");
|
||||
|
||||
// Token: 0x04007BA0 RID: 31648
|
||||
[Token(Token = "0x4007BA0")]
|
||||
public static readonly DerObjectIdentifier LocalityName = new DerObjectIdentifier("2.5.4.7");
|
||||
|
||||
// Token: 0x04007BA1 RID: 31649
|
||||
[Token(Token = "0x4007BA1")]
|
||||
public static readonly DerObjectIdentifier StateOrProvinceName = new DerObjectIdentifier("2.5.4.8");
|
||||
|
||||
// Token: 0x04007BA2 RID: 31650
|
||||
[Token(Token = "0x4007BA2")]
|
||||
public static readonly DerObjectIdentifier Organization = new DerObjectIdentifier("2.5.4.10");
|
||||
|
||||
// Token: 0x04007BA3 RID: 31651
|
||||
[Token(Token = "0x4007BA3")]
|
||||
public static readonly DerObjectIdentifier OrganizationalUnitName = new DerObjectIdentifier("2.5.4.11");
|
||||
|
||||
// Token: 0x04007BA4 RID: 31652
|
||||
[Token(Token = "0x4007BA4")]
|
||||
public static readonly DerObjectIdentifier id_at_telephoneNumber = new DerObjectIdentifier("2.5.4.20");
|
||||
|
||||
// Token: 0x04007BA5 RID: 31653
|
||||
[Token(Token = "0x4007BA5")]
|
||||
public static readonly DerObjectIdentifier id_at_name = new DerObjectIdentifier("2.5.4.41");
|
||||
|
||||
// Token: 0x04007BA6 RID: 31654
|
||||
[Token(Token = "0x4007BA6")]
|
||||
public static readonly DerObjectIdentifier id_at_organizationIdentifier = new DerObjectIdentifier("2.5.4.97");
|
||||
|
||||
// Token: 0x04007BA7 RID: 31655
|
||||
[Token(Token = "0x4007BA7")]
|
||||
public static readonly DerObjectIdentifier IdSha1 = new DerObjectIdentifier("1.3.14.3.2.26");
|
||||
|
||||
// Token: 0x04007BA8 RID: 31656
|
||||
[Token(Token = "0x4007BA8")]
|
||||
public static readonly DerObjectIdentifier RipeMD160 = new DerObjectIdentifier("1.3.36.3.2.1");
|
||||
|
||||
// Token: 0x04007BA9 RID: 31657
|
||||
[Token(Token = "0x4007BA9")]
|
||||
public static readonly DerObjectIdentifier RipeMD160WithRsaEncryption = new DerObjectIdentifier("1.3.36.3.3.1.2");
|
||||
|
||||
// Token: 0x04007BAA RID: 31658
|
||||
[Token(Token = "0x4007BAA")]
|
||||
public static readonly DerObjectIdentifier IdEARsa = new DerObjectIdentifier("2.5.8.1.1");
|
||||
|
||||
// Token: 0x04007BAB RID: 31659
|
||||
[Token(Token = "0x4007BAB")]
|
||||
public static readonly DerObjectIdentifier IdPkix = new DerObjectIdentifier("1.3.6.1.5.5.7");
|
||||
|
||||
// Token: 0x04007BAC RID: 31660
|
||||
[Token(Token = "0x4007BAC")]
|
||||
public static readonly DerObjectIdentifier IdPE = new DerObjectIdentifier(X509ObjectIdentifiers.IdPkix + ".1");
|
||||
|
||||
// Token: 0x04007BAD RID: 31661
|
||||
[Token(Token = "0x4007BAD")]
|
||||
public static readonly DerObjectIdentifier IdAD = new DerObjectIdentifier(X509ObjectIdentifiers.IdPkix + ".48");
|
||||
|
||||
// Token: 0x04007BAE RID: 31662
|
||||
[Token(Token = "0x4007BAE")]
|
||||
public static readonly DerObjectIdentifier IdADCAIssuers = new DerObjectIdentifier(X509ObjectIdentifiers.IdAD + ".2");
|
||||
|
||||
// Token: 0x04007BAF RID: 31663
|
||||
[Token(Token = "0x4007BAF")]
|
||||
public static readonly DerObjectIdentifier IdADOcsp = new DerObjectIdentifier(X509ObjectIdentifiers.IdAD + ".1");
|
||||
|
||||
// Token: 0x04007BB0 RID: 31664
|
||||
[Token(Token = "0x4007BB0")]
|
||||
public static readonly DerObjectIdentifier OcspAccessMethod = X509ObjectIdentifiers.IdADOcsp;
|
||||
|
||||
// Token: 0x04007BB1 RID: 31665
|
||||
[Token(Token = "0x4007BB1")]
|
||||
public static readonly DerObjectIdentifier CrlAccessMethod = X509ObjectIdentifiers.IdADCAIssuers;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user