378 lines
21 KiB
C#
378 lines
21 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Security;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
|
{
|
|
// Token: 0x02001AA1 RID: 6817
|
|
[Token(Token = "0x2001AA1")]
|
|
public class BasicOcspRespGenerator
|
|
{
|
|
// Token: 0x0600A15A RID: 41306 RVA: 0x00219970 File Offset: 0x00217B70
|
|
[Token(Token = "0x600A15A")]
|
|
[Address(RVA = "0xCEF890", Offset = "0xCEE890", VA = "0x180CEF890")]
|
|
public BasicOcspRespGenerator(RespID responderID)
|
|
{
|
|
IList list = Platform.CreateArrayList();
|
|
this.list = list;
|
|
base..ctor();
|
|
this.responderID = responderID;
|
|
}
|
|
|
|
// Token: 0x0600A15B RID: 41307 RVA: 0x0021999C File Offset: 0x00217B9C
|
|
[Token(Token = "0x600A15B")]
|
|
[Address(RVA = "0xCEF900", Offset = "0xCEE900", VA = "0x180CEF900")]
|
|
public BasicOcspRespGenerator(AsymmetricKeyParameter publicKey)
|
|
{
|
|
IList list = Platform.CreateArrayList();
|
|
this.list = list;
|
|
base..ctor();
|
|
RespID respID = new RespID(publicKey);
|
|
this.responderID = respID;
|
|
}
|
|
|
|
// Token: 0x0600A15C RID: 41308 RVA: 0x002199CC File Offset: 0x00217BCC
|
|
[Token(Token = "0x600A15C")]
|
|
[Address(RVA = "0xCEEC60", Offset = "0xCEDC60", VA = "0x180CEEC60")]
|
|
public void AddResponse(CertificateID certID, CertificateStatus certStatus)
|
|
{
|
|
IList list = this.list;
|
|
DateTime utcNow = DateTime.UtcNow;
|
|
int num;
|
|
BasicOcspRespGenerator.ResponseObject responseObject = new BasicOcspRespGenerator.ResponseObject(certID, certStatus, utcNow, num);
|
|
num = 0;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A15D RID: 41309 RVA: 0x002199FC File Offset: 0x00217BFC
|
|
[Token(Token = "0x600A15D")]
|
|
[Address(RVA = "0xCEE9E0", Offset = "0xCED9E0", VA = "0x180CEE9E0")]
|
|
public void AddResponse(CertificateID certID, CertificateStatus certStatus, X509Extensions singleExtensions)
|
|
{
|
|
IList list = this.list;
|
|
DateTime utcNow = DateTime.UtcNow;
|
|
BasicOcspRespGenerator.ResponseObject responseObject = new BasicOcspRespGenerator.ResponseObject(certID, certStatus, utcNow, singleExtensions);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A15E RID: 41310 RVA: 0x00219A28 File Offset: 0x00217C28
|
|
[Token(Token = "0x600A15E")]
|
|
[Address(RVA = "0xCEEAC0", Offset = "0xCEDAC0", VA = "0x180CEEAC0")]
|
|
public void AddResponse(CertificateID certID, CertificateStatus certStatus, DateTime nextUpdate, X509Extensions singleExtensions)
|
|
{
|
|
IList list = this.list;
|
|
DateTime utcNow = DateTime.UtcNow;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A15F RID: 41311 RVA: 0x00219A4C File Offset: 0x00217C4C
|
|
[Token(Token = "0x600A15F")]
|
|
[Address(RVA = "0xCEEBA0", Offset = "0xCEDBA0", VA = "0x180CEEBA0")]
|
|
public void AddResponse(CertificateID certID, CertificateStatus certStatus, DateTime thisUpdate, DateTime nextUpdate, X509Extensions singleExtensions)
|
|
{
|
|
IList list = this.list;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A160 RID: 41312 RVA: 0x00219A68 File Offset: 0x00217C68
|
|
[Token(Token = "0x600A160")]
|
|
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0")]
|
|
public void SetResponseExtensions(X509Extensions responseExtensions)
|
|
{
|
|
this.responseExtensions = responseExtensions;
|
|
}
|
|
|
|
// Token: 0x0600A161 RID: 41313 RVA: 0x00219A7C File Offset: 0x00217C7C
|
|
[Token(Token = "0x600A161")]
|
|
[Address(RVA = "0xCEED40", Offset = "0xCEDD40", VA = "0x180CEED40")]
|
|
private BasicOcspResp GenerateResponse(ISignatureFactory signatureCalculator, X509Certificate[] chain, DateTime producedAt)
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
byte[] derEncoded;
|
|
for (;;)
|
|
{
|
|
IList list = this.list;
|
|
if (asn1EncodableVector != 0)
|
|
{
|
|
break;
|
|
}
|
|
int num = 0;
|
|
ArrayTypeMismatchException ex;
|
|
if (ex != 0)
|
|
{
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_127;
|
|
}
|
|
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(producedAt);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
ResponseData responseData;
|
|
derEncoded = responseData.GetDerEncoded();
|
|
if (derEncoded != 0 && derEncoded != 0)
|
|
{
|
|
goto Block_4;
|
|
}
|
|
}
|
|
if (asn1EncodableVector == 0)
|
|
{
|
|
}
|
|
if (asn1EncodableVector != 0)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
throw new NullReferenceException();
|
|
Block_4:
|
|
DerBitString derBitString = new DerBitString(derEncoded);
|
|
ISet noParams = OcspUtilities.noParams;
|
|
int num2 = 0;
|
|
if (chain != 0 && chain.Length != num2)
|
|
{
|
|
int num3 = 0;
|
|
Asn1EncodableVector asn1EncodableVector2;
|
|
if (num3 != chain.Length)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
AsymmetricKeyParameter publicKey = chain[num3].GetPublicKey();
|
|
Asn1Object asn1Object;
|
|
X509CertificateStructure instance = X509CertificateStructure.GetInstance(asn1Object);
|
|
if (instance != 0)
|
|
{
|
|
}
|
|
array2[0] = instance;
|
|
asn1EncodableVector2.Add(array2);
|
|
num3++;
|
|
}
|
|
DerSequence derSequence2 = new DerSequence(asn1EncodableVector2);
|
|
}
|
|
BasicOcspResp basicOcspResp;
|
|
BasicOcspResponse basicOcspResponse;
|
|
basicOcspResp.resp = basicOcspResponse;
|
|
ResponseData tbsResponseData = basicOcspResponse.tbsResponseData;
|
|
basicOcspResp.data = tbsResponseData;
|
|
return basicOcspResp;
|
|
IL_127:
|
|
throw new IndexOutOfRangeException();
|
|
}
|
|
|
|
// Token: 0x0600A162 RID: 41314 RVA: 0x00219BD4 File Offset: 0x00217DD4
|
|
[Token(Token = "0x600A162")]
|
|
[Address(RVA = "0xCEF630", Offset = "0xCEE630", VA = "0x180CEF630")]
|
|
public BasicOcspResp Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, DateTime thisUpdate)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A162)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.BasicOcspResp BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.BasicOcspRespGenerator::Generate(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate[],System.DateTime)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_12:
|
|
stloc:ArgumentException(var_5_1C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("no signing algorithm specified")))
|
|
}
|
|
|
|
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: 0x0600A163 RID: 41315 RVA: 0x00219C00 File Offset: 0x00217E00
|
|
[Token(Token = "0x600A163")]
|
|
[Address(RVA = "0xCEF7B0", Offset = "0xCEE7B0", VA = "0x180CEF7B0")]
|
|
public BasicOcspResp Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, DateTime producedAt, SecureRandom random)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A163)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.BasicOcspResp BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.BasicOcspRespGenerator::Generate(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate[],System.DateTime,BestHTTP.SecureProtocol.Org.BouncyCastle.Security.SecureRandom)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_06:
|
|
stloc:ArgumentException(var_4_10, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("no signing algorithm specified")))
|
|
}
|
|
|
|
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: 0x0600A164 RID: 41316 RVA: 0x00219C20 File Offset: 0x00217E20
|
|
[Token(Token = "0x600A164")]
|
|
[Address(RVA = "0xCEF710", Offset = "0xCEE710", VA = "0x180CEF710")]
|
|
public BasicOcspResp Generate(ISignatureFactory signatureCalculatorFactory, X509Certificate[] chain, DateTime producedAt)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A164)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.BasicOcspResp BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.BasicOcspRespGenerator::Generate(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.ISignatureFactory,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509Certificate[],System.DateTime)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_0E:
|
|
stloc:ArgumentException(var_1_18, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("no signature calculator specified")))
|
|
}
|
|
|
|
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: 0x170019AE RID: 6574
|
|
// (get) Token: 0x0600A165 RID: 41317 RVA: 0x00219C48 File Offset: 0x00217E48
|
|
[Token(Token = "0x170019AE")]
|
|
public IEnumerable SignatureAlgNames
|
|
{
|
|
[Token(Token = "0x600A165")]
|
|
[Address(RVA = "0xCEF9A0", Offset = "0xCEE9A0", VA = "0x180CEF9A0")]
|
|
get
|
|
{
|
|
return OcspUtilities.AlgNames;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04006BB7 RID: 27575
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006BB7")]
|
|
private readonly IList list;
|
|
|
|
// Token: 0x04006BB8 RID: 27576
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006BB8")]
|
|
private X509Extensions responseExtensions;
|
|
|
|
// Token: 0x04006BB9 RID: 27577
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006BB9")]
|
|
private RespID responderID;
|
|
|
|
// Token: 0x02001AA2 RID: 6818
|
|
[Token(Token = "0x2001AA2")]
|
|
private class ResponseObject
|
|
{
|
|
// Token: 0x0600A166 RID: 41318 RVA: 0x00219C5C File Offset: 0x00217E5C
|
|
[Token(Token = "0x600A166")]
|
|
[Address(RVA = "0xD062B0", Offset = "0xD052B0", VA = "0x180D062B0")]
|
|
public ResponseObject(CertificateID certId, CertificateStatus certStatus, DateTime thisUpdate, X509Extensions extensions)
|
|
{
|
|
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(thisUpdate);
|
|
}
|
|
|
|
// Token: 0x0600A167 RID: 41319 RVA: 0x00219C74 File Offset: 0x00217E74
|
|
[Token(Token = "0x600A167")]
|
|
[Address(RVA = "0xD06350", Offset = "0xD05350", VA = "0x180D06350")]
|
|
public ResponseObject(CertificateID certId, CertificateStatus certStatus, DateTime thisUpdate, DateTime nextUpdate, X509Extensions extensions)
|
|
{
|
|
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(thisUpdate);
|
|
}
|
|
|
|
// Token: 0x0600A168 RID: 41320 RVA: 0x00219C88 File Offset: 0x00217E88
|
|
[Token(Token = "0x600A168")]
|
|
[Address(RVA = "0xD05FF0", Offset = "0xD04FF0", VA = "0x180D05FF0")]
|
|
private ResponseObject(CertificateID certId, CertificateStatus certStatus, DerGeneralizedTime thisUpdate, DerGeneralizedTime nextUpdate, X509Extensions extensions)
|
|
{
|
|
do
|
|
{
|
|
base..ctor();
|
|
this.certId = certId;
|
|
if (certStatus == 0)
|
|
{
|
|
goto IL_5B;
|
|
}
|
|
if (certStatus != 0)
|
|
{
|
|
goto IL_4A;
|
|
}
|
|
}
|
|
while (certStatus == 0);
|
|
BigInteger bigInteger;
|
|
CrlReason crlReason = new CrlReason(bigInteger.IntValue);
|
|
byte[] bytes = crlReason.bytes;
|
|
DateTime dateTime;
|
|
CertStatus certStatus2 = new CertStatus(new RevokedInfo(new DerGeneralizedTime(dateTime), crlReason));
|
|
IL_4A:
|
|
DerNull instance = DerNull.Instance;
|
|
CertStatus certStatus3 = new CertStatus(2, instance);
|
|
IL_5B:
|
|
CertStatus certStatus4 = new CertStatus();
|
|
this.certStatus = certStatus4;
|
|
this.nextUpdate = 0;
|
|
this.extensions = 0;
|
|
this.thisUpdate = thisUpdate;
|
|
}
|
|
|
|
// Token: 0x0600A169 RID: 41321 RVA: 0x00219D20 File Offset: 0x00217F20
|
|
[Token(Token = "0x600A169")]
|
|
[Address(RVA = "0xD05F40", Offset = "0xD04F40", VA = "0x180D05F40")]
|
|
public SingleResponse ToResponse()
|
|
{
|
|
CertID id = this.certId.id;
|
|
DerGeneralizedTime derGeneralizedTime = this.thisUpdate;
|
|
DerGeneralizedTime derGeneralizedTime2 = this.nextUpdate;
|
|
CertStatus certStatus = this.certStatus;
|
|
X509Extensions x509Extensions = this.extensions;
|
|
return new SingleResponse(id, certStatus, derGeneralizedTime, derGeneralizedTime2, x509Extensions);
|
|
}
|
|
|
|
// Token: 0x04006BBA RID: 27578
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006BBA")]
|
|
internal CertificateID certId;
|
|
|
|
// Token: 0x04006BBB RID: 27579
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006BBB")]
|
|
internal CertStatus certStatus;
|
|
|
|
// Token: 0x04006BBC RID: 27580
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006BBC")]
|
|
internal DerGeneralizedTime thisUpdate;
|
|
|
|
// Token: 0x04006BBD RID: 27581
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006BBD")]
|
|
internal DerGeneralizedTime nextUpdate;
|
|
|
|
// Token: 0x04006BBE RID: 27582
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4006BBE")]
|
|
internal X509Extensions extensions;
|
|
}
|
|
}
|
|
}
|