155 lines
6.6 KiB
C#
155 lines
6.6 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
|
{
|
|
// Token: 0x02001EDC RID: 7900
|
|
[Token(Token = "0x2001EDC")]
|
|
[Obsolete]
|
|
public class OtherSigningCertificate : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C791 RID: 51089 RVA: 0x002DA74C File Offset: 0x002D894C
|
|
[Token(Token = "0x600C791")]
|
|
[Address(RVA = "0x28445F0", Offset = "0x28433F0", VA = "0x1828445F0")]
|
|
public static OtherSigningCertificate GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C791)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherSigningCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherSigningCertificate::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_39:
|
|
stloc:string(var_9_3F, call:string(Platform::GetTypeName, ldloc:object(o)))
|
|
stloc:ArgumentException(var_10_57, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'OtherSigningCertificate' factory : "), ldloc:string(var_9_3F), 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: 0x0600C792 RID: 51090 RVA: 0x002DA7B4 File Offset: 0x002D89B4
|
|
[Token(Token = "0x600C792")]
|
|
[Address(RVA = "0x2844FD0", Offset = "0x2843DD0", VA = "0x182844FD0")]
|
|
public OtherSigningCertificate(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: 0x0600C793 RID: 51091 RVA: 0x002DA7F4 File Offset: 0x002D89F4
|
|
[Token(Token = "0x600C793")]
|
|
[Address(RVA = "0x2844E80", Offset = "0x2843C80", VA = "0x182844E80")]
|
|
public OtherSigningCertificate(OtherCertID otherCertID)
|
|
{
|
|
DerSequence derSequence = new DerSequence(otherCertID);
|
|
this.certs = derSequence;
|
|
}
|
|
|
|
// Token: 0x0600C794 RID: 51092 RVA: 0x002DA818 File Offset: 0x002D8A18
|
|
[Token(Token = "0x600C794")]
|
|
[Address(RVA = "0x2844170", Offset = "0x2842F70", VA = "0x182844170")]
|
|
public OtherCertID[] GetCerts()
|
|
{
|
|
Asn1Sequence asn1Sequence = this.certs;
|
|
Asn1Encodable asn1Encodable;
|
|
OtherCertID[] array = new OtherCertID[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Sequence asn1Sequence2 = this.certs;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (num != asn1Encodable2)
|
|
{
|
|
Asn1SequenceParser parser = this.certs.Parser;
|
|
OtherCertID otherCertID;
|
|
if (otherCertID != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = otherCertID;
|
|
Asn1Sequence asn1Sequence3 = this.certs;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0600C795 RID: 51093 RVA: 0x002DA870 File Offset: 0x002D8A70
|
|
[Token(Token = "0x600C795")]
|
|
[Address(RVA = "0x2844900", Offset = "0x2843700", VA = "0x182844900")]
|
|
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: 0x0600C796 RID: 51094 RVA: 0x002DA8CC File Offset: 0x002D8ACC
|
|
[Token(Token = "0x600C796")]
|
|
[Address(RVA = "0x2844BA0", Offset = "0x28439A0", VA = "0x182844BA0", 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: 0x04007F68 RID: 32616
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007F68")]
|
|
private Asn1Sequence certs;
|
|
|
|
// Token: 0x04007F69 RID: 32617
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007F69")]
|
|
private Asn1Sequence policies;
|
|
}
|
|
}
|