scripts
This commit is contained in:
+159
@@ -0,0 +1,159 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x0200181F RID: 6175
|
||||
[Token(Token = "0x200181F")]
|
||||
[StructLayout(3)]
|
||||
public class CertificatePair : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A658 RID: 42584 RVA: 0x0026AA90 File Offset: 0x00268C90
|
||||
[Token(Token = "0x600A658")]
|
||||
[Address(RVA = "0x2B00130", Offset = "0x2AFEB30", VA = "0x182B00130")]
|
||||
public static CertificatePair GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A658)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePair BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePair::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600A659 RID: 42585 RVA: 0x0026AAE4 File Offset: 0x00268CE4
|
||||
[Token(Token = "0x600A659")]
|
||||
[Address(RVA = "0x2B00530", Offset = "0x2AFEF30", VA = "0x182B00530")]
|
||||
private CertificatePair(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
Asn1Encodable asn1Encodable;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable != (ulong)1L && asn1Encodable2 != (ulong)2L)
|
||||
{
|
||||
goto IL_56;
|
||||
}
|
||||
X509CertificateStructure instance2;
|
||||
if (seq.GetEnumerator() != 0)
|
||||
{
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
if (asn1TaggedObject.tagNo != 0)
|
||||
{
|
||||
X509CertificateStructure instance = X509CertificateStructure.GetInstance(asn1TaggedObject, true);
|
||||
this.reverse = instance;
|
||||
}
|
||||
instance2 = X509CertificateStructure.GetInstance(asn1TaggedObject, true);
|
||||
this.forward = instance2;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_56:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A65A RID: 42586 RVA: 0x0026AB98 File Offset: 0x00268D98
|
||||
[Token(Token = "0x600A65A")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public CertificatePair(X509CertificateStructure forward, X509CertificateStructure reverse)
|
||||
{
|
||||
this.forward = forward;
|
||||
this.reverse = reverse;
|
||||
}
|
||||
|
||||
// Token: 0x0600A65B RID: 42587 RVA: 0x0026ABBC File Offset: 0x00268DBC
|
||||
[Token(Token = "0x600A65B")]
|
||||
[Address(RVA = "0x2B00330", Offset = "0x2AFED30", VA = "0x182B00330", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.forward != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
X509CertificateStructure x509CertificateStructure = this.forward;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num, x509CertificateStructure);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.reverse != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
X509CertificateStructure x509CertificateStructure2 = this.reverse;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(1, x509CertificateStructure2);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170019FD RID: 6653
|
||||
// (get) Token: 0x0600A65C RID: 42588 RVA: 0x0026AC4C File Offset: 0x00268E4C
|
||||
[Token(Token = "0x170019FD")]
|
||||
public X509CertificateStructure Forward
|
||||
{
|
||||
[Token(Token = "0x600A65C")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.forward;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170019FE RID: 6654
|
||||
// (get) Token: 0x0600A65D RID: 42589 RVA: 0x0026AC60 File Offset: 0x00268E60
|
||||
[Token(Token = "0x170019FE")]
|
||||
public X509CertificateStructure Reverse
|
||||
{
|
||||
[Token(Token = "0x600A65D")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.reverse;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04006C3C RID: 27708
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006C3C")]
|
||||
private X509CertificateStructure forward;
|
||||
|
||||
// Token: 0x04006C3D RID: 27709
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006C3D")]
|
||||
private X509CertificateStructure reverse;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user