m
This commit is contained in:
+132
@@ -0,0 +1,132 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002028 RID: 8232
|
||||
[Token(Token = "0x2002028")]
|
||||
public class CAKeyUpdAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE68 RID: 52840 RVA: 0x002EF000 File Offset: 0x002ED200
|
||||
[Token(Token = "0x600CE68")]
|
||||
[Address(RVA = "0x2298470", Offset = "0x2297470", VA = "0x182298470")]
|
||||
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: 0x0600CE69 RID: 52841 RVA: 0x002EF048 File Offset: 0x002ED248
|
||||
[Token(Token = "0x600CE69")]
|
||||
[Address(RVA = "0x22980A0", Offset = "0x22970A0", VA = "0x1822980A0")]
|
||||
public static CAKeyUpdAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE69)
|
||||
|
||||
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: 0x170020B5 RID: 8373
|
||||
// (get) Token: 0x0600CE6A RID: 52842 RVA: 0x002EF0B0 File Offset: 0x002ED2B0
|
||||
[Token(Token = "0x170020B5")]
|
||||
public virtual CmpCertificate OldWithNew
|
||||
{
|
||||
[Token(Token = "0x600CE6A")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.oldWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B6 RID: 8374
|
||||
// (get) Token: 0x0600CE6B RID: 52843 RVA: 0x002EF0C4 File Offset: 0x002ED2C4
|
||||
[Token(Token = "0x170020B6")]
|
||||
public virtual CmpCertificate NewWithOld
|
||||
{
|
||||
[Token(Token = "0x600CE6B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newWithOld;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B7 RID: 8375
|
||||
// (get) Token: 0x0600CE6C RID: 52844 RVA: 0x002EF0D8 File Offset: 0x002ED2D8
|
||||
[Token(Token = "0x170020B7")]
|
||||
public virtual CmpCertificate NewWithNew
|
||||
{
|
||||
[Token(Token = "0x600CE6C")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.newWithNew;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE6D RID: 52845 RVA: 0x002EF0EC File Offset: 0x002ED2EC
|
||||
[Token(Token = "0x600CE6D")]
|
||||
[Address(RVA = "0x2298300", Offset = "0x2297300", VA = "0x182298300", 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: 0x040082AC RID: 33452
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082AC")]
|
||||
private readonly CmpCertificate oldWithNew;
|
||||
|
||||
// Token: 0x040082AD RID: 33453
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082AD")]
|
||||
private readonly CmpCertificate newWithOld;
|
||||
|
||||
// Token: 0x040082AE RID: 33454
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082AE")]
|
||||
private readonly CmpCertificate newWithNew;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002029 RID: 8233
|
||||
[Token(Token = "0x2002029")]
|
||||
public class CertConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE6E RID: 52846 RVA: 0x002EF148 File Offset: 0x002ED348
|
||||
[Token(Token = "0x600CE6E")]
|
||||
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
||||
private CertConfirmContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE6F RID: 52847 RVA: 0x002EF164 File Offset: 0x002ED364
|
||||
[Token(Token = "0x600CE6F")]
|
||||
[Address(RVA = "0x2298510", Offset = "0x2297510", VA = "0x182298510")]
|
||||
public static CertConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE6F)
|
||||
|
||||
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: 0x0600CE70 RID: 52848 RVA: 0x002EF1BC File Offset: 0x002ED3BC
|
||||
[Token(Token = "0x600CE70")]
|
||||
[Address(RVA = "0x2298700", Offset = "0x2297700", VA = "0x182298700", 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: 0x0600CE71 RID: 52849 RVA: 0x002EF208 File Offset: 0x002ED408
|
||||
[Token(Token = "0x600CE71")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE71)
|
||||
|
||||
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: 0x040082AF RID: 33455
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082AF")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,219 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202A RID: 8234
|
||||
[Token(Token = "0x200202A")]
|
||||
public class CertOrEncCert : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CE72 RID: 52850 RVA: 0x002EF21C File Offset: 0x002ED41C
|
||||
[Token(Token = "0x600CE72")]
|
||||
[Address(RVA = "0x2298C20", Offset = "0x2297C20", VA = "0x182298C20")]
|
||||
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: 0x0600CE73 RID: 52851 RVA: 0x002EF2B4 File Offset: 0x002ED4B4
|
||||
[Token(Token = "0x600CE73")]
|
||||
[Address(RVA = "0x2298810", Offset = "0x2297810", VA = "0x182298810")]
|
||||
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: 0x0600CE74 RID: 52852 RVA: 0x002EF380 File Offset: 0x002ED580
|
||||
[Token(Token = "0x600CE74")]
|
||||
[Address(RVA = "0x2298D70", Offset = "0x2297D70", VA = "0x182298D70")]
|
||||
public CertOrEncCert(CmpCertificate certificate)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE74)
|
||||
|
||||
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: 0x0600CE75 RID: 52853 RVA: 0x002EF3AC File Offset: 0x002ED5AC
|
||||
[Token(Token = "0x600CE75")]
|
||||
[Address(RVA = "0x2298BA0", Offset = "0x2297BA0", VA = "0x182298BA0")]
|
||||
public CertOrEncCert(EncryptedValue encryptedCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE75)
|
||||
|
||||
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: 0x170020B8 RID: 8376
|
||||
// (get) Token: 0x0600CE76 RID: 52854 RVA: 0x002EF3D8 File Offset: 0x002ED5D8
|
||||
[Token(Token = "0x170020B8")]
|
||||
public virtual CmpCertificate Certificate
|
||||
{
|
||||
[Token(Token = "0x600CE76")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certificate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020B9 RID: 8377
|
||||
// (get) Token: 0x0600CE77 RID: 52855 RVA: 0x002EF3EC File Offset: 0x002ED5EC
|
||||
[Token(Token = "0x170020B9")]
|
||||
public virtual EncryptedValue EncryptedCert
|
||||
{
|
||||
[Token(Token = "0x600CE77")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.encryptedCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE78 RID: 52856 RVA: 0x002EF400 File Offset: 0x002ED600
|
||||
[Token(Token = "0x600CE78")]
|
||||
[Address(RVA = "0x2298B00", Offset = "0x2297B00", VA = "0x182298B00", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE78)
|
||||
|
||||
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: 0x040082B0 RID: 33456
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082B0")]
|
||||
private readonly CmpCertificate certificate;
|
||||
|
||||
// Token: 0x040082B1 RID: 33457
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082B1")]
|
||||
private readonly EncryptedValue encryptedCert;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202B RID: 8235
|
||||
[Token(Token = "0x200202B")]
|
||||
public class CertRepMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE79 RID: 52857 RVA: 0x002EF440 File Offset: 0x002ED640
|
||||
[Token(Token = "0x600CE79")]
|
||||
[Address(RVA = "0x22994D0", Offset = "0x22984D0", VA = "0x1822994D0")]
|
||||
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: 0x0600CE7A RID: 52858 RVA: 0x002EF494 File Offset: 0x002ED694
|
||||
[Token(Token = "0x600CE7A")]
|
||||
[Address(RVA = "0x2298F10", Offset = "0x2297F10", VA = "0x182298F10")]
|
||||
public static CertRepMessage GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE7A)
|
||||
|
||||
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: 0x0600CE7B RID: 52859 RVA: 0x002EF500 File Offset: 0x002ED700
|
||||
[Token(Token = "0x600CE7B")]
|
||||
[Address(RVA = "0x22995F0", Offset = "0x22985F0", VA = "0x1822995F0")]
|
||||
public CertRepMessage(CmpCertificate[] caPubs, CertResponse[] response)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE7B)
|
||||
|
||||
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: 0x0600CE7C RID: 52860 RVA: 0x002EF544 File Offset: 0x002ED744
|
||||
[Token(Token = "0x600CE7C")]
|
||||
[Address(RVA = "0x2298DF0", Offset = "0x2297DF0", VA = "0x182298DF0", 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: 0x0600CE7D RID: 52861 RVA: 0x002EF594 File Offset: 0x002ED794
|
||||
[Token(Token = "0x600CE7D")]
|
||||
[Address(RVA = "0x22991E0", Offset = "0x22981E0", VA = "0x1822991E0", 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: 0x0600CE7E RID: 52862 RVA: 0x002EF5E0 File Offset: 0x002ED7E0
|
||||
[Token(Token = "0x600CE7E")]
|
||||
[Address(RVA = "0x22992F0", Offset = "0x22982F0", VA = "0x1822992F0", 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: 0x040082B2 RID: 33458
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082B2")]
|
||||
private readonly Asn1Sequence caPubs;
|
||||
|
||||
// Token: 0x040082B3 RID: 33459
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082B3")]
|
||||
private readonly Asn1Sequence response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202C RID: 8236
|
||||
[Token(Token = "0x200202C")]
|
||||
public class CertResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE7F RID: 52863 RVA: 0x002EF660 File Offset: 0x002ED860
|
||||
[Token(Token = "0x600CE7F")]
|
||||
[Address(RVA = "0x2299B40", Offset = "0x2298B40", VA = "0x182299B40")]
|
||||
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: 0x0600CE80 RID: 52864 RVA: 0x002EF6DC File Offset: 0x002ED8DC
|
||||
[Token(Token = "0x600CE80")]
|
||||
[Address(RVA = "0x22996D0", Offset = "0x22986D0", VA = "0x1822996D0")]
|
||||
public static CertResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE80)
|
||||
|
||||
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: 0x0600CE81 RID: 52865 RVA: 0x002EF72C File Offset: 0x002ED92C
|
||||
[Token(Token = "0x600CE81")]
|
||||
[Address(RVA = "0x2299CD0", Offset = "0x2298CD0", VA = "0x182299CD0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE81)
|
||||
|
||||
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: 0x0600CE82 RID: 52866 RVA: 0x002EF77C File Offset: 0x002ED97C
|
||||
[Token(Token = "0x600CE82")]
|
||||
[Address(RVA = "0x2299DA0", Offset = "0x2298DA0", VA = "0x182299DA0")]
|
||||
public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE82)
|
||||
|
||||
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: 0x170020BA RID: 8378
|
||||
// (get) Token: 0x0600CE83 RID: 52867 RVA: 0x002EF7CC File Offset: 0x002ED9CC
|
||||
[Token(Token = "0x170020BA")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CE83")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020BB RID: 8379
|
||||
// (get) Token: 0x0600CE84 RID: 52868 RVA: 0x002EF7E0 File Offset: 0x002ED9E0
|
||||
[Token(Token = "0x170020BB")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600CE84")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020BC RID: 8380
|
||||
// (get) Token: 0x0600CE85 RID: 52869 RVA: 0x002EF7F4 File Offset: 0x002ED9F4
|
||||
[Token(Token = "0x170020BC")]
|
||||
public virtual CertifiedKeyPair CertifiedKeyPair
|
||||
{
|
||||
[Token(Token = "0x600CE85")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.certifiedKeyPair;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE86 RID: 52870 RVA: 0x002EF808 File Offset: 0x002EDA08
|
||||
[Token(Token = "0x600CE86")]
|
||||
[Address(RVA = "0x22998C0", Offset = "0x22988C0", VA = "0x1822998C0", 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;
|
||||
int num = 0;
|
||||
int length = array2.Length;
|
||||
if (num < length)
|
||||
{
|
||||
if (array2[num] != 0)
|
||||
{
|
||||
IList v = asn1EncodableVector.v;
|
||||
}
|
||||
num++;
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x040082B4 RID: 33460
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082B4")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040082B5 RID: 33461
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082B5")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040082B6 RID: 33462
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082B6")]
|
||||
private readonly CertifiedKeyPair certifiedKeyPair;
|
||||
|
||||
// Token: 0x040082B7 RID: 33463
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40082B7")]
|
||||
private readonly Asn1OctetString rspInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202D RID: 8237
|
||||
[Token(Token = "0x200202D")]
|
||||
public class CertStatus : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE87 RID: 52871 RVA: 0x002EF8B8 File Offset: 0x002EDAB8
|
||||
[Token(Token = "0x600CE87")]
|
||||
[Address(RVA = "0x2FDE920", Offset = "0x2FDD920", VA = "0x182FDE920")]
|
||||
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: 0x0600CE88 RID: 52872 RVA: 0x002EF904 File Offset: 0x002EDB04
|
||||
[Token(Token = "0x600CE88")]
|
||||
[Address(RVA = "0x2FDE880", Offset = "0x2FDD880", VA = "0x182FDE880")]
|
||||
public CertStatus(byte[] certHash, BigInteger certReqId)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(certHash);
|
||||
this.certHash = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(certReqId);
|
||||
this.certReqId = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE89 RID: 52873 RVA: 0x002EF934 File Offset: 0x002EDB34
|
||||
[Token(Token = "0x600CE89")]
|
||||
[Address(RVA = "0x2FDE9E0", Offset = "0x2FDD9E0", VA = "0x182FDE9E0")]
|
||||
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: 0x0600CE8A RID: 52874 RVA: 0x002EF96C File Offset: 0x002EDB6C
|
||||
[Token(Token = "0x600CE8A")]
|
||||
[Address(RVA = "0x2FDE440", Offset = "0x2FDD440", VA = "0x182FDE440")]
|
||||
public static CertStatus GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE8A)
|
||||
|
||||
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: 0x170020BD RID: 8381
|
||||
// (get) Token: 0x0600CE8B RID: 52875 RVA: 0x002EF9D4 File Offset: 0x002EDBD4
|
||||
[Token(Token = "0x170020BD")]
|
||||
public virtual Asn1OctetString CertHash
|
||||
{
|
||||
[Token(Token = "0x600CE8B")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certHash;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020BE RID: 8382
|
||||
// (get) Token: 0x0600CE8C RID: 52876 RVA: 0x002EF9E8 File Offset: 0x002EDBE8
|
||||
[Token(Token = "0x170020BE")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CE8C")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020BF RID: 8383
|
||||
// (get) Token: 0x0600CE8D RID: 52877 RVA: 0x002EF9FC File Offset: 0x002EDBFC
|
||||
[Token(Token = "0x170020BF")]
|
||||
public virtual PkiStatusInfo StatusInfo
|
||||
{
|
||||
[Token(Token = "0x600CE8D")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.statusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE8E RID: 52878 RVA: 0x002EFA10 File Offset: 0x002EDC10
|
||||
[Token(Token = "0x600CE8E")]
|
||||
[Address(RVA = "0x2FDE6C0", Offset = "0x2FDD6C0", VA = "0x182FDE6C0", 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: 0x040082B8 RID: 33464
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082B8")]
|
||||
private readonly Asn1OctetString certHash;
|
||||
|
||||
// Token: 0x040082B9 RID: 33465
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082B9")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x040082BA RID: 33466
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082BA")]
|
||||
private readonly PkiStatusInfo statusInfo;
|
||||
}
|
||||
}
|
||||
+222
@@ -0,0 +1,222 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202E RID: 8238
|
||||
[Token(Token = "0x200202E")]
|
||||
public class CertifiedKeyPair : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE8F RID: 52879 RVA: 0x002EFA88 File Offset: 0x002EDC88
|
||||
[Token(Token = "0x600CE8F")]
|
||||
[Address(RVA = "0x2FDEF90", Offset = "0x2FDDF90", VA = "0x182FDEF90")]
|
||||
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;
|
||||
int tagNo = asn1TaggedObject3.tagNo;
|
||||
Asn1Object @object = asn1TaggedObject3.GetObject();
|
||||
while (tagNo != 0)
|
||||
{
|
||||
}
|
||||
EncryptedValue instance3 = EncryptedValue.GetInstance(@object);
|
||||
this.privateKey = instance3;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE90 RID: 52880 RVA: 0x002EFB18 File Offset: 0x002EDD18
|
||||
[Token(Token = "0x600CE90")]
|
||||
[Address(RVA = "0x2FDEA90", Offset = "0x2FDDA90", VA = "0x182FDEA90")]
|
||||
public static CertifiedKeyPair GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE90)
|
||||
|
||||
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: 0x0600CE91 RID: 52881 RVA: 0x002EFB68 File Offset: 0x002EDD68
|
||||
[Token(Token = "0x600CE91")]
|
||||
[Address(RVA = "0x2FDF0C0", Offset = "0x2FDE0C0", VA = "0x182FDF0C0")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE91)
|
||||
|
||||
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: 0x0600CE92 RID: 52882 RVA: 0x002EFBA4 File Offset: 0x002EDDA4
|
||||
[Token(Token = "0x600CE92")]
|
||||
[Address(RVA = "0x2FDEEF0", Offset = "0x2FDDEF0", VA = "0x182FDEEF0")]
|
||||
public CertifiedKeyPair(CertOrEncCert certOrEncCert, EncryptedValue privateKey, PkiPublicationInfo publicationInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE92)
|
||||
|
||||
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: 0x170020C0 RID: 8384
|
||||
// (get) Token: 0x0600CE93 RID: 52883 RVA: 0x002EFBDC File Offset: 0x002EDDDC
|
||||
[Token(Token = "0x170020C0")]
|
||||
public virtual CertOrEncCert CertOrEncCert
|
||||
{
|
||||
[Token(Token = "0x600CE93")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certOrEncCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C1 RID: 8385
|
||||
// (get) Token: 0x0600CE94 RID: 52884 RVA: 0x002EFBF0 File Offset: 0x002EDDF0
|
||||
[Token(Token = "0x170020C1")]
|
||||
public virtual EncryptedValue PrivateKey
|
||||
{
|
||||
[Token(Token = "0x600CE94")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.privateKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C2 RID: 8386
|
||||
// (get) Token: 0x0600CE95 RID: 52885 RVA: 0x002EFC04 File Offset: 0x002EDE04
|
||||
[Token(Token = "0x170020C2")]
|
||||
public virtual PkiPublicationInfo PublicationInfo
|
||||
{
|
||||
[Token(Token = "0x600CE95")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.publicationInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE96 RID: 52886 RVA: 0x002EFC18 File Offset: 0x002EDE18
|
||||
[Token(Token = "0x600CE96")]
|
||||
[Address(RVA = "0x2FDEC80", Offset = "0x2FDDC80", VA = "0x182FDEC80", 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: 0x040082BB RID: 33467
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082BB")]
|
||||
private readonly CertOrEncCert certOrEncCert;
|
||||
|
||||
// Token: 0x040082BC RID: 33468
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082BC")]
|
||||
private readonly EncryptedValue privateKey;
|
||||
|
||||
// Token: 0x040082BD RID: 33469
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082BD")]
|
||||
private readonly PkiPublicationInfo publicationInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200202F RID: 8239
|
||||
[Token(Token = "0x200202F")]
|
||||
public class Challenge : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CE97 RID: 52887 RVA: 0x002EFCD8 File Offset: 0x002EDED8
|
||||
[Token(Token = "0x600CE97")]
|
||||
[Address(RVA = "0x2FDF5E0", Offset = "0x2FDE5E0", VA = "0x182FDF5E0")]
|
||||
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: 0x0600CE98 RID: 52888 RVA: 0x002EFD24 File Offset: 0x002EDF24
|
||||
[Token(Token = "0x600CE98")]
|
||||
[Address(RVA = "0x2FDF150", Offset = "0x2FDE150", VA = "0x182FDF150")]
|
||||
public static Challenge GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE98)
|
||||
|
||||
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: 0x170020C3 RID: 8387
|
||||
// (get) Token: 0x0600CE99 RID: 52889 RVA: 0x002EFD8C File Offset: 0x002EDF8C
|
||||
[Token(Token = "0x170020C3")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600CE99")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CE9A RID: 52890 RVA: 0x002EFDA0 File Offset: 0x002EDFA0
|
||||
[Token(Token = "0x600CE9A")]
|
||||
[Address(RVA = "0x2FDF3D0", Offset = "0x2FDE3D0", VA = "0x182FDF3D0", 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: 0x040082BE RID: 33470
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082BE")]
|
||||
private readonly AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x040082BF RID: 33471
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082BF")]
|
||||
private readonly Asn1OctetString witness;
|
||||
|
||||
// Token: 0x040082C0 RID: 33472
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082C0")]
|
||||
private readonly Asn1OctetString challenge;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002030 RID: 8240
|
||||
[Token(Token = "0x2002030")]
|
||||
public class CmpCertificate : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CE9B RID: 52891 RVA: 0x002EFE28 File Offset: 0x002EE028
|
||||
[Token(Token = "0x600CE9B")]
|
||||
[Address(RVA = "0xA1AEE0", Offset = "0xA19EE0", VA = "0x180A1AEE0")]
|
||||
public CmpCertificate(AttributeCertificate x509v2AttrCert)
|
||||
{
|
||||
this.x509v2AttrCert = x509v2AttrCert;
|
||||
}
|
||||
|
||||
// Token: 0x0600CE9C RID: 52892 RVA: 0x002EFE44 File Offset: 0x002EE044
|
||||
[Token(Token = "0x600CE9C")]
|
||||
[Address(RVA = "0x2FDFA40", Offset = "0x2FDEA40", VA = "0x182FDFA40")]
|
||||
public CmpCertificate(X509CertificateStructure x509v3PKCert)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE9C)
|
||||
|
||||
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: 0x0600CE9D RID: 52893 RVA: 0x002EFE80 File Offset: 0x002EE080
|
||||
[Token(Token = "0x600CE9D")]
|
||||
[Address(RVA = "0x2FDF6B0", Offset = "0x2FDE6B0", VA = "0x182FDF6B0")]
|
||||
public static CmpCertificate GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CE9D)
|
||||
|
||||
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_7B:
|
||||
stloc:ArgumentException(var_12_8A, 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: 0x170020C4 RID: 8388
|
||||
// (get) Token: 0x0600CE9E RID: 52894 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x170020C4")]
|
||||
public virtual bool IsX509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600CE9E")]
|
||||
[Address(RVA = "0x979820", Offset = "0x978820", VA = "0x180979820", Slot = "6")]
|
||||
get
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C5 RID: 8389
|
||||
// (get) Token: 0x0600CE9F RID: 52895 RVA: 0x002EFF18 File Offset: 0x002EE118
|
||||
[Token(Token = "0x170020C5")]
|
||||
public virtual X509CertificateStructure X509v3PKCert
|
||||
{
|
||||
[Token(Token = "0x600CE9F")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.x509v3PKCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C6 RID: 8390
|
||||
// (get) Token: 0x0600CEA0 RID: 52896 RVA: 0x002EFF2C File Offset: 0x002EE12C
|
||||
[Token(Token = "0x170020C6")]
|
||||
public virtual AttributeCertificate X509v2AttrCert
|
||||
{
|
||||
[Token(Token = "0x600CEA0")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEA1 RID: 52897 RVA: 0x002EFF40 File Offset: 0x002EE140
|
||||
[Token(Token = "0x600CEA1")]
|
||||
[Address(RVA = "0x2FDF9A0", Offset = "0x2FDE9A0", VA = "0x182FDF9A0", 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: 0x040082C1 RID: 33473
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082C1")]
|
||||
private readonly X509CertificateStructure x509v3PKCert;
|
||||
|
||||
// Token: 0x040082C2 RID: 33474
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082C2")]
|
||||
private readonly AttributeCertificate x509v2AttrCert;
|
||||
}
|
||||
}
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002031 RID: 8241
|
||||
[Token(Token = "0x2002031")]
|
||||
public abstract class CmpObjectIdentifiers
|
||||
{
|
||||
// Token: 0x0600CEA2 RID: 52898 RVA: 0x002EFF7C File Offset: 0x002EE17C
|
||||
[Token(Token = "0x600CEA2")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
protected CmpObjectIdentifiers()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040082C3 RID: 33475
|
||||
[Token(Token = "0x40082C3")]
|
||||
public static readonly DerObjectIdentifier passwordBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.13");
|
||||
|
||||
// Token: 0x040082C4 RID: 33476
|
||||
[Token(Token = "0x40082C4")]
|
||||
public static readonly DerObjectIdentifier dhBasedMac = new DerObjectIdentifier("1.2.840.113533.7.66.30");
|
||||
|
||||
// Token: 0x040082C5 RID: 33477
|
||||
[Token(Token = "0x40082C5")]
|
||||
public static readonly DerObjectIdentifier it_caProtEncCert = new DerObjectIdentifier("1.3.6.1.5.5.7.4.1");
|
||||
|
||||
// Token: 0x040082C6 RID: 33478
|
||||
[Token(Token = "0x40082C6")]
|
||||
public static readonly DerObjectIdentifier it_signKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.2");
|
||||
|
||||
// Token: 0x040082C7 RID: 33479
|
||||
[Token(Token = "0x40082C7")]
|
||||
public static readonly DerObjectIdentifier it_encKeyPairTypes = new DerObjectIdentifier("1.3.6.1.5.5.7.4.3");
|
||||
|
||||
// Token: 0x040082C8 RID: 33480
|
||||
[Token(Token = "0x40082C8")]
|
||||
public static readonly DerObjectIdentifier it_preferredSymAlg = new DerObjectIdentifier("1.3.6.1.5.5.7.4.4");
|
||||
|
||||
// Token: 0x040082C9 RID: 33481
|
||||
[Token(Token = "0x40082C9")]
|
||||
public static readonly DerObjectIdentifier it_caKeyUpdateInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.4.5");
|
||||
|
||||
// Token: 0x040082CA RID: 33482
|
||||
[Token(Token = "0x40082CA")]
|
||||
public static readonly DerObjectIdentifier it_currentCRL = new DerObjectIdentifier("1.3.6.1.5.5.7.4.6");
|
||||
|
||||
// Token: 0x040082CB RID: 33483
|
||||
[Token(Token = "0x40082CB")]
|
||||
public static readonly DerObjectIdentifier it_unsupportedOIDs = new DerObjectIdentifier("1.3.6.1.5.5.7.4.7");
|
||||
|
||||
// Token: 0x040082CC RID: 33484
|
||||
[Token(Token = "0x40082CC")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamReq = new DerObjectIdentifier("1.3.6.1.5.5.7.4.10");
|
||||
|
||||
// Token: 0x040082CD RID: 33485
|
||||
[Token(Token = "0x40082CD")]
|
||||
public static readonly DerObjectIdentifier it_keyPairParamRep = new DerObjectIdentifier("1.3.6.1.5.5.7.4.11");
|
||||
|
||||
// Token: 0x040082CE RID: 33486
|
||||
[Token(Token = "0x40082CE")]
|
||||
public static readonly DerObjectIdentifier it_revPassphrase = new DerObjectIdentifier("1.3.6.1.5.5.7.4.12");
|
||||
|
||||
// Token: 0x040082CF RID: 33487
|
||||
[Token(Token = "0x40082CF")]
|
||||
public static readonly DerObjectIdentifier it_implicitConfirm = new DerObjectIdentifier("1.3.6.1.5.5.7.4.13");
|
||||
|
||||
// Token: 0x040082D0 RID: 33488
|
||||
[Token(Token = "0x40082D0")]
|
||||
public static readonly DerObjectIdentifier it_confirmWaitTime = new DerObjectIdentifier("1.3.6.1.5.5.7.4.14");
|
||||
|
||||
// Token: 0x040082D1 RID: 33489
|
||||
[Token(Token = "0x40082D1")]
|
||||
public static readonly DerObjectIdentifier it_origPKIMessage = new DerObjectIdentifier("1.3.6.1.5.5.7.4.15");
|
||||
|
||||
// Token: 0x040082D2 RID: 33490
|
||||
[Token(Token = "0x40082D2")]
|
||||
public static readonly DerObjectIdentifier it_suppLangTags = new DerObjectIdentifier("1.3.6.1.5.5.7.4.16");
|
||||
|
||||
// Token: 0x040082D3 RID: 33491
|
||||
[Token(Token = "0x40082D3")]
|
||||
public static readonly DerObjectIdentifier regCtrl_regToken = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.1");
|
||||
|
||||
// Token: 0x040082D4 RID: 33492
|
||||
[Token(Token = "0x40082D4")]
|
||||
public static readonly DerObjectIdentifier regCtrl_authenticator = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.2");
|
||||
|
||||
// Token: 0x040082D5 RID: 33493
|
||||
[Token(Token = "0x40082D5")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiPublicationInfo = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.3");
|
||||
|
||||
// Token: 0x040082D6 RID: 33494
|
||||
[Token(Token = "0x40082D6")]
|
||||
public static readonly DerObjectIdentifier regCtrl_pkiArchiveOptions = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.4");
|
||||
|
||||
// Token: 0x040082D7 RID: 33495
|
||||
[Token(Token = "0x40082D7")]
|
||||
public static readonly DerObjectIdentifier regCtrl_oldCertID = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.5");
|
||||
|
||||
// Token: 0x040082D8 RID: 33496
|
||||
[Token(Token = "0x40082D8")]
|
||||
public static readonly DerObjectIdentifier regCtrl_protocolEncrKey = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.6");
|
||||
|
||||
// Token: 0x040082D9 RID: 33497
|
||||
[Token(Token = "0x40082D9")]
|
||||
public static readonly DerObjectIdentifier regCtrl_altCertTemplate = new DerObjectIdentifier("1.3.6.1.5.5.7.5.1.7");
|
||||
|
||||
// Token: 0x040082DA RID: 33498
|
||||
[Token(Token = "0x40082DA")]
|
||||
public static readonly DerObjectIdentifier regInfo_utf8Pairs = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.1");
|
||||
|
||||
// Token: 0x040082DB RID: 33499
|
||||
[Token(Token = "0x40082DB")]
|
||||
public static readonly DerObjectIdentifier regInfo_certReq = new DerObjectIdentifier("1.3.6.1.5.5.7.5.2.2");
|
||||
|
||||
// Token: 0x040082DC RID: 33500
|
||||
[Token(Token = "0x40082DC")]
|
||||
public static readonly DerObjectIdentifier ct_encKeyWithID = new DerObjectIdentifier("1.2.840.113549.1.9.16.1.21");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002032 RID: 8242
|
||||
[Token(Token = "0x2002032")]
|
||||
public class CrlAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEA4 RID: 52900 RVA: 0x002F0124 File Offset: 0x002EE324
|
||||
[Token(Token = "0x600CEA4")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private CrlAnnContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEA5 RID: 52901 RVA: 0x002F0140 File Offset: 0x002EE340
|
||||
[Token(Token = "0x600CEA5")]
|
||||
[Address(RVA = "0x2FE12B0", Offset = "0x2FE02B0", VA = "0x182FE12B0")]
|
||||
public static CrlAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEA5)
|
||||
|
||||
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: 0x0600CEA6 RID: 52902 RVA: 0x002F0198 File Offset: 0x002EE398
|
||||
[Token(Token = "0x600CEA6")]
|
||||
[Address(RVA = "0x2FE14A0", Offset = "0x2FE04A0", VA = "0x182FE14A0", 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: 0x0600CEA7 RID: 52903 RVA: 0x002F01E4 File Offset: 0x002EE3E4
|
||||
[Token(Token = "0x600CEA7")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEA7)
|
||||
|
||||
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: 0x040082DD RID: 33501
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082DD")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002033 RID: 8243
|
||||
[Token(Token = "0x2002033")]
|
||||
public class ErrorMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEA8 RID: 52904 RVA: 0x002F01F8 File Offset: 0x002EE3F8
|
||||
[Token(Token = "0x600CEA8")]
|
||||
[Address(RVA = "0x2FE3950", Offset = "0x2FE2950", VA = "0x182FE3950")]
|
||||
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: 0x0600CEA9 RID: 52905 RVA: 0x002F0248 File Offset: 0x002EE448
|
||||
[Token(Token = "0x600CEA9")]
|
||||
[Address(RVA = "0x2FE3490", Offset = "0x2FE2490", VA = "0x182FE3490")]
|
||||
public static ErrorMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEA9)
|
||||
|
||||
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: 0x0600CEAA RID: 52906 RVA: 0x002F02B8 File Offset: 0x002EE4B8
|
||||
[Token(Token = "0x600CEAA")]
|
||||
[Address(RVA = "0x2FE3A80", Offset = "0x2FE2A80", VA = "0x182FE3A80")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEAA)
|
||||
|
||||
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: 0x0600CEAB RID: 52907 RVA: 0x002F02F4 File Offset: 0x002EE4F4
|
||||
[Token(Token = "0x600CEAB")]
|
||||
[Address(RVA = "0x2FE3B10", Offset = "0x2FE2B10", VA = "0x182FE3B10")]
|
||||
public ErrorMsgContent(PkiStatusInfo pkiStatusInfo, DerInteger errorCode, PkiFreeText errorDetails)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEAB)
|
||||
|
||||
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: 0x170020C7 RID: 8391
|
||||
// (get) Token: 0x0600CEAC RID: 52908 RVA: 0x002F032C File Offset: 0x002EE52C
|
||||
[Token(Token = "0x170020C7")]
|
||||
public virtual PkiStatusInfo PkiStatusInfo
|
||||
{
|
||||
[Token(Token = "0x600CEAC")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pkiStatusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C8 RID: 8392
|
||||
// (get) Token: 0x0600CEAD RID: 52909 RVA: 0x002F0340 File Offset: 0x002EE540
|
||||
[Token(Token = "0x170020C8")]
|
||||
public virtual DerInteger ErrorCode
|
||||
{
|
||||
[Token(Token = "0x600CEAD")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.errorCode;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020C9 RID: 8393
|
||||
// (get) Token: 0x0600CEAE RID: 52910 RVA: 0x002F0354 File Offset: 0x002EE554
|
||||
[Token(Token = "0x170020C9")]
|
||||
public virtual PkiFreeText ErrorDetails
|
||||
{
|
||||
[Token(Token = "0x600CEAE")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.errorDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEAF RID: 52911 RVA: 0x002F0368 File Offset: 0x002EE568
|
||||
[Token(Token = "0x600CEAF")]
|
||||
[Address(RVA = "0x2FE3780", Offset = "0x2FE2780", VA = "0x182FE3780", 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: 0x040082DE RID: 33502
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082DE")]
|
||||
private readonly PkiStatusInfo pkiStatusInfo;
|
||||
|
||||
// Token: 0x040082DF RID: 33503
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082DF")]
|
||||
private readonly DerInteger errorCode;
|
||||
|
||||
// Token: 0x040082E0 RID: 33504
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082E0")]
|
||||
private readonly PkiFreeText errorDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002034 RID: 8244
|
||||
[Token(Token = "0x2002034")]
|
||||
public class GenMsgContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEB0 RID: 52912 RVA: 0x002F03E0 File Offset: 0x002EE5E0
|
||||
[Token(Token = "0x600CEB0")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private GenMsgContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEB1 RID: 52913 RVA: 0x002F03FC File Offset: 0x002EE5FC
|
||||
[Token(Token = "0x600CEB1")]
|
||||
[Address(RVA = "0x2FE3E40", Offset = "0x2FE2E40", VA = "0x182FE3E40")]
|
||||
public static GenMsgContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEB1)
|
||||
|
||||
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: 0x0600CEB2 RID: 52914 RVA: 0x002F0454 File Offset: 0x002EE654
|
||||
[Token(Token = "0x600CEB2")]
|
||||
[Address(RVA = "0x2FE4140", Offset = "0x2FE3140", VA = "0x182FE4140")]
|
||||
public GenMsgContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEB3 RID: 52915 RVA: 0x002F0478 File Offset: 0x002EE678
|
||||
[Token(Token = "0x600CEB3")]
|
||||
[Address(RVA = "0x2FE4030", Offset = "0x2FE3030", VA = "0x182FE4030", 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: 0x0600CEB4 RID: 52916 RVA: 0x002F04C4 File Offset: 0x002EE6C4
|
||||
[Token(Token = "0x600CEB4")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEB4)
|
||||
|
||||
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: 0x040082E1 RID: 33505
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E1")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002035 RID: 8245
|
||||
[Token(Token = "0x2002035")]
|
||||
public class GenRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEB5 RID: 52917 RVA: 0x002F04D8 File Offset: 0x002EE6D8
|
||||
[Token(Token = "0x600CEB5")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private GenRepContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEB6 RID: 52918 RVA: 0x002F04F4 File Offset: 0x002EE6F4
|
||||
[Token(Token = "0x600CEB6")]
|
||||
[Address(RVA = "0x2FE41B0", Offset = "0x2FE31B0", VA = "0x182FE41B0")]
|
||||
public static GenRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEB6)
|
||||
|
||||
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: 0x0600CEB7 RID: 52919 RVA: 0x002F054C File Offset: 0x002EE74C
|
||||
[Token(Token = "0x600CEB7")]
|
||||
[Address(RVA = "0x2FE44B0", Offset = "0x2FE34B0", VA = "0x182FE44B0")]
|
||||
public GenRepContent(params InfoTypeAndValue[] itv)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(itv);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEB8 RID: 52920 RVA: 0x002F0570 File Offset: 0x002EE770
|
||||
[Token(Token = "0x600CEB8")]
|
||||
[Address(RVA = "0x2FE43A0", Offset = "0x2FE33A0", VA = "0x182FE43A0", 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: 0x0600CEB9 RID: 52921 RVA: 0x002F05BC File Offset: 0x002EE7BC
|
||||
[Token(Token = "0x600CEB9")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEB9)
|
||||
|
||||
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: 0x040082E2 RID: 33506
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E2")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+133
@@ -0,0 +1,133 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002036 RID: 8246
|
||||
[Token(Token = "0x2002036")]
|
||||
public class InfoTypeAndValue : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEBA RID: 52922 RVA: 0x002F05D0 File Offset: 0x002EE7D0
|
||||
[Token(Token = "0x600CEBA")]
|
||||
[Address(RVA = "0x2FE4910", Offset = "0x2FE3910", VA = "0x182FE4910")]
|
||||
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: 0x0600CEBB RID: 52923 RVA: 0x002F060C File Offset: 0x002EE80C
|
||||
[Token(Token = "0x600CEBB")]
|
||||
[Address(RVA = "0x2FE4520", Offset = "0x2FE3520", VA = "0x182FE4520")]
|
||||
public static InfoTypeAndValue GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEBB)
|
||||
|
||||
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: 0x0600CEBC RID: 52924 RVA: 0x002F065C File Offset: 0x002EE85C
|
||||
[Token(Token = "0x600CEBC")]
|
||||
[Address(RVA = "0xB94A00", Offset = "0xB93A00", VA = "0x180B94A00")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEBD RID: 52925 RVA: 0x002F0680 File Offset: 0x002EE880
|
||||
[Token(Token = "0x600CEBD")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public InfoTypeAndValue(DerObjectIdentifier infoType, Asn1Encodable optionalValue)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
this.infoValue = optionalValue;
|
||||
}
|
||||
|
||||
// Token: 0x170020CA RID: 8394
|
||||
// (get) Token: 0x0600CEBE RID: 52926 RVA: 0x002F06A4 File Offset: 0x002EE8A4
|
||||
[Token(Token = "0x170020CA")]
|
||||
public virtual DerObjectIdentifier InfoType
|
||||
{
|
||||
[Token(Token = "0x600CEBE")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.infoType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020CB RID: 8395
|
||||
// (get) Token: 0x0600CEBF RID: 52927 RVA: 0x002F06B8 File Offset: 0x002EE8B8
|
||||
[Token(Token = "0x170020CB")]
|
||||
public virtual Asn1Encodable InfoValue
|
||||
{
|
||||
[Token(Token = "0x600CEBF")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.infoValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEC0 RID: 52928 RVA: 0x002F06CC File Offset: 0x002EE8CC
|
||||
[Token(Token = "0x600CEC0")]
|
||||
[Address(RVA = "0x2FE47A0", Offset = "0x2FE37A0", VA = "0x182FE47A0", 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: 0x040082E3 RID: 33507
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E3")]
|
||||
private readonly DerObjectIdentifier infoType;
|
||||
|
||||
// Token: 0x040082E4 RID: 33508
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082E4")]
|
||||
private readonly Asn1Encodable infoValue;
|
||||
}
|
||||
}
|
||||
+206
@@ -0,0 +1,206 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002037 RID: 8247
|
||||
[Token(Token = "0x2002037")]
|
||||
public class KeyRecRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEC1 RID: 52929 RVA: 0x002F0738 File Offset: 0x002EE938
|
||||
[Token(Token = "0x600CEC1")]
|
||||
[Address(RVA = "0x2FE6D20", Offset = "0x2FE5D20", VA = "0x182FE6D20")]
|
||||
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: 0x0600CEC2 RID: 52930 RVA: 0x002F07E8 File Offset: 0x002EE9E8
|
||||
[Token(Token = "0x600CEC2")]
|
||||
[Address(RVA = "0x2FE68D0", Offset = "0x2FE58D0", VA = "0x182FE68D0")]
|
||||
public static KeyRecRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEC2)
|
||||
|
||||
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: 0x170020CC RID: 8396
|
||||
// (get) Token: 0x0600CEC3 RID: 52931 RVA: 0x002F0838 File Offset: 0x002EEA38
|
||||
[Token(Token = "0x170020CC")]
|
||||
public virtual PkiStatusInfo Status
|
||||
{
|
||||
[Token(Token = "0x600CEC3")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020CD RID: 8397
|
||||
// (get) Token: 0x0600CEC4 RID: 52932 RVA: 0x002F084C File Offset: 0x002EEA4C
|
||||
[Token(Token = "0x170020CD")]
|
||||
public virtual CmpCertificate NewSigCert
|
||||
{
|
||||
[Token(Token = "0x600CEC4")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.newSigCert;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEC5 RID: 52933 RVA: 0x002F0860 File Offset: 0x002EEA60
|
||||
[Token(Token = "0x600CEC5")]
|
||||
[Address(RVA = "0x2FE67B0", Offset = "0x2FE57B0", VA = "0x182FE67B0", 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: 0x0600CEC6 RID: 52934 RVA: 0x002F08B0 File Offset: 0x002EEAB0
|
||||
[Token(Token = "0x600CEC6")]
|
||||
[Address(RVA = "0x2FE6AC0", Offset = "0x2FE5AC0", VA = "0x182FE6AC0", 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: 0x0600CEC7 RID: 52935 RVA: 0x002F0900 File Offset: 0x002EEB00
|
||||
[Token(Token = "0x600CEC7")]
|
||||
[Address(RVA = "0x2FE6BE0", Offset = "0x2FE5BE0", VA = "0x182FE6BE0", 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: 0x0600CEC8 RID: 52936 RVA: 0x002F0978 File Offset: 0x002EEB78
|
||||
[Token(Token = "0x600CEC8")]
|
||||
[Address(RVA = "0x2FE66B0", Offset = "0x2FE56B0", VA = "0x182FE66B0")]
|
||||
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: 0x040082E5 RID: 33509
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E5")]
|
||||
private readonly PkiStatusInfo status;
|
||||
|
||||
// Token: 0x040082E6 RID: 33510
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082E6")]
|
||||
private readonly CmpCertificate newSigCert;
|
||||
|
||||
// Token: 0x040082E7 RID: 33511
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082E7")]
|
||||
private readonly Asn1Sequence caCerts;
|
||||
|
||||
// Token: 0x040082E8 RID: 33512
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40082E8")]
|
||||
private readonly Asn1Sequence keyPairHist;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002038 RID: 8248
|
||||
[Token(Token = "0x2002038")]
|
||||
public class OobCertHash : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEC9 RID: 52937 RVA: 0x002F09B4 File Offset: 0x002EEBB4
|
||||
[Token(Token = "0x600CEC9")]
|
||||
[Address(RVA = "0x2FE8650", Offset = "0x2FE7650", VA = "0x182FE8650")]
|
||||
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: 0x0600CECA RID: 52938 RVA: 0x002F0A00 File Offset: 0x002EEC00
|
||||
[Token(Token = "0x600CECA")]
|
||||
[Address(RVA = "0x2FE81E0", Offset = "0x2FE71E0", VA = "0x182FE81E0")]
|
||||
public static OobCertHash GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CECA)
|
||||
|
||||
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: 0x170020CE RID: 8398
|
||||
// (get) Token: 0x0600CECB RID: 52939 RVA: 0x002F0A70 File Offset: 0x002EEC70
|
||||
[Token(Token = "0x170020CE")]
|
||||
public virtual AlgorithmIdentifier HashAlg
|
||||
{
|
||||
[Token(Token = "0x600CECB")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.hashAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020CF RID: 8399
|
||||
// (get) Token: 0x0600CECC RID: 52940 RVA: 0x002F0A84 File Offset: 0x002EEC84
|
||||
[Token(Token = "0x170020CF")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600CECC")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CECD RID: 52941 RVA: 0x002F0A98 File Offset: 0x002EEC98
|
||||
[Token(Token = "0x600CECD")]
|
||||
[Address(RVA = "0x2FE8510", Offset = "0x2FE7510", VA = "0x182FE8510", 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: 0x0600CECE RID: 52942 RVA: 0x002F0B00 File Offset: 0x002EED00
|
||||
[Token(Token = "0x600CECE")]
|
||||
[Address(RVA = "0x2FE80E0", Offset = "0x2FE70E0", VA = "0x182FE80E0")]
|
||||
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: 0x040082E9 RID: 33513
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40082E9")]
|
||||
private readonly AlgorithmIdentifier hashAlg;
|
||||
|
||||
// Token: 0x040082EA RID: 33514
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40082EA")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x040082EB RID: 33515
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40082EB")]
|
||||
private readonly DerBitString hashVal;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002044 RID: 8260
|
||||
[Token(Token = "0x2002044")]
|
||||
public class PbmParameter : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF2E RID: 53038 RVA: 0x002F1ECC File Offset: 0x002F00CC
|
||||
[Token(Token = "0x600CF2E")]
|
||||
[Address(RVA = "0x2FEB590", Offset = "0x2FEA590", VA = "0x182FEB590")]
|
||||
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: 0x0600CF2F RID: 53039 RVA: 0x002F1F24 File Offset: 0x002F0124
|
||||
[Token(Token = "0x600CF2F")]
|
||||
[Address(RVA = "0x2FEB150", Offset = "0x2FEA150", VA = "0x182FEB150")]
|
||||
public static PbmParameter GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF2F)
|
||||
|
||||
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: 0x0600CF30 RID: 53040 RVA: 0x002F1F94 File Offset: 0x002F0194
|
||||
[Token(Token = "0x600CF30")]
|
||||
[Address(RVA = "0x2FEB660", Offset = "0x2FEA660", VA = "0x182FEB660")]
|
||||
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: 0x0600CF31 RID: 53041 RVA: 0x002F1FD4 File Offset: 0x002F01D4
|
||||
[Token(Token = "0x600CF31")]
|
||||
[Address(RVA = "0xC5DB60", Offset = "0xC5CB60", VA = "0x180C5DB60")]
|
||||
public PbmParameter(Asn1OctetString salt, AlgorithmIdentifier owf, DerInteger iterationCount, AlgorithmIdentifier mac)
|
||||
{
|
||||
this.salt = salt;
|
||||
this.iterationCount = iterationCount;
|
||||
this.mac = 0;
|
||||
this.owf = owf;
|
||||
}
|
||||
|
||||
// Token: 0x170020E7 RID: 8423
|
||||
// (get) Token: 0x0600CF32 RID: 53042 RVA: 0x002F2004 File Offset: 0x002F0204
|
||||
[Token(Token = "0x170020E7")]
|
||||
public virtual Asn1OctetString Salt
|
||||
{
|
||||
[Token(Token = "0x600CF32")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.salt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E8 RID: 8424
|
||||
// (get) Token: 0x0600CF33 RID: 53043 RVA: 0x002F2018 File Offset: 0x002F0218
|
||||
[Token(Token = "0x170020E8")]
|
||||
public virtual AlgorithmIdentifier Owf
|
||||
{
|
||||
[Token(Token = "0x600CF33")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.owf;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E9 RID: 8425
|
||||
// (get) Token: 0x0600CF34 RID: 53044 RVA: 0x002F202C File Offset: 0x002F022C
|
||||
[Token(Token = "0x170020E9")]
|
||||
public virtual DerInteger IterationCount
|
||||
{
|
||||
[Token(Token = "0x600CF34")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.iterationCount;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020EA RID: 8426
|
||||
// (get) Token: 0x0600CF35 RID: 53045 RVA: 0x002F2040 File Offset: 0x002F0240
|
||||
[Token(Token = "0x170020EA")]
|
||||
public virtual AlgorithmIdentifier Mac
|
||||
{
|
||||
[Token(Token = "0x600CF35")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.mac;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF36 RID: 53046 RVA: 0x002F2054 File Offset: 0x002F0254
|
||||
[Token(Token = "0x600CF36")]
|
||||
[Address(RVA = "0x2FEB3D0", Offset = "0x2FEA3D0", VA = "0x182FEB3D0", 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: 0x04008358 RID: 33624
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008358")]
|
||||
private Asn1OctetString salt;
|
||||
|
||||
// Token: 0x04008359 RID: 33625
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008359")]
|
||||
private AlgorithmIdentifier owf;
|
||||
|
||||
// Token: 0x0400835A RID: 33626
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400835A")]
|
||||
private DerInteger iterationCount;
|
||||
|
||||
// Token: 0x0400835B RID: 33627
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400835B")]
|
||||
private AlgorithmIdentifier mac;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,257 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002039 RID: 8249
|
||||
[Token(Token = "0x2002039")]
|
||||
public class PkiBody : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CECF RID: 52943 RVA: 0x002F0B3C File Offset: 0x002EED3C
|
||||
[Token(Token = "0x600CECF")]
|
||||
[Address(RVA = "0x2FEB9D0", Offset = "0x2FEA9D0", VA = "0x182FEB9D0")]
|
||||
public static PkiBody GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CECF)
|
||||
|
||||
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: 0x0600CED0 RID: 52944 RVA: 0x002F0B9C File Offset: 0x002EED9C
|
||||
[Token(Token = "0x600CED0")]
|
||||
[Address(RVA = "0x2FEBC50", Offset = "0x2FEAC50", VA = "0x182FEBC50")]
|
||||
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: 0x0600CED1 RID: 52945 RVA: 0x002F0BDC File Offset: 0x002EEDDC
|
||||
[Token(Token = "0x600CED1")]
|
||||
[Address(RVA = "0x2FEBCB0", Offset = "0x2FEACB0", VA = "0x182FEBCB0")]
|
||||
public PkiBody(int type, Asn1Encodable content)
|
||||
{
|
||||
this.tagNo = type;
|
||||
Asn1Encodable bodyForType = PkiBody.GetBodyForType(type, content);
|
||||
this.body = bodyForType;
|
||||
}
|
||||
|
||||
// Token: 0x0600CED2 RID: 52946 RVA: 0x002F0C08 File Offset: 0x002EEE08
|
||||
[Token(Token = "0x600CED2")]
|
||||
[Address(RVA = "0x2FEB720", Offset = "0x2FEA720", VA = "0x182FEB720")]
|
||||
private static Asn1Encodable GetBodyForType(int type, Asn1Encodable o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CED2)
|
||||
|
||||
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: 0x170020D0 RID: 8400
|
||||
// (get) Token: 0x0600CED3 RID: 52947 RVA: 0x002F0C38 File Offset: 0x002EEE38
|
||||
[Token(Token = "0x170020D0")]
|
||||
public virtual int Type
|
||||
{
|
||||
[Token(Token = "0x600CED3")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D1 RID: 8401
|
||||
// (get) Token: 0x0600CED4 RID: 52948 RVA: 0x002F0C4C File Offset: 0x002EEE4C
|
||||
[Token(Token = "0x170020D1")]
|
||||
public virtual Asn1Encodable Content
|
||||
{
|
||||
[Token(Token = "0x600CED4")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CED5 RID: 52949 RVA: 0x002F0C60 File Offset: 0x002EEE60
|
||||
[Token(Token = "0x600CED5")]
|
||||
[Address(RVA = "0x2FEBBE0", Offset = "0x2FEABE0", VA = "0x182FEBBE0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CED5)
|
||||
|
||||
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: 0x040082EC RID: 33516
|
||||
[Token(Token = "0x40082EC")]
|
||||
public const int TYPE_INIT_REQ = 0;
|
||||
|
||||
// Token: 0x040082ED RID: 33517
|
||||
[Token(Token = "0x40082ED")]
|
||||
public const int TYPE_INIT_REP = 1;
|
||||
|
||||
// Token: 0x040082EE RID: 33518
|
||||
[Token(Token = "0x40082EE")]
|
||||
public const int TYPE_CERT_REQ = 2;
|
||||
|
||||
// Token: 0x040082EF RID: 33519
|
||||
[Token(Token = "0x40082EF")]
|
||||
public const int TYPE_CERT_REP = 3;
|
||||
|
||||
// Token: 0x040082F0 RID: 33520
|
||||
[Token(Token = "0x40082F0")]
|
||||
public const int TYPE_P10_CERT_REQ = 4;
|
||||
|
||||
// Token: 0x040082F1 RID: 33521
|
||||
[Token(Token = "0x40082F1")]
|
||||
public const int TYPE_POPO_CHALL = 5;
|
||||
|
||||
// Token: 0x040082F2 RID: 33522
|
||||
[Token(Token = "0x40082F2")]
|
||||
public const int TYPE_POPO_REP = 6;
|
||||
|
||||
// Token: 0x040082F3 RID: 33523
|
||||
[Token(Token = "0x40082F3")]
|
||||
public const int TYPE_KEY_UPDATE_REQ = 7;
|
||||
|
||||
// Token: 0x040082F4 RID: 33524
|
||||
[Token(Token = "0x40082F4")]
|
||||
public const int TYPE_KEY_UPDATE_REP = 8;
|
||||
|
||||
// Token: 0x040082F5 RID: 33525
|
||||
[Token(Token = "0x40082F5")]
|
||||
public const int TYPE_KEY_RECOVERY_REQ = 9;
|
||||
|
||||
// Token: 0x040082F6 RID: 33526
|
||||
[Token(Token = "0x40082F6")]
|
||||
public const int TYPE_KEY_RECOVERY_REP = 10;
|
||||
|
||||
// Token: 0x040082F7 RID: 33527
|
||||
[Token(Token = "0x40082F7")]
|
||||
public const int TYPE_REVOCATION_REQ = 11;
|
||||
|
||||
// Token: 0x040082F8 RID: 33528
|
||||
[Token(Token = "0x40082F8")]
|
||||
public const int TYPE_REVOCATION_REP = 12;
|
||||
|
||||
// Token: 0x040082F9 RID: 33529
|
||||
[Token(Token = "0x40082F9")]
|
||||
public const int TYPE_CROSS_CERT_REQ = 13;
|
||||
|
||||
// Token: 0x040082FA RID: 33530
|
||||
[Token(Token = "0x40082FA")]
|
||||
public const int TYPE_CROSS_CERT_REP = 14;
|
||||
|
||||
// Token: 0x040082FB RID: 33531
|
||||
[Token(Token = "0x40082FB")]
|
||||
public const int TYPE_CA_KEY_UPDATE_ANN = 15;
|
||||
|
||||
// Token: 0x040082FC RID: 33532
|
||||
[Token(Token = "0x40082FC")]
|
||||
public const int TYPE_CERT_ANN = 16;
|
||||
|
||||
// Token: 0x040082FD RID: 33533
|
||||
[Token(Token = "0x40082FD")]
|
||||
public const int TYPE_REVOCATION_ANN = 17;
|
||||
|
||||
// Token: 0x040082FE RID: 33534
|
||||
[Token(Token = "0x40082FE")]
|
||||
public const int TYPE_CRL_ANN = 18;
|
||||
|
||||
// Token: 0x040082FF RID: 33535
|
||||
[Token(Token = "0x40082FF")]
|
||||
public const int TYPE_CONFIRM = 19;
|
||||
|
||||
// Token: 0x04008300 RID: 33536
|
||||
[Token(Token = "0x4008300")]
|
||||
public const int TYPE_NESTED = 20;
|
||||
|
||||
// Token: 0x04008301 RID: 33537
|
||||
[Token(Token = "0x4008301")]
|
||||
public const int TYPE_GEN_MSG = 21;
|
||||
|
||||
// Token: 0x04008302 RID: 33538
|
||||
[Token(Token = "0x4008302")]
|
||||
public const int TYPE_GEN_REP = 22;
|
||||
|
||||
// Token: 0x04008303 RID: 33539
|
||||
[Token(Token = "0x4008303")]
|
||||
public const int TYPE_ERROR = 23;
|
||||
|
||||
// Token: 0x04008304 RID: 33540
|
||||
[Token(Token = "0x4008304")]
|
||||
public const int TYPE_CERT_CONFIRM = 24;
|
||||
|
||||
// Token: 0x04008305 RID: 33541
|
||||
[Token(Token = "0x4008305")]
|
||||
public const int TYPE_POLL_REQ = 25;
|
||||
|
||||
// Token: 0x04008306 RID: 33542
|
||||
[Token(Token = "0x4008306")]
|
||||
public const int TYPE_POLL_REP = 26;
|
||||
|
||||
// Token: 0x04008307 RID: 33543
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008307")]
|
||||
private int tagNo;
|
||||
|
||||
// Token: 0x04008308 RID: 33544
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008308")]
|
||||
private Asn1Encodable body;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203A RID: 8250
|
||||
[Token(Token = "0x200203A")]
|
||||
public class PkiConfirmContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CED6 RID: 52950 RVA: 0x002F0C84 File Offset: 0x002EEE84
|
||||
[Token(Token = "0x600CED6")]
|
||||
[Address(RVA = "0x2FEBD00", Offset = "0x2FEAD00", VA = "0x182FEBD00")]
|
||||
public static PkiConfirmContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CED6)
|
||||
|
||||
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: 0x0600CED7 RID: 52951 RVA: 0x002F0CD0 File Offset: 0x002EEED0
|
||||
[Token(Token = "0x600CED7")]
|
||||
[Address(RVA = "0x42BA20", Offset = "0x42AA20", VA = "0x18042BA20")]
|
||||
public PkiConfirmContent()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CED8 RID: 52952 RVA: 0x002F0CE4 File Offset: 0x002EEEE4
|
||||
[Token(Token = "0x600CED8")]
|
||||
[Address(RVA = "0x2FEBE90", Offset = "0x2FEAE90", VA = "0x182FEBE90", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CED8)
|
||||
|
||||
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,145 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203B RID: 8251
|
||||
[Token(Token = "0x200203B")]
|
||||
public class PkiFailureInfo : DerBitString
|
||||
{
|
||||
// Token: 0x0600CED9 RID: 52953 RVA: 0x002F0CF8 File Offset: 0x002EEEF8
|
||||
[Token(Token = "0x600CED9")]
|
||||
[Address(RVA = "0x2FEBF60", Offset = "0x2FEAF60", VA = "0x182FEBF60")]
|
||||
public PkiFailureInfo(int info)
|
||||
: base(info)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600CEDA RID: 52954 RVA: 0x002F0D0C File Offset: 0x002EEF0C
|
||||
[Token(Token = "0x600CEDA")]
|
||||
[Address(RVA = "0x2FEBFC0", Offset = "0x2FEAFC0", VA = "0x182FEBFC0")]
|
||||
public PkiFailureInfo(DerBitString info)
|
||||
{
|
||||
byte[] octets = info.GetOctets();
|
||||
byte[] bytes = info.GetBytes();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEDB RID: 52955 RVA: 0x002F0D30 File Offset: 0x002EEF30
|
||||
[Token(Token = "0x600CEDB")]
|
||||
[Address(RVA = "0x2FEBEF0", Offset = "0x2FEAEF0", VA = "0x182FEBEF0", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
int padBits = this.PadBits;
|
||||
string text;
|
||||
return "PkiFailureInfo: 0x" + text;
|
||||
}
|
||||
|
||||
// Token: 0x04008309 RID: 33545
|
||||
[Token(Token = "0x4008309")]
|
||||
public const int BadAlg = 128;
|
||||
|
||||
// Token: 0x0400830A RID: 33546
|
||||
[Token(Token = "0x400830A")]
|
||||
public const int BadMessageCheck = 64;
|
||||
|
||||
// Token: 0x0400830B RID: 33547
|
||||
[Token(Token = "0x400830B")]
|
||||
public const int BadRequest = 32;
|
||||
|
||||
// Token: 0x0400830C RID: 33548
|
||||
[Token(Token = "0x400830C")]
|
||||
public const int BadTime = 16;
|
||||
|
||||
// Token: 0x0400830D RID: 33549
|
||||
[Token(Token = "0x400830D")]
|
||||
public const int BadCertId = 8;
|
||||
|
||||
// Token: 0x0400830E RID: 33550
|
||||
[Token(Token = "0x400830E")]
|
||||
public const int BadDataFormat = 4;
|
||||
|
||||
// Token: 0x0400830F RID: 33551
|
||||
[Token(Token = "0x400830F")]
|
||||
public const int WrongAuthority = 2;
|
||||
|
||||
// Token: 0x04008310 RID: 33552
|
||||
[Token(Token = "0x4008310")]
|
||||
public const int IncorrectData = 1;
|
||||
|
||||
// Token: 0x04008311 RID: 33553
|
||||
[Token(Token = "0x4008311")]
|
||||
public const int MissingTimeStamp = 32768;
|
||||
|
||||
// Token: 0x04008312 RID: 33554
|
||||
[Token(Token = "0x4008312")]
|
||||
public const int BadPop = 16384;
|
||||
|
||||
// Token: 0x04008313 RID: 33555
|
||||
[Token(Token = "0x4008313")]
|
||||
public const int CertRevoked = 8192;
|
||||
|
||||
// Token: 0x04008314 RID: 33556
|
||||
[Token(Token = "0x4008314")]
|
||||
public const int CertConfirmed = 4096;
|
||||
|
||||
// Token: 0x04008315 RID: 33557
|
||||
[Token(Token = "0x4008315")]
|
||||
public const int WrongIntegrity = 2048;
|
||||
|
||||
// Token: 0x04008316 RID: 33558
|
||||
[Token(Token = "0x4008316")]
|
||||
public const int BadRecipientNonce = 1024;
|
||||
|
||||
// Token: 0x04008317 RID: 33559
|
||||
[Token(Token = "0x4008317")]
|
||||
public const int TimeNotAvailable = 512;
|
||||
|
||||
// Token: 0x04008318 RID: 33560
|
||||
[Token(Token = "0x4008318")]
|
||||
public const int UnacceptedPolicy = 256;
|
||||
|
||||
// Token: 0x04008319 RID: 33561
|
||||
[Token(Token = "0x4008319")]
|
||||
public const int UnacceptedExtension = 8388608;
|
||||
|
||||
// Token: 0x0400831A RID: 33562
|
||||
[Token(Token = "0x400831A")]
|
||||
public const int AddInfoNotAvailable = 4194304;
|
||||
|
||||
// Token: 0x0400831B RID: 33563
|
||||
[Token(Token = "0x400831B")]
|
||||
public const int BadSenderNonce = 2097152;
|
||||
|
||||
// Token: 0x0400831C RID: 33564
|
||||
[Token(Token = "0x400831C")]
|
||||
public const int BadCertTemplate = 1048576;
|
||||
|
||||
// Token: 0x0400831D RID: 33565
|
||||
[Token(Token = "0x400831D")]
|
||||
public const int SignerNotTrusted = 524288;
|
||||
|
||||
// Token: 0x0400831E RID: 33566
|
||||
[Token(Token = "0x400831E")]
|
||||
public const int TransactionIdInUse = 262144;
|
||||
|
||||
// Token: 0x0400831F RID: 33567
|
||||
[Token(Token = "0x400831F")]
|
||||
public const int UnsupportedVersion = 131072;
|
||||
|
||||
// Token: 0x04008320 RID: 33568
|
||||
[Token(Token = "0x4008320")]
|
||||
public const int NotAuthorized = 65536;
|
||||
|
||||
// Token: 0x04008321 RID: 33569
|
||||
[Token(Token = "0x4008321")]
|
||||
public const int SystemUnavail = -2147483648;
|
||||
|
||||
// Token: 0x04008322 RID: 33570
|
||||
[Token(Token = "0x4008322")]
|
||||
public const int SystemFailure = 1073741824;
|
||||
|
||||
// Token: 0x04008323 RID: 33571
|
||||
[Token(Token = "0x4008323")]
|
||||
public const int DuplicateCertReq = 536870912;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203C RID: 8252
|
||||
[Token(Token = "0x200203C")]
|
||||
public class PkiFreeText : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEDC RID: 52956 RVA: 0x002F0D50 File Offset: 0x002EEF50
|
||||
[Token(Token = "0x600CEDC")]
|
||||
[Address(RVA = "0x2FEC070", Offset = "0x2FEB070", VA = "0x182FEC070")]
|
||||
public static PkiFreeText GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiFreeText.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CEDD RID: 52957 RVA: 0x002F0D6C File Offset: 0x002EEF6C
|
||||
[Token(Token = "0x600CEDD")]
|
||||
[Address(RVA = "0x2FEC090", Offset = "0x2FEB090", VA = "0x182FEC090")]
|
||||
public static PkiFreeText GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEDD)
|
||||
|
||||
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: 0x0600CEDE RID: 52958 RVA: 0x002F0DBC File Offset: 0x002EEFBC
|
||||
[Token(Token = "0x600CEDE")]
|
||||
[Address(RVA = "0x2FEC330", Offset = "0x2FEB330", VA = "0x182FEC330")]
|
||||
public PkiFreeText(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
if (enumerator != 0 && (enumerator == 0 || enumerator == 0))
|
||||
{
|
||||
goto IL_33;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
this.strings = seq;
|
||||
return;
|
||||
IL_33:
|
||||
ArgumentException ex = new ArgumentException("attempt to insert non UTF8 STRING into PkiFreeText");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEDF RID: 52959 RVA: 0x002F0E0C File Offset: 0x002EF00C
|
||||
[Token(Token = "0x600CEDF")]
|
||||
[Address(RVA = "0x2FEC4E0", Offset = "0x2FEB4E0", VA = "0x182FEC4E0")]
|
||||
public PkiFreeText(DerUtf8String p)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(p);
|
||||
this.strings = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x170020D2 RID: 8402
|
||||
// (get) Token: 0x0600CEE0 RID: 52960 RVA: 0x002F0E30 File Offset: 0x002EF030
|
||||
[Token(Token = "0x170020D2")]
|
||||
[Obsolete]
|
||||
public int Size
|
||||
{
|
||||
[Token(Token = "0x600CEE0")]
|
||||
[Address(RVA = "0x4DAE40", Offset = "0x4D9E40", VA = "0x1804DAE40")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D3 RID: 8403
|
||||
// (get) Token: 0x0600CEE1 RID: 52961 RVA: 0x002F0E50 File Offset: 0x002EF050
|
||||
[Token(Token = "0x170020D3")]
|
||||
public int Count
|
||||
{
|
||||
[Token(Token = "0x600CEE1")]
|
||||
[Address(RVA = "0x4DAE40", Offset = "0x4D9E40", VA = "0x1804DAE40")]
|
||||
get
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D4 RID: 8404
|
||||
[Token(Token = "0x170020D4")]
|
||||
public DerUtf8String this[int index]
|
||||
{
|
||||
[Token(Token = "0x600CEE2")]
|
||||
[Address(RVA = "0x2FEC280", Offset = "0x2FEB280", VA = "0x182FEC280")]
|
||||
get
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEE3 RID: 52963 RVA: 0x002F0E98 File Offset: 0x002EF098
|
||||
[Token(Token = "0x600CEE3")]
|
||||
[Address(RVA = "0x2FEC280", Offset = "0x2FEB280", VA = "0x182FEC280")]
|
||||
[Obsolete]
|
||||
public DerUtf8String GetStringAt(int index)
|
||||
{
|
||||
Asn1SequenceParser parser;
|
||||
do
|
||||
{
|
||||
parser = this.strings.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (parser == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEE4 RID: 52964 RVA: 0x002F0EC0 File Offset: 0x002EF0C0
|
||||
[Token(Token = "0x600CEE4")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEE4)
|
||||
|
||||
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: 0x04008324 RID: 33572
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008324")]
|
||||
internal Asn1Sequence strings;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,423 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203D RID: 8253
|
||||
[Token(Token = "0x200203D")]
|
||||
public class PkiHeader : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CEE5 RID: 52965 RVA: 0x002F0ED4 File Offset: 0x002EF0D4
|
||||
[Token(Token = "0x600CEE5")]
|
||||
[Address(RVA = "0x2FED7E0", Offset = "0x2FEC7E0", VA = "0x182FED7E0")]
|
||||
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: 0x0600CEE6 RID: 52966 RVA: 0x002F0FE4 File Offset: 0x002EF1E4
|
||||
[Token(Token = "0x600CEE6")]
|
||||
[Address(RVA = "0x2FED230", Offset = "0x2FEC230", VA = "0x182FED230")]
|
||||
public static PkiHeader GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CEE6)
|
||||
|
||||
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: 0x0600CEE7 RID: 52967 RVA: 0x002F1034 File Offset: 0x002EF234
|
||||
[Token(Token = "0x600CEE7")]
|
||||
[Address(RVA = "0x2FED750", Offset = "0x2FEC750", VA = "0x182FED750")]
|
||||
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: 0x0600CEE8 RID: 52968 RVA: 0x002F1064 File Offset: 0x002EF264
|
||||
[Token(Token = "0x600CEE8")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
private PkiHeader(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x170020D5 RID: 8405
|
||||
// (get) Token: 0x0600CEE9 RID: 52969 RVA: 0x002F108C File Offset: 0x002EF28C
|
||||
[Token(Token = "0x170020D5")]
|
||||
public virtual DerInteger Pvno
|
||||
{
|
||||
[Token(Token = "0x600CEE9")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.pvno;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D6 RID: 8406
|
||||
// (get) Token: 0x0600CEEA RID: 52970 RVA: 0x002F10A0 File Offset: 0x002EF2A0
|
||||
[Token(Token = "0x170020D6")]
|
||||
public virtual GeneralName Sender
|
||||
{
|
||||
[Token(Token = "0x600CEEA")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.sender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D7 RID: 8407
|
||||
// (get) Token: 0x0600CEEB RID: 52971 RVA: 0x002F10B4 File Offset: 0x002EF2B4
|
||||
[Token(Token = "0x170020D7")]
|
||||
public virtual GeneralName Recipient
|
||||
{
|
||||
[Token(Token = "0x600CEEB")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.recipient;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D8 RID: 8408
|
||||
// (get) Token: 0x0600CEEC RID: 52972 RVA: 0x002F10C8 File Offset: 0x002EF2C8
|
||||
[Token(Token = "0x170020D8")]
|
||||
public virtual DerGeneralizedTime MessageTime
|
||||
{
|
||||
[Token(Token = "0x600CEEC")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.messageTime;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020D9 RID: 8409
|
||||
// (get) Token: 0x0600CEED RID: 52973 RVA: 0x002F10DC File Offset: 0x002EF2DC
|
||||
[Token(Token = "0x170020D9")]
|
||||
public virtual AlgorithmIdentifier ProtectionAlg
|
||||
{
|
||||
[Token(Token = "0x600CEED")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.protectionAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DA RID: 8410
|
||||
// (get) Token: 0x0600CEEE RID: 52974 RVA: 0x002F10F0 File Offset: 0x002EF2F0
|
||||
[Token(Token = "0x170020DA")]
|
||||
public virtual Asn1OctetString SenderKID
|
||||
{
|
||||
[Token(Token = "0x600CEEE")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.senderKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DB RID: 8411
|
||||
// (get) Token: 0x0600CEEF RID: 52975 RVA: 0x002F1104 File Offset: 0x002EF304
|
||||
[Token(Token = "0x170020DB")]
|
||||
public virtual Asn1OctetString RecipKID
|
||||
{
|
||||
[Token(Token = "0x600CEEF")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return this.recipKID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DC RID: 8412
|
||||
// (get) Token: 0x0600CEF0 RID: 52976 RVA: 0x002F1118 File Offset: 0x002EF318
|
||||
[Token(Token = "0x170020DC")]
|
||||
public virtual Asn1OctetString TransactionID
|
||||
{
|
||||
[Token(Token = "0x600CEF0")]
|
||||
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.transactionID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DD RID: 8413
|
||||
// (get) Token: 0x0600CEF1 RID: 52977 RVA: 0x002F112C File Offset: 0x002EF32C
|
||||
[Token(Token = "0x170020DD")]
|
||||
public virtual Asn1OctetString SenderNonce
|
||||
{
|
||||
[Token(Token = "0x600CEF1")]
|
||||
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return this.senderNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DE RID: 8414
|
||||
// (get) Token: 0x0600CEF2 RID: 52978 RVA: 0x002F1140 File Offset: 0x002EF340
|
||||
[Token(Token = "0x170020DE")]
|
||||
public virtual Asn1OctetString RecipNonce
|
||||
{
|
||||
[Token(Token = "0x600CEF2")]
|
||||
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710", Slot = "15")]
|
||||
get
|
||||
{
|
||||
return this.recipNonce;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020DF RID: 8415
|
||||
// (get) Token: 0x0600CEF3 RID: 52979 RVA: 0x002F1154 File Offset: 0x002EF354
|
||||
[Token(Token = "0x170020DF")]
|
||||
public virtual PkiFreeText FreeText
|
||||
{
|
||||
[Token(Token = "0x600CEF3")]
|
||||
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720", Slot = "16")]
|
||||
get
|
||||
{
|
||||
return this.freeText;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CEF4 RID: 52980 RVA: 0x002F1168 File Offset: 0x002EF368
|
||||
[Token(Token = "0x600CEF4")]
|
||||
[Address(RVA = "0x2FED110", Offset = "0x2FEC110", VA = "0x182FED110", 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: 0x0600CEF5 RID: 52981 RVA: 0x002F11B8 File Offset: 0x002EF3B8
|
||||
[Token(Token = "0x600CEF5")]
|
||||
[Address(RVA = "0x2FED420", Offset = "0x2FEC420", VA = "0x182FED420", 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: 0x0600CEF6 RID: 52982 RVA: 0x002F12C4 File Offset: 0x002EF4C4
|
||||
[Token(Token = "0x600CEF6")]
|
||||
[Address(RVA = "0x2FED010", Offset = "0x2FEC010", VA = "0x182FED010")]
|
||||
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: 0x04008325 RID: 33573
|
||||
[Token(Token = "0x4008325")]
|
||||
public static readonly GeneralName NULL_NAME = new GeneralName(X509Name.GetInstance(new DerSequence()));
|
||||
|
||||
// Token: 0x04008326 RID: 33574
|
||||
[Token(Token = "0x4008326")]
|
||||
public static readonly int CMP_1999;
|
||||
|
||||
// Token: 0x04008327 RID: 33575
|
||||
[Token(Token = "0x4008327")]
|
||||
public static readonly int CMP_2000;
|
||||
|
||||
// Token: 0x04008328 RID: 33576
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008328")]
|
||||
private readonly DerInteger pvno;
|
||||
|
||||
// Token: 0x04008329 RID: 33577
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008329")]
|
||||
private readonly GeneralName sender;
|
||||
|
||||
// Token: 0x0400832A RID: 33578
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400832A")]
|
||||
private readonly GeneralName recipient;
|
||||
|
||||
// Token: 0x0400832B RID: 33579
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400832B")]
|
||||
private readonly DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x0400832C RID: 33580
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400832C")]
|
||||
private readonly AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x0400832D RID: 33581
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400832D")]
|
||||
private readonly Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x0400832E RID: 33582
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400832E")]
|
||||
private readonly Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x0400832F RID: 33583
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400832F")]
|
||||
private readonly Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x04008330 RID: 33584
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4008330")]
|
||||
private readonly Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x04008331 RID: 33585
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x4008331")]
|
||||
private readonly Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x04008332 RID: 33586
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x4008332")]
|
||||
private readonly PkiFreeText freeText;
|
||||
|
||||
// Token: 0x04008333 RID: 33587
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4008333")]
|
||||
private readonly Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
+409
@@ -0,0 +1,409 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203E RID: 8254
|
||||
[Token(Token = "0x200203E")]
|
||||
public class PkiHeaderBuilder
|
||||
{
|
||||
// Token: 0x0600CEF8 RID: 52984 RVA: 0x002F1324 File Offset: 0x002EF524
|
||||
[Token(Token = "0x600CEF8")]
|
||||
[Address(RVA = "0x2FECF80", Offset = "0x2FEBF80", VA = "0x182FECF80")]
|
||||
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: 0x0600CEF9 RID: 52985 RVA: 0x002F135C File Offset: 0x002EF55C
|
||||
[Token(Token = "0x600CEF9")]
|
||||
[Address(RVA = "0x466000", Offset = "0x465000", VA = "0x180466000")]
|
||||
private PkiHeaderBuilder(DerInteger pvno, GeneralName sender, GeneralName recipient)
|
||||
{
|
||||
this.pvno = pvno;
|
||||
this.sender = sender;
|
||||
this.recipient = recipient;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFA RID: 52986 RVA: 0x002F1384 File Offset: 0x002EF584
|
||||
[Token(Token = "0x600CEFA")]
|
||||
[Address(RVA = "0x493860", Offset = "0x492860", VA = "0x180493860", Slot = "4")]
|
||||
public virtual PkiHeaderBuilder SetMessageTime(DerGeneralizedTime time)
|
||||
{
|
||||
this.messageTime = time;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFB RID: 52987 RVA: 0x002F139C File Offset: 0x002EF59C
|
||||
[Token(Token = "0x600CEFB")]
|
||||
[Address(RVA = "0x493910", Offset = "0x492910", VA = "0x180493910", Slot = "5")]
|
||||
public virtual PkiHeaderBuilder SetProtectionAlg(AlgorithmIdentifier aid)
|
||||
{
|
||||
this.protectionAlg = aid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFC RID: 52988 RVA: 0x002F13B4 File Offset: 0x002EF5B4
|
||||
[Token(Token = "0x600CEFC")]
|
||||
[Address(RVA = "0x2FECDD0", Offset = "0x2FEBDD0", VA = "0x182FECDD0", Slot = "6")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFD RID: 52989 RVA: 0x002F13D4 File Offset: 0x002EF5D4
|
||||
[Token(Token = "0x600CEFD")]
|
||||
[Address(RVA = "0x12A77C0", Offset = "0x12A67C0", VA = "0x1812A77C0", Slot = "7")]
|
||||
public virtual PkiHeaderBuilder SetSenderKID(Asn1OctetString kid)
|
||||
{
|
||||
this.senderKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFE RID: 52990 RVA: 0x002F13EC File Offset: 0x002EF5EC
|
||||
[Token(Token = "0x600CEFE")]
|
||||
[Address(RVA = "0x2FECCB0", Offset = "0x2FEBCB0", VA = "0x182FECCB0", Slot = "8")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(byte[] kid)
|
||||
{
|
||||
if (kid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(kid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CEFF RID: 52991 RVA: 0x002F140C File Offset: 0x002EF60C
|
||||
[Token(Token = "0x600CEFF")]
|
||||
[Address(RVA = "0x23A3780", Offset = "0x23A2780", VA = "0x1823A3780", Slot = "9")]
|
||||
public virtual PkiHeaderBuilder SetRecipKID(DerOctetString kid)
|
||||
{
|
||||
this.recipKID = kid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF00 RID: 52992 RVA: 0x002F1424 File Offset: 0x002EF624
|
||||
[Token(Token = "0x600CF00")]
|
||||
[Address(RVA = "0x2FECEF0", Offset = "0x2FEBEF0", VA = "0x182FECEF0", Slot = "10")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(byte[] tid)
|
||||
{
|
||||
if (tid == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(tid);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CF01 RID: 52993 RVA: 0x002F1444 File Offset: 0x002EF644
|
||||
[Token(Token = "0x600CF01")]
|
||||
[Address(RVA = "0x23A3770", Offset = "0x23A2770", VA = "0x1823A3770", Slot = "11")]
|
||||
public virtual PkiHeaderBuilder SetTransactionID(Asn1OctetString tid)
|
||||
{
|
||||
this.transactionID = tid;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF02 RID: 52994 RVA: 0x002F145C File Offset: 0x002EF65C
|
||||
[Token(Token = "0x600CF02")]
|
||||
[Address(RVA = "0x2FECE60", Offset = "0x2FEBE60", VA = "0x182FECE60", Slot = "12")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CF03 RID: 52995 RVA: 0x002F147C File Offset: 0x002EF67C
|
||||
[Token(Token = "0x600CF03")]
|
||||
[Address(RVA = "0x23A3790", Offset = "0x23A2790", VA = "0x1823A3790", Slot = "13")]
|
||||
public virtual PkiHeaderBuilder SetSenderNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.senderNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF04 RID: 52996 RVA: 0x002F1494 File Offset: 0x002EF694
|
||||
[Token(Token = "0x600CF04")]
|
||||
[Address(RVA = "0x2FECD40", Offset = "0x2FEBD40", VA = "0x182FECD40", Slot = "14")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(byte[] nonce)
|
||||
{
|
||||
if (nonce == 0)
|
||||
{
|
||||
}
|
||||
DerOctetString derOctetString = new DerOctetString(nonce);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CF05 RID: 52997 RVA: 0x002F14B4 File Offset: 0x002EF6B4
|
||||
[Token(Token = "0x600CF05")]
|
||||
[Address(RVA = "0x23A3760", Offset = "0x23A2760", VA = "0x1823A3760", Slot = "15")]
|
||||
public virtual PkiHeaderBuilder SetRecipNonce(Asn1OctetString nonce)
|
||||
{
|
||||
this.recipNonce = nonce;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF06 RID: 52998 RVA: 0x002F14CC File Offset: 0x002EF6CC
|
||||
[Token(Token = "0x600CF06")]
|
||||
[Address(RVA = "0x2FECAB0", Offset = "0x2FEBAB0", VA = "0x182FECAB0", Slot = "16")]
|
||||
public virtual PkiHeaderBuilder SetFreeText(PkiFreeText text)
|
||||
{
|
||||
this.freeText = text;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF07 RID: 52999 RVA: 0x002F14E4 File Offset: 0x002EF6E4
|
||||
[Token(Token = "0x600CF07")]
|
||||
[Address(RVA = "0x2FECAC0", Offset = "0x2FEBAC0", VA = "0x182FECAC0", Slot = "17")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(InfoTypeAndValue genInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF07)
|
||||
|
||||
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: 0x0600CF08 RID: 53000 RVA: 0x002F14F8 File Offset: 0x002EF6F8
|
||||
[Token(Token = "0x600CF08")]
|
||||
[Address(RVA = "0x2FECB40", Offset = "0x2FEBB40", VA = "0x182FECB40", 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: 0x0600CF09 RID: 53001 RVA: 0x002F1550 File Offset: 0x002EF750
|
||||
[Token(Token = "0x600CF09")]
|
||||
[Address(RVA = "0x2FECCA0", Offset = "0x2FEBCA0", VA = "0x182FECCA0", Slot = "19")]
|
||||
public virtual PkiHeaderBuilder SetGeneralInfo(Asn1Sequence seqOfInfoTypeAndValue)
|
||||
{
|
||||
this.generalInfo = seqOfInfoTypeAndValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF0A RID: 53002 RVA: 0x002F1568 File Offset: 0x002EF768
|
||||
[Token(Token = "0x600CF0A")]
|
||||
[Address(RVA = "0x2FECA50", Offset = "0x2FEBA50", VA = "0x182FECA50")]
|
||||
private static Asn1Sequence MakeGeneralInfoSeq(InfoTypeAndValue generalInfo)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF0A)
|
||||
|
||||
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: 0x0600CF0B RID: 53003 RVA: 0x002F157C File Offset: 0x002EF77C
|
||||
[Token(Token = "0x600CF0B")]
|
||||
[Address(RVA = "0x2FEC900", Offset = "0x2FEB900", VA = "0x182FEC900")]
|
||||
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: 0x0600CF0C RID: 53004 RVA: 0x002F15CC File Offset: 0x002EF7CC
|
||||
[Token(Token = "0x600CF0C")]
|
||||
[Address(RVA = "0x2FEC650", Offset = "0x2FEB650", VA = "0x182FEC650", 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: 0x0600CF0D RID: 53005 RVA: 0x002F1730 File Offset: 0x002EF930
|
||||
[Token(Token = "0x600CF0D")]
|
||||
[Address(RVA = "0x2FEC550", Offset = "0x2FEB550", VA = "0x182FEC550")]
|
||||
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: 0x04008334 RID: 33588
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008334")]
|
||||
private DerInteger pvno;
|
||||
|
||||
// Token: 0x04008335 RID: 33589
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008335")]
|
||||
private GeneralName sender;
|
||||
|
||||
// Token: 0x04008336 RID: 33590
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008336")]
|
||||
private GeneralName recipient;
|
||||
|
||||
// Token: 0x04008337 RID: 33591
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008337")]
|
||||
private DerGeneralizedTime messageTime;
|
||||
|
||||
// Token: 0x04008338 RID: 33592
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008338")]
|
||||
private AlgorithmIdentifier protectionAlg;
|
||||
|
||||
// Token: 0x04008339 RID: 33593
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4008339")]
|
||||
private Asn1OctetString senderKID;
|
||||
|
||||
// Token: 0x0400833A RID: 33594
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400833A")]
|
||||
private Asn1OctetString recipKID;
|
||||
|
||||
// Token: 0x0400833B RID: 33595
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400833B")]
|
||||
private Asn1OctetString transactionID;
|
||||
|
||||
// Token: 0x0400833C RID: 33596
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400833C")]
|
||||
private Asn1OctetString senderNonce;
|
||||
|
||||
// Token: 0x0400833D RID: 33597
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400833D")]
|
||||
private Asn1OctetString recipNonce;
|
||||
|
||||
// Token: 0x0400833E RID: 33598
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400833E")]
|
||||
private PkiFreeText freeText;
|
||||
|
||||
// Token: 0x0400833F RID: 33599
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400833F")]
|
||||
private Asn1Sequence generalInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200203F RID: 8255
|
||||
[Token(Token = "0x200203F")]
|
||||
public class PkiMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF0E RID: 53006 RVA: 0x002F176C File Offset: 0x002EF96C
|
||||
[Token(Token = "0x600CF0E")]
|
||||
[Address(RVA = "0x2FEE0E0", Offset = "0x2FED0E0", VA = "0x182FEE0E0")]
|
||||
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: 0x0600CF0F RID: 53007 RVA: 0x002F17C4 File Offset: 0x002EF9C4
|
||||
[Token(Token = "0x600CF0F")]
|
||||
[Address(RVA = "0x2FEDD10", Offset = "0x2FECD10", VA = "0x182FEDD10")]
|
||||
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: 0x0600CF10 RID: 53008 RVA: 0x002F17F8 File Offset: 0x002EF9F8
|
||||
[Token(Token = "0x600CF10")]
|
||||
[Address(RVA = "0x2FEDF70", Offset = "0x2FECF70", VA = "0x182FEDF70")]
|
||||
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: 0x0600CF11 RID: 53009 RVA: 0x002F1828 File Offset: 0x002EFA28
|
||||
[Token(Token = "0x600CF11")]
|
||||
[Address(RVA = "0x2FEE010", Offset = "0x2FED010", VA = "0x182FEE010")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = protection;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF12 RID: 53010 RVA: 0x002F1850 File Offset: 0x002EFA50
|
||||
[Token(Token = "0x600CF12")]
|
||||
[Address(RVA = "0x2FEE080", Offset = "0x2FED080", VA = "0x182FEE080")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x170020E0 RID: 8416
|
||||
// (get) Token: 0x0600CF13 RID: 53011 RVA: 0x002F187C File Offset: 0x002EFA7C
|
||||
[Token(Token = "0x170020E0")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600CF13")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E1 RID: 8417
|
||||
// (get) Token: 0x0600CF14 RID: 53012 RVA: 0x002F1890 File Offset: 0x002EFA90
|
||||
[Token(Token = "0x170020E1")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600CF14")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E2 RID: 8418
|
||||
// (get) Token: 0x0600CF15 RID: 53013 RVA: 0x002F18A4 File Offset: 0x002EFAA4
|
||||
[Token(Token = "0x170020E2")]
|
||||
public virtual DerBitString Protection
|
||||
{
|
||||
[Token(Token = "0x600CF15")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.protection;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF16 RID: 53014 RVA: 0x002F18B8 File Offset: 0x002EFAB8
|
||||
[Token(Token = "0x600CF16")]
|
||||
[Address(RVA = "0x2FEDBF0", Offset = "0x2FECBF0", VA = "0x182FEDBF0", 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: 0x0600CF17 RID: 53015 RVA: 0x002F1908 File Offset: 0x002EFB08
|
||||
[Token(Token = "0x600CF17")]
|
||||
[Address(RVA = "0x2FEDE10", Offset = "0x2FECE10", VA = "0x182FEDE10", 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: 0x0600CF18 RID: 53016 RVA: 0x002F197C File Offset: 0x002EFB7C
|
||||
[Token(Token = "0x600CF18")]
|
||||
[Address(RVA = "0x2FEDAF0", Offset = "0x2FECAF0", VA = "0x182FEDAF0")]
|
||||
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: 0x04008340 RID: 33600
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008340")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04008341 RID: 33601
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008341")]
|
||||
private readonly PkiBody body;
|
||||
|
||||
// Token: 0x04008342 RID: 33602
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008342")]
|
||||
private readonly DerBitString protection;
|
||||
|
||||
// Token: 0x04008343 RID: 33603
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008343")]
|
||||
private readonly Asn1Sequence extraCerts;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002040 RID: 8256
|
||||
[Token(Token = "0x2002040")]
|
||||
public class PkiMessages : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF19 RID: 53017 RVA: 0x002F19B8 File Offset: 0x002EFBB8
|
||||
[Token(Token = "0x600CF19")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PkiMessages(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF1A RID: 53018 RVA: 0x002F19D4 File Offset: 0x002EFBD4
|
||||
[Token(Token = "0x600CF1A")]
|
||||
[Address(RVA = "0x2FEE2B0", Offset = "0x2FED2B0", VA = "0x182FEE2B0")]
|
||||
public static PkiMessages GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF1A)
|
||||
|
||||
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: 0x0600CF1B RID: 53019 RVA: 0x002F1A2C File Offset: 0x002EFC2C
|
||||
[Token(Token = "0x600CF1B")]
|
||||
[Address(RVA = "0x2FEE690", Offset = "0x2FED690", VA = "0x182FEE690")]
|
||||
public PkiMessages(params PkiMessage[] msgs)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(msgs);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF1C RID: 53020 RVA: 0x002F1A50 File Offset: 0x002EFC50
|
||||
[Token(Token = "0x600CF1C")]
|
||||
[Address(RVA = "0x2FEE4A0", Offset = "0x2FED4A0", VA = "0x182FEE4A0", 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: 0x0600CF1D RID: 53021 RVA: 0x002F1ACC File Offset: 0x002EFCCC
|
||||
[Token(Token = "0x600CF1D")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF1D)
|
||||
|
||||
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: 0x04008344 RID: 33604
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008344")]
|
||||
private Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002041 RID: 8257
|
||||
[Token(Token = "0x2002041")]
|
||||
public enum PkiStatus
|
||||
{
|
||||
// Token: 0x04008346 RID: 33606
|
||||
[Token(Token = "0x4008346")]
|
||||
Granted,
|
||||
// Token: 0x04008347 RID: 33607
|
||||
[Token(Token = "0x4008347")]
|
||||
GrantedWithMods,
|
||||
// Token: 0x04008348 RID: 33608
|
||||
[Token(Token = "0x4008348")]
|
||||
Rejection,
|
||||
// Token: 0x04008349 RID: 33609
|
||||
[Token(Token = "0x4008349")]
|
||||
Waiting,
|
||||
// Token: 0x0400834A RID: 33610
|
||||
[Token(Token = "0x400834A")]
|
||||
RevocationWarning,
|
||||
// Token: 0x0400834B RID: 33611
|
||||
[Token(Token = "0x400834B")]
|
||||
RevocationNotification,
|
||||
// Token: 0x0400834C RID: 33612
|
||||
[Token(Token = "0x400834C")]
|
||||
KeyUpdateWarning
|
||||
}
|
||||
}
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002042 RID: 8258
|
||||
[Token(Token = "0x2002042")]
|
||||
public class PkiStatusEncodable : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF1E RID: 53022 RVA: 0x002F1AE0 File Offset: 0x002EFCE0
|
||||
[Token(Token = "0x600CF1E")]
|
||||
[Address(RVA = "0x2FEEC00", Offset = "0x2FEDC00", VA = "0x182FEEC00")]
|
||||
private PkiStatusEncodable(PkiStatus status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger((int)status);
|
||||
base..ctor();
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF1F RID: 53023 RVA: 0x002F1B04 File Offset: 0x002EFD04
|
||||
[Token(Token = "0x600CF1F")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PkiStatusEncodable(DerInteger status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF20 RID: 53024 RVA: 0x002F1B20 File Offset: 0x002EFD20
|
||||
[Token(Token = "0x600CF20")]
|
||||
[Address(RVA = "0x2FEE700", Offset = "0x2FED700", VA = "0x182FEE700")]
|
||||
public static PkiStatusEncodable GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF20)
|
||||
|
||||
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: 0x170020E3 RID: 8419
|
||||
// (get) Token: 0x0600CF21 RID: 53025 RVA: 0x002F1B78 File Offset: 0x002EFD78
|
||||
[Token(Token = "0x170020E3")]
|
||||
public virtual BigInteger Value
|
||||
{
|
||||
[Token(Token = "0x600CF21")]
|
||||
[Address(RVA = "0x2EAFE00", Offset = "0x2EAEE00", VA = "0x182EAFE00", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF22 RID: 53026 RVA: 0x002F1B98 File Offset: 0x002EFD98
|
||||
[Token(Token = "0x600CF22")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF22)
|
||||
|
||||
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: 0x0600CF23 RID: 53027 RVA: 0x002F1BAC File Offset: 0x002EFDAC
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x600CF23")]
|
||||
[Address(RVA = "0x2FEE8F0", Offset = "0x2FED8F0", VA = "0x182FEE8F0")]
|
||||
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: 0x0400834D RID: 33613
|
||||
[Token(Token = "0x400834D")]
|
||||
public static readonly PkiStatusEncodable granted;
|
||||
|
||||
// Token: 0x0400834E RID: 33614
|
||||
[Token(Token = "0x400834E")]
|
||||
public static readonly PkiStatusEncodable grantedWithMods;
|
||||
|
||||
// Token: 0x0400834F RID: 33615
|
||||
[Token(Token = "0x400834F")]
|
||||
public static readonly PkiStatusEncodable rejection;
|
||||
|
||||
// Token: 0x04008350 RID: 33616
|
||||
[Token(Token = "0x4008350")]
|
||||
public static readonly PkiStatusEncodable waiting;
|
||||
|
||||
// Token: 0x04008351 RID: 33617
|
||||
[Token(Token = "0x4008351")]
|
||||
public static readonly PkiStatusEncodable revocationWarning;
|
||||
|
||||
// Token: 0x04008352 RID: 33618
|
||||
[Token(Token = "0x4008352")]
|
||||
public static readonly PkiStatusEncodable revocationNotification;
|
||||
|
||||
// Token: 0x04008353 RID: 33619
|
||||
[Token(Token = "0x4008353")]
|
||||
public static readonly PkiStatusEncodable keyUpdateWaiting;
|
||||
|
||||
// Token: 0x04008354 RID: 33620
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008354")]
|
||||
private readonly DerInteger status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002043 RID: 8259
|
||||
[Token(Token = "0x2002043")]
|
||||
public class PkiStatusInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF24 RID: 53028 RVA: 0x002F1C94 File Offset: 0x002EFE94
|
||||
[Token(Token = "0x600CF24")]
|
||||
[Address(RVA = "0x2FEEC70", Offset = "0x2FEDC70", VA = "0x182FEEC70")]
|
||||
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600CF25 RID: 53029 RVA: 0x002F1CB0 File Offset: 0x002EFEB0
|
||||
[Token(Token = "0x600CF25")]
|
||||
[Address(RVA = "0x2FEEC90", Offset = "0x2FEDC90", VA = "0x182FEEC90")]
|
||||
public static PkiStatusInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF25)
|
||||
|
||||
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: 0x0600CF26 RID: 53030 RVA: 0x002F1D00 File Offset: 0x002EFF00
|
||||
[Token(Token = "0x600CF26")]
|
||||
[Address(RVA = "0x2FEF1A0", Offset = "0x2FEE1A0", VA = "0x182FEF1A0")]
|
||||
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: 0x0600CF27 RID: 53031 RVA: 0x002F1D6C File Offset: 0x002EFF6C
|
||||
[Token(Token = "0x600CF27")]
|
||||
[Address(RVA = "0x2FEF370", Offset = "0x2FEE370", VA = "0x182FEF370")]
|
||||
public PkiStatusInfo(int status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF28 RID: 53032 RVA: 0x002F1D90 File Offset: 0x002EFF90
|
||||
[Token(Token = "0x600CF28")]
|
||||
[Address(RVA = "0x2FEF090", Offset = "0x2FEE090", VA = "0x182FEF090")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF29 RID: 53033 RVA: 0x002F1DB8 File Offset: 0x002EFFB8
|
||||
[Token(Token = "0x600CF29")]
|
||||
[Address(RVA = "0x2FEF110", Offset = "0x2FEE110", VA = "0x182FEF110")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
this.failInfo = failInfo;
|
||||
}
|
||||
|
||||
// Token: 0x170020E4 RID: 8420
|
||||
// (get) Token: 0x0600CF2A RID: 53034 RVA: 0x002F1DE8 File Offset: 0x002EFFE8
|
||||
[Token(Token = "0x170020E4")]
|
||||
public BigInteger Status
|
||||
{
|
||||
[Token(Token = "0x600CF2A")]
|
||||
[Address(RVA = "0x2EAFE00", Offset = "0x2EAEE00", VA = "0x182EAFE00")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E5 RID: 8421
|
||||
// (get) Token: 0x0600CF2B RID: 53035 RVA: 0x002F1E08 File Offset: 0x002F0008
|
||||
[Token(Token = "0x170020E5")]
|
||||
public PkiFreeText StatusString
|
||||
{
|
||||
[Token(Token = "0x600CF2B")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.statusString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020E6 RID: 8422
|
||||
// (get) Token: 0x0600CF2C RID: 53036 RVA: 0x002F1E1C File Offset: 0x002F001C
|
||||
[Token(Token = "0x170020E6")]
|
||||
public DerBitString FailInfo
|
||||
{
|
||||
[Token(Token = "0x600CF2C")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.failInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF2D RID: 53037 RVA: 0x002F1E30 File Offset: 0x002F0030
|
||||
[Token(Token = "0x600CF2D")]
|
||||
[Address(RVA = "0x2FEEE80", Offset = "0x2FEDE80", VA = "0x182FEEE80", 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: 0x04008355 RID: 33621
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008355")]
|
||||
private DerInteger status;
|
||||
|
||||
// Token: 0x04008356 RID: 33622
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008356")]
|
||||
private PkiFreeText statusString;
|
||||
|
||||
// Token: 0x04008357 RID: 33623
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008357")]
|
||||
private DerBitString failInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002045 RID: 8261
|
||||
[Token(Token = "0x2002045")]
|
||||
public class PollRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF37 RID: 53047 RVA: 0x002F20C4 File Offset: 0x002F02C4
|
||||
[Token(Token = "0x600CF37")]
|
||||
[Address(RVA = "0x2FEF820", Offset = "0x2FEE820", VA = "0x182FEF820")]
|
||||
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: 0x0600CF38 RID: 53048 RVA: 0x002F2110 File Offset: 0x002F0310
|
||||
[Token(Token = "0x600CF38")]
|
||||
[Address(RVA = "0x2FEF3E0", Offset = "0x2FEE3E0", VA = "0x182FEF3E0")]
|
||||
public static PollRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF38)
|
||||
|
||||
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: 0x0600CF39 RID: 53049 RVA: 0x002F2178 File Offset: 0x002F0378
|
||||
[Token(Token = "0x600CF39")]
|
||||
[Address(RVA = "0x2E8C5B0", Offset = "0x2E8B5B0", VA = "0x182E8C5B0")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF3A RID: 53050 RVA: 0x002F21A4 File Offset: 0x002F03A4
|
||||
[Token(Token = "0x600CF3A")]
|
||||
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
||||
public PollRepContent(DerInteger certReqId, DerInteger checkAfter, PkiFreeText reason)
|
||||
{
|
||||
this.certReqId = certReqId;
|
||||
this.checkAfter = checkAfter;
|
||||
this.reason = reason;
|
||||
}
|
||||
|
||||
// Token: 0x170020EB RID: 8427
|
||||
// (get) Token: 0x0600CF3B RID: 53051 RVA: 0x002F21CC File Offset: 0x002F03CC
|
||||
[Token(Token = "0x170020EB")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CF3B")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020EC RID: 8428
|
||||
// (get) Token: 0x0600CF3C RID: 53052 RVA: 0x002F21E0 File Offset: 0x002F03E0
|
||||
[Token(Token = "0x170020EC")]
|
||||
public virtual DerInteger CheckAfter
|
||||
{
|
||||
[Token(Token = "0x600CF3C")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.checkAfter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020ED RID: 8429
|
||||
// (get) Token: 0x0600CF3D RID: 53053 RVA: 0x002F21F4 File Offset: 0x002F03F4
|
||||
[Token(Token = "0x170020ED")]
|
||||
public virtual PkiFreeText Reason
|
||||
{
|
||||
[Token(Token = "0x600CF3D")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.reason;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF3E RID: 53054 RVA: 0x002F2208 File Offset: 0x002F0408
|
||||
[Token(Token = "0x600CF3E")]
|
||||
[Address(RVA = "0x2FEF660", Offset = "0x2FEE660", VA = "0x182FEF660", 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: 0x0400835C RID: 33628
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400835C")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x0400835D RID: 33629
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400835D")]
|
||||
private readonly DerInteger checkAfter;
|
||||
|
||||
// Token: 0x0400835E RID: 33630
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400835E")]
|
||||
private readonly PkiFreeText reason;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002046 RID: 8262
|
||||
[Token(Token = "0x2002046")]
|
||||
public class PollReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF3F RID: 53055 RVA: 0x002F2280 File Offset: 0x002F0480
|
||||
[Token(Token = "0x600CF3F")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PollReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF40 RID: 53056 RVA: 0x002F229C File Offset: 0x002F049C
|
||||
[Token(Token = "0x600CF40")]
|
||||
[Address(RVA = "0x2FEFB20", Offset = "0x2FEEB20", VA = "0x182FEFB20")]
|
||||
public static PollReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF40)
|
||||
|
||||
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: 0x0600CF41 RID: 53057 RVA: 0x002F22F4 File Offset: 0x002F04F4
|
||||
[Token(Token = "0x600CF41")]
|
||||
[Address(RVA = "0x2FEF8E0", Offset = "0x2FEE8E0", VA = "0x182FEF8E0", 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: 0x0600CF42 RID: 53058 RVA: 0x002F237C File Offset: 0x002F057C
|
||||
[Token(Token = "0x600CF42")]
|
||||
[Address(RVA = "0x2FEFD10", Offset = "0x2FEED10", VA = "0x182FEFD10")]
|
||||
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: 0x0600CF43 RID: 53059 RVA: 0x002F23BC File Offset: 0x002F05BC
|
||||
[Token(Token = "0x600CF43")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF43)
|
||||
|
||||
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: 0x0400835F RID: 33631
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400835F")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002047 RID: 8263
|
||||
[Token(Token = "0x2002047")]
|
||||
public class PopoDecKeyChallContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF44 RID: 53060 RVA: 0x002F23D0 File Offset: 0x002F05D0
|
||||
[Token(Token = "0x600CF44")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PopoDecKeyChallContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF45 RID: 53061 RVA: 0x002F23EC File Offset: 0x002F05EC
|
||||
[Token(Token = "0x600CF45")]
|
||||
[Address(RVA = "0x2FEFE20", Offset = "0x2FEEE20", VA = "0x182FEFE20")]
|
||||
public static PopoDecKeyChallContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF45)
|
||||
|
||||
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: 0x0600CF46 RID: 53062 RVA: 0x002F2444 File Offset: 0x002F0644
|
||||
[Token(Token = "0x600CF46")]
|
||||
[Address(RVA = "0x2FF0010", Offset = "0x2FEF010", VA = "0x182FF0010", 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: 0x0600CF47 RID: 53063 RVA: 0x002F2490 File Offset: 0x002F0690
|
||||
[Token(Token = "0x600CF47")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF47)
|
||||
|
||||
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: 0x04008360 RID: 33632
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008360")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002048 RID: 8264
|
||||
[Token(Token = "0x2002048")]
|
||||
public class PopoDecKeyRespContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF48 RID: 53064 RVA: 0x002F24A4 File Offset: 0x002F06A4
|
||||
[Token(Token = "0x600CF48")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private PopoDecKeyRespContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF49 RID: 53065 RVA: 0x002F24C0 File Offset: 0x002F06C0
|
||||
[Token(Token = "0x600CF49")]
|
||||
[Address(RVA = "0x2FF0120", Offset = "0x2FEF120", VA = "0x182FF0120")]
|
||||
public static PopoDecKeyRespContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF49)
|
||||
|
||||
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: 0x0600CF4A RID: 53066 RVA: 0x002F2518 File Offset: 0x002F0718
|
||||
[Token(Token = "0x600CF4A")]
|
||||
[Address(RVA = "0x2FF0310", Offset = "0x2FEF310", VA = "0x182FF0310", 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: 0x0600CF4B RID: 53067 RVA: 0x002F2564 File Offset: 0x002F0764
|
||||
[Token(Token = "0x600CF4B")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF4B)
|
||||
|
||||
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: 0x04008361 RID: 33633
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008361")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02002049 RID: 8265
|
||||
[Token(Token = "0x2002049")]
|
||||
public class ProtectedPart : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF4C RID: 53068 RVA: 0x002F2578 File Offset: 0x002F0778
|
||||
[Token(Token = "0x600CF4C")]
|
||||
[Address(RVA = "0x2FF07A0", Offset = "0x2FEF7A0", VA = "0x182FF07A0")]
|
||||
private ProtectedPart(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiHeader pkiHeader;
|
||||
this.header = pkiHeader;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiBody pkiBody;
|
||||
this.body = pkiBody;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF4D RID: 53069 RVA: 0x002F25B0 File Offset: 0x002F07B0
|
||||
[Token(Token = "0x600CF4D")]
|
||||
[Address(RVA = "0x2FF0420", Offset = "0x2FEF420", VA = "0x182FF0420")]
|
||||
public static ProtectedPart GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF4D)
|
||||
|
||||
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: 0x0600CF4E RID: 53070 RVA: 0x002F260C File Offset: 0x002F080C
|
||||
[Token(Token = "0x600CF4E")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public ProtectedPart(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
}
|
||||
|
||||
// Token: 0x170020EE RID: 8430
|
||||
// (get) Token: 0x0600CF4F RID: 53071 RVA: 0x002F2630 File Offset: 0x002F0830
|
||||
[Token(Token = "0x170020EE")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600CF4F")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020EF RID: 8431
|
||||
// (get) Token: 0x0600CF50 RID: 53072 RVA: 0x002F2644 File Offset: 0x002F0844
|
||||
[Token(Token = "0x170020EF")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600CF50")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF51 RID: 53073 RVA: 0x002F2658 File Offset: 0x002F0858
|
||||
[Token(Token = "0x600CF51")]
|
||||
[Address(RVA = "0x2FF0690", Offset = "0x2FEF690", VA = "0x182FF0690", 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: 0x04008362 RID: 33634
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008362")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04008363 RID: 33635
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008363")]
|
||||
private readonly PkiBody body;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200204A RID: 8266
|
||||
[Token(Token = "0x200204A")]
|
||||
public class RevAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF52 RID: 53074 RVA: 0x002F26A0 File Offset: 0x002F08A0
|
||||
[Token(Token = "0x600CF52")]
|
||||
[Address(RVA = "0x2FF27C0", Offset = "0x2FF17C0", VA = "0x182FF27C0")]
|
||||
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: 0x0600CF53 RID: 53075 RVA: 0x002F270C File Offset: 0x002F090C
|
||||
[Token(Token = "0x600CF53")]
|
||||
[Address(RVA = "0x2FF2240", Offset = "0x2FF1240", VA = "0x182FF2240")]
|
||||
public static RevAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF53)
|
||||
|
||||
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: 0x170020F0 RID: 8432
|
||||
// (get) Token: 0x0600CF54 RID: 53076 RVA: 0x002F2780 File Offset: 0x002F0980
|
||||
[Token(Token = "0x170020F0")]
|
||||
public virtual PkiStatusEncodable Status
|
||||
{
|
||||
[Token(Token = "0x600CF54")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F1 RID: 8433
|
||||
// (get) Token: 0x0600CF55 RID: 53077 RVA: 0x002F2794 File Offset: 0x002F0994
|
||||
[Token(Token = "0x170020F1")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600CF55")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F2 RID: 8434
|
||||
// (get) Token: 0x0600CF56 RID: 53078 RVA: 0x002F27A8 File Offset: 0x002F09A8
|
||||
[Token(Token = "0x170020F2")]
|
||||
public virtual DerGeneralizedTime WillBeRevokedAt
|
||||
{
|
||||
[Token(Token = "0x600CF56")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.willBeRevokedAt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F3 RID: 8435
|
||||
// (get) Token: 0x0600CF57 RID: 53079 RVA: 0x002F27BC File Offset: 0x002F09BC
|
||||
[Token(Token = "0x170020F3")]
|
||||
public virtual DerGeneralizedTime BadSinceDate
|
||||
{
|
||||
[Token(Token = "0x600CF57")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.badSinceDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F4 RID: 8436
|
||||
// (get) Token: 0x0600CF58 RID: 53080 RVA: 0x002F27D0 File Offset: 0x002F09D0
|
||||
[Token(Token = "0x170020F4")]
|
||||
public virtual X509Extensions CrlDetails
|
||||
{
|
||||
[Token(Token = "0x600CF58")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.crlDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF59 RID: 53081 RVA: 0x002F27E4 File Offset: 0x002F09E4
|
||||
[Token(Token = "0x600CF59")]
|
||||
[Address(RVA = "0x2FF2560", Offset = "0x2FF1560", VA = "0x182FF2560", 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: 0x04008364 RID: 33636
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008364")]
|
||||
private readonly PkiStatusEncodable status;
|
||||
|
||||
// Token: 0x04008365 RID: 33637
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008365")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x04008366 RID: 33638
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008366")]
|
||||
private readonly DerGeneralizedTime willBeRevokedAt;
|
||||
|
||||
// Token: 0x04008367 RID: 33639
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4008367")]
|
||||
private readonly DerGeneralizedTime badSinceDate;
|
||||
|
||||
// Token: 0x04008368 RID: 33640
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4008368")]
|
||||
private readonly X509Extensions crlDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200204B RID: 8267
|
||||
[Token(Token = "0x200204B")]
|
||||
public class RevDetails : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF5A RID: 53082 RVA: 0x002F2888 File Offset: 0x002F0A88
|
||||
[Token(Token = "0x600CF5A")]
|
||||
[Address(RVA = "0x2FF2D40", Offset = "0x2FF1D40", VA = "0x182FF2D40")]
|
||||
private RevDetails(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
CertTemplate certTemplate;
|
||||
this.certDetails = certTemplate;
|
||||
int num = 0;
|
||||
this.crlEntryDetails = num;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF5B RID: 53083 RVA: 0x002F28CC File Offset: 0x002F0ACC
|
||||
[Token(Token = "0x600CF5B")]
|
||||
[Address(RVA = "0x2FF2930", Offset = "0x2FF1930", VA = "0x182FF2930")]
|
||||
public static RevDetails GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF5B)
|
||||
|
||||
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: 0x0600CF5C RID: 53084 RVA: 0x002F292C File Offset: 0x002F0B2C
|
||||
[Token(Token = "0x600CF5C")]
|
||||
[Address(RVA = "0xB94A00", Offset = "0xB93A00", VA = "0x180B94A00")]
|
||||
public RevDetails(CertTemplate certDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF5D RID: 53085 RVA: 0x002F2950 File Offset: 0x002F0B50
|
||||
[Token(Token = "0x600CF5D")]
|
||||
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
||||
public RevDetails(CertTemplate certDetails, X509Extensions crlEntryDetails)
|
||||
{
|
||||
this.certDetails = certDetails;
|
||||
this.crlEntryDetails = crlEntryDetails;
|
||||
}
|
||||
|
||||
// Token: 0x170020F5 RID: 8437
|
||||
// (get) Token: 0x0600CF5E RID: 53086 RVA: 0x002F2974 File Offset: 0x002F0B74
|
||||
[Token(Token = "0x170020F5")]
|
||||
public virtual CertTemplate CertDetails
|
||||
{
|
||||
[Token(Token = "0x600CF5E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170020F6 RID: 8438
|
||||
// (get) Token: 0x0600CF5F RID: 53087 RVA: 0x002F2988 File Offset: 0x002F0B88
|
||||
[Token(Token = "0x170020F6")]
|
||||
public virtual X509Extensions CrlEntryDetails
|
||||
{
|
||||
[Token(Token = "0x600CF5F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.crlEntryDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CF60 RID: 53088 RVA: 0x002F299C File Offset: 0x002F0B9C
|
||||
[Token(Token = "0x600CF60")]
|
||||
[Address(RVA = "0x2FF2BD0", Offset = "0x2FF1BD0", VA = "0x182FF2BD0", 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: 0x04008369 RID: 33641
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008369")]
|
||||
private readonly CertTemplate certDetails;
|
||||
|
||||
// Token: 0x0400836A RID: 33642
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400836A")]
|
||||
private readonly X509Extensions crlEntryDetails;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200204C RID: 8268
|
||||
[Token(Token = "0x200204C")]
|
||||
public class RevRepContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF61 RID: 53089 RVA: 0x002F29FC File Offset: 0x002F0BFC
|
||||
[Token(Token = "0x600CF61")]
|
||||
[Address(RVA = "0x2FF3D80", Offset = "0x2FF2D80", VA = "0x182FF3D80")]
|
||||
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: 0x0600CF62 RID: 53090 RVA: 0x002F2A58 File Offset: 0x002F0C58
|
||||
[Token(Token = "0x600CF62")]
|
||||
[Address(RVA = "0x2FF37A0", Offset = "0x2FF27A0", VA = "0x182FF37A0")]
|
||||
public static RevRepContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF62)
|
||||
|
||||
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: 0x0600CF63 RID: 53091 RVA: 0x002F2AD8 File Offset: 0x002F0CD8
|
||||
[Token(Token = "0x600CF63")]
|
||||
[Address(RVA = "0x2FF3B50", Offset = "0x2FF2B50", VA = "0x182FF3B50", 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: 0x0600CF64 RID: 53092 RVA: 0x002F2B24 File Offset: 0x002F0D24
|
||||
[Token(Token = "0x600CF64")]
|
||||
[Address(RVA = "0x2FF3A30", Offset = "0x2FF2A30", VA = "0x182FF3A30", 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: 0x0600CF65 RID: 53093 RVA: 0x002F2B74 File Offset: 0x002F0D74
|
||||
[Token(Token = "0x600CF65")]
|
||||
[Address(RVA = "0x2FF3680", Offset = "0x2FF2680", VA = "0x182FF3680", 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: 0x0600CF66 RID: 53094 RVA: 0x002F2BC4 File Offset: 0x002F0DC4
|
||||
[Token(Token = "0x600CF66")]
|
||||
[Address(RVA = "0x2FF3C60", Offset = "0x2FF2C60", VA = "0x182FF3C60", 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: 0x0600CF67 RID: 53095 RVA: 0x002F2C28 File Offset: 0x002F0E28
|
||||
[Token(Token = "0x600CF67")]
|
||||
[Address(RVA = "0x2FF3580", Offset = "0x2FF2580", VA = "0x182FF3580")]
|
||||
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: 0x0400836B RID: 33643
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400836B")]
|
||||
private readonly Asn1Sequence status;
|
||||
|
||||
// Token: 0x0400836C RID: 33644
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400836C")]
|
||||
private readonly Asn1Sequence revCerts;
|
||||
|
||||
// Token: 0x0400836D RID: 33645
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400836D")]
|
||||
private readonly Asn1Sequence crls;
|
||||
}
|
||||
}
|
||||
+141
@@ -0,0 +1,141 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200204D RID: 8269
|
||||
[Token(Token = "0x200204D")]
|
||||
public class RevRepContentBuilder
|
||||
{
|
||||
// Token: 0x0600CF68 RID: 53096 RVA: 0x002F2C64 File Offset: 0x002F0E64
|
||||
[Token(Token = "0x600CF68")]
|
||||
[Address(RVA = "0x2FF2F00", Offset = "0x2FF1F00", VA = "0x182FF2F00", 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: 0x0600CF69 RID: 53097 RVA: 0x002F2C9C File Offset: 0x002F0E9C
|
||||
[Token(Token = "0x600CF69")]
|
||||
[Address(RVA = "0x2FF2FD0", Offset = "0x2FF1FD0", VA = "0x182FF2FD0", 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: 0x0600CF6A RID: 53098 RVA: 0x002F2D14 File Offset: 0x002F0F14
|
||||
[Token(Token = "0x600CF6A")]
|
||||
[Address(RVA = "0x2FF2E30", Offset = "0x2FF1E30", VA = "0x182FF2E30", 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: 0x0600CF6B RID: 53099 RVA: 0x002F2D4C File Offset: 0x002F0F4C
|
||||
[Token(Token = "0x600CF6B")]
|
||||
[Address(RVA = "0x2FF3190", Offset = "0x2FF2190", VA = "0x182FF3190", 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: 0x0600CF6C RID: 53100 RVA: 0x002F2E24 File Offset: 0x002F1024
|
||||
[Token(Token = "0x600CF6C")]
|
||||
[Address(RVA = "0x2FF34A0", Offset = "0x2FF24A0", VA = "0x182FF34A0")]
|
||||
public RevRepContentBuilder()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
this.status = asn1EncodableVector;
|
||||
Asn1EncodableVector asn1EncodableVector2;
|
||||
this.revCerts = asn1EncodableVector2;
|
||||
Asn1EncodableVector asn1EncodableVector3;
|
||||
this.crls = asn1EncodableVector3;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0400836E RID: 33646
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400836E")]
|
||||
private readonly Asn1EncodableVector status;
|
||||
|
||||
// Token: 0x0400836F RID: 33647
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400836F")]
|
||||
private readonly Asn1EncodableVector revCerts;
|
||||
|
||||
// Token: 0x04008370 RID: 33648
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008370")]
|
||||
private readonly Asn1EncodableVector crls;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200204E RID: 8270
|
||||
[Token(Token = "0x200204E")]
|
||||
public class RevReqContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CF6D RID: 53101 RVA: 0x002F2E4C File Offset: 0x002F104C
|
||||
[Token(Token = "0x600CF6D")]
|
||||
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
||||
private RevReqContent(Asn1Sequence seq)
|
||||
{
|
||||
this.content = seq;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF6E RID: 53102 RVA: 0x002F2E68 File Offset: 0x002F1068
|
||||
[Token(Token = "0x600CF6E")]
|
||||
[Address(RVA = "0x2FF3E60", Offset = "0x2FF2E60", VA = "0x182FF3E60")]
|
||||
public static RevReqContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF6E)
|
||||
|
||||
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: 0x0600CF6F RID: 53103 RVA: 0x002F2EC0 File Offset: 0x002F10C0
|
||||
[Token(Token = "0x600CF6F")]
|
||||
[Address(RVA = "0x2FF4160", Offset = "0x2FF3160", VA = "0x182FF4160")]
|
||||
public RevReqContent(params RevDetails[] revDetails)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(revDetails);
|
||||
this.content = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CF70 RID: 53104 RVA: 0x002F2EE4 File Offset: 0x002F10E4
|
||||
[Token(Token = "0x600CF70")]
|
||||
[Address(RVA = "0x2FF4050", Offset = "0x2FF3050", VA = "0x182FF4050", 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: 0x0600CF71 RID: 53105 RVA: 0x002F2F30 File Offset: 0x002F1130
|
||||
[Token(Token = "0x600CF71")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CF71)
|
||||
|
||||
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: 0x04008371 RID: 33649
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008371")]
|
||||
private readonly Asn1Sequence content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user