130 lines
6.0 KiB
C#
130 lines
6.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp
|
|
{
|
|
// Token: 0x0200186B RID: 6251
|
|
[Token(Token = "0x200186B")]
|
|
[StructLayout(3)]
|
|
public class TimeStampResp : Asn1Encodable
|
|
{
|
|
// Token: 0x0600A8B8 RID: 43192 RVA: 0x00275764 File Offset: 0x00273964
|
|
[Token(Token = "0x600A8B8")]
|
|
[Address(RVA = "0x2638780", Offset = "0x2637180", VA = "0x182638780")]
|
|
public static TimeStampResp GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A8B8)
|
|
|
|
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: 0x0600A8B9 RID: 43193 RVA: 0x002757C4 File Offset: 0x002739C4
|
|
[Token(Token = "0x600A8B9")]
|
|
[Address(RVA = "0x2638B40", Offset = "0x2637540", VA = "0x182638B40")]
|
|
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: 0x0600A8BA RID: 43194 RVA: 0x00275800 File Offset: 0x00273A00
|
|
[Token(Token = "0x600A8BA")]
|
|
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
|
public TimeStampResp(PkiStatusInfo pkiStatusInfo, ContentInfo timeStampToken)
|
|
{
|
|
this.pkiStatusInfo = pkiStatusInfo;
|
|
this.timeStampToken = timeStampToken;
|
|
}
|
|
|
|
// Token: 0x17001A8F RID: 6799
|
|
// (get) Token: 0x0600A8BB RID: 43195 RVA: 0x00275824 File Offset: 0x00273A24
|
|
[Token(Token = "0x17001A8F")]
|
|
public PkiStatusInfo Status
|
|
{
|
|
[Token(Token = "0x600A8BB")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.pkiStatusInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A90 RID: 6800
|
|
// (get) Token: 0x0600A8BC RID: 43196 RVA: 0x00275838 File Offset: 0x00273A38
|
|
[Token(Token = "0x17001A90")]
|
|
public ContentInfo TimeStampToken
|
|
{
|
|
[Token(Token = "0x600A8BC")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.timeStampToken;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A8BD RID: 43197 RVA: 0x0027584C File Offset: 0x00273A4C
|
|
[Token(Token = "0x600A8BD")]
|
|
[Address(RVA = "0x26389D0", Offset = "0x26373D0", VA = "0x1826389D0", 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: 0x04006DDE RID: 28126
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006DDE")]
|
|
private readonly PkiStatusInfo pkiStatusInfo;
|
|
|
|
// Token: 0x04006DDF RID: 28127
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006DDF")]
|
|
private readonly ContentInfo timeStampToken;
|
|
}
|
|
}
|