scripts
This commit is contained in:
+134
@@ -0,0 +1,134 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196B RID: 6507
|
||||
[Token(Token = "0x200196B")]
|
||||
[StructLayout(3)]
|
||||
public class CAKeyUpdAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEC0 RID: 44736 RVA: 0x0028E358 File Offset: 0x0028C558
|
||||
[Token(Token = "0x600AEC0")]
|
||||
[Address(RVA = "0x267FED0", Offset = "0x267E8D0", VA = "0x18267FED0")]
|
||||
private CAKeyUpdAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
this.oldWithNew = cmpCertificate;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
CmpCertificate cmpCertificate2;
|
||||
this.newWithOld = cmpCertificate2;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
CmpCertificate cmpCertificate3;
|
||||
this.newWithNew = cmpCertificate3;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEC1 RID: 44737 RVA: 0x0028E3A0 File Offset: 0x0028C5A0
|
||||
[Token(Token = "0x600AEC1")]
|
||||
[Address(RVA = "0x267FB00", Offset = "0x267E500", VA = "0x18267FB00")]
|
||||
public static CAKeyUpdAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEC1)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CAKeyUpdAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CAKeyUpdAnnContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x17001C17 RID: 7191
|
||||
// (get) Token: 0x0600AEC2 RID: 44738 RVA: 0x0028E408 File Offset: 0x0028C608
|
||||
[Token(Token = "0x17001C17")]
|
||||
public virtual CmpCertificate OldWithNew
|
||||
{
|
||||
[Token(Token = "0x600AEC2")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.oldWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C18 RID: 7192
|
||||
// (get) Token: 0x0600AEC3 RID: 44739 RVA: 0x0028E41C File Offset: 0x0028C61C
|
||||
[Token(Token = "0x17001C18")]
|
||||
public virtual CmpCertificate NewWithOld
|
||||
{
|
||||
[Token(Token = "0x600AEC3")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newWithOld;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C19 RID: 7193
|
||||
// (get) Token: 0x0600AEC4 RID: 44740 RVA: 0x0028E430 File Offset: 0x0028C630
|
||||
[Token(Token = "0x17001C19")]
|
||||
public virtual CmpCertificate NewWithNew
|
||||
{
|
||||
[Token(Token = "0x600AEC4")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.newWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEC5 RID: 44741 RVA: 0x0028E444 File Offset: 0x0028C644
|
||||
[Token(Token = "0x600AEC5")]
|
||||
[Address(RVA = "0x267FD60", Offset = "0x267E760", VA = "0x18267FD60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
CmpCertificate cmpCertificate = this.oldWithNew;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
array[0] = cmpCertificate;
|
||||
CmpCertificate cmpCertificate2 = this.newWithOld;
|
||||
if (cmpCertificate2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = cmpCertificate2;
|
||||
CmpCertificate cmpCertificate3 = this.newWithNew;
|
||||
if (cmpCertificate3 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = cmpCertificate3;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072B0 RID: 29360
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B0")]
|
||||
private readonly CmpCertificate oldWithNew;
|
||||
|
||||
// Token: 0x040072B1 RID: 29361
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072B1")]
|
||||
private readonly CmpCertificate newWithOld;
|
||||
|
||||
// Token: 0x040072B2 RID: 29362
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072B2")]
|
||||
private readonly CmpCertificate newWithNew;
|
||||
}
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196C RID: 6508
|
||||
[Token(Token = "0x200196C")]
|
||||
[StructLayout(3)]
|
||||
public class CertConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEC6 RID: 44742 RVA: 0x0028E4A0 File Offset: 0x0028C6A0
|
||||
[Token(Token = "0x600AEC6")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private CertConfirmContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEC7 RID: 44743 RVA: 0x0028E4BC File Offset: 0x0028C6BC
|
||||
[Token(Token = "0x600AEC7")]
|
||||
[Address(RVA = "0x267FF70", Offset = "0x267E970", VA = "0x18267FF70")]
|
||||
public static CertConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEC7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent::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("Invalid object: "), 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: 0x0600AEC8 RID: 44744 RVA: 0x0028E514 File Offset: 0x0028C714
|
||||
[Token(Token = "0x600AEC8")]
|
||||
[Address(RVA = "0x2680160", Offset = "0x267EB60", VA = "0x182680160", Slot = "6")]
|
||||
public virtual CertStatus[] ToCertStatusArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertStatus[] array = new CertStatus[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
CertStatus certStatus;
|
||||
if (certStatus != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certStatus;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEC9 RID: 44745 RVA: 0x0028E560 File Offset: 0x0028C760
|
||||
[Token(Token = "0x600AEC9")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEC9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertConfirmContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CertConfirmContent::content, ldloc:CertConfirmContent(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: 0x040072B3 RID: 29363
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B3")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196D RID: 6509
|
||||
[Token(Token = "0x200196D")]
|
||||
[StructLayout(3)]
|
||||
public class CertOrEncCert : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AECA RID: 44746 RVA: 0x0028E574 File Offset: 0x0028C774
|
||||
[Token(Token = "0x600AECA")]
|
||||
[Address(RVA = "0x2680680", Offset = "0x267F080", VA = "0x182680680")]
|
||||
private CertOrEncCert(Asn1TaggedObject tagged)
|
||||
{
|
||||
int tagNo = tagged.tagNo;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo == 1)
|
||||
{
|
||||
Asn1Encodable obj = tagged.obj;
|
||||
if (obj == 0)
|
||||
{
|
||||
}
|
||||
EncryptedValue instance = EncryptedValue.GetInstance(obj.ToAsn1Object());
|
||||
this.encryptedCert = instance;
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tagged.obj == 0)
|
||||
{
|
||||
CmpCertificate instance2 = CmpCertificate.GetInstance(0);
|
||||
this.certificate = instance2;
|
||||
return;
|
||||
}
|
||||
int num;
|
||||
CmpCertificate instance3 = CmpCertificate.GetInstance(num);
|
||||
this.certificate = instance3;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AECB RID: 44747 RVA: 0x0028E60C File Offset: 0x0028C80C
|
||||
[Token(Token = "0x600AECB")]
|
||||
[Address(RVA = "0x2680270", Offset = "0x267EC70", VA = "0x182680270")]
|
||||
public static CertOrEncCert GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (obj != 0)
|
||||
{
|
||||
CertOrEncCert certOrEncCert;
|
||||
Asn1Object asn1Object;
|
||||
if (typeof(Asn1TaggedObject).TypeHandle != 0)
|
||||
{
|
||||
if (typeof(Asn1TaggedObject).TypeHandle != (ulong)1L)
|
||||
{
|
||||
IL_96:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
if (certOrEncCert != 0)
|
||||
{
|
||||
asn1Object = certOrEncCert.ToAsn1Object();
|
||||
}
|
||||
EncryptedValue instance = EncryptedValue.GetInstance(asn1Object);
|
||||
certOrEncCert.encryptedCert = instance;
|
||||
}
|
||||
Asn1Object asn1Object2;
|
||||
if (asn1Object != 0)
|
||||
{
|
||||
asn1Object2 = asn1Object.ToAsn1Object();
|
||||
}
|
||||
CmpCertificate instance2 = CmpCertificate.GetInstance(asn1Object2);
|
||||
certOrEncCert.certificate = instance2;
|
||||
return certOrEncCert;
|
||||
}
|
||||
}
|
||||
else if (obj != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
string typeName = Platform.GetTypeName(obj);
|
||||
ArgumentException ex = new ArgumentException("Invalid object: " + typeName, "obj");
|
||||
goto IL_96;
|
||||
}
|
||||
|
||||
// Token: 0x0600AECC RID: 44748 RVA: 0x0028E6D8 File Offset: 0x0028C8D8
|
||||
[Token(Token = "0x600AECC")]
|
||||
[Address(RVA = "0x26807D0", Offset = "0x267F1D0", VA = "0x1826807D0")]
|
||||
public CertOrEncCert(CmpCertificate certificate)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AECC)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certificate")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.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: 0x0600AECD RID: 44749 RVA: 0x0028E704 File Offset: 0x0028C904
|
||||
[Token(Token = "0x600AECD")]
|
||||
[Address(RVA = "0x2680600", Offset = "0x267F000", VA = "0x182680600")]
|
||||
public CertOrEncCert(EncryptedValue encryptedCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AECD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.EncryptedValue)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("encryptedCert")))
|
||||
}
|
||||
|
||||
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: 0x17001C1A RID: 7194
|
||||
// (get) Token: 0x0600AECE RID: 44750 RVA: 0x0028E730 File Offset: 0x0028C930
|
||||
[Token(Token = "0x17001C1A")]
|
||||
public virtual CmpCertificate Certificate
|
||||
{
|
||||
[Token(Token = "0x600AECE")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certificate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C1B RID: 7195
|
||||
// (get) Token: 0x0600AECF RID: 44751 RVA: 0x0028E744 File Offset: 0x0028C944
|
||||
[Token(Token = "0x17001C1B")]
|
||||
public virtual EncryptedValue EncryptedCert
|
||||
{
|
||||
[Token(Token = "0x600AECF")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AED0 RID: 44752 RVA: 0x0028E758 File Offset: 0x0028C958
|
||||
[Token(Token = "0x600AED0")]
|
||||
[Address(RVA = "0x2680560", Offset = "0x267EF60", VA = "0x182680560", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert::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:CmpCertificate[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: 0x040072B4 RID: 29364
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B4")]
|
||||
private readonly CmpCertificate certificate;
|
||||
|
||||
// Token: 0x040072B5 RID: 29365
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072B5")]
|
||||
private readonly EncryptedValue encryptedCert;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196E RID: 6510
|
||||
[Token(Token = "0x200196E")]
|
||||
[StructLayout(3)]
|
||||
public class CertRepMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AED1 RID: 44753 RVA: 0x0028E798 File Offset: 0x0028C998
|
||||
[Token(Token = "0x600AED1")]
|
||||
[Address(RVA = "0x2680F30", Offset = "0x267F930", VA = "0x182680F30")]
|
||||
private CertRepMessage(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
num = 0;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)1L)
|
||||
{
|
||||
goto IL_30;
|
||||
}
|
||||
parser = seq.Parser;
|
||||
}
|
||||
while (parser != 0 && parser == 0);
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(num, true);
|
||||
this.caPubs = instance;
|
||||
IL_30:
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.response = asn1Sequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AED2 RID: 44754 RVA: 0x0028E7EC File Offset: 0x0028C9EC
|
||||
[Token(Token = "0x600AED2")]
|
||||
[Address(RVA = "0x2680970", Offset = "0x267F370", VA = "0x182680970")]
|
||||
public static CertRepMessage GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3F:
|
||||
stloc:string(var_11_45, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_5D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_45)), 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: 0x0600AED3 RID: 44755 RVA: 0x0028E858 File Offset: 0x0028CA58
|
||||
[Token(Token = "0x600AED3")]
|
||||
[Address(RVA = "0x2681050", Offset = "0x267FA50", VA = "0x182681050")]
|
||||
public CertRepMessage(CmpCertificate[] caPubs, CertResponse[] response)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertRepMessage::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate[],BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse[])
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2B:
|
||||
stloc:ArgumentNullException(var_2_35, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("response")))
|
||||
}
|
||||
|
||||
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: 0x0600AED4 RID: 44756 RVA: 0x0028E89C File Offset: 0x0028CA9C
|
||||
[Token(Token = "0x600AED4")]
|
||||
[Address(RVA = "0x2680850", Offset = "0x267F250", VA = "0x182680850", Slot = "6")]
|
||||
public virtual CmpCertificate[] GetCAPubs()
|
||||
{
|
||||
if (this.caPubs != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.caPubs.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = cmpCertificate;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AED5 RID: 44757 RVA: 0x0028E8EC File Offset: 0x0028CAEC
|
||||
[Token(Token = "0x600AED5")]
|
||||
[Address(RVA = "0x2680C40", Offset = "0x267F640", VA = "0x182680C40", Slot = "7")]
|
||||
public virtual CertResponse[] GetResponse()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.response;
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertResponse[] array = new CertResponse[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.response.Parser;
|
||||
CertResponse certResponse;
|
||||
if (certResponse != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certResponse;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AED6 RID: 44758 RVA: 0x0028E938 File Offset: 0x0028CB38
|
||||
[Token(Token = "0x600AED6")]
|
||||
[Address(RVA = "0x2680D50", Offset = "0x267F750", VA = "0x182680D50", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.caPubs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence = this.caPubs;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(16777216 != 0, 16777216, asn1Sequence);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence2 = this.response;
|
||||
if (asn1Sequence2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1Sequence2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072B6 RID: 29366
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B6")]
|
||||
private readonly Asn1Sequence caPubs;
|
||||
|
||||
// Token: 0x040072B7 RID: 29367
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072B7")]
|
||||
private readonly Asn1Sequence response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,213 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200196F RID: 6511
|
||||
[Token(Token = "0x200196F")]
|
||||
[StructLayout(3)]
|
||||
public class CertResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AED7 RID: 44759 RVA: 0x0028E9B8 File Offset: 0x0028CBB8
|
||||
[Token(Token = "0x600AED7")]
|
||||
[Address(RVA = "0x2681540", Offset = "0x267FF40", VA = "0x182681540")]
|
||||
private CertResponse(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.certReqId = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
this.status = pkiStatusInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
CertifiedKeyPair certifiedKeyPair;
|
||||
this.certifiedKeyPair = certifiedKeyPair;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.rspInfo = asn1OctetString;
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
if (parser5 == 0 || parser5 != 0)
|
||||
{
|
||||
}
|
||||
CertifiedKeyPair certifiedKeyPair2;
|
||||
this.certifiedKeyPair = certifiedKeyPair2;
|
||||
}
|
||||
|
||||
// Token: 0x0600AED8 RID: 44760 RVA: 0x0028EA34 File Offset: 0x0028CC34
|
||||
[Token(Token = "0x600AED8")]
|
||||
[Address(RVA = "0x2681130", Offset = "0x267FB30", VA = "0x182681130")]
|
||||
public static CertResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::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("Invalid object: "), 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: 0x0600AED9 RID: 44761 RVA: 0x0028EA84 File Offset: 0x0028CC84
|
||||
[Token(Token = "0x600AED9")]
|
||||
[Address(RVA = "0x26816D0", Offset = "0x26800D0", VA = "0x1826816D0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AED9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_38:
|
||||
stloc:ArgumentNullException(var_2_42, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status")))
|
||||
}
|
||||
|
||||
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: 0x0600AEDA RID: 44762 RVA: 0x0028EAD4 File Offset: 0x0028CCD4
|
||||
[Token(Token = "0x600AEDA")]
|
||||
[Address(RVA = "0x26817A0", Offset = "0x26801A0", VA = "0x1826817A0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEDA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_36:
|
||||
stloc:ArgumentNullException(var_1_40, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status")))
|
||||
}
|
||||
|
||||
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: 0x17001C1C RID: 7196
|
||||
// (get) Token: 0x0600AEDB RID: 44763 RVA: 0x0028EB24 File Offset: 0x0028CD24
|
||||
[Token(Token = "0x17001C1C")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600AEDB")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C1D RID: 7197
|
||||
// (get) Token: 0x0600AEDC RID: 44764 RVA: 0x0028EB38 File Offset: 0x0028CD38
|
||||
[Token(Token = "0x17001C1D")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600AEDC")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C1E RID: 7198
|
||||
// (get) Token: 0x0600AEDD RID: 44765 RVA: 0x0028EB4C File Offset: 0x0028CD4C
|
||||
[Token(Token = "0x17001C1E")]
|
||||
public virtual CertifiedKeyPair CertifiedKeyPair
|
||||
{
|
||||
[Token(Token = "0x600AEDD")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.certifiedKeyPair;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEDE RID: 44766 RVA: 0x0028EB60 File Offset: 0x0028CD60
|
||||
[Token(Token = "0x600AEDE")]
|
||||
[Address(RVA = "0x2681320", Offset = "0x267FD20", VA = "0x182681320", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.certReqId;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
PkiStatusInfo pkiStatusInfo = this.status;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array[1] = pkiStatusInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
||||
CertifiedKeyPair certifiedKeyPair = this.certifiedKeyPair;
|
||||
if (certifiedKeyPair != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = certifiedKeyPair;
|
||||
Asn1OctetString asn1OctetString = this.rspInfo;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = asn1OctetString;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072B8 RID: 29368
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072B8")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040072B9 RID: 29369
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072B9")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040072BA RID: 29370
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072BA")]
|
||||
private readonly CertifiedKeyPair certifiedKeyPair;
|
||||
|
||||
// Token: 0x040072BB RID: 29371
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40072BB")]
|
||||
private readonly Asn1OctetString rspInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001970 RID: 6512
|
||||
[Token(Token = "0x2001970")]
|
||||
[StructLayout(3)]
|
||||
public class CertStatus : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEDF RID: 44767 RVA: 0x0028EBEC File Offset: 0x0028CDEC
|
||||
[Token(Token = "0x600AEDF")]
|
||||
[Address(RVA = "0x2681D60", Offset = "0x2680760", VA = "0x182681D60")]
|
||||
private CertStatus(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.certHash = asn1OctetString;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.certReqId = derInteger;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
this.statusInfo = pkiStatusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEE0 RID: 44768 RVA: 0x0028EC38 File Offset: 0x0028CE38
|
||||
[Token(Token = "0x600AEE0")]
|
||||
[Address(RVA = "0x2681CC0", Offset = "0x26806C0", VA = "0x182681CC0")]
|
||||
public CertStatus(byte[] certHash, BigInteger certReqId)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(certHash);
|
||||
this.certHash = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(certReqId);
|
||||
this.certReqId = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEE1 RID: 44769 RVA: 0x0028EC68 File Offset: 0x0028CE68
|
||||
[Token(Token = "0x600AEE1")]
|
||||
[Address(RVA = "0x2681E20", Offset = "0x2680820", VA = "0x182681E20")]
|
||||
public CertStatus(byte[] certHash, BigInteger certReqId, PkiStatusInfo statusInfo)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(certHash);
|
||||
this.certHash = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(certReqId);
|
||||
this.certReqId = derInteger;
|
||||
this.statusInfo = statusInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEE2 RID: 44770 RVA: 0x0028ECA0 File Offset: 0x0028CEA0
|
||||
[Token(Token = "0x600AEE2")]
|
||||
[Address(RVA = "0x2681880", Offset = "0x2680280", VA = "0x182681880")]
|
||||
public static CertStatus GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEE2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertStatus BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertStatus::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x17001C1F RID: 7199
|
||||
// (get) Token: 0x0600AEE3 RID: 44771 RVA: 0x0028ED08 File Offset: 0x0028CF08
|
||||
[Token(Token = "0x17001C1F")]
|
||||
public virtual Asn1OctetString CertHash
|
||||
{
|
||||
[Token(Token = "0x600AEE3")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certHash;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C20 RID: 7200
|
||||
// (get) Token: 0x0600AEE4 RID: 44772 RVA: 0x0028ED1C File Offset: 0x0028CF1C
|
||||
[Token(Token = "0x17001C20")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600AEE4")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C21 RID: 7201
|
||||
// (get) Token: 0x0600AEE5 RID: 44773 RVA: 0x0028ED30 File Offset: 0x0028CF30
|
||||
[Token(Token = "0x17001C21")]
|
||||
public virtual PkiStatusInfo StatusInfo
|
||||
{
|
||||
[Token(Token = "0x600AEE5")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.statusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEE6 RID: 44774 RVA: 0x0028ED44 File Offset: 0x0028CF44
|
||||
[Token(Token = "0x600AEE6")]
|
||||
[Address(RVA = "0x2681B00", Offset = "0x2680500", VA = "0x182681B00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
Asn1OctetString asn1OctetString = this.certHash;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
DerInteger derInteger = this.certReqId;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
PkiStatusInfo pkiStatusInfo = this.statusInfo;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = pkiStatusInfo;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072BC RID: 29372
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072BC")]
|
||||
private readonly Asn1OctetString certHash;
|
||||
|
||||
// Token: 0x040072BD RID: 29373
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072BD")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040072BE RID: 29374
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072BE")]
|
||||
private readonly PkiStatusInfo statusInfo;
|
||||
}
|
||||
}
|
||||
+234
@@ -0,0 +1,234 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001971 RID: 6513
|
||||
[Token(Token = "0x2001971")]
|
||||
[StructLayout(3)]
|
||||
public class CertifiedKeyPair : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEE7 RID: 44775 RVA: 0x0028EDBC File Offset: 0x0028CFBC
|
||||
[Token(Token = "0x600AEE7")]
|
||||
[Address(RVA = "0x26823D0", Offset = "0x2680DD0", VA = "0x1826823D0")]
|
||||
private CertifiedKeyPair(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertOrEncCert certOrEncCert;
|
||||
this.certOrEncCert = certOrEncCert;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable != (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
EncryptedValue instance = EncryptedValue.GetInstance(asn1TaggedObject);
|
||||
this.privateKey = instance;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject2;
|
||||
PkiPublicationInfo instance2 = PkiPublicationInfo.GetInstance(asn1TaggedObject2);
|
||||
this.publicationInfo = instance2;
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject3;
|
||||
Asn1Encodable obj = asn1TaggedObject3.obj;
|
||||
if (asn1TaggedObject3.tagNo != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object = obj.ToAsn1Object();
|
||||
}
|
||||
if (obj == 0)
|
||||
{
|
||||
EncryptedValue instance3 = EncryptedValue.GetInstance(0);
|
||||
this.privateKey = instance3;
|
||||
return;
|
||||
}
|
||||
int num;
|
||||
EncryptedValue instance4 = EncryptedValue.GetInstance(num);
|
||||
this.privateKey = instance4;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEE8 RID: 44776 RVA: 0x0028EE6C File Offset: 0x0028D06C
|
||||
[Token(Token = "0x600AEE8")]
|
||||
[Address(RVA = "0x2681ED0", Offset = "0x26808D0", VA = "0x182681ED0")]
|
||||
public static CertifiedKeyPair GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEE8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::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("Invalid object: "), 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: 0x0600AEE9 RID: 44777 RVA: 0x0028EEBC File Offset: 0x0028D0BC
|
||||
[Token(Token = "0x600AEE9")]
|
||||
[Address(RVA = "0x2682540", Offset = "0x2680F40", VA = "0x182682540")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEE9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:ArgumentNullException(var_1_2C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certOrEncCert")))
|
||||
}
|
||||
|
||||
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: 0x0600AEEA RID: 44778 RVA: 0x0028EEF8 File Offset: 0x0028D0F8
|
||||
[Token(Token = "0x600AEEA")]
|
||||
[Address(RVA = "0x2682330", Offset = "0x2680D30", VA = "0x182682330")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert, EncryptedValue privateKey, PkiPublicationInfo publicationInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEEA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertOrEncCert,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.EncryptedValue,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.PkiPublicationInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:ArgumentNullException(var_0_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certOrEncCert")))
|
||||
}
|
||||
|
||||
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: 0x17001C22 RID: 7202
|
||||
// (get) Token: 0x0600AEEB RID: 44779 RVA: 0x0028EF30 File Offset: 0x0028D130
|
||||
[Token(Token = "0x17001C22")]
|
||||
public virtual CertOrEncCert CertOrEncCert
|
||||
{
|
||||
[Token(Token = "0x600AEEB")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certOrEncCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C23 RID: 7203
|
||||
// (get) Token: 0x0600AEEC RID: 44780 RVA: 0x0028EF44 File Offset: 0x0028D144
|
||||
[Token(Token = "0x17001C23")]
|
||||
public virtual EncryptedValue PrivateKey
|
||||
{
|
||||
[Token(Token = "0x600AEEC")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.privateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C24 RID: 7204
|
||||
// (get) Token: 0x0600AEED RID: 44781 RVA: 0x0028EF58 File Offset: 0x0028D158
|
||||
[Token(Token = "0x17001C24")]
|
||||
public virtual PkiPublicationInfo PublicationInfo
|
||||
{
|
||||
[Token(Token = "0x600AEED")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.publicationInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEEE RID: 44782 RVA: 0x0028EF6C File Offset: 0x0028D16C
|
||||
[Token(Token = "0x600AEEE")]
|
||||
[Address(RVA = "0x26820C0", Offset = "0x2680AC0", VA = "0x1826820C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
CertOrEncCert certOrEncCert = this.certOrEncCert;
|
||||
if (certOrEncCert != 0)
|
||||
{
|
||||
}
|
||||
array[0] = certOrEncCert;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.privateKey != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
EncryptedValue encryptedValue = this.privateKey;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, encryptedValue);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.publicationInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
PkiPublicationInfo pkiPublicationInfo = this.publicationInfo;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, pkiPublicationInfo);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072BF RID: 29375
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072BF")]
|
||||
private readonly CertOrEncCert certOrEncCert;
|
||||
|
||||
// Token: 0x040072C0 RID: 29376
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072C0")]
|
||||
private readonly EncryptedValue privateKey;
|
||||
|
||||
// Token: 0x040072C1 RID: 29377
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072C1")]
|
||||
private readonly PkiPublicationInfo publicationInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001972 RID: 6514
|
||||
[Token(Token = "0x2001972")]
|
||||
[StructLayout(3)]
|
||||
public class Challenge : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEEF RID: 44783 RVA: 0x0028F02C File Offset: 0x0028D22C
|
||||
[Token(Token = "0x600AEEF")]
|
||||
[Address(RVA = "0x2682A60", Offset = "0x2681460", VA = "0x182682A60")]
|
||||
private Challenge(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable == (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.owf = algorithmIdentifier;
|
||||
}
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.witness = asn1OctetString;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
Asn1OctetString asn1OctetString2;
|
||||
this.challenge = asn1OctetString2;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEF0 RID: 44784 RVA: 0x0028F078 File Offset: 0x0028D278
|
||||
[Token(Token = "0x600AEF0")]
|
||||
[Address(RVA = "0x26825D0", Offset = "0x2680FD0", VA = "0x1826825D0")]
|
||||
public static Challenge GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEF0)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.Challenge BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.Challenge::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x17001C25 RID: 7205
|
||||
// (get) Token: 0x0600AEF1 RID: 44785 RVA: 0x0028F0E0 File Offset: 0x0028D2E0
|
||||
[Token(Token = "0x17001C25")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600AEF1")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEF2 RID: 44786 RVA: 0x0028F0F4 File Offset: 0x0028D2F4
|
||||
[Token(Token = "0x600AEF2")]
|
||||
[Address(RVA = "0x2682850", Offset = "0x2681250", VA = "0x182682850", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
AlgorithmIdentifier algorithmIdentifier = this.owf;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = algorithmIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
asn1EncodableVector.AddOptional(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString = this.witness;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1OctetString;
|
||||
asn1EncodableVector.Add(array2);
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
Asn1OctetString asn1OctetString2 = this.challenge;
|
||||
if (asn1OctetString2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = asn1OctetString2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072C2 RID: 29378
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072C2")]
|
||||
private readonly AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x040072C3 RID: 29379
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072C3")]
|
||||
private readonly Asn1OctetString witness;
|
||||
|
||||
// Token: 0x040072C4 RID: 29380
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072C4")]
|
||||
private readonly Asn1OctetString challenge;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001973 RID: 6515
|
||||
[Token(Token = "0x2001973")]
|
||||
[StructLayout(3)]
|
||||
public class CmpCertificate : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AEF3 RID: 44787 RVA: 0x0028F17C File Offset: 0x0028D37C
|
||||
[Token(Token = "0x600AEF3")]
|
||||
[Address(RVA = "0x3C3A00", Offset = "0x3C2400", VA = "0x1803C3A00")]
|
||||
public CmpCertificate(AttributeCertificate x509v2AttrCert)
|
||||
{
|
||||
this.x509v2AttrCert = x509v2AttrCert;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEF4 RID: 44788 RVA: 0x0028F198 File Offset: 0x0028D398
|
||||
[Token(Token = "0x600AEF4")]
|
||||
[Address(RVA = "0x2682EC0", Offset = "0x26818C0", VA = "0x182682EC0")]
|
||||
public CmpCertificate(X509CertificateStructure x509v3PKCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEF4)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1D:
|
||||
stloc:ArgumentException(var_0_2C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
|
||||
}
|
||||
|
||||
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: 0x0600AEF5 RID: 44789 RVA: 0x0028F1D4 File Offset: 0x0028D3D4
|
||||
[Token(Token = "0x600AEF5")]
|
||||
[Address(RVA = "0x2682B30", Offset = "0x2681530", VA = "0x182682B30")]
|
||||
public static CmpCertificate GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEF5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_79:
|
||||
stloc:ArgumentException(var_12_88, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
|
||||
}
|
||||
|
||||
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: 0x17001C26 RID: 7206
|
||||
// (get) Token: 0x0600AEF6 RID: 44790 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x17001C26")]
|
||||
public virtual bool IsX509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600AEF6")]
|
||||
[Address(RVA = "0x7BA0E0", Offset = "0x7B8AE0", VA = "0x1807BA0E0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C27 RID: 7207
|
||||
// (get) Token: 0x0600AEF7 RID: 44791 RVA: 0x0028F26C File Offset: 0x0028D46C
|
||||
[Token(Token = "0x17001C27")]
|
||||
public virtual X509CertificateStructure X509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600AEF7")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.x509v3PKCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C28 RID: 7208
|
||||
// (get) Token: 0x0600AEF8 RID: 44792 RVA: 0x0028F280 File Offset: 0x0028D480
|
||||
[Token(Token = "0x17001C28")]
|
||||
public virtual AttributeCertificate X509v2AttrCert
|
||||
{
|
||||
[Token(Token = "0x600AEF8")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AEF9 RID: 44793 RVA: 0x0028F294 File Offset: 0x0028D494
|
||||
[Token(Token = "0x600AEF9")]
|
||||
[Address(RVA = "0x2682E20", Offset = "0x2681820", VA = "0x182682E20", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
AttributeCertificate attributeCertificate = this.x509v2AttrCert;
|
||||
if (attributeCertificate == 0)
|
||||
{
|
||||
return this.x509v3PKCert.ToAsn1Object();
|
||||
}
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(16777216 != 0, 16777216, attributeCertificate);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072C5 RID: 29381
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072C5")]
|
||||
private readonly X509CertificateStructure x509v3PKCert;
|
||||
|
||||
// Token: 0x040072C6 RID: 29382
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072C6")]
|
||||
private readonly AttributeCertificate x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
+123
@@ -0,0 +1,123 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001974 RID: 6516
|
||||
[Token(Token = "0x2001974")]
|
||||
[StructLayout(3)]
|
||||
public abstract class CmpObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600AEFA RID: 44794 RVA: 0x0028F2D0 File Offset: 0x0028D4D0
|
||||
[Token(Token = "0x600AEFA")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected CmpObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040072C7 RID: 29383
|
||||
[Token(Token = "0x40072C7")]
|
||||
public static readonly DerObjectIdentifier passwordBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.13");
|
||||
|
||||
// Token: 0x040072C8 RID: 29384
|
||||
[Token(Token = "0x40072C8")]
|
||||
public static readonly DerObjectIdentifier dhBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.30");
|
||||
|
||||
// Token: 0x040072C9 RID: 29385
|
||||
[Token(Token = "0x40072C9")]
|
||||
public static readonly DerObjectIdentifier it_caProtEncCert = new DerObjectIdentifier("1.3.6.1.5.5.7.4.1");
|
||||
|
||||
// Token: 0x040072CA RID: 29386
|
||||
[Token(Token = "0x40072CA")]
|
||||
public static readonly DerObjectIdentifier it_signKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.2");
|
||||
|
||||
// Token: 0x040072CB RID: 29387
|
||||
[Token(Token = "0x40072CB")]
|
||||
public static readonly DerObjectIdentifier it_encKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.3");
|
||||
|
||||
// Token: 0x040072CC RID: 29388
|
||||
[Token(Token = "0x40072CC")]
|
||||
public static readonly DerObjectIdentifier it_preferredSymAlg = new DerObjectIdentifier("1.3.6.1.5.5.7.4.4");
|
||||
|
||||
// Token: 0x040072CD RID: 29389
|
||||
[Token(Token = "0x40072CD")]
|
||||
public static readonly DerObjectIdentifier it_caKeyUpdateInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.4.5");
|
||||
|
||||
// Token: 0x040072CE RID: 29390
|
||||
[Token(Token = "0x40072CE")]
|
||||
public static readonly DerObjectIdentifier it_currentCRL = new DerObjectIdentifier("1.3.6.1.5.5.7.4.6");
|
||||
|
||||
// Token: 0x040072CF RID: 29391
|
||||
[Token(Token = "0x40072CF")]
|
||||
public static readonly DerObjectIdentifier it_unsupportedOIDs = new DerObjectIdentifier("1.3.6.1.5.5.7.4.7");
|
||||
|
||||
// Token: 0x040072D0 RID: 29392
|
||||
[Token(Token = "0x40072D0")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamReq = new DerObjectIdentifier("1.3.6.1.5.5.7.4.10");
|
||||
|
||||
// Token: 0x040072D1 RID: 29393
|
||||
[Token(Token = "0x40072D1")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamRep = new DerObjectIdentifier("1.3.6.1.5.5.7.4.11");
|
||||
|
||||
// Token: 0x040072D2 RID: 29394
|
||||
[Token(Token = "0x40072D2")]
|
||||
public static readonly DerObjectIdentifier it_revPassphrase = new DerObjectIdentifier("1.3.6.1.5.5.7.4.12");
|
||||
|
||||
// Token: 0x040072D3 RID: 29395
|
||||
[Token(Token = "0x40072D3")]
|
||||
public static readonly DerObjectIdentifier it_implicitConfirm = new DerObjectIdentifier("1.3.6.1.5.5.7.4.13");
|
||||
|
||||
// Token: 0x040072D4 RID: 29396
|
||||
[Token(Token = "0x40072D4")]
|
||||
public static readonly DerObjectIdentifier it_confirmWaitTime = new DerObjectIdentifier("1.3.6.1.5.5.7.4.14");
|
||||
|
||||
// Token: 0x040072D5 RID: 29397
|
||||
[Token(Token = "0x40072D5")]
|
||||
public static readonly DerObjectIdentifier it_origPKIMessage = new DerObjectIdentifier("1.3.6.1.5.5.7.4.15");
|
||||
|
||||
// Token: 0x040072D6 RID: 29398
|
||||
[Token(Token = "0x40072D6")]
|
||||
public static readonly DerObjectIdentifier it_suppLangTags = new DerObjectIdentifier("1.3.6.1.5.5.7.4.16");
|
||||
|
||||
// Token: 0x040072D7 RID: 29399
|
||||
[Token(Token = "0x40072D7")]
|
||||
public static readonly DerObjectIdentifier regCtrl_regToken = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.1");
|
||||
|
||||
// Token: 0x040072D8 RID: 29400
|
||||
[Token(Token = "0x40072D8")]
|
||||
public static readonly DerObjectIdentifier regCtrl_authenticator = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.2");
|
||||
|
||||
// Token: 0x040072D9 RID: 29401
|
||||
[Token(Token = "0x40072D9")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiPublicationInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.3");
|
||||
|
||||
// Token: 0x040072DA RID: 29402
|
||||
[Token(Token = "0x40072DA")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiArchiveOptions = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.4");
|
||||
|
||||
// Token: 0x040072DB RID: 29403
|
||||
[Token(Token = "0x40072DB")]
|
||||
public static readonly DerObjectIdentifier regCtrl_oldCertID = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.5");
|
||||
|
||||
// Token: 0x040072DC RID: 29404
|
||||
[Token(Token = "0x40072DC")]
|
||||
public static readonly DerObjectIdentifier regCtrl_protocolEncrKey = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.6");
|
||||
|
||||
// Token: 0x040072DD RID: 29405
|
||||
[Token(Token = "0x40072DD")]
|
||||
public static readonly DerObjectIdentifier regCtrl_altCertTemplate = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.7");
|
||||
|
||||
// Token: 0x040072DE RID: 29406
|
||||
[Token(Token = "0x40072DE")]
|
||||
public static readonly DerObjectIdentifier regInfo_utf8Pairs = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.1");
|
||||
|
||||
// Token: 0x040072DF RID: 29407
|
||||
[Token(Token = "0x40072DF")]
|
||||
public static readonly DerObjectIdentifier regInfo_certReq = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.2");
|
||||
|
||||
// Token: 0x040072E0 RID: 29408
|
||||
[Token(Token = "0x40072E0")]
|
||||
public static readonly DerObjectIdentifier ct_encKeyWithID = new DerObjectIdentifier("1.2.840.113549.1.9.16.1.21");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001975 RID: 6517
|
||||
[Token(Token = "0x2001975")]
|
||||
[StructLayout(3)]
|
||||
public class CrlAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AEFC RID: 44796 RVA: 0x0028F478 File Offset: 0x0028D678
|
||||
[Token(Token = "0x600AEFC")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private CrlAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEFD RID: 44797 RVA: 0x0028F494 File Offset: 0x0028D694
|
||||
[Token(Token = "0x600AEFD")]
|
||||
[Address(RVA = "0x26834E0", Offset = "0x2681EE0", VA = "0x1826834E0")]
|
||||
public static CrlAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEFD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent::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("Invalid object: "), 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: 0x0600AEFE RID: 44798 RVA: 0x0028F4EC File Offset: 0x0028D6EC
|
||||
[Token(Token = "0x600AEFE")]
|
||||
[Address(RVA = "0x26836D0", Offset = "0x26820D0", VA = "0x1826836D0", Slot = "6")]
|
||||
public virtual CertificateList[] ToCertificateListArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertificateList[] array = new CertificateList[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
CertificateList certificateList;
|
||||
if (certificateList != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certificateList;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AEFF RID: 44799 RVA: 0x0028F538 File Offset: 0x0028D738
|
||||
[Token(Token = "0x600AEFF")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AEFF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CrlAnnContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CrlAnnContent::content, ldloc:CrlAnnContent(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: 0x040072E1 RID: 29409
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E1")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001976 RID: 6518
|
||||
[Token(Token = "0x2001976")]
|
||||
[StructLayout(3)]
|
||||
public class ErrorMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF00 RID: 44800 RVA: 0x0028F54C File Offset: 0x0028D74C
|
||||
[Token(Token = "0x600AF00")]
|
||||
[Address(RVA = "0x2684E60", Offset = "0x2683860", VA = "0x182684E60")]
|
||||
private ErrorMsgContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
this.pkiStatusInfo = pkiStatusInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)1 < asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 != 0 && parser2 != 0)
|
||||
{
|
||||
DerInteger derInteger;
|
||||
this.errorCode = derInteger;
|
||||
}
|
||||
PkiFreeText pkiFreeText;
|
||||
this.errorDetails = pkiFreeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF01 RID: 44801 RVA: 0x0028F59C File Offset: 0x0028D79C
|
||||
[Token(Token = "0x600AF01")]
|
||||
[Address(RVA = "0x26849A0", Offset = "0x26833A0", VA = "0x1826849A0")]
|
||||
public static ErrorMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF01)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_44:
|
||||
stloc:string(var_11_4A, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_62, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_4A)), 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: 0x0600AF02 RID: 44802 RVA: 0x0028F60C File Offset: 0x0028D80C
|
||||
[Token(Token = "0x600AF02")]
|
||||
[Address(RVA = "0x2684F90", Offset = "0x2683990", VA = "0x182684F90")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF02)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:ArgumentNullException(var_1_2C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("pkiStatusInfo")))
|
||||
}
|
||||
|
||||
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: 0x0600AF03 RID: 44803 RVA: 0x0028F648 File Offset: 0x0028D848
|
||||
[Token(Token = "0x600AF03")]
|
||||
[Address(RVA = "0x2685020", Offset = "0x2683A20", VA = "0x182685020")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo, DerInteger errorCode, PkiFreeText errorDetails)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF03)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ErrorMsgContent::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:ArgumentNullException(var_0_2A, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("pkiStatusInfo")))
|
||||
}
|
||||
|
||||
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: 0x17001C29 RID: 7209
|
||||
// (get) Token: 0x0600AF04 RID: 44804 RVA: 0x0028F680 File Offset: 0x0028D880
|
||||
[Token(Token = "0x17001C29")]
|
||||
public virtual PkiStatusInfo PkiStatusInfo
|
||||
{
|
||||
[Token(Token = "0x600AF04")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pkiStatusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C2A RID: 7210
|
||||
// (get) Token: 0x0600AF05 RID: 44805 RVA: 0x0028F694 File Offset: 0x0028D894
|
||||
[Token(Token = "0x17001C2A")]
|
||||
public virtual DerInteger ErrorCode
|
||||
{
|
||||
[Token(Token = "0x600AF05")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.errorCode;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C2B RID: 7211
|
||||
// (get) Token: 0x0600AF06 RID: 44806 RVA: 0x0028F6A8 File Offset: 0x0028D8A8
|
||||
[Token(Token = "0x17001C2B")]
|
||||
public virtual PkiFreeText ErrorDetails
|
||||
{
|
||||
[Token(Token = "0x600AF06")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.errorDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF07 RID: 44807 RVA: 0x0028F6BC File Offset: 0x0028D8BC
|
||||
[Token(Token = "0x600AF07")]
|
||||
[Address(RVA = "0x2684C90", Offset = "0x2683690", VA = "0x182684C90", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
PkiStatusInfo pkiStatusInfo = this.pkiStatusInfo;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiStatusInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.errorCode;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derInteger;
|
||||
PkiFreeText pkiFreeText = this.errorDetails;
|
||||
if (pkiFreeText != 0)
|
||||
{
|
||||
}
|
||||
array2[1] = pkiFreeText;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072E2 RID: 29410
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E2")]
|
||||
private readonly PkiStatusInfo pkiStatusInfo;
|
||||
|
||||
// Token: 0x040072E3 RID: 29411
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072E3")]
|
||||
private readonly DerInteger errorCode;
|
||||
|
||||
// Token: 0x040072E4 RID: 29412
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072E4")]
|
||||
private readonly PkiFreeText errorDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001977 RID: 6519
|
||||
[Token(Token = "0x2001977")]
|
||||
[StructLayout(3)]
|
||||
public class GenMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF08 RID: 44808 RVA: 0x0028F734 File Offset: 0x0028D934
|
||||
[Token(Token = "0x600AF08")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private GenMsgContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF09 RID: 44809 RVA: 0x0028F750 File Offset: 0x0028D950
|
||||
[Token(Token = "0x600AF09")]
|
||||
[Address(RVA = "0x26852C0", Offset = "0x2683CC0", VA = "0x1826852C0")]
|
||||
public static GenMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF09)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent::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("Invalid object: "), 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: 0x0600AF0A RID: 44810 RVA: 0x0028F7A8 File Offset: 0x0028D9A8
|
||||
[Token(Token = "0x600AF0A")]
|
||||
[Address(RVA = "0x26855C0", Offset = "0x2683FC0", VA = "0x1826855C0")]
|
||||
public GenMsgContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF0B RID: 44811 RVA: 0x0028F7CC File Offset: 0x0028D9CC
|
||||
[Token(Token = "0x600AF0B")]
|
||||
[Address(RVA = "0x26854B0", Offset = "0x2683EB0", VA = "0x1826854B0", Slot = "6")]
|
||||
public virtual InfoTypeAndValue[] ToInfoTypeAndValueArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
InfoTypeAndValue infoTypeAndValue;
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = infoTypeAndValue;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF0C RID: 44812 RVA: 0x0028F818 File Offset: 0x0028DA18
|
||||
[Token(Token = "0x600AF0C")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF0C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenMsgContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(GenMsgContent::content, ldloc:GenMsgContent(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: 0x040072E5 RID: 29413
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E5")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001978 RID: 6520
|
||||
[Token(Token = "0x2001978")]
|
||||
[StructLayout(3)]
|
||||
public class GenRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF0D RID: 44813 RVA: 0x0028F82C File Offset: 0x0028DA2C
|
||||
[Token(Token = "0x600AF0D")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
private GenRepContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF0E RID: 44814 RVA: 0x0028F848 File Offset: 0x0028DA48
|
||||
[Token(Token = "0x600AF0E")]
|
||||
[Address(RVA = "0x2685630", Offset = "0x2684030", VA = "0x182685630")]
|
||||
public static GenRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF0E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent::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("Invalid object: "), 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: 0x0600AF0F RID: 44815 RVA: 0x0028F8A0 File Offset: 0x0028DAA0
|
||||
[Token(Token = "0x600AF0F")]
|
||||
[Address(RVA = "0x2685930", Offset = "0x2684330", VA = "0x182685930")]
|
||||
public GenRepContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF10 RID: 44816 RVA: 0x0028F8C4 File Offset: 0x0028DAC4
|
||||
[Token(Token = "0x600AF10")]
|
||||
[Address(RVA = "0x2685820", Offset = "0x2684220", VA = "0x182685820", Slot = "6")]
|
||||
public virtual InfoTypeAndValue[] ToInfoTypeAndValueArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
InfoTypeAndValue infoTypeAndValue;
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = infoTypeAndValue;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF11 RID: 44817 RVA: 0x0028F910 File Offset: 0x0028DB10
|
||||
[Token(Token = "0x600AF11")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF11)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.GenRepContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(GenRepContent::content, ldloc:GenRepContent(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: 0x040072E6 RID: 29414
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E6")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+135
@@ -0,0 +1,135 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001979 RID: 6521
|
||||
[Token(Token = "0x2001979")]
|
||||
[StructLayout(3)]
|
||||
public class InfoTypeAndValue : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF12 RID: 44818 RVA: 0x0028F924 File Offset: 0x0028DB24
|
||||
[Token(Token = "0x600AF12")]
|
||||
[Address(RVA = "0x2687070", Offset = "0x2685A70", VA = "0x182687070")]
|
||||
private InfoTypeAndValue(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.infoType = derObjectIdentifier;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
this.infoValue = parser2;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF13 RID: 44819 RVA: 0x0028F960 File Offset: 0x0028DB60
|
||||
[Token(Token = "0x600AF13")]
|
||||
[Address(RVA = "0x2686C80", Offset = "0x2685680", VA = "0x182686C80")]
|
||||
public static InfoTypeAndValue GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF13)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_23:
|
||||
stloc:string(var_6_29, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_41, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_6_29)), 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: 0x0600AF14 RID: 44820 RVA: 0x0028F9B0 File Offset: 0x0028DBB0
|
||||
[Token(Token = "0x600AF14")]
|
||||
[Address(RVA = "0xC25EB0", Offset = "0xC248B0", VA = "0x180C25EB0")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF15 RID: 44821 RVA: 0x0028F9D4 File Offset: 0x0028DBD4
|
||||
[Token(Token = "0x600AF15")]
|
||||
[Address(RVA = "0x3C39C0", Offset = "0x3C23C0", VA = "0x1803C39C0")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType, Asn1Encodable optionalValue)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = optionalValue;
|
||||
}
|
||||
|
||||
// Token: 0x17001C2C RID: 7212
|
||||
// (get) Token: 0x0600AF16 RID: 44822 RVA: 0x0028F9F8 File Offset: 0x0028DBF8
|
||||
[Token(Token = "0x17001C2C")]
|
||||
public virtual DerObjectIdentifier InfoType
|
||||
{
|
||||
[Token(Token = "0x600AF16")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.infoType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C2D RID: 7213
|
||||
// (get) Token: 0x0600AF17 RID: 44823 RVA: 0x0028FA0C File Offset: 0x0028DC0C
|
||||
[Token(Token = "0x17001C2D")]
|
||||
public virtual Asn1Encodable InfoValue
|
||||
{
|
||||
[Token(Token = "0x600AF17")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.infoValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF18 RID: 44824 RVA: 0x0028FA20 File Offset: 0x0028DC20
|
||||
[Token(Token = "0x600AF18")]
|
||||
[Address(RVA = "0x2686F00", Offset = "0x2685900", VA = "0x182686F00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerObjectIdentifier derObjectIdentifier = this.infoType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.infoValue != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Encodable asn1Encodable = this.infoValue;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = asn1Encodable;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040072E7 RID: 29415
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E7")]
|
||||
private readonly DerObjectIdentifier infoType;
|
||||
|
||||
// Token: 0x040072E8 RID: 29416
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072E8")]
|
||||
private readonly Asn1Encodable infoValue;
|
||||
}
|
||||
}
|
||||
+208
@@ -0,0 +1,208 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197A RID: 6522
|
||||
[Token(Token = "0x200197A")]
|
||||
[StructLayout(3)]
|
||||
public class KeyRecRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF19 RID: 44825 RVA: 0x0028FA8C File Offset: 0x0028DC8C
|
||||
[Token(Token = "0x600AF19")]
|
||||
[Address(RVA = "0x28F1D50", Offset = "0x28F0750", VA = "0x1828F1D50")]
|
||||
private KeyRecRepContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
this.status = pkiStatusInfo;
|
||||
uint num;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num < asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
int tagNo = asn1TaggedObject.tagNo;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1TaggedObject.GetObject());
|
||||
this.keyPairHist = instance;
|
||||
num += (uint)1;
|
||||
}
|
||||
Asn1Sequence instance2 = Asn1Sequence.GetInstance(asn1TaggedObject.GetObject());
|
||||
this.caCerts = instance2;
|
||||
num += (uint)1;
|
||||
}
|
||||
CmpCertificate instance3 = CmpCertificate.GetInstance(asn1TaggedObject.GetObject());
|
||||
this.newSigCert = instance3;
|
||||
num += (uint)1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF1A RID: 44826 RVA: 0x0028FB3C File Offset: 0x0028DD3C
|
||||
[Token(Token = "0x600AF1A")]
|
||||
[Address(RVA = "0x28F1900", Offset = "0x28F0300", VA = "0x1828F1900")]
|
||||
public static KeyRecRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF1A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.KeyRecRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.KeyRecRepContent::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("Invalid object: "), 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: 0x17001C2E RID: 7214
|
||||
// (get) Token: 0x0600AF1B RID: 44827 RVA: 0x0028FB8C File Offset: 0x0028DD8C
|
||||
[Token(Token = "0x17001C2E")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600AF1B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C2F RID: 7215
|
||||
// (get) Token: 0x0600AF1C RID: 44828 RVA: 0x0028FBA0 File Offset: 0x0028DDA0
|
||||
[Token(Token = "0x17001C2F")]
|
||||
public virtual CmpCertificate NewSigCert
|
||||
{
|
||||
[Token(Token = "0x600AF1C")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newSigCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF1D RID: 44829 RVA: 0x0028FBB4 File Offset: 0x0028DDB4
|
||||
[Token(Token = "0x600AF1D")]
|
||||
[Address(RVA = "0x28F17E0", Offset = "0x28F01E0", VA = "0x1828F17E0", Slot = "8")]
|
||||
public virtual CmpCertificate[] GetCACerts()
|
||||
{
|
||||
if (this.caCerts != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.caCerts.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = cmpCertificate;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF1E RID: 44830 RVA: 0x0028FC04 File Offset: 0x0028DE04
|
||||
[Token(Token = "0x600AF1E")]
|
||||
[Address(RVA = "0x28F1AF0", Offset = "0x28F04F0", VA = "0x1828F1AF0", Slot = "9")]
|
||||
public virtual CertifiedKeyPair[] GetKeyPairHist()
|
||||
{
|
||||
if (this.keyPairHist != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertifiedKeyPair[] array = new CertifiedKeyPair[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.keyPairHist.Parser;
|
||||
CertifiedKeyPair certifiedKeyPair;
|
||||
if (certifiedKeyPair != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certifiedKeyPair;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF1F RID: 44831 RVA: 0x0028FC54 File Offset: 0x0028DE54
|
||||
[Token(Token = "0x600AF1F")]
|
||||
[Address(RVA = "0x28F1C10", Offset = "0x28F0610", VA = "0x1828F1C10", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
PkiStatusInfo pkiStatusInfo = this.status;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiStatusInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
CmpCertificate cmpCertificate = this.newSigCert;
|
||||
int num = 0;
|
||||
this.AddOptional(asn1EncodableVector, num, cmpCertificate);
|
||||
Asn1Sequence asn1Sequence = this.caCerts;
|
||||
this.AddOptional(asn1EncodableVector, 1, asn1Sequence);
|
||||
Asn1Sequence asn1Sequence2 = this.keyPairHist;
|
||||
this.AddOptional(asn1EncodableVector, 2, asn1Sequence2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF20 RID: 44832 RVA: 0x0028FCCC File Offset: 0x0028DECC
|
||||
[Token(Token = "0x600AF20")]
|
||||
[Address(RVA = "0x28F16E0", Offset = "0x28F00E0", VA = "0x1828F16E0")]
|
||||
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040072E9 RID: 29417
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072E9")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040072EA RID: 29418
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072EA")]
|
||||
private readonly CmpCertificate newSigCert;
|
||||
|
||||
// Token: 0x040072EB RID: 29419
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072EB")]
|
||||
private readonly Asn1Sequence caCerts;
|
||||
|
||||
// Token: 0x040072EC RID: 29420
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40072EC")]
|
||||
private readonly Asn1Sequence keyPairHist;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197B RID: 6523
|
||||
[Token(Token = "0x200197B")]
|
||||
[StructLayout(3)]
|
||||
public class OobCertHash : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF21 RID: 44833 RVA: 0x0028FD08 File Offset: 0x0028DF08
|
||||
[Token(Token = "0x600AF21")]
|
||||
[Address(RVA = "0x28F3680", Offset = "0x28F2080", VA = "0x1828F3680")]
|
||||
private OobCertHash(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.hashVal = derBitString;
|
||||
parser2 = seq.Parser;
|
||||
}
|
||||
while (parser2 == 0);
|
||||
CertId certId;
|
||||
this.certId = certId;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.hashAlg = algorithmIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF22 RID: 44834 RVA: 0x0028FD54 File Offset: 0x0028DF54
|
||||
[Token(Token = "0x600AF22")]
|
||||
[Address(RVA = "0x28F3210", Offset = "0x28F1C10", VA = "0x1828F3210")]
|
||||
public static OobCertHash GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF22)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.OobCertHash BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.OobCertHash::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_42:
|
||||
stloc:string(var_11_48, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_48)), 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: 0x17001C30 RID: 7216
|
||||
// (get) Token: 0x0600AF23 RID: 44835 RVA: 0x0028FDC4 File Offset: 0x0028DFC4
|
||||
[Token(Token = "0x17001C30")]
|
||||
public virtual AlgorithmIdentifier HashAlg
|
||||
{
|
||||
[Token(Token = "0x600AF23")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.hashAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C31 RID: 7217
|
||||
// (get) Token: 0x0600AF24 RID: 44836 RVA: 0x0028FDD8 File Offset: 0x0028DFD8
|
||||
[Token(Token = "0x17001C31")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600AF24")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF25 RID: 44837 RVA: 0x0028FDEC File Offset: 0x0028DFEC
|
||||
[Token(Token = "0x600AF25")]
|
||||
[Address(RVA = "0x28F3540", Offset = "0x28F1F40", VA = "0x1828F3540", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
AlgorithmIdentifier algorithmIdentifier = this.hashAlg;
|
||||
int num = 0;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
this.AddOptional(asn1EncodableVector, num, algorithmIdentifier);
|
||||
CertId certId = this.certId;
|
||||
this.AddOptional(asn1EncodableVector, 1, certId);
|
||||
Asn1Encodable[] array = new Asn1Encodable[0];
|
||||
DerBitString derBitString = this.hashVal;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derBitString;
|
||||
asn1EncodableVector.Add(array);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF26 RID: 44838 RVA: 0x0028FE54 File Offset: 0x0028E054
|
||||
[Token(Token = "0x600AF26")]
|
||||
[Address(RVA = "0x28F3110", Offset = "0x28F1B10", VA = "0x1828F3110")]
|
||||
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x040072ED RID: 29421
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40072ED")]
|
||||
private readonly AlgorithmIdentifier hashAlg;
|
||||
|
||||
// Token: 0x040072EE RID: 29422
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40072EE")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x040072EF RID: 29423
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40072EF")]
|
||||
private readonly DerBitString hashVal;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001987 RID: 6535
|
||||
[Token(Token = "0x2001987")]
|
||||
[StructLayout(3)]
|
||||
public class PbmParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF86 RID: 44934 RVA: 0x0029121C File Offset: 0x0028F41C
|
||||
[Token(Token = "0x600AF86")]
|
||||
[Address(RVA = "0x28F65C0", Offset = "0x28F4FC0", VA = "0x1828F65C0")]
|
||||
private PbmParameter(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.salt = asn1OctetString;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.owf = algorithmIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.iterationCount = derInteger;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier2;
|
||||
this.mac = algorithmIdentifier2;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF87 RID: 44935 RVA: 0x00291274 File Offset: 0x0028F474
|
||||
[Token(Token = "0x600AF87")]
|
||||
[Address(RVA = "0x28F6180", Offset = "0x28F4B80", VA = "0x1828F6180")]
|
||||
public static PbmParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF87)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PbmParameter BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PbmParameter::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_60, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_48)), 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: 0x0600AF88 RID: 44936 RVA: 0x002912E4 File Offset: 0x0028F4E4
|
||||
[Token(Token = "0x600AF88")]
|
||||
[Address(RVA = "0x28F6690", Offset = "0x28F5090", VA = "0x1828F6690")]
|
||||
public PbmParameter(byte[] salt, AlgorithmIdentifier owf, int iterationCount, AlgorithmIdentifier mac)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(salt);
|
||||
DerInteger derInteger = new DerInteger(iterationCount);
|
||||
base..ctor();
|
||||
this.salt = derOctetString;
|
||||
this.iterationCount = derInteger;
|
||||
this.mac = 0;
|
||||
this.owf = owf;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF89 RID: 44937 RVA: 0x00291324 File Offset: 0x0028F524
|
||||
[Token(Token = "0x600AF89")]
|
||||
[Address(RVA = "0x9BCAC0", Offset = "0x9BB4C0", VA = "0x1809BCAC0")]
|
||||
public PbmParameter(Asn1OctetString salt, AlgorithmIdentifier owf, DerInteger iterationCount, AlgorithmIdentifier mac)
|
||||
{
|
||||
this.salt = salt;
|
||||
this.iterationCount = iterationCount;
|
||||
this.mac = 0;
|
||||
this.owf = owf;
|
||||
}
|
||||
|
||||
// Token: 0x17001C49 RID: 7241
|
||||
// (get) Token: 0x0600AF8A RID: 44938 RVA: 0x00291354 File Offset: 0x0028F554
|
||||
[Token(Token = "0x17001C49")]
|
||||
public virtual Asn1OctetString Salt
|
||||
{
|
||||
[Token(Token = "0x600AF8A")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.salt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4A RID: 7242
|
||||
// (get) Token: 0x0600AF8B RID: 44939 RVA: 0x00291368 File Offset: 0x0028F568
|
||||
[Token(Token = "0x17001C4A")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600AF8B")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4B RID: 7243
|
||||
// (get) Token: 0x0600AF8C RID: 44940 RVA: 0x0029137C File Offset: 0x0028F57C
|
||||
[Token(Token = "0x17001C4B")]
|
||||
public virtual DerInteger IterationCount
|
||||
{
|
||||
[Token(Token = "0x600AF8C")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.iterationCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4C RID: 7244
|
||||
// (get) Token: 0x0600AF8D RID: 44941 RVA: 0x00291390 File Offset: 0x0028F590
|
||||
[Token(Token = "0x17001C4C")]
|
||||
public virtual AlgorithmIdentifier Mac
|
||||
{
|
||||
[Token(Token = "0x600AF8D")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF8E RID: 44942 RVA: 0x002913A4 File Offset: 0x0028F5A4
|
||||
[Token(Token = "0x600AF8E")]
|
||||
[Address(RVA = "0x28F6400", Offset = "0x28F4E00", VA = "0x1828F6400", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[4];
|
||||
Asn1OctetString asn1OctetString = this.salt;
|
||||
if (asn1OctetString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1OctetString;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.owf;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
DerInteger derInteger = this.iterationCount;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derInteger;
|
||||
AlgorithmIdentifier algorithmIdentifier2 = this.mac;
|
||||
if (algorithmIdentifier2 != 0)
|
||||
{
|
||||
}
|
||||
array[3] = algorithmIdentifier2;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400735C RID: 29532
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400735C")]
|
||||
private Asn1OctetString salt;
|
||||
|
||||
// Token: 0x0400735D RID: 29533
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400735D")]
|
||||
private AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x0400735E RID: 29534
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400735E")]
|
||||
private DerInteger iterationCount;
|
||||
|
||||
// Token: 0x0400735F RID: 29535
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400735F")]
|
||||
private AlgorithmIdentifier mac;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197C RID: 6524
|
||||
[Token(Token = "0x200197C")]
|
||||
[StructLayout(3)]
|
||||
public class PkiBody : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600AF27 RID: 44839 RVA: 0x0028FE90 File Offset: 0x0028E090
|
||||
[Token(Token = "0x600AF27")]
|
||||
[Address(RVA = "0x28F6A00", Offset = "0x28F5400", VA = "0x1828F6A00")]
|
||||
public static PkiBody GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF27)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_31:
|
||||
stloc:string(var_8_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_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: 0x0600AF28 RID: 44840 RVA: 0x0028FEF0 File Offset: 0x0028E0F0
|
||||
[Token(Token = "0x600AF28")]
|
||||
[Address(RVA = "0x28F6C80", Offset = "0x28F5680", VA = "0x1828F6C80")]
|
||||
private PkiBody(Asn1TaggedObject tagged)
|
||||
{
|
||||
int num = tagged.tagNo;
|
||||
this.tagNo = num;
|
||||
Asn1Object @object = tagged.GetObject();
|
||||
Asn1Encodable bodyForType = PkiBody.GetBodyForType(num, @object);
|
||||
this.body = bodyForType;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF29 RID: 44841 RVA: 0x0028FF30 File Offset: 0x0028E130
|
||||
[Token(Token = "0x600AF29")]
|
||||
[Address(RVA = "0x28F6CE0", Offset = "0x28F56E0", VA = "0x1828F6CE0")]
|
||||
public PkiBody(int type, Asn1Encodable content)
|
||||
{
|
||||
this.tagNo = type;
|
||||
Asn1Encodable bodyForType = PkiBody.GetBodyForType(type, content);
|
||||
this.body = bodyForType;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF2A RID: 44842 RVA: 0x0028FF5C File Offset: 0x0028E15C
|
||||
[Token(Token = "0x600AF2A")]
|
||||
[Address(RVA = "0x28F6750", Offset = "0x28F5150", VA = "0x1828F6750")]
|
||||
private static Asn1Encodable GetBodyForType(int type, Asn1Encodable o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF2A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::GetBodyForType(System.Int32,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0C:
|
||||
stloc:ArgumentException(var_20_21, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("unknown tag number: "), ldloc:int32[exp:object](type)), ldstr:string("type")))
|
||||
}
|
||||
|
||||
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: 0x17001C32 RID: 7218
|
||||
// (get) Token: 0x0600AF2B RID: 44843 RVA: 0x0028FF8C File Offset: 0x0028E18C
|
||||
[Token(Token = "0x17001C32")]
|
||||
public virtual int Type
|
||||
{
|
||||
[Token(Token = "0x600AF2B")]
|
||||
[Address(RVA = "0x3C1C50", Offset = "0x3C0650", VA = "0x1803C1C50", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C33 RID: 7219
|
||||
// (get) Token: 0x0600AF2C RID: 44844 RVA: 0x0028FFA0 File Offset: 0x0028E1A0
|
||||
[Token(Token = "0x17001C33")]
|
||||
public virtual Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600AF2C")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF2D RID: 44845 RVA: 0x0028FFB4 File Offset: 0x0028E1B4
|
||||
[Token(Token = "0x600AF2D")]
|
||||
[Address(RVA = "0x28F6C10", Offset = "0x28F5610", VA = "0x1828F6C10", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF2D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiBody::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:int32(var_0_06, ldfld:int32(PkiBody::tagNo, ldloc:PkiBody(this)))
|
||||
stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(PkiBody::body, ldloc:PkiBody(this)))
|
||||
stloc:DerTaggedObject(var_2_16, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldc.i4:bool(1), ldloc:int32(var_0_06), ldloc: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: 0x040072F0 RID: 29424
|
||||
[Token(Token = "0x40072F0")]
|
||||
public const int TYPE_INIT_REQ = 0;
|
||||
|
||||
// Token: 0x040072F1 RID: 29425
|
||||
[Token(Token = "0x40072F1")]
|
||||
public const int TYPE_INIT_REP = 1;
|
||||
|
||||
// Token: 0x040072F2 RID: 29426
|
||||
[Token(Token = "0x40072F2")]
|
||||
public const int TYPE_CERT_REQ = 2;
|
||||
|
||||
// Token: 0x040072F3 RID: 29427
|
||||
[Token(Token = "0x40072F3")]
|
||||
public const int TYPE_CERT_REP = 3;
|
||||
|
||||
// Token: 0x040072F4 RID: 29428
|
||||
[Token(Token = "0x40072F4")]
|
||||
public const int TYPE_P10_CERT_REQ = 4;
|
||||
|
||||
// Token: 0x040072F5 RID: 29429
|
||||
[Token(Token = "0x40072F5")]
|
||||
public const int TYPE_POPO_CHALL = 5;
|
||||
|
||||
// Token: 0x040072F6 RID: 29430
|
||||
[Token(Token = "0x40072F6")]
|
||||
public const int TYPE_POPO_REP = 6;
|
||||
|
||||
// Token: 0x040072F7 RID: 29431
|
||||
[Token(Token = "0x40072F7")]
|
||||
public const int TYPE_KEY_UPDATE_REQ = 7;
|
||||
|
||||
// Token: 0x040072F8 RID: 29432
|
||||
[Token(Token = "0x40072F8")]
|
||||
public const int TYPE_KEY_UPDATE_REP = 8;
|
||||
|
||||
// Token: 0x040072F9 RID: 29433
|
||||
[Token(Token = "0x40072F9")]
|
||||
public const int TYPE_KEY_RECOVERY_REQ = 9;
|
||||
|
||||
// Token: 0x040072FA RID: 29434
|
||||
[Token(Token = "0x40072FA")]
|
||||
public const int TYPE_KEY_RECOVERY_REP = 10;
|
||||
|
||||
// Token: 0x040072FB RID: 29435
|
||||
[Token(Token = "0x40072FB")]
|
||||
public const int TYPE_REVOCATION_REQ = 11;
|
||||
|
||||
// Token: 0x040072FC RID: 29436
|
||||
[Token(Token = "0x40072FC")]
|
||||
public const int TYPE_REVOCATION_REP = 12;
|
||||
|
||||
// Token: 0x040072FD RID: 29437
|
||||
[Token(Token = "0x40072FD")]
|
||||
public const int TYPE_CROSS_CERT_REQ = 13;
|
||||
|
||||
// Token: 0x040072FE RID: 29438
|
||||
[Token(Token = "0x40072FE")]
|
||||
public const int TYPE_CROSS_CERT_REP = 14;
|
||||
|
||||
// Token: 0x040072FF RID: 29439
|
||||
[Token(Token = "0x40072FF")]
|
||||
public const int TYPE_CA_KEY_UPDATE_ANN = 15;
|
||||
|
||||
// Token: 0x04007300 RID: 29440
|
||||
[Token(Token = "0x4007300")]
|
||||
public const int TYPE_CERT_ANN = 16;
|
||||
|
||||
// Token: 0x04007301 RID: 29441
|
||||
[Token(Token = "0x4007301")]
|
||||
public const int TYPE_REVOCATION_ANN = 17;
|
||||
|
||||
// Token: 0x04007302 RID: 29442
|
||||
[Token(Token = "0x4007302")]
|
||||
public const int TYPE_CRL_ANN = 18;
|
||||
|
||||
// Token: 0x04007303 RID: 29443
|
||||
[Token(Token = "0x4007303")]
|
||||
public const int TYPE_CONFIRM = 19;
|
||||
|
||||
// Token: 0x04007304 RID: 29444
|
||||
[Token(Token = "0x4007304")]
|
||||
public const int TYPE_NESTED = 20;
|
||||
|
||||
// Token: 0x04007305 RID: 29445
|
||||
[Token(Token = "0x4007305")]
|
||||
public const int TYPE_GEN_MSG = 21;
|
||||
|
||||
// Token: 0x04007306 RID: 29446
|
||||
[Token(Token = "0x4007306")]
|
||||
public const int TYPE_GEN_REP = 22;
|
||||
|
||||
// Token: 0x04007307 RID: 29447
|
||||
[Token(Token = "0x4007307")]
|
||||
public const int TYPE_ERROR = 23;
|
||||
|
||||
// Token: 0x04007308 RID: 29448
|
||||
[Token(Token = "0x4007308")]
|
||||
public const int TYPE_CERT_CONFIRM = 24;
|
||||
|
||||
// Token: 0x04007309 RID: 29449
|
||||
[Token(Token = "0x4007309")]
|
||||
public const int TYPE_POLL_REQ = 25;
|
||||
|
||||
// Token: 0x0400730A RID: 29450
|
||||
[Token(Token = "0x400730A")]
|
||||
public const int TYPE_POLL_REP = 26;
|
||||
|
||||
// Token: 0x0400730B RID: 29451
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400730B")]
|
||||
private int tagNo;
|
||||
|
||||
// Token: 0x0400730C RID: 29452
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400730C")]
|
||||
private Asn1Encodable body;
|
||||
}
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197D RID: 6525
|
||||
[Token(Token = "0x200197D")]
|
||||
[StructLayout(3)]
|
||||
public class PkiConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF2E RID: 44846 RVA: 0x0028FFD8 File Offset: 0x0028E1D8
|
||||
[Token(Token = "0x600AF2E")]
|
||||
[Address(RVA = "0x28F6D30", Offset = "0x28F5730", VA = "0x1828F6D30")]
|
||||
public static PkiConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF2E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_20:
|
||||
stloc:string(var_4_26, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_5_3E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_4_26)), 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: 0x0600AF2F RID: 44847 RVA: 0x00290024 File Offset: 0x0028E224
|
||||
[Token(Token = "0x600AF2F")]
|
||||
[Address(RVA = "0x3D4170", Offset = "0x3D2B70", VA = "0x1803D4170")]
|
||||
public PkiConfirmContent()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600AF30 RID: 44848 RVA: 0x00290038 File Offset: 0x0028E238
|
||||
[Token(Token = "0x600AF30")]
|
||||
[Address(RVA = "0x28F6EC0", Offset = "0x28F58C0", VA = "0x1828F6EC0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF30)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiConfirmContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerNull(var_0_05, ldsfld:DerNull(DerNull::Instance))
|
||||
}
|
||||
|
||||
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
|
||||
*/;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197E RID: 6526
|
||||
[Token(Token = "0x200197E")]
|
||||
[StructLayout(3)]
|
||||
public class PkiFailureInfo : DerBitString
|
||||
{
|
||||
// Token: 0x0600AF31 RID: 44849 RVA: 0x0029004C File Offset: 0x0028E24C
|
||||
[Token(Token = "0x600AF31")]
|
||||
[Address(RVA = "0x28F6F90", Offset = "0x28F5990", VA = "0x1828F6F90")]
|
||||
public PkiFailureInfo(int info)
|
||||
: base(info)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600AF32 RID: 44850 RVA: 0x00290060 File Offset: 0x0028E260
|
||||
[Token(Token = "0x600AF32")]
|
||||
[Address(RVA = "0x28F6FF0", Offset = "0x28F59F0", VA = "0x1828F6FF0")]
|
||||
public PkiFailureInfo(DerBitString info)
|
||||
{
|
||||
byte[] octets = info.GetOctets();
|
||||
byte[] bytes = info.GetBytes();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF33 RID: 44851 RVA: 0x00290084 File Offset: 0x0028E284
|
||||
[Token(Token = "0x600AF33")]
|
||||
[Address(RVA = "0x28F6F20", Offset = "0x28F5920", VA = "0x1828F6F20", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
int padBits = this.PadBits;
|
||||
string text;
|
||||
return text;
|
||||
}
|
||||
|
||||
// Token: 0x0400730D RID: 29453
|
||||
[Token(Token = "0x400730D")]
|
||||
public const int BadAlg = 128;
|
||||
|
||||
// Token: 0x0400730E RID: 29454
|
||||
[Token(Token = "0x400730E")]
|
||||
public const int BadMessageCheck = 64;
|
||||
|
||||
// Token: 0x0400730F RID: 29455
|
||||
[Token(Token = "0x400730F")]
|
||||
public const int BadRequest = 32;
|
||||
|
||||
// Token: 0x04007310 RID: 29456
|
||||
[Token(Token = "0x4007310")]
|
||||
public const int BadTime = 16;
|
||||
|
||||
// Token: 0x04007311 RID: 29457
|
||||
[Token(Token = "0x4007311")]
|
||||
public const int BadCertId = 8;
|
||||
|
||||
// Token: 0x04007312 RID: 29458
|
||||
[Token(Token = "0x4007312")]
|
||||
public const int BadDataFormat = 4;
|
||||
|
||||
// Token: 0x04007313 RID: 29459
|
||||
[Token(Token = "0x4007313")]
|
||||
public const int WrongAuthority = 2;
|
||||
|
||||
// Token: 0x04007314 RID: 29460
|
||||
[Token(Token = "0x4007314")]
|
||||
public const int IncorrectData = 1;
|
||||
|
||||
// Token: 0x04007315 RID: 29461
|
||||
[Token(Token = "0x4007315")]
|
||||
public const int MissingTimeStamp = 32768;
|
||||
|
||||
// Token: 0x04007316 RID: 29462
|
||||
[Token(Token = "0x4007316")]
|
||||
public const int BadPop = 16384;
|
||||
|
||||
// Token: 0x04007317 RID: 29463
|
||||
[Token(Token = "0x4007317")]
|
||||
public const int CertRevoked = 8192;
|
||||
|
||||
// Token: 0x04007318 RID: 29464
|
||||
[Token(Token = "0x4007318")]
|
||||
public const int CertConfirmed = 4096;
|
||||
|
||||
// Token: 0x04007319 RID: 29465
|
||||
[Token(Token = "0x4007319")]
|
||||
public const int WrongIntegrity = 2048;
|
||||
|
||||
// Token: 0x0400731A RID: 29466
|
||||
[Token(Token = "0x400731A")]
|
||||
public const int BadRecipientNonce = 1024;
|
||||
|
||||
// Token: 0x0400731B RID: 29467
|
||||
[Token(Token = "0x400731B")]
|
||||
public const int TimeNotAvailable = 512;
|
||||
|
||||
// Token: 0x0400731C RID: 29468
|
||||
[Token(Token = "0x400731C")]
|
||||
public const int UnacceptedPolicy = 256;
|
||||
|
||||
// Token: 0x0400731D RID: 29469
|
||||
[Token(Token = "0x400731D")]
|
||||
public const int UnacceptedExtension = 8388608;
|
||||
|
||||
// Token: 0x0400731E RID: 29470
|
||||
[Token(Token = "0x400731E")]
|
||||
public const int AddInfoNotAvailable = 4194304;
|
||||
|
||||
// Token: 0x0400731F RID: 29471
|
||||
[Token(Token = "0x400731F")]
|
||||
public const int BadSenderNonce = 2097152;
|
||||
|
||||
// Token: 0x04007320 RID: 29472
|
||||
[Token(Token = "0x4007320")]
|
||||
public const int BadCertTemplate = 1048576;
|
||||
|
||||
// Token: 0x04007321 RID: 29473
|
||||
[Token(Token = "0x4007321")]
|
||||
public const int SignerNotTrusted = 524288;
|
||||
|
||||
// Token: 0x04007322 RID: 29474
|
||||
[Token(Token = "0x4007322")]
|
||||
public const int TransactionIdInUse = 262144;
|
||||
|
||||
// Token: 0x04007323 RID: 29475
|
||||
[Token(Token = "0x4007323")]
|
||||
public const int UnsupportedVersion = 131072;
|
||||
|
||||
// Token: 0x04007324 RID: 29476
|
||||
[Token(Token = "0x4007324")]
|
||||
public const int NotAuthorized = 65536;
|
||||
|
||||
// Token: 0x04007325 RID: 29477
|
||||
[Token(Token = "0x4007325")]
|
||||
public const int SystemUnavail = -2147483648;
|
||||
|
||||
// Token: 0x04007326 RID: 29478
|
||||
[Token(Token = "0x4007326")]
|
||||
public const int SystemFailure = 1073741824;
|
||||
|
||||
// Token: 0x04007327 RID: 29479
|
||||
[Token(Token = "0x4007327")]
|
||||
public const int DuplicateCertReq = 536870912;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200197F RID: 6527
|
||||
[Token(Token = "0x200197F")]
|
||||
[StructLayout(3)]
|
||||
public class PkiFreeText : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF34 RID: 44852 RVA: 0x0029009C File Offset: 0x0028E29C
|
||||
[Token(Token = "0x600AF34")]
|
||||
[Address(RVA = "0x28F70A0", Offset = "0x28F5AA0", VA = "0x1828F70A0")]
|
||||
public static PkiFreeText GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiFreeText.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AF35 RID: 44853 RVA: 0x002900B8 File Offset: 0x0028E2B8
|
||||
[Token(Token = "0x600AF35")]
|
||||
[Address(RVA = "0x28F70C0", Offset = "0x28F5AC0", VA = "0x1828F70C0")]
|
||||
public static PkiFreeText GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF35)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText::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: 0x0600AF36 RID: 44854 RVA: 0x00290108 File Offset: 0x0028E308
|
||||
[Token(Token = "0x600AF36")]
|
||||
[Address(RVA = "0x28F7360", Offset = "0x28F5D60", VA = "0x1828F7360")]
|
||||
public PkiFreeText(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0 && (enumerator == 0 || enumerator == 0))
|
||||
{
|
||||
goto IL_37;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
this.strings = seq;
|
||||
return;
|
||||
IL_37:
|
||||
ArgumentException ex = new ArgumentException("attempt to insert non UTF8 STRING into PkiFreeText");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF37 RID: 44855 RVA: 0x0029015C File Offset: 0x0028E35C
|
||||
[Token(Token = "0x600AF37")]
|
||||
[Address(RVA = "0x28F7540", Offset = "0x28F5F40", VA = "0x1828F7540")]
|
||||
public PkiFreeText(DerUtf8String p)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(p);
|
||||
this.strings = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x17001C34 RID: 7220
|
||||
// (get) Token: 0x0600AF38 RID: 44856 RVA: 0x00290180 File Offset: 0x0028E380
|
||||
[Token(Token = "0x17001C34")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600AF38")]
|
||||
[Address(RVA = "0x2253620", Offset = "0x2252020", VA = "0x182253620")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C35 RID: 7221
|
||||
// (get) Token: 0x0600AF39 RID: 44857 RVA: 0x002901A0 File Offset: 0x0028E3A0
|
||||
[Token(Token = "0x17001C35")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600AF39")]
|
||||
[Address(RVA = "0x2253620", Offset = "0x2252020", VA = "0x182253620")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C36 RID: 7222
|
||||
[Token(Token = "0x17001C36")]
|
||||
public DerUtf8String this[int index]
|
||||
{
|
||||
[Token(Token = "0x600AF3A")]
|
||||
[Address(RVA = "0x28F72B0", Offset = "0x28F5CB0", VA = "0x1828F72B0")]
|
||||
get
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF3B RID: 44859 RVA: 0x002901E8 File Offset: 0x0028E3E8
|
||||
[Token(Token = "0x600AF3B")]
|
||||
[Address(RVA = "0x28F72B0", Offset = "0x28F5CB0", VA = "0x1828F72B0")]
|
||||
[Obsolete]
|
||||
public DerUtf8String GetStringAt(int index)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF3C RID: 44860 RVA: 0x00290210 File Offset: 0x0028E410
|
||||
[Token(Token = "0x600AF3C")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF3C)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PkiFreeText::strings, ldloc:PkiFreeText(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: 0x04007328 RID: 29480
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007328")]
|
||||
internal Asn1Sequence strings;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,425 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001980 RID: 6528
|
||||
[Token(Token = "0x2001980")]
|
||||
[StructLayout(3)]
|
||||
public class PkiHeader : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF3D RID: 44861 RVA: 0x00290224 File Offset: 0x0028E424
|
||||
[Token(Token = "0x600AF3D")]
|
||||
[Address(RVA = "0x28F8840", Offset = "0x28F7240", VA = "0x1828F8840")]
|
||||
private PkiHeader(Asn1Sequence seq)
|
||||
{
|
||||
uint num;
|
||||
Asn1SequenceParser parser4;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.pvno = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
GeneralName generalName;
|
||||
this.sender = generalName;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
GeneralName generalName2;
|
||||
this.recipient = generalName2;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num >= asn1Encodable)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser4 = seq.Parser;
|
||||
}
|
||||
while (parser4 == 0);
|
||||
if (parser4 > (ulong)8L)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
DerGeneralizedTime derGeneralizedTime;
|
||||
this.messageTime = derGeneralizedTime;
|
||||
num += (uint)1;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.protectionAlg = algorithmIdentifier;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString;
|
||||
this.senderKID = asn1OctetString;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString2;
|
||||
this.recipKID = asn1OctetString2;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString3;
|
||||
this.transactionID = asn1OctetString3;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString4;
|
||||
this.senderNonce = asn1OctetString4;
|
||||
num += (uint)1;
|
||||
Asn1OctetString asn1OctetString5;
|
||||
this.recipNonce = asn1OctetString5;
|
||||
num += (uint)1;
|
||||
Asn1Sequence asn1Sequence;
|
||||
PkiFreeText instance = PkiFreeText.GetInstance(asn1Sequence);
|
||||
this.freeText = instance;
|
||||
num += (uint)1;
|
||||
Asn1Sequence asn1Sequence2;
|
||||
this.generalInfo = asn1Sequence2;
|
||||
num += (uint)1;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF3E RID: 44862 RVA: 0x00290334 File Offset: 0x0028E534
|
||||
[Token(Token = "0x600AF3E")]
|
||||
[Address(RVA = "0x28F8290", Offset = "0x28F6C90", VA = "0x1828F8290")]
|
||||
public static PkiHeader GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF3E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeader BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeader::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("Invalid object: "), 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: 0x0600AF3F RID: 44863 RVA: 0x00290384 File Offset: 0x0028E584
|
||||
[Token(Token = "0x600AF3F")]
|
||||
[Address(RVA = "0x28F87B0", Offset = "0x28F71B0", VA = "0x1828F87B0")]
|
||||
public PkiHeader(int pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(pvno);
|
||||
base..ctor();
|
||||
this.pvno = derInteger;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF40 RID: 44864 RVA: 0x002903B4 File Offset: 0x0028E5B4
|
||||
[Token(Token = "0x600AF40")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
private PkiHeader(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x17001C37 RID: 7223
|
||||
// (get) Token: 0x0600AF41 RID: 44865 RVA: 0x002903DC File Offset: 0x0028E5DC
|
||||
[Token(Token = "0x17001C37")]
|
||||
public virtual DerInteger Pvno
|
||||
{
|
||||
[Token(Token = "0x600AF41")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pvno;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C38 RID: 7224
|
||||
// (get) Token: 0x0600AF42 RID: 44866 RVA: 0x002903F0 File Offset: 0x0028E5F0
|
||||
[Token(Token = "0x17001C38")]
|
||||
public virtual GeneralName Sender
|
||||
{
|
||||
[Token(Token = "0x600AF42")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.sender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C39 RID: 7225
|
||||
// (get) Token: 0x0600AF43 RID: 44867 RVA: 0x00290404 File Offset: 0x0028E604
|
||||
[Token(Token = "0x17001C39")]
|
||||
public virtual GeneralName Recipient
|
||||
{
|
||||
[Token(Token = "0x600AF43")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.recipient;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3A RID: 7226
|
||||
// (get) Token: 0x0600AF44 RID: 44868 RVA: 0x00290418 File Offset: 0x0028E618
|
||||
[Token(Token = "0x17001C3A")]
|
||||
public virtual DerGeneralizedTime MessageTime
|
||||
{
|
||||
[Token(Token = "0x600AF44")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.messageTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3B RID: 7227
|
||||
// (get) Token: 0x0600AF45 RID: 44869 RVA: 0x0029042C File Offset: 0x0028E62C
|
||||
[Token(Token = "0x17001C3B")]
|
||||
public virtual AlgorithmIdentifier ProtectionAlg
|
||||
{
|
||||
[Token(Token = "0x600AF45")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.protectionAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3C RID: 7228
|
||||
// (get) Token: 0x0600AF46 RID: 44870 RVA: 0x00290440 File Offset: 0x0028E640
|
||||
[Token(Token = "0x17001C3C")]
|
||||
public virtual Asn1OctetString SenderKID
|
||||
{
|
||||
[Token(Token = "0x600AF46")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.senderKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3D RID: 7229
|
||||
// (get) Token: 0x0600AF47 RID: 44871 RVA: 0x00290454 File Offset: 0x0028E654
|
||||
[Token(Token = "0x17001C3D")]
|
||||
public virtual Asn1OctetString RecipKID
|
||||
{
|
||||
[Token(Token = "0x600AF47")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return this.recipKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3E RID: 7230
|
||||
// (get) Token: 0x0600AF48 RID: 44872 RVA: 0x00290468 File Offset: 0x0028E668
|
||||
[Token(Token = "0x17001C3E")]
|
||||
public virtual Asn1OctetString TransactionID
|
||||
{
|
||||
[Token(Token = "0x600AF48")]
|
||||
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.transactionID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C3F RID: 7231
|
||||
// (get) Token: 0x0600AF49 RID: 44873 RVA: 0x0029047C File Offset: 0x0028E67C
|
||||
[Token(Token = "0x17001C3F")]
|
||||
public virtual Asn1OctetString SenderNonce
|
||||
{
|
||||
[Token(Token = "0x600AF49")]
|
||||
[Address(RVA = "0x462740", Offset = "0x461140", VA = "0x180462740", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return this.senderNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C40 RID: 7232
|
||||
// (get) Token: 0x0600AF4A RID: 44874 RVA: 0x00290490 File Offset: 0x0028E690
|
||||
[Token(Token = "0x17001C40")]
|
||||
public virtual Asn1OctetString RecipNonce
|
||||
{
|
||||
[Token(Token = "0x600AF4A")]
|
||||
[Address(RVA = "0x4B81A0", Offset = "0x4B6BA0", VA = "0x1804B81A0", Slot = "15")]
|
||||
get
|
||||
{
|
||||
return this.recipNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C41 RID: 7233
|
||||
// (get) Token: 0x0600AF4B RID: 44875 RVA: 0x002904A4 File Offset: 0x0028E6A4
|
||||
[Token(Token = "0x17001C41")]
|
||||
public virtual PkiFreeText FreeText
|
||||
{
|
||||
[Token(Token = "0x600AF4B")]
|
||||
[Address(RVA = "0x3EDE90", Offset = "0x3EC890", VA = "0x1803EDE90", Slot = "16")]
|
||||
get
|
||||
{
|
||||
return this.freeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF4C RID: 44876 RVA: 0x002904B8 File Offset: 0x0028E6B8
|
||||
[Token(Token = "0x600AF4C")]
|
||||
[Address(RVA = "0x28F8170", Offset = "0x28F6B70", VA = "0x1828F8170", Slot = "17")]
|
||||
public virtual InfoTypeAndValue[] GetGeneralInfo()
|
||||
{
|
||||
if (this.generalInfo != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
InfoTypeAndValue[] array = new InfoTypeAndValue[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.generalInfo.Parser;
|
||||
InfoTypeAndValue infoTypeAndValue;
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = infoTypeAndValue;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF4D RID: 44877 RVA: 0x00290508 File Offset: 0x0028E708
|
||||
[Token(Token = "0x600AF4D")]
|
||||
[Address(RVA = "0x28F8480", Offset = "0x28F6E80", VA = "0x1828F8480", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.pvno;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
GeneralName generalName = this.sender;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
array[1] = generalName;
|
||||
GeneralName generalName2 = this.recipient;
|
||||
if (generalName2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = generalName2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerGeneralizedTime derGeneralizedTime = this.messageTime;
|
||||
int num = 0;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, num, derGeneralizedTime);
|
||||
AlgorithmIdentifier algorithmIdentifier = this.protectionAlg;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 1, algorithmIdentifier);
|
||||
Asn1OctetString asn1OctetString = this.senderKID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 2, asn1OctetString);
|
||||
Asn1OctetString asn1OctetString2 = this.recipKID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 3, asn1OctetString2);
|
||||
Asn1OctetString asn1OctetString3 = this.transactionID;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 4, asn1OctetString3);
|
||||
Asn1OctetString asn1OctetString4 = this.senderNonce;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 5, asn1OctetString4);
|
||||
Asn1OctetString asn1OctetString5 = this.recipNonce;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 6, asn1OctetString5);
|
||||
PkiFreeText pkiFreeText = this.freeText;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 7, pkiFreeText);
|
||||
Asn1Sequence asn1Sequence = this.generalInfo;
|
||||
PkiHeader.AddOptional(asn1EncodableVector, 8, asn1Sequence);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF4E RID: 44878 RVA: 0x00290614 File Offset: 0x0028E814
|
||||
[Token(Token = "0x600AF4E")]
|
||||
[Address(RVA = "0x28F8070", Offset = "0x28F6A70", VA = "0x1828F8070")]
|
||||
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007329 RID: 29481
|
||||
[Token(Token = "0x4007329")]
|
||||
public static readonly GeneralName NULL_NAME = new GeneralName(X509Name.GetInstance(new DerSequence()));
|
||||
|
||||
// Token: 0x0400732A RID: 29482
|
||||
[Token(Token = "0x400732A")]
|
||||
public static readonly int CMP_1999;
|
||||
|
||||
// Token: 0x0400732B RID: 29483
|
||||
[Token(Token = "0x400732B")]
|
||||
public static readonly int CMP_2000;
|
||||
|
||||
// Token: 0x0400732C RID: 29484
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400732C")]
|
||||
private readonly DerInteger pvno;
|
||||
|
||||
// Token: 0x0400732D RID: 29485
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400732D")]
|
||||
private readonly GeneralName sender;
|
||||
|
||||
// Token: 0x0400732E RID: 29486
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400732E")]
|
||||
private readonly GeneralName recipient;
|
||||
|
||||
// Token: 0x0400732F RID: 29487
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400732F")]
|
||||
private readonly DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x04007330 RID: 29488
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007330")]
|
||||
private readonly AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x04007331 RID: 29489
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007331")]
|
||||
private readonly Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x04007332 RID: 29490
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007332")]
|
||||
private readonly Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x04007333 RID: 29491
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007333")]
|
||||
private readonly Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04007334 RID: 29492
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007334")]
|
||||
private readonly Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04007335 RID: 29493
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4007335")]
|
||||
private readonly Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04007336 RID: 29494
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4007336")]
|
||||
private readonly PkiFreeText freeText;
|
||||
|
||||
// Token: 0x04007337 RID: 29495
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4007337")]
|
||||
private readonly Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
+411
@@ -0,0 +1,411 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001981 RID: 6529
|
||||
[Token(Token = "0x2001981")]
|
||||
[StructLayout(3)]
|
||||
public class PkiHeaderBuilder
|
||||
{
|
||||
// Token: 0x0600AF50 RID: 44880 RVA: 0x00290674 File Offset: 0x0028E874
|
||||
[Token(Token = "0x600AF50")]
|
||||
[Address(RVA = "0x28F7FE0", Offset = "0x28F69E0", VA = "0x1828F7FE0")]
|
||||
public PkiHeaderBuilder(int pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(pvno);
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
base.FieldGetter(num2, num, recipient);
|
||||
this.pvno = derInteger;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF51 RID: 44881 RVA: 0x002906AC File Offset: 0x0028E8AC
|
||||
[Token(Token = "0x600AF51")]
|
||||
[Address(RVA = "0x74BD80", Offset = "0x74A780", VA = "0x18074BD80")]
|
||||
private PkiHeaderBuilder(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF52 RID: 44882 RVA: 0x002906D4 File Offset: 0x0028E8D4
|
||||
[Token(Token = "0x600AF52")]
|
||||
[Address(RVA = "0x1E87640", Offset = "0x1E86040", VA = "0x181E87640", Slot = "4")]
|
||||
public virtual PkiHeaderBuilder SetMessageTime(DerGeneralizedTime time)
|
||||
{
|
||||
this.messageTime = time;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF53 RID: 44883 RVA: 0x002906EC File Offset: 0x0028E8EC
|
||||
[Token(Token = "0x600AF53")]
|
||||
[Address(RVA = "0x12D4620", Offset = "0x12D3020", VA = "0x1812D4620", Slot = "5")]
|
||||
public virtual PkiHeaderBuilder SetProtectionAlg(AlgorithmIdentifier aid)
|
||||
{
|
||||
this.protectionAlg = aid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF54 RID: 44884 RVA: 0x00290704 File Offset: 0x0028E904
|
||||
[Token(Token = "0x600AF54")]
|
||||
[Address(RVA = "0x28F7E30", Offset = "0x28F6830", VA = "0x1828F7E30", Slot = "6")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF55 RID: 44885 RVA: 0x00290724 File Offset: 0x0028E924
|
||||
[Token(Token = "0x600AF55")]
|
||||
[Address(RVA = "0x1C075B0", Offset = "0x1C05FB0", VA = "0x181C075B0", Slot = "7")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(Asn1OctetString kid)
|
||||
{
|
||||
this.senderKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF56 RID: 44886 RVA: 0x0029073C File Offset: 0x0028E93C
|
||||
[Token(Token = "0x600AF56")]
|
||||
[Address(RVA = "0x28F7D10", Offset = "0x28F6710", VA = "0x1828F7D10", Slot = "8")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF57 RID: 44887 RVA: 0x0029075C File Offset: 0x0028E95C
|
||||
[Token(Token = "0x600AF57")]
|
||||
[Address(RVA = "0x1ECC590", Offset = "0x1ECAF90", VA = "0x181ECC590", Slot = "9")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(DerOctetString kid)
|
||||
{
|
||||
this.recipKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF58 RID: 44888 RVA: 0x00290774 File Offset: 0x0028E974
|
||||
[Token(Token = "0x600AF58")]
|
||||
[Address(RVA = "0x28F7F50", Offset = "0x28F6950", VA = "0x1828F7F50", Slot = "10")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(byte[] tid)
|
||||
{
|
||||
if (tid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(tid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF59 RID: 44889 RVA: 0x00290794 File Offset: 0x0028E994
|
||||
[Token(Token = "0x600AF59")]
|
||||
[Address(RVA = "0x1ECC580", Offset = "0x1ECAF80", VA = "0x181ECC580", Slot = "11")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(Asn1OctetString tid)
|
||||
{
|
||||
this.transactionID = tid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5A RID: 44890 RVA: 0x002907AC File Offset: 0x0028E9AC
|
||||
[Token(Token = "0x600AF5A")]
|
||||
[Address(RVA = "0x28F7EC0", Offset = "0x28F68C0", VA = "0x1828F7EC0", Slot = "12")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5B RID: 44891 RVA: 0x002907CC File Offset: 0x0028E9CC
|
||||
[Token(Token = "0x600AF5B")]
|
||||
[Address(RVA = "0x1ECC5A0", Offset = "0x1ECAFA0", VA = "0x181ECC5A0", Slot = "13")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.senderNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5C RID: 44892 RVA: 0x002907E4 File Offset: 0x0028E9E4
|
||||
[Token(Token = "0x600AF5C")]
|
||||
[Address(RVA = "0x28F7DA0", Offset = "0x28F67A0", VA = "0x1828F7DA0", Slot = "14")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5D RID: 44893 RVA: 0x00290804 File Offset: 0x0028EA04
|
||||
[Token(Token = "0x600AF5D")]
|
||||
[Address(RVA = "0x1ECC570", Offset = "0x1ECAF70", VA = "0x181ECC570", Slot = "15")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.recipNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5E RID: 44894 RVA: 0x0029081C File Offset: 0x0028EA1C
|
||||
[Token(Token = "0x600AF5E")]
|
||||
[Address(RVA = "0x28F7B10", Offset = "0x28F6510", VA = "0x1828F7B10", Slot = "16")]
|
||||
public virtual PkiHeaderBuilder SetFreeText(PkiFreeText text)
|
||||
{
|
||||
this.freeText = text;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF5F RID: 44895 RVA: 0x00290834 File Offset: 0x0028EA34
|
||||
[Token(Token = "0x600AF5F")]
|
||||
[Address(RVA = "0x28F7B20", Offset = "0x28F6520", VA = "0x1828F7B20", Slot = "17")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue genInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF5F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder::SetGeneralInfo(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_06, newobj:DerSequence(DerSequence::.ctor, ldloc:InfoTypeAndValue[exp:Asn1Encodable](genInfo)))
|
||||
}
|
||||
|
||||
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: 0x0600AF60 RID: 44896 RVA: 0x00290848 File Offset: 0x0028EA48
|
||||
[Token(Token = "0x600AF60")]
|
||||
[Address(RVA = "0x28F7BA0", Offset = "0x28F65A0", VA = "0x1828F7BA0", Slot = "18")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue[] genInfos)
|
||||
{
|
||||
int num = 0;
|
||||
if (genInfos != 0)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(genInfos);
|
||||
if (num < genInfos.Length)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
InfoTypeAndValue infoTypeAndValue = genInfos[num];
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
array[0] = infoTypeAndValue;
|
||||
asn1EncodableVector.Add(array);
|
||||
num++;
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF61 RID: 44897 RVA: 0x002908A0 File Offset: 0x0028EAA0
|
||||
[Token(Token = "0x600AF61")]
|
||||
[Address(RVA = "0x28F7D00", Offset = "0x28F6700", VA = "0x1828F7D00", Slot = "19")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(Asn1Sequence seqOfInfoTypeAndValue)
|
||||
{
|
||||
this.generalInfo = seqOfInfoTypeAndValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF62 RID: 44898 RVA: 0x002908B8 File Offset: 0x0028EAB8
|
||||
[Token(Token = "0x600AF62")]
|
||||
[Address(RVA = "0x28F7AB0", Offset = "0x28F64B0", VA = "0x1828F7AB0")]
|
||||
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue generalInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF62)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiHeaderBuilder::MakeGeneralInfoSeq(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.InfoTypeAndValue)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerSequence(var_0_06, newobj:DerSequence(DerSequence::.ctor, ldloc:InfoTypeAndValue[exp:Asn1Encodable](generalInfo)))
|
||||
}
|
||||
|
||||
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: 0x0600AF63 RID: 44899 RVA: 0x002908CC File Offset: 0x0028EACC
|
||||
[Token(Token = "0x600AF63")]
|
||||
[Address(RVA = "0x28F7960", Offset = "0x28F6360", VA = "0x1828F7960")]
|
||||
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue[] generalInfos)
|
||||
{
|
||||
int num = 0;
|
||||
if (generalInfos != 0)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (num < generalInfos.Length)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
InfoTypeAndValue infoTypeAndValue = generalInfos[num];
|
||||
if (infoTypeAndValue != 0)
|
||||
{
|
||||
}
|
||||
array[0] = infoTypeAndValue;
|
||||
asn1EncodableVector.Add(array);
|
||||
num++;
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF64 RID: 44900 RVA: 0x0029091C File Offset: 0x0028EB1C
|
||||
[Token(Token = "0x600AF64")]
|
||||
[Address(RVA = "0x28F76B0", Offset = "0x28F60B0", VA = "0x1828F76B0", Slot = "20")]
|
||||
public virtual PkiHeader Build()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.pvno;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
GeneralName generalName = this.sender;
|
||||
if (generalName != 0)
|
||||
{
|
||||
}
|
||||
array[1] = generalName;
|
||||
GeneralName generalName2 = this.recipient;
|
||||
if (generalName2 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = generalName2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerGeneralizedTime derGeneralizedTime = this.messageTime;
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
this.AddOptional(asn1EncodableVector, num2, derGeneralizedTime);
|
||||
AlgorithmIdentifier algorithmIdentifier = this.protectionAlg;
|
||||
this.AddOptional(asn1EncodableVector, 1, algorithmIdentifier);
|
||||
Asn1OctetString asn1OctetString = this.senderKID;
|
||||
this.AddOptional(asn1EncodableVector, 2, asn1OctetString);
|
||||
Asn1OctetString asn1OctetString2 = this.recipKID;
|
||||
this.AddOptional(asn1EncodableVector, 3, asn1OctetString2);
|
||||
Asn1OctetString asn1OctetString3 = this.transactionID;
|
||||
this.AddOptional(asn1EncodableVector, 4, asn1OctetString3);
|
||||
Asn1OctetString asn1OctetString4 = this.senderNonce;
|
||||
this.AddOptional(asn1EncodableVector, 5, asn1OctetString4);
|
||||
Asn1OctetString asn1OctetString5 = this.recipNonce;
|
||||
this.AddOptional(asn1EncodableVector, 6, asn1OctetString5);
|
||||
PkiFreeText pkiFreeText = this.freeText;
|
||||
this.AddOptional(asn1EncodableVector, 7, pkiFreeText);
|
||||
Asn1Sequence asn1Sequence = this.generalInfo;
|
||||
this.AddOptional(asn1EncodableVector, 8, asn1Sequence);
|
||||
this.messageTime = num;
|
||||
this.protectionAlg = num;
|
||||
this.senderKID = num;
|
||||
this.recipKID = num;
|
||||
this.transactionID = num;
|
||||
this.senderNonce = num;
|
||||
this.recipNonce = num;
|
||||
this.freeText = num;
|
||||
this.generalInfo = num;
|
||||
return PkiHeader.GetInstance(new DerSequence(asn1EncodableVector));
|
||||
}
|
||||
|
||||
// Token: 0x0600AF65 RID: 44901 RVA: 0x00290A80 File Offset: 0x0028EC80
|
||||
[Token(Token = "0x600AF65")]
|
||||
[Address(RVA = "0x28F75B0", Offset = "0x28F5FB0", VA = "0x1828F75B0")]
|
||||
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007338 RID: 29496
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007338")]
|
||||
private DerInteger pvno;
|
||||
|
||||
// Token: 0x04007339 RID: 29497
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007339")]
|
||||
private GeneralName sender;
|
||||
|
||||
// Token: 0x0400733A RID: 29498
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400733A")]
|
||||
private GeneralName recipient;
|
||||
|
||||
// Token: 0x0400733B RID: 29499
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400733B")]
|
||||
private DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x0400733C RID: 29500
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400733C")]
|
||||
private AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x0400733D RID: 29501
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400733D")]
|
||||
private Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x0400733E RID: 29502
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400733E")]
|
||||
private Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x0400733F RID: 29503
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400733F")]
|
||||
private Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04007340 RID: 29504
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4007340")]
|
||||
private Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04007341 RID: 29505
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4007341")]
|
||||
private Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04007342 RID: 29506
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4007342")]
|
||||
private PkiFreeText freeText;
|
||||
|
||||
// Token: 0x04007343 RID: 29507
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4007343")]
|
||||
private Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001982 RID: 6530
|
||||
[Token(Token = "0x2001982")]
|
||||
[StructLayout(3)]
|
||||
public class PkiMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF66 RID: 44902 RVA: 0x00290ABC File Offset: 0x0028ECBC
|
||||
[Token(Token = "0x600AF66")]
|
||||
[Address(RVA = "0x28F9140", Offset = "0x28F7B40", VA = "0x1828F9140")]
|
||||
private PkiMessage(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser3;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiHeader pkiHeader;
|
||||
this.header = pkiHeader;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiBody pkiBody;
|
||||
this.body = pkiBody;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)2 >= asn1Encodable)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser3 = seq.Parser;
|
||||
}
|
||||
while (parser3 == 0);
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.extraCerts = asn1Sequence;
|
||||
DerBitString derBitString;
|
||||
this.protection = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF67 RID: 44903 RVA: 0x00290B14 File Offset: 0x0028ED14
|
||||
[Token(Token = "0x600AF67")]
|
||||
[Address(RVA = "0x28F8D70", Offset = "0x28F7770", VA = "0x1828F8D70")]
|
||||
public static PkiMessage GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new PkiMessage(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF68 RID: 44904 RVA: 0x00290B48 File Offset: 0x0028ED48
|
||||
[Token(Token = "0x600AF68")]
|
||||
[Address(RVA = "0x28F8FD0", Offset = "0x28F79D0", VA = "0x1828F8FD0")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection, CmpCertificate[] extraCerts)
|
||||
{
|
||||
this.body = body;
|
||||
this.header = header;
|
||||
this.protection = protection;
|
||||
DerSequence derSequence;
|
||||
this.extraCerts = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF69 RID: 44905 RVA: 0x00290B78 File Offset: 0x0028ED78
|
||||
[Token(Token = "0x600AF69")]
|
||||
[Address(RVA = "0x28F9070", Offset = "0x28F7A70", VA = "0x1828F9070")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = protection;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF6A RID: 44906 RVA: 0x00290BA0 File Offset: 0x0028EDA0
|
||||
[Token(Token = "0x600AF6A")]
|
||||
[Address(RVA = "0x28F90E0", Offset = "0x28F7AE0", VA = "0x1828F90E0")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x17001C42 RID: 7234
|
||||
// (get) Token: 0x0600AF6B RID: 44907 RVA: 0x00290BCC File Offset: 0x0028EDCC
|
||||
[Token(Token = "0x17001C42")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600AF6B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C43 RID: 7235
|
||||
// (get) Token: 0x0600AF6C RID: 44908 RVA: 0x00290BE0 File Offset: 0x0028EDE0
|
||||
[Token(Token = "0x17001C43")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600AF6C")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C44 RID: 7236
|
||||
// (get) Token: 0x0600AF6D RID: 44909 RVA: 0x00290BF4 File Offset: 0x0028EDF4
|
||||
[Token(Token = "0x17001C44")]
|
||||
public virtual DerBitString Protection
|
||||
{
|
||||
[Token(Token = "0x600AF6D")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.protection;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF6E RID: 44910 RVA: 0x00290C08 File Offset: 0x0028EE08
|
||||
[Token(Token = "0x600AF6E")]
|
||||
[Address(RVA = "0x28F8C50", Offset = "0x28F7650", VA = "0x1828F8C50", Slot = "9")]
|
||||
public virtual CmpCertificate[] GetExtraCerts()
|
||||
{
|
||||
if (this.extraCerts != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.extraCerts.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = cmpCertificate;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF6F RID: 44911 RVA: 0x00290C58 File Offset: 0x0028EE58
|
||||
[Token(Token = "0x600AF6F")]
|
||||
[Address(RVA = "0x28F8E70", Offset = "0x28F7870", VA = "0x1828F8E70", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
PkiHeader pkiHeader = this.header;
|
||||
if (pkiHeader != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiHeader;
|
||||
PkiBody pkiBody = this.body;
|
||||
if (pkiBody != 0)
|
||||
{
|
||||
}
|
||||
array[1] = pkiBody;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerBitString derBitString = this.protection;
|
||||
int num = 0;
|
||||
PkiMessage.AddOptional(asn1EncodableVector, num, derBitString);
|
||||
Asn1Sequence asn1Sequence = this.extraCerts;
|
||||
PkiMessage.AddOptional(asn1EncodableVector, 1, asn1Sequence);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AF70 RID: 44912 RVA: 0x00290CCC File Offset: 0x0028EECC
|
||||
[Token(Token = "0x600AF70")]
|
||||
[Address(RVA = "0x28F8B50", Offset = "0x28F7550", VA = "0x1828F8B50")]
|
||||
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007344 RID: 29508
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007344")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04007345 RID: 29509
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007345")]
|
||||
private readonly PkiBody body;
|
||||
|
||||
// Token: 0x04007346 RID: 29510
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007346")]
|
||||
private readonly DerBitString protection;
|
||||
|
||||
// Token: 0x04007347 RID: 29511
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007347")]
|
||||
private readonly Asn1Sequence extraCerts;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001983 RID: 6531
|
||||
[Token(Token = "0x2001983")]
|
||||
[StructLayout(3)]
|
||||
public class PkiMessages : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF71 RID: 44913 RVA: 0x00290D08 File Offset: 0x0028EF08
|
||||
[Token(Token = "0x600AF71")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PkiMessages(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF72 RID: 44914 RVA: 0x00290D24 File Offset: 0x0028EF24
|
||||
[Token(Token = "0x600AF72")]
|
||||
[Address(RVA = "0x28F9310", Offset = "0x28F7D10", VA = "0x1828F9310")]
|
||||
public static PkiMessages GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF72)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages::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("Invalid object: "), 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: 0x0600AF73 RID: 44915 RVA: 0x00290D7C File Offset: 0x0028EF7C
|
||||
[Token(Token = "0x600AF73")]
|
||||
[Address(RVA = "0x28F96F0", Offset = "0x28F80F0", VA = "0x1828F96F0")]
|
||||
public PkiMessages(params PkiMessage[] msgs)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(msgs);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF74 RID: 44916 RVA: 0x00290DA0 File Offset: 0x0028EFA0
|
||||
[Token(Token = "0x600AF74")]
|
||||
[Address(RVA = "0x28F9500", Offset = "0x28F7F00", VA = "0x1828F9500", Slot = "6")]
|
||||
public virtual PkiMessage[] ToPkiMessageArray()
|
||||
{
|
||||
PkiMessage[] array;
|
||||
int num;
|
||||
Asn1Sequence asn1Sequence2;
|
||||
do
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
array = new PkiMessage[asn1Encodable];
|
||||
num = 0;
|
||||
int num2 = 0;
|
||||
if (num2 == array.Length)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
goto IL_50;
|
||||
}
|
||||
if (parser == 0)
|
||||
{
|
||||
PkiMessage pkiMessage = new PkiMessage(asn1Sequence2);
|
||||
}
|
||||
}
|
||||
while (asn1Sequence2 == 0);
|
||||
if (asn1Sequence2 == 0)
|
||||
{
|
||||
goto IL_53;
|
||||
}
|
||||
IL_50:
|
||||
int num3 = 0;
|
||||
IL_53:
|
||||
num++;
|
||||
array[0] = num3;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF75 RID: 44917 RVA: 0x00290E1C File Offset: 0x0028F01C
|
||||
[Token(Token = "0x600AF75")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF75)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiMessages::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PkiMessages::content, ldloc:PkiMessages(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: 0x04007348 RID: 29512
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007348")]
|
||||
private Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001984 RID: 6532
|
||||
[Token(Token = "0x2001984")]
|
||||
[StructLayout(3, Size = 4)]
|
||||
public enum PkiStatus
|
||||
{
|
||||
// Token: 0x0400734A RID: 29514
|
||||
[Token(Token = "0x400734A")]
|
||||
Granted,
|
||||
// Token: 0x0400734B RID: 29515
|
||||
[Token(Token = "0x400734B")]
|
||||
GrantedWithMods,
|
||||
// Token: 0x0400734C RID: 29516
|
||||
[Token(Token = "0x400734C")]
|
||||
Rejection,
|
||||
// Token: 0x0400734D RID: 29517
|
||||
[Token(Token = "0x400734D")]
|
||||
Waiting,
|
||||
// Token: 0x0400734E RID: 29518
|
||||
[Token(Token = "0x400734E")]
|
||||
RevocationWarning,
|
||||
// Token: 0x0400734F RID: 29519
|
||||
[Token(Token = "0x400734F")]
|
||||
RevocationNotification,
|
||||
// Token: 0x04007350 RID: 29520
|
||||
[Token(Token = "0x4007350")]
|
||||
KeyUpdateWarning
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001985 RID: 6533
|
||||
[Token(Token = "0x2001985")]
|
||||
[StructLayout(3)]
|
||||
public class PkiStatusEncodable : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF76 RID: 44918 RVA: 0x00290E30 File Offset: 0x0028F030
|
||||
[Token(Token = "0x600AF76")]
|
||||
[Address(RVA = "0x28F9C60", Offset = "0x28F8660", VA = "0x1828F9C60")]
|
||||
private PkiStatusEncodable(PkiStatus status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger((int)status);
|
||||
base..ctor();
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF77 RID: 44919 RVA: 0x00290E54 File Offset: 0x0028F054
|
||||
[Token(Token = "0x600AF77")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PkiStatusEncodable(DerInteger status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF78 RID: 44920 RVA: 0x00290E70 File Offset: 0x0028F070
|
||||
[Token(Token = "0x600AF78")]
|
||||
[Address(RVA = "0x28F9760", Offset = "0x28F8160", VA = "0x1828F9760")]
|
||||
public static PkiStatusEncodable GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF78)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable::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("Invalid object: "), 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: 0x17001C45 RID: 7237
|
||||
// (get) Token: 0x0600AF79 RID: 44921 RVA: 0x00290EC8 File Offset: 0x0028F0C8
|
||||
[Token(Token = "0x17001C45")]
|
||||
public virtual BigInteger Value
|
||||
{
|
||||
[Token(Token = "0x600AF79")]
|
||||
[Address(RVA = "0x1DF1A60", Offset = "0x1DF0460", VA = "0x181DF1A60", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF7A RID: 44922 RVA: 0x00290EE8 File Offset: 0x0028F0E8
|
||||
[Token(Token = "0x600AF7A")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF7A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusEncodable::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:DerInteger(var_0_06, ldfld:DerInteger(PkiStatusEncodable::status, ldloc:PkiStatusEncodable(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: 0x0600AF7B RID: 44923 RVA: 0x00290EFC File Offset: 0x0028F0FC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600AF7B")]
|
||||
[Address(RVA = "0x28F9950", Offset = "0x28F8350", VA = "0x1828F9950")]
|
||||
static PkiStatusEncodable()
|
||||
{
|
||||
int num;
|
||||
PkiStatusEncodable pkiStatusEncodable = new PkiStatusEncodable((PkiStatus)num);
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
pkiStatusEncodable.status = derInteger;
|
||||
PkiStatusEncodable.granted = pkiStatusEncodable;
|
||||
PkiStatusEncodable pkiStatusEncodable2 = new PkiStatusEncodable(PkiStatus.GrantedWithMods);
|
||||
DerInteger derInteger2 = new DerInteger(1);
|
||||
pkiStatusEncodable2.status = derInteger2;
|
||||
PkiStatusEncodable.grantedWithMods = pkiStatusEncodable2;
|
||||
PkiStatusEncodable pkiStatusEncodable3 = new PkiStatusEncodable(PkiStatus.Rejection);
|
||||
DerInteger derInteger3 = new DerInteger(2);
|
||||
pkiStatusEncodable3.status = derInteger3;
|
||||
PkiStatusEncodable.rejection = pkiStatusEncodable3;
|
||||
PkiStatusEncodable pkiStatusEncodable4 = new PkiStatusEncodable(PkiStatus.Waiting);
|
||||
DerInteger derInteger4 = new DerInteger(3);
|
||||
pkiStatusEncodable4.status = derInteger4;
|
||||
PkiStatusEncodable.waiting = pkiStatusEncodable4;
|
||||
PkiStatusEncodable pkiStatusEncodable5 = new PkiStatusEncodable(PkiStatus.RevocationWarning);
|
||||
DerInteger derInteger5 = new DerInteger(4);
|
||||
pkiStatusEncodable5.status = derInteger5;
|
||||
PkiStatusEncodable.revocationWarning = pkiStatusEncodable5;
|
||||
PkiStatusEncodable pkiStatusEncodable6 = new PkiStatusEncodable(PkiStatus.RevocationNotification);
|
||||
DerInteger derInteger6 = new DerInteger(5);
|
||||
pkiStatusEncodable6.status = derInteger6;
|
||||
PkiStatusEncodable.revocationNotification = pkiStatusEncodable6;
|
||||
PkiStatusEncodable pkiStatusEncodable7 = new PkiStatusEncodable(PkiStatus.KeyUpdateWarning);
|
||||
DerInteger derInteger7 = new DerInteger(6);
|
||||
pkiStatusEncodable7.status = derInteger7;
|
||||
PkiStatusEncodable.keyUpdateWaiting = pkiStatusEncodable7;
|
||||
}
|
||||
|
||||
// Token: 0x04007351 RID: 29521
|
||||
[Token(Token = "0x4007351")]
|
||||
public static readonly PkiStatusEncodable granted;
|
||||
|
||||
// Token: 0x04007352 RID: 29522
|
||||
[Token(Token = "0x4007352")]
|
||||
public static readonly PkiStatusEncodable grantedWithMods;
|
||||
|
||||
// Token: 0x04007353 RID: 29523
|
||||
[Token(Token = "0x4007353")]
|
||||
public static readonly PkiStatusEncodable rejection;
|
||||
|
||||
// Token: 0x04007354 RID: 29524
|
||||
[Token(Token = "0x4007354")]
|
||||
public static readonly PkiStatusEncodable waiting;
|
||||
|
||||
// Token: 0x04007355 RID: 29525
|
||||
[Token(Token = "0x4007355")]
|
||||
public static readonly PkiStatusEncodable revocationWarning;
|
||||
|
||||
// Token: 0x04007356 RID: 29526
|
||||
[Token(Token = "0x4007356")]
|
||||
public static readonly PkiStatusEncodable revocationNotification;
|
||||
|
||||
// Token: 0x04007357 RID: 29527
|
||||
[Token(Token = "0x4007357")]
|
||||
public static readonly PkiStatusEncodable keyUpdateWaiting;
|
||||
|
||||
// Token: 0x04007358 RID: 29528
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007358")]
|
||||
private readonly DerInteger status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001986 RID: 6534
|
||||
[Token(Token = "0x2001986")]
|
||||
[StructLayout(3)]
|
||||
public class PkiStatusInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF7C RID: 44924 RVA: 0x00290FE4 File Offset: 0x0028F1E4
|
||||
[Token(Token = "0x600AF7C")]
|
||||
[Address(RVA = "0x28F9CD0", Offset = "0x28F86D0", VA = "0x1828F9CD0")]
|
||||
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AF7D RID: 44925 RVA: 0x00291000 File Offset: 0x0028F200
|
||||
[Token(Token = "0x600AF7D")]
|
||||
[Address(RVA = "0x28F9CF0", Offset = "0x28F86F0", VA = "0x1828F9CF0")]
|
||||
public static PkiStatusInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF7D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo::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: 0x0600AF7E RID: 44926 RVA: 0x00291050 File Offset: 0x0028F250
|
||||
[Token(Token = "0x600AF7E")]
|
||||
[Address(RVA = "0x28FA200", Offset = "0x28F8C00", VA = "0x1828FA200")]
|
||||
public PkiStatusInfo(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.status = derInteger;
|
||||
int num = 0;
|
||||
this.statusString = num;
|
||||
this.failInfo = num;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
if (parser2 == 0 || parser2 == 0)
|
||||
{
|
||||
PkiFreeText pkiFreeText;
|
||||
this.statusString = pkiFreeText;
|
||||
return;
|
||||
}
|
||||
DerBitString derBitString;
|
||||
this.failInfo = derBitString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF7F RID: 44927 RVA: 0x002910BC File Offset: 0x0028F2BC
|
||||
[Token(Token = "0x600AF7F")]
|
||||
[Address(RVA = "0x28FA3D0", Offset = "0x28F8DD0", VA = "0x1828FA3D0")]
|
||||
public PkiStatusInfo(int status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF80 RID: 44928 RVA: 0x002910E0 File Offset: 0x0028F2E0
|
||||
[Token(Token = "0x600AF80")]
|
||||
[Address(RVA = "0x28FA0F0", Offset = "0x28F8AF0", VA = "0x1828FA0F0")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF81 RID: 44929 RVA: 0x00291108 File Offset: 0x0028F308
|
||||
[Token(Token = "0x600AF81")]
|
||||
[Address(RVA = "0x28FA170", Offset = "0x28F8B70", VA = "0x1828FA170")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
this.failInfo = failInfo;
|
||||
}
|
||||
|
||||
// Token: 0x17001C46 RID: 7238
|
||||
// (get) Token: 0x0600AF82 RID: 44930 RVA: 0x00291138 File Offset: 0x0028F338
|
||||
[Token(Token = "0x17001C46")]
|
||||
public BigInteger Status
|
||||
{
|
||||
[Token(Token = "0x600AF82")]
|
||||
[Address(RVA = "0x1DF1A60", Offset = "0x1DF0460", VA = "0x181DF1A60")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C47 RID: 7239
|
||||
// (get) Token: 0x0600AF83 RID: 44931 RVA: 0x00291158 File Offset: 0x0028F358
|
||||
[Token(Token = "0x17001C47")]
|
||||
public PkiFreeText StatusString
|
||||
{
|
||||
[Token(Token = "0x600AF83")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.statusString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C48 RID: 7240
|
||||
// (get) Token: 0x0600AF84 RID: 44932 RVA: 0x0029116C File Offset: 0x0028F36C
|
||||
[Token(Token = "0x17001C48")]
|
||||
public DerBitString FailInfo
|
||||
{
|
||||
[Token(Token = "0x600AF84")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.failInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF85 RID: 44933 RVA: 0x00291180 File Offset: 0x0028F380
|
||||
[Token(Token = "0x600AF85")]
|
||||
[Address(RVA = "0x28F9EE0", Offset = "0x28F88E0", VA = "0x1828F9EE0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.status;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.statusString != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
PkiFreeText pkiFreeText = this.statusString;
|
||||
if (pkiFreeText != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = pkiFreeText;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.failInfo != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerBitString derBitString = this.failInfo;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derBitString;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007359 RID: 29529
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007359")]
|
||||
private DerInteger status;
|
||||
|
||||
// Token: 0x0400735A RID: 29530
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400735A")]
|
||||
private PkiFreeText statusString;
|
||||
|
||||
// Token: 0x0400735B RID: 29531
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400735B")]
|
||||
private DerBitString failInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001988 RID: 6536
|
||||
[Token(Token = "0x2001988")]
|
||||
[StructLayout(3)]
|
||||
public class PollRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF8F RID: 44943 RVA: 0x00291414 File Offset: 0x0028F614
|
||||
[Token(Token = "0x600AF8F")]
|
||||
[Address(RVA = "0x28FA880", Offset = "0x28F9280", VA = "0x1828FA880")]
|
||||
private PollRepContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.certReqId = derInteger;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger2;
|
||||
this.checkAfter = derInteger2;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)2L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
PkiFreeText pkiFreeText;
|
||||
this.reason = pkiFreeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF90 RID: 44944 RVA: 0x00291460 File Offset: 0x0028F660
|
||||
[Token(Token = "0x600AF90")]
|
||||
[Address(RVA = "0x28FA440", Offset = "0x28F8E40", VA = "0x1828FA440")]
|
||||
public static PollRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF90)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollRepContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3A:
|
||||
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x0600AF91 RID: 44945 RVA: 0x002914C8 File Offset: 0x0028F6C8
|
||||
[Token(Token = "0x600AF91")]
|
||||
[Address(RVA = "0x262CDE0", Offset = "0x262B7E0", VA = "0x18262CDE0")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF92 RID: 44946 RVA: 0x002914F4 File Offset: 0x0028F6F4
|
||||
[Token(Token = "0x600AF92")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter, PkiFreeText reason)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
// Token: 0x17001C4D RID: 7245
|
||||
// (get) Token: 0x0600AF93 RID: 44947 RVA: 0x0029151C File Offset: 0x0028F71C
|
||||
[Token(Token = "0x17001C4D")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600AF93")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4E RID: 7246
|
||||
// (get) Token: 0x0600AF94 RID: 44948 RVA: 0x00291530 File Offset: 0x0028F730
|
||||
[Token(Token = "0x17001C4E")]
|
||||
public virtual DerInteger CheckAfter
|
||||
{
|
||||
[Token(Token = "0x600AF94")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.checkAfter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C4F RID: 7247
|
||||
// (get) Token: 0x0600AF95 RID: 44949 RVA: 0x00291544 File Offset: 0x0028F744
|
||||
[Token(Token = "0x17001C4F")]
|
||||
public virtual PkiFreeText Reason
|
||||
{
|
||||
[Token(Token = "0x600AF95")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.reason;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF96 RID: 44950 RVA: 0x00291558 File Offset: 0x0028F758
|
||||
[Token(Token = "0x600AF96")]
|
||||
[Address(RVA = "0x28FA6C0", Offset = "0x28F90C0", VA = "0x1828FA6C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerInteger derInteger = this.certReqId;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
DerInteger derInteger2 = this.checkAfter;
|
||||
if (derInteger2 != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
PkiFreeText pkiFreeText = this.reason;
|
||||
if (pkiFreeText != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = pkiFreeText;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007360 RID: 29536
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007360")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x04007361 RID: 29537
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007361")]
|
||||
private readonly DerInteger checkAfter;
|
||||
|
||||
// Token: 0x04007362 RID: 29538
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007362")]
|
||||
private readonly PkiFreeText reason;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001989 RID: 6537
|
||||
[Token(Token = "0x2001989")]
|
||||
[StructLayout(3)]
|
||||
public class PollReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF97 RID: 44951 RVA: 0x002915D0 File Offset: 0x0028F7D0
|
||||
[Token(Token = "0x600AF97")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PollReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF98 RID: 44952 RVA: 0x002915EC File Offset: 0x0028F7EC
|
||||
[Token(Token = "0x600AF98")]
|
||||
[Address(RVA = "0x28FAB80", Offset = "0x28F9580", VA = "0x1828FAB80")]
|
||||
public static PollReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF98)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent::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("Invalid object: "), 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: 0x0600AF99 RID: 44953 RVA: 0x00291644 File Offset: 0x0028F844
|
||||
[Token(Token = "0x600AF99")]
|
||||
[Address(RVA = "0x28FA940", Offset = "0x28F9340", VA = "0x1828FA940", Slot = "6")]
|
||||
public virtual DerInteger[][] GetCertReqIDs()
|
||||
{
|
||||
DerInteger[][] array;
|
||||
int num2;
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
array = new DerInteger[asn1Encodable][];
|
||||
int num = 0;
|
||||
num2 = 0;
|
||||
if (num == array.Length)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
parser = this.content.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
DerInteger[] array2 = new DerInteger[0];
|
||||
int num3 = 0;
|
||||
if (num3 != array2.Length)
|
||||
{
|
||||
DerInteger derInteger;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
num3++;
|
||||
array2[0] = derInteger;
|
||||
}
|
||||
num2++;
|
||||
array[0] = array2;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF9A RID: 44954 RVA: 0x002916CC File Offset: 0x0028F8CC
|
||||
[Token(Token = "0x600AF9A")]
|
||||
[Address(RVA = "0x28FAD70", Offset = "0x28F9770", VA = "0x1828FAD70")]
|
||||
private static DerInteger[] SequenceToDerIntegerArray(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
DerInteger[] array = new DerInteger[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = derInteger;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF9B RID: 44955 RVA: 0x0029170C File Offset: 0x0028F90C
|
||||
[Token(Token = "0x600AF9B")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF9B)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollReqContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PollReqContent::content, ldloc:PollReqContent(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: 0x04007363 RID: 29539
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007363")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198A RID: 6538
|
||||
[Token(Token = "0x200198A")]
|
||||
[StructLayout(3)]
|
||||
public class PopoDecKeyChallContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF9C RID: 44956 RVA: 0x00291720 File Offset: 0x0028F920
|
||||
[Token(Token = "0x600AF9C")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PopoDecKeyChallContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF9D RID: 44957 RVA: 0x0029173C File Offset: 0x0028F93C
|
||||
[Token(Token = "0x600AF9D")]
|
||||
[Address(RVA = "0x28FAE80", Offset = "0x28F9880", VA = "0x1828FAE80")]
|
||||
public static PopoDecKeyChallContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF9D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent::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("Invalid object: "), 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: 0x0600AF9E RID: 44958 RVA: 0x00291794 File Offset: 0x0028F994
|
||||
[Token(Token = "0x600AF9E")]
|
||||
[Address(RVA = "0x28FB070", Offset = "0x28F9A70", VA = "0x1828FB070", Slot = "6")]
|
||||
public virtual Challenge[] ToChallengeArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
Challenge[] array = new Challenge[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
Challenge challenge;
|
||||
if (challenge != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = challenge;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF9F RID: 44959 RVA: 0x002917E0 File Offset: 0x0028F9E0
|
||||
[Token(Token = "0x600AF9F")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF9F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyChallContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PopoDecKeyChallContent::content, ldloc:PopoDecKeyChallContent(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: 0x04007364 RID: 29540
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007364")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198B RID: 6539
|
||||
[Token(Token = "0x200198B")]
|
||||
[StructLayout(3)]
|
||||
public class PopoDecKeyRespContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFA0 RID: 44960 RVA: 0x002917F4 File Offset: 0x0028F9F4
|
||||
[Token(Token = "0x600AFA0")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private PopoDecKeyRespContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFA1 RID: 44961 RVA: 0x00291810 File Offset: 0x0028FA10
|
||||
[Token(Token = "0x600AFA1")]
|
||||
[Address(RVA = "0x28FB180", Offset = "0x28F9B80", VA = "0x1828FB180")]
|
||||
public static PopoDecKeyRespContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFA1)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent::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("Invalid object: "), 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: 0x0600AFA2 RID: 44962 RVA: 0x00291868 File Offset: 0x0028FA68
|
||||
[Token(Token = "0x600AFA2")]
|
||||
[Address(RVA = "0x28FB370", Offset = "0x28F9D70", VA = "0x1828FB370", Slot = "6")]
|
||||
public virtual DerInteger[] ToDerIntegerArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
DerInteger[] array = new DerInteger[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
DerInteger derInteger;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = derInteger;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFA3 RID: 44963 RVA: 0x002918B4 File Offset: 0x0028FAB4
|
||||
[Token(Token = "0x600AFA3")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFA3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PopoDecKeyRespContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PopoDecKeyRespContent::content, ldloc:PopoDecKeyRespContent(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: 0x04007365 RID: 29541
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007365")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198C RID: 6540
|
||||
[Token(Token = "0x200198C")]
|
||||
[StructLayout(3)]
|
||||
public class ProtectedPart : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFA4 RID: 44964 RVA: 0x002918C8 File Offset: 0x0028FAC8
|
||||
[Token(Token = "0x600AFA4")]
|
||||
[Address(RVA = "0x28FB800", Offset = "0x28FA200", VA = "0x1828FB800")]
|
||||
private ProtectedPart(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiHeader pkiHeader;
|
||||
this.header = pkiHeader;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiBody pkiBody;
|
||||
this.body = pkiBody;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFA5 RID: 44965 RVA: 0x00291900 File Offset: 0x0028FB00
|
||||
[Token(Token = "0x600AFA5")]
|
||||
[Address(RVA = "0x28FB480", Offset = "0x28F9E80", VA = "0x1828FB480")]
|
||||
public static ProtectedPart GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFA5)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart::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("Invalid object: "), 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: 0x0600AFA6 RID: 44966 RVA: 0x0029195C File Offset: 0x0028FB5C
|
||||
[Token(Token = "0x600AFA6")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public ProtectedPart(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
// Token: 0x17001C50 RID: 7248
|
||||
// (get) Token: 0x0600AFA7 RID: 44967 RVA: 0x00291980 File Offset: 0x0028FB80
|
||||
[Token(Token = "0x17001C50")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600AFA7")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C51 RID: 7249
|
||||
// (get) Token: 0x0600AFA8 RID: 44968 RVA: 0x00291994 File Offset: 0x0028FB94
|
||||
[Token(Token = "0x17001C51")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600AFA8")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFA9 RID: 44969 RVA: 0x002919A8 File Offset: 0x0028FBA8
|
||||
[Token(Token = "0x600AFA9")]
|
||||
[Address(RVA = "0x28FB6F0", Offset = "0x28FA0F0", VA = "0x1828FB6F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
PkiHeader pkiHeader = this.header;
|
||||
if (pkiHeader != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiHeader;
|
||||
PkiBody pkiBody = this.body;
|
||||
if (pkiBody != 0)
|
||||
{
|
||||
}
|
||||
array[1] = pkiBody;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007366 RID: 29542
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007366")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04007367 RID: 29543
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007367")]
|
||||
private readonly PkiBody body;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198D RID: 6541
|
||||
[Token(Token = "0x200198D")]
|
||||
[StructLayout(3)]
|
||||
public class RevAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFAA RID: 44970 RVA: 0x002919F0 File Offset: 0x0028FBF0
|
||||
[Token(Token = "0x600AFAA")]
|
||||
[Address(RVA = "0x28FD820", Offset = "0x28FC220", VA = "0x1828FD820")]
|
||||
private RevAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiStatusEncodable pkiStatusEncodable;
|
||||
this.status = pkiStatusEncodable;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
CertId certId;
|
||||
this.certId = certId;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerGeneralizedTime derGeneralizedTime;
|
||||
this.willBeRevokedAt = derGeneralizedTime;
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
DerGeneralizedTime derGeneralizedTime2;
|
||||
this.badSinceDate = derGeneralizedTime2;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)4L)
|
||||
{
|
||||
Asn1SequenceParser parser5 = seq.Parser;
|
||||
X509Extensions x509Extensions;
|
||||
this.crlDetails = x509Extensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFAB RID: 44971 RVA: 0x00291A5C File Offset: 0x0028FC5C
|
||||
[Token(Token = "0x600AFAB")]
|
||||
[Address(RVA = "0x28FD2A0", Offset = "0x28FBCA0", VA = "0x1828FD2A0")]
|
||||
public static RevAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFAB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevAnnContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_46:
|
||||
stloc:string(var_11_4C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_12_64, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_4C)), 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: 0x17001C52 RID: 7250
|
||||
// (get) Token: 0x0600AFAC RID: 44972 RVA: 0x00291AD0 File Offset: 0x0028FCD0
|
||||
[Token(Token = "0x17001C52")]
|
||||
public virtual PkiStatusEncodable Status
|
||||
{
|
||||
[Token(Token = "0x600AFAC")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C53 RID: 7251
|
||||
// (get) Token: 0x0600AFAD RID: 44973 RVA: 0x00291AE4 File Offset: 0x0028FCE4
|
||||
[Token(Token = "0x17001C53")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600AFAD")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C54 RID: 7252
|
||||
// (get) Token: 0x0600AFAE RID: 44974 RVA: 0x00291AF8 File Offset: 0x0028FCF8
|
||||
[Token(Token = "0x17001C54")]
|
||||
public virtual DerGeneralizedTime WillBeRevokedAt
|
||||
{
|
||||
[Token(Token = "0x600AFAE")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.willBeRevokedAt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C55 RID: 7253
|
||||
// (get) Token: 0x0600AFAF RID: 44975 RVA: 0x00291B0C File Offset: 0x0028FD0C
|
||||
[Token(Token = "0x17001C55")]
|
||||
public virtual DerGeneralizedTime BadSinceDate
|
||||
{
|
||||
[Token(Token = "0x600AFAF")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.badSinceDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C56 RID: 7254
|
||||
// (get) Token: 0x0600AFB0 RID: 44976 RVA: 0x00291B20 File Offset: 0x0028FD20
|
||||
[Token(Token = "0x17001C56")]
|
||||
public virtual X509Extensions CrlDetails
|
||||
{
|
||||
[Token(Token = "0x600AFB0")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.crlDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB1 RID: 44977 RVA: 0x00291B34 File Offset: 0x0028FD34
|
||||
[Token(Token = "0x600AFB1")]
|
||||
[Address(RVA = "0x28FD5C0", Offset = "0x28FBFC0", VA = "0x1828FD5C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[4];
|
||||
PkiStatusEncodable pkiStatusEncodable = this.status;
|
||||
if (pkiStatusEncodable != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiStatusEncodable;
|
||||
CertId certId = this.certId;
|
||||
if (certId != 0)
|
||||
{
|
||||
}
|
||||
array[1] = certId;
|
||||
DerGeneralizedTime derGeneralizedTime = this.willBeRevokedAt;
|
||||
if (derGeneralizedTime != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derGeneralizedTime;
|
||||
DerGeneralizedTime derGeneralizedTime2 = this.badSinceDate;
|
||||
if (derGeneralizedTime2 != 0)
|
||||
{
|
||||
}
|
||||
array[3] = derGeneralizedTime2;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
X509Extensions x509Extensions = this.crlDetails;
|
||||
if (x509Extensions != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = x509Extensions;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007368 RID: 29544
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007368")]
|
||||
private readonly PkiStatusEncodable status;
|
||||
|
||||
// Token: 0x04007369 RID: 29545
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007369")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x0400736A RID: 29546
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400736A")]
|
||||
private readonly DerGeneralizedTime willBeRevokedAt;
|
||||
|
||||
// Token: 0x0400736B RID: 29547
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400736B")]
|
||||
private readonly DerGeneralizedTime badSinceDate;
|
||||
|
||||
// Token: 0x0400736C RID: 29548
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400736C")]
|
||||
private readonly X509Extensions crlDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198E RID: 6542
|
||||
[Token(Token = "0x200198E")]
|
||||
[StructLayout(3)]
|
||||
public class RevDetails : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFB2 RID: 44978 RVA: 0x00291BD8 File Offset: 0x0028FDD8
|
||||
[Token(Token = "0x600AFB2")]
|
||||
[Address(RVA = "0x28FDDA0", Offset = "0x28FC7A0", VA = "0x1828FDDA0")]
|
||||
private RevDetails(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertTemplate certTemplate;
|
||||
this.certDetails = certTemplate;
|
||||
int num = 0;
|
||||
this.crlEntryDetails = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB3 RID: 44979 RVA: 0x00291C1C File Offset: 0x0028FE1C
|
||||
[Token(Token = "0x600AFB3")]
|
||||
[Address(RVA = "0x28FD990", Offset = "0x28FC390", VA = "0x1828FD990")]
|
||||
public static RevDetails GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFB3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevDetails BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevDetails::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("Invalid object: "), 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: 0x0600AFB4 RID: 44980 RVA: 0x00291C7C File Offset: 0x0028FE7C
|
||||
[Token(Token = "0x600AFB4")]
|
||||
[Address(RVA = "0x937E60", Offset = "0x936860", VA = "0x180937E60")]
|
||||
public RevDetails(CertTemplate certDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB5 RID: 44981 RVA: 0x00291CA0 File Offset: 0x0028FEA0
|
||||
[Token(Token = "0x600AFB5")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public RevDetails(CertTemplate certDetails, X509Extensions crlEntryDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = crlEntryDetails;
|
||||
}
|
||||
|
||||
// Token: 0x17001C57 RID: 7255
|
||||
// (get) Token: 0x0600AFB6 RID: 44982 RVA: 0x00291CC4 File Offset: 0x0028FEC4
|
||||
[Token(Token = "0x17001C57")]
|
||||
public virtual CertTemplate CertDetails
|
||||
{
|
||||
[Token(Token = "0x600AFB6")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C58 RID: 7256
|
||||
// (get) Token: 0x0600AFB7 RID: 44983 RVA: 0x00291CD8 File Offset: 0x0028FED8
|
||||
[Token(Token = "0x17001C58")]
|
||||
public virtual X509Extensions CrlEntryDetails
|
||||
{
|
||||
[Token(Token = "0x600AFB7")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.crlEntryDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB8 RID: 44984 RVA: 0x00291CEC File Offset: 0x0028FEEC
|
||||
[Token(Token = "0x600AFB8")]
|
||||
[Address(RVA = "0x28FDC30", Offset = "0x28FC630", VA = "0x1828FDC30", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
CertTemplate certTemplate = this.certDetails;
|
||||
if (certTemplate != 0)
|
||||
{
|
||||
}
|
||||
array[0] = certTemplate;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
X509Extensions x509Extensions = this.crlEntryDetails;
|
||||
if (x509Extensions != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = x509Extensions;
|
||||
asn1EncodableVector.AddOptional(array2);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400736D RID: 29549
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400736D")]
|
||||
private readonly CertTemplate certDetails;
|
||||
|
||||
// Token: 0x0400736E RID: 29550
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400736E")]
|
||||
private readonly X509Extensions crlEntryDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198F RID: 6543
|
||||
[Token(Token = "0x200198F")]
|
||||
[StructLayout(3)]
|
||||
public class RevRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFB9 RID: 44985 RVA: 0x00291D4C File Offset: 0x0028FF4C
|
||||
[Token(Token = "0x600AFB9")]
|
||||
[Address(RVA = "0x28FEDE0", Offset = "0x28FD7E0", VA = "0x1828FEDE0")]
|
||||
private RevRepContent(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.status = asn1Sequence;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)1 < asn1Encodable)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
int tagNo = asn1TaggedObject.tagNo;
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1TaggedObject, true);
|
||||
if (tagNo != 0)
|
||||
{
|
||||
this.crls = instance;
|
||||
}
|
||||
this.revCerts = instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFBA RID: 44986 RVA: 0x00291DA8 File Offset: 0x0028FFA8
|
||||
[Token(Token = "0x600AFBA")]
|
||||
[Address(RVA = "0x28FE800", Offset = "0x28FD200", VA = "0x1828FE800")]
|
||||
public static RevRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFBA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_53:
|
||||
stloc:string(var_10_59, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_11_71, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_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: 0x0600AFBB RID: 44987 RVA: 0x00291E28 File Offset: 0x00290028
|
||||
[Token(Token = "0x600AFBB")]
|
||||
[Address(RVA = "0x28FEBB0", Offset = "0x28FD5B0", VA = "0x1828FEBB0", Slot = "6")]
|
||||
public virtual PkiStatusInfo[] GetStatus()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.status;
|
||||
Asn1Encodable asn1Encodable;
|
||||
PkiStatusInfo[] array = new PkiStatusInfo[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.status.Parser;
|
||||
PkiStatusInfo pkiStatusInfo;
|
||||
if (pkiStatusInfo != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = pkiStatusInfo;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFBC RID: 44988 RVA: 0x00291E74 File Offset: 0x00290074
|
||||
[Token(Token = "0x600AFBC")]
|
||||
[Address(RVA = "0x28FEA90", Offset = "0x28FD490", VA = "0x1828FEA90", Slot = "7")]
|
||||
public virtual CertId[] GetRevCerts()
|
||||
{
|
||||
if (this.revCerts != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertId[] array = new CertId[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.revCerts.Parser;
|
||||
CertId certId;
|
||||
if (certId != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certId;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AFBD RID: 44989 RVA: 0x00291EC4 File Offset: 0x002900C4
|
||||
[Token(Token = "0x600AFBD")]
|
||||
[Address(RVA = "0x28FE6E0", Offset = "0x28FD0E0", VA = "0x1828FE6E0", Slot = "8")]
|
||||
public virtual CertificateList[] GetCrls()
|
||||
{
|
||||
if (this.crls != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CertificateList[] array = new CertificateList[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.crls.Parser;
|
||||
CertificateList certificateList;
|
||||
if (certificateList != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = certificateList;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AFBE RID: 44990 RVA: 0x00291F14 File Offset: 0x00290114
|
||||
[Token(Token = "0x600AFBE")]
|
||||
[Address(RVA = "0x28FECC0", Offset = "0x28FD6C0", VA = "0x1828FECC0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence = this.status;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1Sequence;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
Asn1Sequence asn1Sequence2 = this.revCerts;
|
||||
int num = 0;
|
||||
this.AddOptional(asn1EncodableVector, num, asn1Sequence2);
|
||||
Asn1Sequence asn1Sequence3 = this.crls;
|
||||
this.AddOptional(asn1EncodableVector, 1, asn1Sequence3);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600AFBF RID: 44991 RVA: 0x00291F78 File Offset: 0x00290178
|
||||
[Token(Token = "0x600AFBF")]
|
||||
[Address(RVA = "0x28FE5E0", Offset = "0x28FCFE0", VA = "0x1828FE5E0")]
|
||||
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0400736F RID: 29551
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400736F")]
|
||||
private readonly Asn1Sequence status;
|
||||
|
||||
// Token: 0x04007370 RID: 29552
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007370")]
|
||||
private readonly Asn1Sequence revCerts;
|
||||
|
||||
// Token: 0x04007371 RID: 29553
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007371")]
|
||||
private readonly Asn1Sequence crls;
|
||||
}
|
||||
}
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001990 RID: 6544
|
||||
[Token(Token = "0x2001990")]
|
||||
[StructLayout(3)]
|
||||
public class RevRepContentBuilder
|
||||
{
|
||||
// Token: 0x0600AFC0 RID: 44992 RVA: 0x00291FB4 File Offset: 0x002901B4
|
||||
[Token(Token = "0x600AFC0")]
|
||||
[Address(RVA = "0x28FDF60", Offset = "0x28FC960", VA = "0x1828FDF60", Slot = "4")]
|
||||
public virtual RevRepContentBuilder Add(PkiStatusInfo status)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = this.status;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (status != 0)
|
||||
{
|
||||
}
|
||||
array[0] = status;
|
||||
asn1EncodableVector.Add(array);
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC1 RID: 44993 RVA: 0x00291FEC File Offset: 0x002901EC
|
||||
[Token(Token = "0x600AFC1")]
|
||||
[Address(RVA = "0x28FE030", Offset = "0x28FCA30", VA = "0x1828FE030", Slot = "5")]
|
||||
public virtual RevRepContentBuilder Add(PkiStatusInfo status, CertId certId)
|
||||
{
|
||||
int count;
|
||||
int count2;
|
||||
do
|
||||
{
|
||||
count = this.status.Count;
|
||||
count2 = this.revCerts.Count;
|
||||
}
|
||||
while (count != count2);
|
||||
Asn1EncodableVector asn1EncodableVector = this.status;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (status != 0)
|
||||
{
|
||||
}
|
||||
array[0] = status;
|
||||
asn1EncodableVector.Add(array);
|
||||
Asn1EncodableVector asn1EncodableVector2 = this.revCerts;
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
if (certId != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = certId;
|
||||
asn1EncodableVector2.Add(array2);
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC2 RID: 44994 RVA: 0x00292064 File Offset: 0x00290264
|
||||
[Token(Token = "0x600AFC2")]
|
||||
[Address(RVA = "0x28FDE90", Offset = "0x28FC890", VA = "0x1828FDE90", Slot = "6")]
|
||||
public virtual RevRepContentBuilder AddCrl(CertificateList crl)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector = this.crls;
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
if (crl != 0)
|
||||
{
|
||||
}
|
||||
array[0] = crl;
|
||||
asn1EncodableVector.Add(array);
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC3 RID: 44995 RVA: 0x0029209C File Offset: 0x0029029C
|
||||
[Token(Token = "0x600AFC3")]
|
||||
[Address(RVA = "0x28FE1F0", Offset = "0x28FCBF0", VA = "0x1828FE1F0", Slot = "7")]
|
||||
public virtual RevRepContent Build()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerSequence derSequence = new DerSequence(this.status);
|
||||
if (derSequence != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derSequence;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array);
|
||||
if (this.revCerts.Count != 0)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerSequence derSequence2 = new DerSequence(this.revCerts);
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, derSequence2);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.crls.Count != 0)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerSequence derSequence3 = new DerSequence(this.crls);
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, derSequence3);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
return RevRepContent.GetInstance(new DerSequence(asn1EncodableVector));
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC4 RID: 44996 RVA: 0x00292174 File Offset: 0x00290374
|
||||
[Token(Token = "0x600AFC4")]
|
||||
[Address(RVA = "0x28FE500", Offset = "0x28FCF00", VA = "0x1828FE500")]
|
||||
public RevRepContentBuilder()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
this.status = asn1EncodableVector;
|
||||
Asn1EncodableVector asn1EncodableVector2;
|
||||
this.revCerts = asn1EncodableVector2;
|
||||
Asn1EncodableVector asn1EncodableVector3;
|
||||
this.crls = asn1EncodableVector3;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04007372 RID: 29554
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007372")]
|
||||
private readonly Asn1EncodableVector status;
|
||||
|
||||
// Token: 0x04007373 RID: 29555
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007373")]
|
||||
private readonly Asn1EncodableVector revCerts;
|
||||
|
||||
// Token: 0x04007374 RID: 29556
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007374")]
|
||||
private readonly Asn1EncodableVector crls;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001991 RID: 6545
|
||||
[Token(Token = "0x2001991")]
|
||||
[StructLayout(3)]
|
||||
public class RevReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFC5 RID: 44997 RVA: 0x0029219C File Offset: 0x0029039C
|
||||
[Token(Token = "0x600AFC5")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
private RevReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC6 RID: 44998 RVA: 0x002921B8 File Offset: 0x002903B8
|
||||
[Token(Token = "0x600AFC6")]
|
||||
[Address(RVA = "0x28FEEC0", Offset = "0x28FD8C0", VA = "0x1828FEEC0")]
|
||||
public static RevReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFC6)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent::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("Invalid object: "), 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: 0x0600AFC7 RID: 44999 RVA: 0x00292210 File Offset: 0x00290410
|
||||
[Token(Token = "0x600AFC7")]
|
||||
[Address(RVA = "0x28FF1C0", Offset = "0x28FDBC0", VA = "0x1828FF1C0")]
|
||||
public RevReqContent(params RevDetails[] revDetails)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(revDetails);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC8 RID: 45000 RVA: 0x00292234 File Offset: 0x00290434
|
||||
[Token(Token = "0x600AFC8")]
|
||||
[Address(RVA = "0x28FF0B0", Offset = "0x28FDAB0", VA = "0x1828FF0B0", Slot = "6")]
|
||||
public virtual RevDetails[] ToRevDetailsArray()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.content;
|
||||
Asn1Encodable asn1Encodable;
|
||||
RevDetails[] array = new RevDetails[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.content.Parser;
|
||||
RevDetails revDetails;
|
||||
if (revDetails != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = revDetails;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600AFC9 RID: 45001 RVA: 0x00292280 File Offset: 0x00290480
|
||||
[Token(Token = "0x600AFC9")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFC9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevReqContent::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(RevReqContent::content, ldloc:RevReqContent(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: 0x04007375 RID: 29557
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007375")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user