m
This commit is contained in:
@@ -0,0 +1,162 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Tsp;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Cms;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Tsp
|
||||
{
|
||||
// Token: 0x02001A4B RID: 6731
|
||||
[Token(Token = "0x2001A4B")]
|
||||
public class TimeStampResponse
|
||||
{
|
||||
// Token: 0x06009E80 RID: 40576 RVA: 0x00209888 File Offset: 0x00207A88
|
||||
[Token(Token = "0x6009E80")]
|
||||
[Address(RVA = "0x5F1090", Offset = "0x5F0090", VA = "0x1805F1090")]
|
||||
public TimeStampResponse(TimeStampResp resp)
|
||||
{
|
||||
this.resp = resp;
|
||||
ContentInfo contentInfo = resp.timeStampToken;
|
||||
if (contentInfo != 0)
|
||||
{
|
||||
TimeStampToken timeStampToken = new TimeStampToken(contentInfo);
|
||||
CmsSignedData cmsSignedData = new CmsSignedData(contentInfo);
|
||||
this.timeStampToken = timeStampToken;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009E81 RID: 40577 RVA: 0x002098C8 File Offset: 0x00207AC8
|
||||
[Token(Token = "0x6009E81")]
|
||||
[Address(RVA = "0x5F0F90", Offset = "0x5EFF90", VA = "0x1805F0F90")]
|
||||
public TimeStampResponse(byte[] resp)
|
||||
{
|
||||
TimeStampResp timeStampResp = TimeStampResponse.readTimeStampResp(new Asn1InputStream(resp));
|
||||
}
|
||||
|
||||
// Token: 0x06009E82 RID: 40578 RVA: 0x002098E4 File Offset: 0x00207AE4
|
||||
[Token(Token = "0x6009E82")]
|
||||
[Address(RVA = "0x5F1010", Offset = "0x5F0010", VA = "0x1805F1010")]
|
||||
public TimeStampResponse(Stream input)
|
||||
{
|
||||
TimeStampResp timeStampResp = TimeStampResponse.readTimeStampResp(new Asn1InputStream(input));
|
||||
}
|
||||
|
||||
// Token: 0x06009E83 RID: 40579 RVA: 0x00209900 File Offset: 0x00207B00
|
||||
[Token(Token = "0x6009E83")]
|
||||
[Address(RVA = "0x5F11A0", Offset = "0x5F01A0", VA = "0x1805F11A0")]
|
||||
private static TimeStampResp readTimeStampResp(Asn1InputStream input)
|
||||
{
|
||||
Asn1Object asn1Object = input.ReadObject();
|
||||
return TimeStampResp.GetInstance(asn1Object);
|
||||
}
|
||||
|
||||
// Token: 0x1700195D RID: 6493
|
||||
// (get) Token: 0x06009E84 RID: 40580 RVA: 0x00209944 File Offset: 0x00207B44
|
||||
[Token(Token = "0x1700195D")]
|
||||
public int Status
|
||||
{
|
||||
[Token(Token = "0x6009E84")]
|
||||
[Address(RVA = "0x5F1160", Offset = "0x5F0160", VA = "0x1805F1160")]
|
||||
get
|
||||
{
|
||||
return this.resp.pkiStatusInfo.Status.IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009E85 RID: 40581 RVA: 0x0020996C File Offset: 0x00207B6C
|
||||
[Token(Token = "0x6009E85")]
|
||||
[Address(RVA = "0x5F08C0", Offset = "0x5EF8C0", VA = "0x1805F08C0")]
|
||||
public string GetStatusString()
|
||||
{
|
||||
if (this.resp.pkiStatusInfo.statusString != (ulong)0L)
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
PkiFreeText statusString = this.resp.pkiStatusInfo.statusString;
|
||||
int num = 0;
|
||||
int size = statusString.Size;
|
||||
if (num != size)
|
||||
{
|
||||
string @string = statusString[num].GetString();
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append(@string);
|
||||
num++;
|
||||
}
|
||||
int hashCode = stringBuilder.GetHashCode();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009E86 RID: 40582 RVA: 0x002099DC File Offset: 0x00207BDC
|
||||
[Token(Token = "0x6009E86")]
|
||||
[Address(RVA = "0x5F0830", Offset = "0x5EF830", VA = "0x1805F0830")]
|
||||
public PkiFailureInfo GetFailInfo()
|
||||
{
|
||||
DerBitString failInfo = this.resp.pkiStatusInfo.failInfo;
|
||||
if (failInfo != 0)
|
||||
{
|
||||
return new PkiFailureInfo(failInfo);
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x1700195E RID: 6494
|
||||
// (get) Token: 0x06009E87 RID: 40583 RVA: 0x00209A0C File Offset: 0x00207C0C
|
||||
[Token(Token = "0x1700195E")]
|
||||
public TimeStampToken TimeStampToken
|
||||
{
|
||||
[Token(Token = "0x6009E87")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.timeStampToken;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009E88 RID: 40584 RVA: 0x00209A20 File Offset: 0x00207C20
|
||||
[Token(Token = "0x6009E88")]
|
||||
[Address(RVA = "0x5F09F0", Offset = "0x5EF9F0", VA = "0x1805F09F0")]
|
||||
public void Validate(TimeStampRequest request)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009E88)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Tsp.TimeStampResponse::Validate(BestHTTP.SecureProtocol.Org.BouncyCastle.Tsp.TimeStampRequest)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_1EE:
|
||||
stloc:TspValidationException(var_24_1F8, newobj:TspValidationException(TspValidationException::.ctor, ldstr:string("TSA policy wrong for request.")))
|
||||
}
|
||||
|
||||
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: 0x06009E89 RID: 40585 RVA: 0x00209C28 File Offset: 0x00207E28
|
||||
[Token(Token = "0x6009E89")]
|
||||
[Address(RVA = "0x423720", Offset = "0x422720", VA = "0x180423720")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return this.resp.GetEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x04006A6E RID: 27246
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006A6E")]
|
||||
private TimeStampResp resp;
|
||||
|
||||
// Token: 0x04006A6F RID: 27247
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006A6F")]
|
||||
private TimeStampToken timeStampToken;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user