155 lines
6.5 KiB
C#
155 lines
6.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001EDC RID: 7900
|
|
[Token(Token = "0x2001EDC")]
|
|
public class CertificatePair : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C600 RID: 50688 RVA: 0x002CB8BC File Offset: 0x002C9ABC
|
|
[Token(Token = "0x600C600")]
|
|
[Address(RVA = "0x2D88650", Offset = "0x2D87650", VA = "0x182D88650")]
|
|
public static CertificatePair GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C600)
|
|
|
|
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: 0x0600C601 RID: 50689 RVA: 0x002CB910 File Offset: 0x002C9B10
|
|
[Token(Token = "0x600C601")]
|
|
[Address(RVA = "0x2D88A50", Offset = "0x2D87A50", VA = "0x182D88A50")]
|
|
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: 0x0600C602 RID: 50690 RVA: 0x002CB9C0 File Offset: 0x002C9BC0
|
|
[Token(Token = "0x600C602")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public CertificatePair(X509CertificateStructure forward, X509CertificateStructure reverse)
|
|
{
|
|
this.forward = forward;
|
|
this.reverse = reverse;
|
|
}
|
|
|
|
// Token: 0x0600C603 RID: 50691 RVA: 0x002CB9E4 File Offset: 0x002C9BE4
|
|
[Token(Token = "0x600C603")]
|
|
[Address(RVA = "0x2D88850", Offset = "0x2D87850", VA = "0x182D88850", 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: 0x17001E9B RID: 7835
|
|
// (get) Token: 0x0600C604 RID: 50692 RVA: 0x002CBA74 File Offset: 0x002C9C74
|
|
[Token(Token = "0x17001E9B")]
|
|
public X509CertificateStructure Forward
|
|
{
|
|
[Token(Token = "0x600C604")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.forward;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E9C RID: 7836
|
|
// (get) Token: 0x0600C605 RID: 50693 RVA: 0x002CBA88 File Offset: 0x002C9C88
|
|
[Token(Token = "0x17001E9C")]
|
|
public X509CertificateStructure Reverse
|
|
{
|
|
[Token(Token = "0x600C605")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.reverse;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04007C38 RID: 31800
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007C38")]
|
|
private X509CertificateStructure forward;
|
|
|
|
// Token: 0x04007C39 RID: 31801
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007C39")]
|
|
private X509CertificateStructure reverse;
|
|
}
|
|
}
|