scripts
This commit is contained in:
+155
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
||||
{
|
||||
// Token: 0x02001900 RID: 6400
|
||||
[Token(Token = "0x2001900")]
|
||||
[StructLayout(3)]
|
||||
public class SigningCertificate : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600ABBD RID: 43965 RVA: 0x00282470 File Offset: 0x00280670
|
||||
[Token(Token = "0x600ABBD")]
|
||||
[Address(RVA = "0x1DFB360", Offset = "0x1DF9D60", VA = "0x181DFB360")]
|
||||
public static SigningCertificate GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600ABBD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.SigningCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.SigningCertificate::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 'SigningCertificate' 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: 0x0600ABBE RID: 43966 RVA: 0x002824D8 File Offset: 0x002806D8
|
||||
[Token(Token = "0x600ABBE")]
|
||||
[Address(RVA = "0x1DFB920", Offset = "0x1DFA320", VA = "0x181DFB920")]
|
||||
public SigningCertificate(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: 0x0600ABBF RID: 43967 RVA: 0x00282518 File Offset: 0x00280718
|
||||
[Token(Token = "0x600ABBF")]
|
||||
[Address(RVA = "0x1DFBA70", Offset = "0x1DFA470", VA = "0x181DFBA70")]
|
||||
public SigningCertificate(EssCertID essCertID)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(essCertID);
|
||||
this.certs = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600ABC0 RID: 43968 RVA: 0x0028253C File Offset: 0x0028073C
|
||||
[Token(Token = "0x600ABC0")]
|
||||
[Address(RVA = "0x1DFB230", Offset = "0x1DF9C30", VA = "0x181DFB230")]
|
||||
public EssCertID[] GetCerts()
|
||||
{
|
||||
Asn1Sequence asn1Sequence = this.certs;
|
||||
Asn1Encodable asn1Encodable;
|
||||
EssCertID[] array = new EssCertID[asn1Encodable];
|
||||
int num = 0;
|
||||
Asn1Sequence asn1Sequence2 = this.certs;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (num != asn1Encodable2)
|
||||
{
|
||||
Asn1SequenceParser parser = this.certs.Parser;
|
||||
EssCertID essCertID;
|
||||
if (essCertID != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = essCertID;
|
||||
Asn1Sequence asn1Sequence3 = this.certs;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600ABC1 RID: 43969 RVA: 0x00282594 File Offset: 0x00280794
|
||||
[Token(Token = "0x600ABC1")]
|
||||
[Address(RVA = "0x1DFB670", Offset = "0x1DFA070", VA = "0x181DFB670")]
|
||||
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: 0x0600ABC2 RID: 43970 RVA: 0x002825F0 File Offset: 0x002807F0
|
||||
[Token(Token = "0x600ABC2")]
|
||||
[Address(RVA = "0x1DFB7B0", Offset = "0x1DFA1B0", VA = "0x181DFB7B0", 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: 0x04007127 RID: 28967
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007127")]
|
||||
private Asn1Sequence certs;
|
||||
|
||||
// Token: 0x04007128 RID: 28968
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007128")]
|
||||
private Asn1Sequence policies;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user