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: 0x02001FBE RID: 8126
|
|
[Token(Token = "0x2001FBE")]
|
|
public class SigningCertificateV2 : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CB6B RID: 52075 RVA: 0x002E3398 File Offset: 0x002E1598
|
|
[Token(Token = "0x600CB6B")]
|
|
[Address(RVA = "0x2EBBC50", Offset = "0x2EBAC50", VA = "0x182EBBC50")]
|
|
public static SigningCertificateV2 GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CB6B)
|
|
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600CB6C RID: 52076 RVA: 0x002E33EC File Offset: 0x002E15EC
|
|
[Token(Token = "0x600CB6C")]
|
|
[Address(RVA = "0x2EBC210", Offset = "0x2EBB210", VA = "0x182EBC210")]
|
|
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: 0x0600CB6D RID: 52077 RVA: 0x002E342C File Offset: 0x002E162C
|
|
[Token(Token = "0x600CB6D")]
|
|
[Address(RVA = "0x2EBC1A0", Offset = "0x2EBB1A0", VA = "0x182EBC1A0")]
|
|
public SigningCertificateV2(EssCertIDv2 cert)
|
|
{
|
|
DerSequence derSequence = new DerSequence(cert);
|
|
this.certs = derSequence;
|
|
}
|
|
|
|
// Token: 0x0600CB6E RID: 52078 RVA: 0x002E3450 File Offset: 0x002E1650
|
|
[Token(Token = "0x600CB6E")]
|
|
[Address(RVA = "0x2EBC3B0", Offset = "0x2EBB3B0", VA = "0x182EBC3B0")]
|
|
public SigningCertificateV2(EssCertIDv2[] certs)
|
|
{
|
|
DerSequence derSequence = new DerSequence(certs);
|
|
this.certs = derSequence;
|
|
}
|
|
|
|
// Token: 0x0600CB6F RID: 52079 RVA: 0x002E3474 File Offset: 0x002E1674
|
|
[Token(Token = "0x600CB6F")]
|
|
[Address(RVA = "0x2EBC100", Offset = "0x2EBB100", VA = "0x182EBC100")]
|
|
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: 0x0600CB70 RID: 52080 RVA: 0x002E34A8 File Offset: 0x002E16A8
|
|
[Token(Token = "0x600CB70")]
|
|
[Address(RVA = "0x2EBBB10", Offset = "0x2EBAB10", VA = "0x182EBBB10")]
|
|
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: 0x0600CB71 RID: 52081 RVA: 0x002E3504 File Offset: 0x002E1704
|
|
[Token(Token = "0x600CB71")]
|
|
[Address(RVA = "0x2EBBE50", Offset = "0x2EBAE50", VA = "0x182EBBE50")]
|
|
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: 0x0600CB72 RID: 52082 RVA: 0x002E3560 File Offset: 0x002E1760
|
|
[Token(Token = "0x600CB72")]
|
|
[Address(RVA = "0x2EBBF90", Offset = "0x2EBAF90", VA = "0x182EBBF90", 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: 0x04008125 RID: 33061
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008125")]
|
|
private readonly Asn1Sequence certs;
|
|
|
|
// Token: 0x04008126 RID: 33062
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008126")]
|
|
private readonly Asn1Sequence policies;
|
|
}
|
|
}
|