380 lines
21 KiB
C#
380 lines
21 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
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: 0x020013E4 RID: 5092
|
|
[Token(Token = "0x20013E4")]
|
|
[StructLayout(3)]
|
|
public class BasicOcspRespGenerator
|
|
{
|
|
// Token: 0x060081B2 RID: 33202 RVA: 0x001B932C File Offset: 0x001B752C
|
|
[Token(Token = "0x60081B2")]
|
|
[Address(RVA = "0xC10730", Offset = "0xC0F130", VA = "0x180C10730")]
|
|
public BasicOcspRespGenerator(RespID responderID)
|
|
{
|
|
IList list = Platform.CreateArrayList();
|
|
this.list = list;
|
|
base..ctor();
|
|
this.responderID = responderID;
|
|
}
|
|
|
|
// Token: 0x060081B3 RID: 33203 RVA: 0x001B9358 File Offset: 0x001B7558
|
|
[Token(Token = "0x60081B3")]
|
|
[Address(RVA = "0xC107A0", Offset = "0xC0F1A0", VA = "0x180C107A0")]
|
|
public BasicOcspRespGenerator(AsymmetricKeyParameter publicKey)
|
|
{
|
|
IList list = Platform.CreateArrayList();
|
|
this.list = list;
|
|
base..ctor();
|
|
RespID respID = new RespID(publicKey);
|
|
this.responderID = respID;
|
|
}
|
|
|
|
// Token: 0x060081B4 RID: 33204 RVA: 0x001B9388 File Offset: 0x001B7588
|
|
[Token(Token = "0x60081B4")]
|
|
[Address(RVA = "0xC0FAC0", Offset = "0xC0E4C0", VA = "0x180C0FAC0")]
|
|
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: 0x060081B5 RID: 33205 RVA: 0x001B93B8 File Offset: 0x001B75B8
|
|
[Token(Token = "0x60081B5")]
|
|
[Address(RVA = "0xC0F840", Offset = "0xC0E240", VA = "0x180C0F840")]
|
|
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: 0x060081B6 RID: 33206 RVA: 0x001B93E4 File Offset: 0x001B75E4
|
|
[Token(Token = "0x60081B6")]
|
|
[Address(RVA = "0xC0F920", Offset = "0xC0E320", VA = "0x180C0F920")]
|
|
public void AddResponse(CertificateID certID, CertificateStatus certStatus, DateTime nextUpdate, X509Extensions singleExtensions)
|
|
{
|
|
IList list = this.list;
|
|
DateTime utcNow = DateTime.UtcNow;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060081B7 RID: 33207 RVA: 0x001B9408 File Offset: 0x001B7608
|
|
[Token(Token = "0x60081B7")]
|
|
[Address(RVA = "0xC0FA00", Offset = "0xC0E400", VA = "0x180C0FA00")]
|
|
public void AddResponse(CertificateID certID, CertificateStatus certStatus, DateTime thisUpdate, DateTime nextUpdate, X509Extensions singleExtensions)
|
|
{
|
|
IList list = this.list;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x060081B8 RID: 33208 RVA: 0x001B9424 File Offset: 0x001B7624
|
|
[Token(Token = "0x60081B8")]
|
|
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
|
public void SetResponseExtensions(X509Extensions responseExtensions)
|
|
{
|
|
this.responseExtensions = responseExtensions;
|
|
}
|
|
|
|
// Token: 0x060081B9 RID: 33209 RVA: 0x001B9438 File Offset: 0x001B7638
|
|
[Token(Token = "0x60081B9")]
|
|
[Address(RVA = "0xC0FBA0", Offset = "0xC0E5A0", VA = "0x180C0FBA0")]
|
|
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 == -1 || "{il2cpp array field local18->}" != (ulong)128L) && num != 0)
|
|
{
|
|
goto IL_140;
|
|
}
|
|
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_140:
|
|
throw new IndexOutOfRangeException();
|
|
}
|
|
|
|
// Token: 0x060081BA RID: 33210 RVA: 0x001B95A8 File Offset: 0x001B77A8
|
|
[Token(Token = "0x60081BA")]
|
|
[Address(RVA = "0xC104D0", Offset = "0xC0EED0", VA = "0x180C104D0")]
|
|
public BasicOcspResp Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, DateTime thisUpdate)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060081BA)
|
|
|
|
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: 0x060081BB RID: 33211 RVA: 0x001B95D4 File Offset: 0x001B77D4
|
|
[Token(Token = "0x60081BB")]
|
|
[Address(RVA = "0xC10650", Offset = "0xC0F050", VA = "0x180C10650")]
|
|
public BasicOcspResp Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, DateTime producedAt, SecureRandom random)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060081BB)
|
|
|
|
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: 0x060081BC RID: 33212 RVA: 0x001B95F4 File Offset: 0x001B77F4
|
|
[Token(Token = "0x60081BC")]
|
|
[Address(RVA = "0xC105B0", Offset = "0xC0EFB0", VA = "0x180C105B0")]
|
|
public BasicOcspResp Generate(ISignatureFactory signatureCalculatorFactory, X509Certificate[] chain, DateTime producedAt)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060081BC)
|
|
|
|
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: 0x17001510 RID: 5392
|
|
// (get) Token: 0x060081BD RID: 33213 RVA: 0x001B961C File Offset: 0x001B781C
|
|
[Token(Token = "0x17001510")]
|
|
public IEnumerable SignatureAlgNames
|
|
{
|
|
[Token(Token = "0x60081BD")]
|
|
[Address(RVA = "0xC10840", Offset = "0xC0F240", VA = "0x180C10840")]
|
|
get
|
|
{
|
|
return OcspUtilities.AlgNames;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04005BBB RID: 23483
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4005BBB")]
|
|
private readonly IList list;
|
|
|
|
// Token: 0x04005BBC RID: 23484
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4005BBC")]
|
|
private X509Extensions responseExtensions;
|
|
|
|
// Token: 0x04005BBD RID: 23485
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4005BBD")]
|
|
private RespID responderID;
|
|
|
|
// Token: 0x020013E5 RID: 5093
|
|
[Token(Token = "0x20013E5")]
|
|
private class ResponseObject
|
|
{
|
|
// Token: 0x060081BE RID: 33214 RVA: 0x001B9630 File Offset: 0x001B7830
|
|
[Token(Token = "0x60081BE")]
|
|
[Address(RVA = "0xC249C0", Offset = "0xC233C0", VA = "0x180C249C0")]
|
|
public ResponseObject(CertificateID certId, CertificateStatus certStatus, DateTime thisUpdate, X509Extensions extensions)
|
|
{
|
|
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(thisUpdate);
|
|
}
|
|
|
|
// Token: 0x060081BF RID: 33215 RVA: 0x001B9648 File Offset: 0x001B7848
|
|
[Token(Token = "0x60081BF")]
|
|
[Address(RVA = "0xC24A60", Offset = "0xC23460", VA = "0x180C24A60")]
|
|
public ResponseObject(CertificateID certId, CertificateStatus certStatus, DateTime thisUpdate, DateTime nextUpdate, X509Extensions extensions)
|
|
{
|
|
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(thisUpdate);
|
|
}
|
|
|
|
// Token: 0x060081C0 RID: 33216 RVA: 0x001B965C File Offset: 0x001B785C
|
|
[Token(Token = "0x60081C0")]
|
|
[Address(RVA = "0xC24700", Offset = "0xC23100", VA = "0x180C24700")]
|
|
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: 0x060081C1 RID: 33217 RVA: 0x001B96F4 File Offset: 0x001B78F4
|
|
[Token(Token = "0x60081C1")]
|
|
[Address(RVA = "0xC24650", Offset = "0xC23050", VA = "0x180C24650")]
|
|
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: 0x04005BBE RID: 23486
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4005BBE")]
|
|
internal CertificateID certId;
|
|
|
|
// Token: 0x04005BBF RID: 23487
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4005BBF")]
|
|
internal CertStatus certStatus;
|
|
|
|
// Token: 0x04005BC0 RID: 23488
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4005BC0")]
|
|
internal DerGeneralizedTime thisUpdate;
|
|
|
|
// Token: 0x04005BC1 RID: 23489
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4005BC1")]
|
|
internal DerGeneralizedTime nextUpdate;
|
|
|
|
// Token: 0x04005BC2 RID: 23490
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4005BC2")]
|
|
internal X509Extensions extensions;
|
|
}
|
|
}
|
|
}
|