oh dear
This commit is contained in:
+153
@@ -0,0 +1,153 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
||||
{
|
||||
// Token: 0x02001EDD RID: 7901
|
||||
[Token(Token = "0x2001EDD")]
|
||||
public class SigningCertificate : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C797 RID: 51095 RVA: 0x002DA938 File Offset: 0x002D8B38
|
||||
[Token(Token = "0x600C797")]
|
||||
[Address(RVA = "0x284BC40", Offset = "0x284AA40", VA = "0x18284BC40")]
|
||||
public static SigningCertificate GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C797)
|
||||
|
||||
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: 0x0600C798 RID: 51096 RVA: 0x002DA9A0 File Offset: 0x002D8BA0
|
||||
[Token(Token = "0x600C798")]
|
||||
[Address(RVA = "0x284C200", Offset = "0x284B000", VA = "0x18284C200")]
|
||||
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: 0x0600C799 RID: 51097 RVA: 0x002DA9E0 File Offset: 0x002D8BE0
|
||||
[Token(Token = "0x600C799")]
|
||||
[Address(RVA = "0x284C350", Offset = "0x284B150", VA = "0x18284C350")]
|
||||
public SigningCertificate(EssCertID essCertID)
|
||||
{
|
||||
DerSequence derSequence = new DerSequence(essCertID);
|
||||
this.certs = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600C79A RID: 51098 RVA: 0x002DAA04 File Offset: 0x002D8C04
|
||||
[Token(Token = "0x600C79A")]
|
||||
[Address(RVA = "0x284BB10", Offset = "0x284A910", VA = "0x18284BB10")]
|
||||
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: 0x0600C79B RID: 51099 RVA: 0x002DAA5C File Offset: 0x002D8C5C
|
||||
[Token(Token = "0x600C79B")]
|
||||
[Address(RVA = "0x284BF50", Offset = "0x284AD50", VA = "0x18284BF50")]
|
||||
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: 0x0600C79C RID: 51100 RVA: 0x002DAAB8 File Offset: 0x002D8CB8
|
||||
[Token(Token = "0x600C79C")]
|
||||
[Address(RVA = "0x284C090", Offset = "0x284AE90", VA = "0x18284C090", 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: 0x04007F6A RID: 32618
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007F6A")]
|
||||
private Asn1Sequence certs;
|
||||
|
||||
// Token: 0x04007F6B RID: 32619
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007F6B")]
|
||||
private Asn1Sequence policies;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user