oh dear
This commit is contained in:
+154
@@ -0,0 +1,154 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DFC RID: 7676
|
||||
[Token(Token = "0x2001DFC")]
|
||||
public class CertificatePair : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C232 RID: 49714 RVA: 0x002C3060 File Offset: 0x002C1260
|
||||
[Token(Token = "0x600C232")]
|
||||
[Address(RVA = "0x27243F0", Offset = "0x27231F0", VA = "0x1827243F0")]
|
||||
public static CertificatePair GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C232)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePair BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.CertificatePair::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), ldstr:string("obj")))
|
||||
}
|
||||
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
||||
--- End of inner exception stack trace ---
|
||||
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
||||
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600C233 RID: 49715 RVA: 0x002C30B4 File Offset: 0x002C12B4
|
||||
[Token(Token = "0x600C233")]
|
||||
[Address(RVA = "0x27247F0", Offset = "0x27235F0", VA = "0x1827247F0")]
|
||||
private CertificatePair(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
Asn1Encodable asn1Encodable;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable != (ulong)1L && asn1Encodable2 != (ulong)2L)
|
||||
{
|
||||
goto IL_52;
|
||||
}
|
||||
X509CertificateStructure instance2;
|
||||
if (seq.GetEnumerator() != 0)
|
||||
{
|
||||
Asn1TaggedObject asn1TaggedObject;
|
||||
if (asn1TaggedObject.tagNo != 0)
|
||||
{
|
||||
X509CertificateStructure instance = X509CertificateStructure.GetInstance(asn1TaggedObject, true);
|
||||
this.reverse = instance;
|
||||
}
|
||||
instance2 = X509CertificateStructure.GetInstance(asn1TaggedObject, true);
|
||||
this.forward = instance2;
|
||||
}
|
||||
if (instance2 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_52:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C234 RID: 49716 RVA: 0x002C3164 File Offset: 0x002C1364
|
||||
[Token(Token = "0x600C234")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public CertificatePair(X509CertificateStructure forward, X509CertificateStructure reverse)
|
||||
{
|
||||
this.forward = forward;
|
||||
this.reverse = reverse;
|
||||
}
|
||||
|
||||
// Token: 0x0600C235 RID: 49717 RVA: 0x002C3188 File Offset: 0x002C1388
|
||||
[Token(Token = "0x600C235")]
|
||||
[Address(RVA = "0x27245F0", Offset = "0x27233F0", VA = "0x1827245F0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.forward != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
X509CertificateStructure x509CertificateStructure = this.forward;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num, x509CertificateStructure);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.reverse != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
X509CertificateStructure x509CertificateStructure2 = this.reverse;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(1, x509CertificateStructure2);
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001DFE RID: 7678
|
||||
// (get) Token: 0x0600C236 RID: 49718 RVA: 0x002C3218 File Offset: 0x002C1418
|
||||
[Token(Token = "0x17001DFE")]
|
||||
public X509CertificateStructure Forward
|
||||
{
|
||||
[Token(Token = "0x600C236")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.forward;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001DFF RID: 7679
|
||||
// (get) Token: 0x0600C237 RID: 49719 RVA: 0x002C322C File Offset: 0x002C142C
|
||||
[Token(Token = "0x17001DFF")]
|
||||
public X509CertificateStructure Reverse
|
||||
{
|
||||
[Token(Token = "0x600C237")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.reverse;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04007A7F RID: 31359
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A7F")]
|
||||
private X509CertificateStructure forward;
|
||||
|
||||
// Token: 0x04007A80 RID: 31360
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A80")]
|
||||
private X509CertificateStructure reverse;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user