171 lines
7.3 KiB
C#
171 lines
7.3 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
|
{
|
|
// Token: 0x02001EDE RID: 7902
|
|
[Token(Token = "0x2001EDE")]
|
|
public class SigningCertificateV2 : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C79D RID: 51101 RVA: 0x002DAB24 File Offset: 0x002D8D24
|
|
[Token(Token = "0x600C79D")]
|
|
[Address(RVA = "0x284B340", Offset = "0x284A140", VA = "0x18284B340")]
|
|
public static SigningCertificateV2 GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C79D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.SigningCertificateV2 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.SigningCertificateV2::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(o)))
|
|
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'SigningCertificateV2' factory : "), ldloc:string(var_6_2C), ldstr:string("."))))
|
|
}
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600C79E RID: 51102 RVA: 0x002DAB78 File Offset: 0x002D8D78
|
|
[Token(Token = "0x600C79E")]
|
|
[Address(RVA = "0x284B900", Offset = "0x284A700", VA = "0x18284B900")]
|
|
private SigningCertificateV2(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
Asn1Sequence asn1Sequence;
|
|
this.certs = asn1Sequence;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)1L)
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
Asn1Sequence asn1Sequence2;
|
|
this.policies = asn1Sequence2;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C79F RID: 51103 RVA: 0x002DABB8 File Offset: 0x002D8DB8
|
|
[Token(Token = "0x600C79F")]
|
|
[Address(RVA = "0x284B890", Offset = "0x284A690", VA = "0x18284B890")]
|
|
public SigningCertificateV2(EssCertIDv2 cert)
|
|
{
|
|
DerSequence derSequence = new DerSequence(cert);
|
|
this.certs = derSequence;
|
|
}
|
|
|
|
// Token: 0x0600C7A0 RID: 51104 RVA: 0x002DABDC File Offset: 0x002D8DDC
|
|
[Token(Token = "0x600C7A0")]
|
|
[Address(RVA = "0x284BAA0", Offset = "0x284A8A0", VA = "0x18284BAA0")]
|
|
public SigningCertificateV2(EssCertIDv2[] certs)
|
|
{
|
|
DerSequence derSequence = new DerSequence(certs);
|
|
this.certs = derSequence;
|
|
}
|
|
|
|
// Token: 0x0600C7A1 RID: 51105 RVA: 0x002DAC00 File Offset: 0x002D8E00
|
|
[Token(Token = "0x600C7A1")]
|
|
[Address(RVA = "0x284B7F0", Offset = "0x284A5F0", VA = "0x18284B7F0")]
|
|
public SigningCertificateV2(EssCertIDv2[] certs, PolicyInformation[] policies)
|
|
{
|
|
DerSequence derSequence = new DerSequence(certs);
|
|
this.certs = derSequence;
|
|
if (policies != 0)
|
|
{
|
|
DerSequence derSequence2 = new DerSequence(policies);
|
|
this.policies = derSequence2;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C7A2 RID: 51106 RVA: 0x002DAC34 File Offset: 0x002D8E34
|
|
[Token(Token = "0x600C7A2")]
|
|
[Address(RVA = "0x284B200", Offset = "0x284A000", VA = "0x18284B200")]
|
|
public EssCertIDv2[] GetCerts()
|
|
{
|
|
Asn1Sequence asn1Sequence = this.certs;
|
|
Asn1Encodable asn1Encodable;
|
|
EssCertIDv2[] array = new EssCertIDv2[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Sequence asn1Sequence2 = this.certs;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (num != asn1Encodable2)
|
|
{
|
|
Asn1SequenceParser parser = this.certs.Parser;
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0600C7A3 RID: 51107 RVA: 0x002DAC90 File Offset: 0x002D8E90
|
|
[Token(Token = "0x600C7A3")]
|
|
[Address(RVA = "0x284B540", Offset = "0x284A340", VA = "0x18284B540")]
|
|
public PolicyInformation[] GetPolicies()
|
|
{
|
|
if (this.policies != 0)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
PolicyInformation[] array = new PolicyInformation[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Sequence asn1Sequence = this.policies;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (num != asn1Encodable2)
|
|
{
|
|
Asn1SequenceParser parser = this.policies.Parser;
|
|
PolicyInformation policyInformation;
|
|
if (policyInformation != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = policyInformation;
|
|
Asn1Sequence asn1Sequence2 = this.policies;
|
|
}
|
|
return array;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C7A4 RID: 51108 RVA: 0x002DACEC File Offset: 0x002D8EEC
|
|
[Token(Token = "0x600C7A4")]
|
|
[Address(RVA = "0x284B680", Offset = "0x284A480", VA = "0x18284B680", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence = this.certs;
|
|
if (asn1Sequence != 0)
|
|
{
|
|
}
|
|
array[0] = asn1Sequence;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.policies != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence2 = this.policies;
|
|
if (asn1Sequence2 != 0)
|
|
{
|
|
}
|
|
array2[0] = asn1Sequence2;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007F6C RID: 32620
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007F6C")]
|
|
private readonly Asn1Sequence certs;
|
|
|
|
// Token: 0x04007F6D RID: 32621
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007F6D")]
|
|
private readonly Asn1Sequence policies;
|
|
}
|
|
}
|