181 lines
11 KiB
C#
181 lines
11 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x0200201F RID: 8223
|
|
[Token(Token = "0x200201F")]
|
|
public class SignedDataParser
|
|
{
|
|
// Token: 0x0600CE24 RID: 52772 RVA: 0x002EDFC0 File Offset: 0x002EC1C0
|
|
[Token(Token = "0x600CE24")]
|
|
[Address(RVA = "0x23BAC10", Offset = "0x23B9C10", VA = "0x1823BAC10")]
|
|
public static SignedDataParser GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE24)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedDataParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedDataParser::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_24:
|
|
stloc:IOException(var_6_35, newobj:IOException(IOException::.ctor, call:string(string::Concat, ldstr:string("unknown object encountered: "), ldloc:string(var_5))))
|
|
}
|
|
|
|
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: 0x0600CE25 RID: 52773 RVA: 0x002EE004 File Offset: 0x002EC204
|
|
[Token(Token = "0x600CE25")]
|
|
[Address(RVA = "0x23BAF00", Offset = "0x23B9F00", VA = "0x1823BAF00")]
|
|
public SignedDataParser(Asn1SequenceParser seq)
|
|
{
|
|
this._seq = seq;
|
|
}
|
|
|
|
// Token: 0x1700209E RID: 8350
|
|
// (get) Token: 0x0600CE26 RID: 52774 RVA: 0x002EE034 File Offset: 0x002EC234
|
|
[Token(Token = "0x1700209E")]
|
|
public DerInteger Version
|
|
{
|
|
[Token(Token = "0x600CE26")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this._version;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CE27 RID: 52775 RVA: 0x002EE048 File Offset: 0x002EC248
|
|
[Token(Token = "0x600CE27")]
|
|
[Address(RVA = "0x23BAAE0", Offset = "0x23B9AE0", VA = "0x1823BAAE0")]
|
|
public Asn1SetParser GetDigestAlgorithms()
|
|
{
|
|
Asn1SequenceParser seq = this._seq;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CE28 RID: 52776 RVA: 0x002EE064 File Offset: 0x002EC264
|
|
[Token(Token = "0x600CE28")]
|
|
[Address(RVA = "0x23BAB60", Offset = "0x23B9B60", VA = "0x1823BAB60")]
|
|
public ContentInfoParser GetEncapContentInfo()
|
|
{
|
|
ContentInfoParser contentInfoParser;
|
|
do
|
|
{
|
|
Asn1SequenceParser seq = this._seq;
|
|
if (this == 0)
|
|
{
|
|
}
|
|
}
|
|
while (contentInfoParser == 0);
|
|
return contentInfoParser;
|
|
}
|
|
|
|
// Token: 0x0600CE29 RID: 52777 RVA: 0x002EE088 File Offset: 0x002EC288
|
|
[Token(Token = "0x600CE29")]
|
|
[Address(RVA = "0x23BA760", Offset = "0x23B9760", VA = "0x1823BA760")]
|
|
public Asn1SetParser GetCertificates()
|
|
{
|
|
object nextObject2;
|
|
int num;
|
|
do
|
|
{
|
|
Asn1SequenceParser seq = this._seq;
|
|
this._certsCalled = true;
|
|
object nextObject = this._nextObject;
|
|
nextObject2 = this._nextObject;
|
|
num = 0;
|
|
this._nextObject = num;
|
|
}
|
|
while (nextObject2 != 0 && num == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CE2A RID: 52778 RVA: 0x002EE0D0 File Offset: 0x002EC2D0
|
|
[Token(Token = "0x600CE2A")]
|
|
[Address(RVA = "0x23BA900", Offset = "0x23B9900", VA = "0x1823BA900")]
|
|
public Asn1SetParser GetCrls()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE2A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedDataParser::GetCrls()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_68:
|
|
stloc:IOException(var_7_72, newobj:IOException(IOException::.ctor, ldstr:string("GetCerts() has not been called.")))
|
|
}
|
|
|
|
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: 0x0600CE2B RID: 52779 RVA: 0x002EE150 File Offset: 0x002EC350
|
|
[Token(Token = "0x600CE2B")]
|
|
[Address(RVA = "0x23BAE30", Offset = "0x23B9E30", VA = "0x1823BAE30")]
|
|
public Asn1SetParser GetSignerInfos()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE2B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1SetParser BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.SignedDataParser::GetSignerInfos()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2C:
|
|
stloc:IOException(var_2_36, newobj:IOException(IOException::.ctor, ldstr:string("GetCerts() and/or GetCrls() has not been called.")))
|
|
}
|
|
|
|
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: 0x0400828E RID: 33422
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400828E")]
|
|
private Asn1SequenceParser _seq;
|
|
|
|
// Token: 0x0400828F RID: 33423
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400828F")]
|
|
private DerInteger _version;
|
|
|
|
// Token: 0x04008290 RID: 33424
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008290")]
|
|
private object _nextObject;
|
|
|
|
// Token: 0x04008291 RID: 33425
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4008291")]
|
|
private bool _certsCalled;
|
|
|
|
// Token: 0x04008292 RID: 33426
|
|
[FieldOffset(Offset = "0x29")]
|
|
[Token(Token = "0x4008292")]
|
|
private bool _crlsCalled;
|
|
}
|
|
}
|