Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Tsp/TimeStampResp.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

128 lines
5.9 KiB
C#

using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp
{
// Token: 0x02001F28 RID: 7976
[Token(Token = "0x2001F28")]
public class TimeStampResp : Asn1Encodable
{
// Token: 0x0600C860 RID: 51296 RVA: 0x002D64E8 File Offset: 0x002D46E8
[Token(Token = "0x600C860")]
[Address(RVA = "0x2D954A0", Offset = "0x2D944A0", VA = "0x182D954A0")]
public static TimeStampResp GetInstance(object o)
{
/*
An exception occurred when decompiling this method (0600C860)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp.TimeStampResp BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp.TimeStampResp::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_52, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in 'TimeStampResp' factory: "), ldloc:string(var_9_3F))))
}
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: 0x0600C861 RID: 51297 RVA: 0x002D6548 File Offset: 0x002D4748
[Token(Token = "0x600C861")]
[Address(RVA = "0x2D95860", Offset = "0x2D94860", VA = "0x182D95860")]
private TimeStampResp(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
PkiStatusInfo pkiStatusInfo;
this.pkiStatusInfo = pkiStatusInfo;
Asn1Encodable asn1Encodable;
if (asn1Encodable > (ulong)1L)
{
Asn1SequenceParser parser2 = seq.Parser;
ContentInfo contentInfo;
this.timeStampToken = contentInfo;
}
}
// Token: 0x0600C862 RID: 51298 RVA: 0x002D6584 File Offset: 0x002D4784
[Token(Token = "0x600C862")]
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
public TimeStampResp(PkiStatusInfo pkiStatusInfo, ContentInfo timeStampToken)
{
this.pkiStatusInfo = pkiStatusInfo;
this.timeStampToken = timeStampToken;
}
// Token: 0x17001F2D RID: 7981
// (get) Token: 0x0600C863 RID: 51299 RVA: 0x002D65A8 File Offset: 0x002D47A8
[Token(Token = "0x17001F2D")]
public PkiStatusInfo Status
{
[Token(Token = "0x600C863")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.pkiStatusInfo;
}
}
// Token: 0x17001F2E RID: 7982
// (get) Token: 0x0600C864 RID: 51300 RVA: 0x002D65BC File Offset: 0x002D47BC
[Token(Token = "0x17001F2E")]
public ContentInfo TimeStampToken
{
[Token(Token = "0x600C864")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.timeStampToken;
}
}
// Token: 0x0600C865 RID: 51301 RVA: 0x002D65D0 File Offset: 0x002D47D0
[Token(Token = "0x600C865")]
[Address(RVA = "0x2D956F0", Offset = "0x2D946F0", VA = "0x182D956F0", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1Encodable[] array = new Asn1Encodable[1];
PkiStatusInfo pkiStatusInfo = this.pkiStatusInfo;
if (pkiStatusInfo != 0)
{
}
array[0] = pkiStatusInfo;
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
if (this.timeStampToken != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
ContentInfo contentInfo = this.timeStampToken;
if (contentInfo != 0)
{
}
array2[0] = contentInfo;
asn1EncodableVector.Add(array2);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x04007DDA RID: 32218
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007DDA")]
private readonly PkiStatusInfo pkiStatusInfo;
// Token: 0x04007DDB RID: 32219
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007DDB")]
private readonly ContentInfo timeStampToken;
}
}