scripts
This commit is contained in:
+172
@@ -0,0 +1,172 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
||||
{
|
||||
// Token: 0x02001901 RID: 6401
|
||||
[Token(Token = "0x2001901")]
|
||||
[StructLayout(3)]
|
||||
public class SigningCertificateV2 : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ABC3 RID: 43971 RVA: 0x0028265C File Offset: 0x0028085C
|
||||
[Token(Token = "0x600ABC3")]
|
||||
[Address(RVA = "0x1DFAA60", Offset = "0x1DF9460", VA = "0x181DFAA60")]
|
||||
public static SigningCertificateV2 GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ABC3)
|
||||
|
||||
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: 0x0600ABC4 RID: 43972 RVA: 0x002826B0 File Offset: 0x002808B0
|
||||
[Token(Token = "0x600ABC4")]
|
||||
[Address(RVA = "0x1DFB020", Offset = "0x1DF9A20", VA = "0x181DFB020")]
|
||||
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: 0x0600ABC5 RID: 43973 RVA: 0x002826F0 File Offset: 0x002808F0
|
||||
[Token(Token = "0x600ABC5")]
|
||||
[Address(RVA = "0x1DFAFB0", Offset = "0x1DF99B0", VA = "0x181DFAFB0")]
|
||||
public SigningCertificateV2(EssCertIDv2 cert)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(cert);
|
||||
this.certs = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600ABC6 RID: 43974 RVA: 0x00282714 File Offset: 0x00280914
|
||||
[Token(Token = "0x600ABC6")]
|
||||
[Address(RVA = "0x1DFB1C0", Offset = "0x1DF9BC0", VA = "0x181DFB1C0")]
|
||||
public SigningCertificateV2(EssCertIDv2[] certs)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(certs);
|
||||
this.certs = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600ABC7 RID: 43975 RVA: 0x00282738 File Offset: 0x00280938
|
||||
[Token(Token = "0x600ABC7")]
|
||||
[Address(RVA = "0x1DFAF10", Offset = "0x1DF9910", VA = "0x181DFAF10")]
|
||||
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: 0x0600ABC8 RID: 43976 RVA: 0x0028276C File Offset: 0x0028096C
|
||||
[Token(Token = "0x600ABC8")]
|
||||
[Address(RVA = "0x1DFA920", Offset = "0x1DF9320", VA = "0x181DFA920")]
|
||||
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: 0x0600ABC9 RID: 43977 RVA: 0x002827C8 File Offset: 0x002809C8
|
||||
[Token(Token = "0x600ABC9")]
|
||||
[Address(RVA = "0x1DFAC60", Offset = "0x1DF9660", VA = "0x181DFAC60")]
|
||||
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: 0x0600ABCA RID: 43978 RVA: 0x00282824 File Offset: 0x00280A24
|
||||
[Token(Token = "0x600ABCA")]
|
||||
[Address(RVA = "0x1DFADA0", Offset = "0x1DF97A0", VA = "0x181DFADA0", 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: 0x04007129 RID: 28969
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007129")]
|
||||
private readonly Asn1Sequence certs;
|
||||
|
||||
// Token: 0x0400712A RID: 28970
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400712A")]
|
||||
private readonly Asn1Sequence policies;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user