157 lines
6.7 KiB
C#
157 lines
6.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
|
{
|
|
// Token: 0x020018FF RID: 6399
|
|
[Token(Token = "0x20018FF")]
|
|
[Obsolete]
|
|
[StructLayout(3)]
|
|
public class OtherSigningCertificate : Asn1Encodable
|
|
{
|
|
// Token: 0x0600ABB7 RID: 43959 RVA: 0x00282284 File Offset: 0x00280484
|
|
[Token(Token = "0x600ABB7")]
|
|
[Address(RVA = "0x1DF5FF0", Offset = "0x1DF49F0", VA = "0x181DF5FF0")]
|
|
public static OtherSigningCertificate GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600ABB7)
|
|
|
|
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: 0x0600ABB8 RID: 43960 RVA: 0x002822EC File Offset: 0x002804EC
|
|
[Token(Token = "0x600ABB8")]
|
|
[Address(RVA = "0x1DF69D0", Offset = "0x1DF53D0", VA = "0x181DF69D0")]
|
|
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: 0x0600ABB9 RID: 43961 RVA: 0x0028232C File Offset: 0x0028052C
|
|
[Token(Token = "0x600ABB9")]
|
|
[Address(RVA = "0x1DF6880", Offset = "0x1DF5280", VA = "0x181DF6880")]
|
|
public OtherSigningCertificate(OtherCertID otherCertID)
|
|
{
|
|
DerSequence derSequence = new DerSequence(otherCertID);
|
|
this.certs = derSequence;
|
|
}
|
|
|
|
// Token: 0x0600ABBA RID: 43962 RVA: 0x00282350 File Offset: 0x00280550
|
|
[Token(Token = "0x600ABBA")]
|
|
[Address(RVA = "0x1DF5B70", Offset = "0x1DF4570", VA = "0x181DF5B70")]
|
|
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: 0x0600ABBB RID: 43963 RVA: 0x002823A8 File Offset: 0x002805A8
|
|
[Token(Token = "0x600ABBB")]
|
|
[Address(RVA = "0x1DF6300", Offset = "0x1DF4D00", VA = "0x181DF6300")]
|
|
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: 0x0600ABBC RID: 43964 RVA: 0x00282404 File Offset: 0x00280604
|
|
[Token(Token = "0x600ABBC")]
|
|
[Address(RVA = "0x1DF65A0", Offset = "0x1DF4FA0", VA = "0x181DF65A0", 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: 0x04007125 RID: 28965
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007125")]
|
|
private Asn1Sequence certs;
|
|
|
|
// Token: 0x04007126 RID: 28966
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007126")]
|
|
private Asn1Sequence policies;
|
|
}
|
|
}
|