Files
Apr2020-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Ocsp/BasicOcspRespGenerator.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

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: 0x020019C1 RID: 6593
[Token(Token = "0x20019C1")]
public class BasicOcspRespGenerator
{
// Token: 0x06009D8C RID: 40332 RVA: 0x002108D4 File Offset: 0x0020EAD4
[Token(Token = "0x6009D8C")]
[Address(RVA = "0x28B4260", Offset = "0x28B3060", VA = "0x1828B4260")]
public BasicOcspRespGenerator(RespID responderID)
{
IList list = Platform.CreateArrayList();
this.list = list;
base..ctor();
this.responderID = responderID;
}
// Token: 0x06009D8D RID: 40333 RVA: 0x00210900 File Offset: 0x0020EB00
[Token(Token = "0x6009D8D")]
[Address(RVA = "0x28B42D0", Offset = "0x28B30D0", VA = "0x1828B42D0")]
public BasicOcspRespGenerator(AsymmetricKeyParameter publicKey)
{
IList list = Platform.CreateArrayList();
this.list = list;
base..ctor();
RespID respID = new RespID(publicKey);
this.responderID = respID;
}
// Token: 0x06009D8E RID: 40334 RVA: 0x00210930 File Offset: 0x0020EB30
[Token(Token = "0x6009D8E")]
[Address(RVA = "0x28B3630", Offset = "0x28B2430", VA = "0x1828B3630")]
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: 0x06009D8F RID: 40335 RVA: 0x00210960 File Offset: 0x0020EB60
[Token(Token = "0x6009D8F")]
[Address(RVA = "0x28B33B0", Offset = "0x28B21B0", VA = "0x1828B33B0")]
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: 0x06009D90 RID: 40336 RVA: 0x0021098C File Offset: 0x0020EB8C
[Token(Token = "0x6009D90")]
[Address(RVA = "0x28B3490", Offset = "0x28B2290", VA = "0x1828B3490")]
public void AddResponse(CertificateID certID, CertificateStatus certStatus, DateTime nextUpdate, X509Extensions singleExtensions)
{
IList list = this.list;
DateTime utcNow = DateTime.UtcNow;
throw new NullReferenceException();
}
// Token: 0x06009D91 RID: 40337 RVA: 0x002109B0 File Offset: 0x0020EBB0
[Token(Token = "0x6009D91")]
[Address(RVA = "0x28B3570", Offset = "0x28B2370", VA = "0x1828B3570")]
public void AddResponse(CertificateID certID, CertificateStatus certStatus, DateTime thisUpdate, DateTime nextUpdate, X509Extensions singleExtensions)
{
IList list = this.list;
throw new NullReferenceException();
}
// Token: 0x06009D92 RID: 40338 RVA: 0x002109CC File Offset: 0x0020EBCC
[Token(Token = "0x6009D92")]
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
public void SetResponseExtensions(X509Extensions responseExtensions)
{
this.responseExtensions = responseExtensions;
}
// Token: 0x06009D93 RID: 40339 RVA: 0x002109E0 File Offset: 0x0020EBE0
[Token(Token = "0x6009D93")]
[Address(RVA = "0x28B3710", Offset = "0x28B2510", VA = "0x1828B3710")]
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: 0x06009D94 RID: 40340 RVA: 0x00210B38 File Offset: 0x0020ED38
[Token(Token = "0x6009D94")]
[Address(RVA = "0x28B4000", Offset = "0x28B2E00", VA = "0x1828B4000")]
public BasicOcspResp Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, DateTime thisUpdate)
{
/*
An exception occurred when decompiling this method (06009D94)
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 1660
*/;
}
// Token: 0x06009D95 RID: 40341 RVA: 0x00210B64 File Offset: 0x0020ED64
[Token(Token = "0x6009D95")]
[Address(RVA = "0x28B4180", Offset = "0x28B2F80", VA = "0x1828B4180")]
public BasicOcspResp Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, DateTime producedAt, SecureRandom random)
{
/*
An exception occurred when decompiling this method (06009D95)
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 1660
*/;
}
// Token: 0x06009D96 RID: 40342 RVA: 0x00210B84 File Offset: 0x0020ED84
[Token(Token = "0x6009D96")]
[Address(RVA = "0x28B40E0", Offset = "0x28B2EE0", VA = "0x1828B40E0")]
public BasicOcspResp Generate(ISignatureFactory signatureCalculatorFactory, X509Certificate[] chain, DateTime producedAt)
{
/*
An exception occurred when decompiling this method (06009D96)
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 1660
*/;
}
// Token: 0x17001911 RID: 6417
// (get) Token: 0x06009D97 RID: 40343 RVA: 0x00210BAC File Offset: 0x0020EDAC
[Token(Token = "0x17001911")]
public IEnumerable SignatureAlgNames
{
[Token(Token = "0x6009D97")]
[Address(RVA = "0x28B4370", Offset = "0x28B3170", VA = "0x1828B4370")]
get
{
return OcspUtilities.AlgNames;
}
}
// Token: 0x040069FE RID: 27134
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40069FE")]
private readonly IList list;
// Token: 0x040069FF RID: 27135
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40069FF")]
private X509Extensions responseExtensions;
// Token: 0x04006A00 RID: 27136
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A00")]
private RespID responderID;
// Token: 0x020019C2 RID: 6594
[Token(Token = "0x20019C2")]
private class ResponseObject
{
// Token: 0x06009D98 RID: 40344 RVA: 0x00210BC0 File Offset: 0x0020EDC0
[Token(Token = "0x6009D98")]
[Address(RVA = "0x28CAC80", Offset = "0x28C9A80", VA = "0x1828CAC80")]
public ResponseObject(CertificateID certId, CertificateStatus certStatus, DateTime thisUpdate, X509Extensions extensions)
{
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(thisUpdate);
}
// Token: 0x06009D99 RID: 40345 RVA: 0x00210BD8 File Offset: 0x0020EDD8
[Token(Token = "0x6009D99")]
[Address(RVA = "0x28CAD20", Offset = "0x28C9B20", VA = "0x1828CAD20")]
public ResponseObject(CertificateID certId, CertificateStatus certStatus, DateTime thisUpdate, DateTime nextUpdate, X509Extensions extensions)
{
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(thisUpdate);
}
// Token: 0x06009D9A RID: 40346 RVA: 0x00210BEC File Offset: 0x0020EDEC
[Token(Token = "0x6009D9A")]
[Address(RVA = "0x28CA9C0", Offset = "0x28C97C0", VA = "0x1828CA9C0")]
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: 0x06009D9B RID: 40347 RVA: 0x00210C84 File Offset: 0x0020EE84
[Token(Token = "0x6009D9B")]
[Address(RVA = "0x28CA910", Offset = "0x28C9710", VA = "0x1828CA910")]
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: 0x04006A01 RID: 27137
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006A01")]
internal CertificateID certId;
// Token: 0x04006A02 RID: 27138
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006A02")]
internal CertStatus certStatus;
// Token: 0x04006A03 RID: 27139
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006A03")]
internal DerGeneralizedTime thisUpdate;
// Token: 0x04006A04 RID: 27140
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x4006A04")]
internal DerGeneralizedTime nextUpdate;
// Token: 0x04006A05 RID: 27141
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4006A05")]
internal X509Extensions extensions;
}
}
}