168 lines
9.5 KiB
C#
168 lines
9.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
|
{
|
|
// Token: 0x02001F86 RID: 8070
|
|
[Token(Token = "0x2001F86")]
|
|
public class OcspRequest : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CA28 RID: 51752 RVA: 0x002DD8E4 File Offset: 0x002DBAE4
|
|
[Token(Token = "0x600CA28")]
|
|
[Address(RVA = "0x2F85740", Offset = "0x2F84740", VA = "0x182F85740")]
|
|
public static OcspRequest GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
return OcspRequest.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
|
}
|
|
|
|
// Token: 0x0600CA29 RID: 51753 RVA: 0x002DD900 File Offset: 0x002DBB00
|
|
[Token(Token = "0x600CA29")]
|
|
[Address(RVA = "0x2F85760", Offset = "0x2F84760", VA = "0x182F85760")]
|
|
public static OcspRequest GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA29)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.OcspRequest BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.OcspRequest::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3D:
|
|
stloc:string(var_11_43, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_12_5B, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_11_43)), ldstr:string("obj")))
|
|
}
|
|
|
|
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: 0x0600CA2A RID: 51754 RVA: 0x002DD96C File Offset: 0x002DBB6C
|
|
[Token(Token = "0x600CA2A")]
|
|
[Address(RVA = "0x2F85C00", Offset = "0x2F84C00", VA = "0x182F85C00")]
|
|
public OcspRequest(TbsRequest tbsRequest, Signature optionalSignature)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA2A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.OcspRequest::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.TbsRequest,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.Signature)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_19:
|
|
stloc:ArgumentNullException(var_0_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("tbsRequest")))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x0600CA2B RID: 51755 RVA: 0x002DD99C File Offset: 0x002DBB9C
|
|
[Token(Token = "0x600CA2B")]
|
|
[Address(RVA = "0x2F85C90", Offset = "0x2F84C90", VA = "0x182F85C90")]
|
|
private OcspRequest(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser2;
|
|
do
|
|
{
|
|
base..ctor();
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
TbsRequest tbsRequest;
|
|
this.tbsRequest = tbsRequest;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable != (ulong)2L)
|
|
{
|
|
return;
|
|
}
|
|
parser2 = seq.Parser;
|
|
if (parser2 == 0)
|
|
{
|
|
}
|
|
}
|
|
while (parser2 == 0);
|
|
Asn1Sequence asn1Sequence;
|
|
Signature instance = Signature.GetInstance(asn1Sequence);
|
|
this.optionalSignature = instance;
|
|
}
|
|
|
|
// Token: 0x17001F88 RID: 8072
|
|
// (get) Token: 0x0600CA2C RID: 51756 RVA: 0x002DD9EC File Offset: 0x002DBBEC
|
|
[Token(Token = "0x17001F88")]
|
|
public TbsRequest TbsRequest
|
|
{
|
|
[Token(Token = "0x600CA2C")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.tbsRequest;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F89 RID: 8073
|
|
// (get) Token: 0x0600CA2D RID: 51757 RVA: 0x002DDA00 File Offset: 0x002DBC00
|
|
[Token(Token = "0x17001F89")]
|
|
public Signature OptionalSignature
|
|
{
|
|
[Token(Token = "0x600CA2D")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.optionalSignature;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CA2E RID: 51758 RVA: 0x002DDA14 File Offset: 0x002DBC14
|
|
[Token(Token = "0x600CA2E")]
|
|
[Address(RVA = "0x2F85A60", Offset = "0x2F84A60", VA = "0x182F85A60", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
TbsRequest tbsRequest = this.tbsRequest;
|
|
if (tbsRequest != 0)
|
|
{
|
|
}
|
|
array[0] = tbsRequest;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.optionalSignature != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Signature signature = this.optionalSignature;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, signature);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007FB8 RID: 32696
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007FB8")]
|
|
private readonly TbsRequest tbsRequest;
|
|
|
|
// Token: 0x04007FB9 RID: 32697
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007FB9")]
|
|
private readonly Signature optionalSignature;
|
|
}
|
|
}
|