scripts
This commit is contained in:
@@ -0,0 +1,330 @@
|
||||
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.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013E3 RID: 5091
|
||||
[Token(Token = "0x20013E3")]
|
||||
[StructLayout(3)]
|
||||
public class BasicOcspResp : X509ExtensionBase
|
||||
{
|
||||
// Token: 0x0600819F RID: 33183 RVA: 0x001B8F24 File Offset: 0x001B7124
|
||||
[Token(Token = "0x600819F")]
|
||||
[Address(RVA = "0xC11370", Offset = "0xC0FD70", VA = "0x180C11370")]
|
||||
public BasicOcspResp(BasicOcspResponse resp)
|
||||
{
|
||||
this.resp = resp;
|
||||
ResponseData tbsResponseData = resp.tbsResponseData;
|
||||
this.data = tbsResponseData;
|
||||
}
|
||||
|
||||
// Token: 0x060081A0 RID: 33184 RVA: 0x001B8F54 File Offset: 0x001B7154
|
||||
[Token(Token = "0x60081A0")]
|
||||
[Address(RVA = "0xC10FE0", Offset = "0xC0F9E0", VA = "0x180C10FE0")]
|
||||
public byte[] GetTbsResponseData()
|
||||
{
|
||||
return this.data.GetDerEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x17001509 RID: 5385
|
||||
// (get) Token: 0x060081A1 RID: 33185 RVA: 0x001B8F74 File Offset: 0x001B7174
|
||||
[Token(Token = "0x17001509")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x60081A1")]
|
||||
[Address(RVA = "0xC11710", Offset = "0xC10110", VA = "0x180C11710")]
|
||||
get
|
||||
{
|
||||
int intValue = this.data.version.Value.IntValue;
|
||||
return intValue + 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700150A RID: 5386
|
||||
// (get) Token: 0x060081A2 RID: 33186 RVA: 0x001B8FA4 File Offset: 0x001B71A4
|
||||
[Token(Token = "0x1700150A")]
|
||||
public RespID ResponderId
|
||||
{
|
||||
[Token(Token = "0x60081A2")]
|
||||
[Address(RVA = "0xC113E0", Offset = "0xC0FDE0", VA = "0x180C113E0")]
|
||||
get
|
||||
{
|
||||
ResponderID responderID = this.data.responderID;
|
||||
RespID respID;
|
||||
respID.id = responderID;
|
||||
return respID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700150B RID: 5387
|
||||
// (get) Token: 0x060081A3 RID: 33187 RVA: 0x001B8FCC File Offset: 0x001B71CC
|
||||
[Token(Token = "0x1700150B")]
|
||||
public DateTime ProducedAt
|
||||
{
|
||||
[Token(Token = "0x60081A3")]
|
||||
[Address(RVA = "0xC113B0", Offset = "0xC0FDB0", VA = "0x180C113B0")]
|
||||
get
|
||||
{
|
||||
return this.data.producedAt.ToDateTime();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700150C RID: 5388
|
||||
// (get) Token: 0x060081A4 RID: 33188 RVA: 0x001B8FF0 File Offset: 0x001B71F0
|
||||
[Token(Token = "0x1700150C")]
|
||||
public SingleResp[] Responses
|
||||
{
|
||||
[Token(Token = "0x60081A4")]
|
||||
[Address(RVA = "0xC11450", Offset = "0xC0FE50", VA = "0x180C11450")]
|
||||
get
|
||||
{
|
||||
Asn1Sequence responses = this.data.responses;
|
||||
Asn1Encodable asn1Encodable;
|
||||
SingleResp[] array = new SingleResp[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = responses.Parser;
|
||||
SingleResp singleResp;
|
||||
SingleResponse singleResponse;
|
||||
singleResp.resp = singleResponse;
|
||||
num++;
|
||||
array[0] = singleResp;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700150D RID: 5389
|
||||
// (get) Token: 0x060081A5 RID: 33189 RVA: 0x001B9040 File Offset: 0x001B7240
|
||||
[Token(Token = "0x1700150D")]
|
||||
public X509Extensions ResponseExtensions
|
||||
{
|
||||
[Token(Token = "0x60081A5")]
|
||||
[Address(RVA = "0x61F8D0", Offset = "0x61E2D0", VA = "0x18061F8D0")]
|
||||
get
|
||||
{
|
||||
return this.data.responseExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081A6 RID: 33190 RVA: 0x001B9060 File Offset: 0x001B7260
|
||||
[Token(Token = "0x60081A6")]
|
||||
[Address(RVA = "0x61F8D0", Offset = "0x61E2D0", VA = "0x18061F8D0", Slot = "8")]
|
||||
protected override X509Extensions GetX509Extensions()
|
||||
{
|
||||
return this.data.responseExtensions;
|
||||
}
|
||||
|
||||
// Token: 0x1700150E RID: 5390
|
||||
// (get) Token: 0x060081A7 RID: 33191 RVA: 0x001B9080 File Offset: 0x001B7280
|
||||
[Token(Token = "0x1700150E")]
|
||||
public string SignatureAlgName
|
||||
{
|
||||
[Token(Token = "0x60081A7")]
|
||||
[Address(RVA = "0xC11590", Offset = "0xC0FF90", VA = "0x180C11590")]
|
||||
get
|
||||
{
|
||||
Asn1Object asn1Object = this.resp.signatureAlgorithm.ToAsn1Object();
|
||||
IDictionary oids = OcspUtilities.oids;
|
||||
IDictionary oids2 = OcspUtilities.oids;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700150F RID: 5391
|
||||
// (get) Token: 0x060081A8 RID: 33192 RVA: 0x001B90B0 File Offset: 0x001B72B0
|
||||
[Token(Token = "0x1700150F")]
|
||||
public string SignatureAlgOid
|
||||
{
|
||||
[Token(Token = "0x60081A8")]
|
||||
[Address(RVA = "0x532960", Offset = "0x531360", VA = "0x180532960")]
|
||||
get
|
||||
{
|
||||
Asn1Object asn1Object = this.resp.signatureAlgorithm.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081A9 RID: 33193 RVA: 0x001B90D4 File Offset: 0x001B72D4
|
||||
[Token(Token = "0x60081A9")]
|
||||
[Address(RVA = "0xC10F80", Offset = "0xC0F980", VA = "0x180C10F80")]
|
||||
[Obsolete]
|
||||
public RespData GetResponseData()
|
||||
{
|
||||
ResponseData responseData = this.data;
|
||||
RespData respData;
|
||||
respData.data = responseData;
|
||||
return respData;
|
||||
}
|
||||
|
||||
// Token: 0x060081AA RID: 33194 RVA: 0x001B90F0 File Offset: 0x001B72F0
|
||||
[Token(Token = "0x60081AA")]
|
||||
[Address(RVA = "0x531510", Offset = "0x52FF10", VA = "0x180531510")]
|
||||
public byte[] GetSignature()
|
||||
{
|
||||
return this.resp.GetSignatureOctets();
|
||||
}
|
||||
|
||||
// Token: 0x060081AB RID: 33195 RVA: 0x001B9110 File Offset: 0x001B7310
|
||||
[Token(Token = "0x60081AB")]
|
||||
[Address(RVA = "0xC10950", Offset = "0xC0F350", VA = "0x180C10950")]
|
||||
private IList GetCertList()
|
||||
{
|
||||
IList list;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
list = Platform.CreateArrayList();
|
||||
Asn1Sequence certs = this.resp.certs;
|
||||
if (certs == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IEnumerator enumerator = certs.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_65;
|
||||
}
|
||||
byte[] array;
|
||||
if (new X509CertificateParser().ReadCertificate(array) != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
IL_65:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081AC RID: 33196 RVA: 0x001B9188 File Offset: 0x001B7388
|
||||
[Token(Token = "0x60081AC")]
|
||||
[Address(RVA = "0xC10D00", Offset = "0xC0F700", VA = "0x180C10D00")]
|
||||
public X509Certificate[] GetCerts()
|
||||
{
|
||||
X509Certificate[] array;
|
||||
int num;
|
||||
do
|
||||
{
|
||||
IList certList = this.GetCertList();
|
||||
array = new X509Certificate[certList];
|
||||
num = 0;
|
||||
if (num < certList)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num >= array)
|
||||
{
|
||||
return array;
|
||||
}
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
ulong num3;
|
||||
num3 += num3;
|
||||
num3 += num3;
|
||||
}
|
||||
while (num == 0 || num == 0);
|
||||
num++;
|
||||
array[0] = num;
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x060081AD RID: 33197 RVA: 0x001B91F4 File Offset: 0x001B73F4
|
||||
[Token(Token = "0x60081AD")]
|
||||
[Address(RVA = "0xC10C20", Offset = "0xC0F620", VA = "0x180C10C20")]
|
||||
public IX509Store GetCertificates(string type)
|
||||
{
|
||||
string text = "Certificate/" + type;
|
||||
X509CollectionStoreParameters x509CollectionStoreParameters = new X509CollectionStoreParameters(this.GetCertList());
|
||||
return X509StoreFactory.Create(text, x509CollectionStoreParameters);
|
||||
}
|
||||
|
||||
// Token: 0x060081AE RID: 33198 RVA: 0x001B9230 File Offset: 0x001B7430
|
||||
[Token(Token = "0x60081AE")]
|
||||
[Address(RVA = "0xC11080", Offset = "0xC0FA80", VA = "0x180C11080")]
|
||||
public bool Verify(AsymmetricKeyParameter publicKey)
|
||||
{
|
||||
Asn1Object asn1Object = this.resp.signatureAlgorithm.ToAsn1Object();
|
||||
IDictionary oids = OcspUtilities.oids;
|
||||
IDictionary oids2 = OcspUtilities.oids;
|
||||
int length = this.data.GetDerEncoded().Length;
|
||||
byte[] signatureOctets = this.resp.GetSignatureOctets();
|
||||
int num = 0;
|
||||
string text;
|
||||
OcspException ex = new OcspException(text, num);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081AF RID: 33199 RVA: 0x001B92BC File Offset: 0x001B74BC
|
||||
[Token(Token = "0x60081AF")]
|
||||
[Address(RVA = "0x53BEA0", Offset = "0x53A8A0", VA = "0x18053BEA0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return this.resp.GetEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x060081B0 RID: 33200 RVA: 0x001B92DC File Offset: 0x001B74DC
|
||||
[Token(Token = "0x60081B0")]
|
||||
[Address(RVA = "0xC10890", Offset = "0xC0F290", VA = "0x180C10890", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
Asn1Object asn1Object = this.resp.ToAsn1Object();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060081B1 RID: 33201 RVA: 0x001B930C File Offset: 0x001B750C
|
||||
[Token(Token = "0x60081B1")]
|
||||
[Address(RVA = "0x528AC0", Offset = "0x5274C0", VA = "0x180528AC0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
Asn1Object asn1Object = this.resp.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005BB9 RID: 23481
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BB9")]
|
||||
private readonly BasicOcspResponse resp;
|
||||
|
||||
// Token: 0x04005BBA RID: 23482
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005BBA")]
|
||||
private readonly ResponseData data;
|
||||
}
|
||||
}
|
||||
+379
@@ -0,0 +1,379 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
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.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013E6 RID: 5094
|
||||
[Token(Token = "0x20013E6")]
|
||||
[StructLayout(3)]
|
||||
public class CertificateID
|
||||
{
|
||||
// Token: 0x060081C2 RID: 33218 RVA: 0x001B973C File Offset: 0x001B793C
|
||||
[Token(Token = "0x60081C2")]
|
||||
[Address(RVA = "0xC11C70", Offset = "0xC10670", VA = "0x180C11C70")]
|
||||
public CertificateID(CertID id)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060081C2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.CertificateID::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.CertID)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_12:
|
||||
stloc:ArgumentNullException(var_0_1C, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("id")))
|
||||
}
|
||||
|
||||
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: 0x060081C3 RID: 33219 RVA: 0x001B9768 File Offset: 0x001B7968
|
||||
[Token(Token = "0x60081C3")]
|
||||
[Address(RVA = "0xC11CF0", Offset = "0xC106F0", VA = "0x180C11CF0")]
|
||||
public CertificateID(string hashAlgorithm, X509Certificate issuerCert, BigInteger serialNumber)
|
||||
{
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier(hashAlgorithm);
|
||||
DerNull instance = DerNull.Instance;
|
||||
AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(derObjectIdentifier, instance);
|
||||
DerInteger derInteger = new DerInteger(serialNumber);
|
||||
CertID certID = CertificateID.CreateCertID(algorithmIdentifier, issuerCert, derInteger);
|
||||
this.id = certID;
|
||||
}
|
||||
|
||||
// Token: 0x17001511 RID: 5393
|
||||
// (get) Token: 0x060081C4 RID: 33220 RVA: 0x001B97AC File Offset: 0x001B79AC
|
||||
[Token(Token = "0x17001511")]
|
||||
public string HashAlgOid
|
||||
{
|
||||
[Token(Token = "0x60081C4")]
|
||||
[Address(RVA = "0xC11E00", Offset = "0xC10800", VA = "0x180C11E00")]
|
||||
get
|
||||
{
|
||||
Asn1Object asn1Object = this.id.hashAlgorithm.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081C5 RID: 33221 RVA: 0x001B97D0 File Offset: 0x001B79D0
|
||||
[Token(Token = "0x60081C5")]
|
||||
[Address(RVA = "0xC11BE0", Offset = "0xC105E0", VA = "0x180C11BE0")]
|
||||
public byte[] GetIssuerNameHash()
|
||||
{
|
||||
Stream octetStream = ((Asn1OctetStringParser)this.id.issuerNameHash).GetOctetStream();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081C6 RID: 33222 RVA: 0x001B97F4 File Offset: 0x001B79F4
|
||||
[Token(Token = "0x60081C6")]
|
||||
[Address(RVA = "0xC11BA0", Offset = "0xC105A0", VA = "0x180C11BA0")]
|
||||
public byte[] GetIssuerKeyHash()
|
||||
{
|
||||
Stream octetStream = ((Asn1OctetStringParser)this.id.issuerKeyHash).GetOctetStream();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001512 RID: 5394
|
||||
// (get) Token: 0x060081C7 RID: 33223 RVA: 0x001B9818 File Offset: 0x001B7A18
|
||||
[Token(Token = "0x17001512")]
|
||||
public BigInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x60081C7")]
|
||||
[Address(RVA = "0xC11E40", Offset = "0xC10840", VA = "0x180C11E40")]
|
||||
get
|
||||
{
|
||||
return this.id.serialNumber.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081C8 RID: 33224 RVA: 0x001B983C File Offset: 0x001B7A3C
|
||||
[Token(Token = "0x60081C8")]
|
||||
[Address(RVA = "0xC11C20", Offset = "0xC10620", VA = "0x180C11C20")]
|
||||
public bool MatchesIssuer(X509Certificate issuerCert)
|
||||
{
|
||||
CertID certID = this.id;
|
||||
DerInteger serialNumber = certID.serialNumber;
|
||||
Asn1Object asn1Object = CertificateID.CreateCertID(certID.hashAlgorithm, issuerCert, serialNumber).ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081C9 RID: 33225 RVA: 0x001B9870 File Offset: 0x001B7A70
|
||||
[Token(Token = "0x60081C9")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
public CertID ToAsn1Object()
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
|
||||
// Token: 0x060081CA RID: 33226 RVA: 0x001B9884 File Offset: 0x001B7A84
|
||||
[Token(Token = "0x60081CA")]
|
||||
[Address(RVA = "0xC11A50", Offset = "0xC10450", VA = "0x180C11A50", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
CertID certID = this.id;
|
||||
Asn1Object asn1Object = certID.ToAsn1Object();
|
||||
Asn1Object asn1Object2 = certID.ToAsn1Object();
|
||||
return asn1Object.Asn1Equals(asn1Object2);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060081CB RID: 33227 RVA: 0x001B98C8 File Offset: 0x001B7AC8
|
||||
[Token(Token = "0x60081CB")]
|
||||
[Address(RVA = "0xC11B60", Offset = "0xC10560", VA = "0x180C11B60", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return this.id.ToAsn1Object().Asn1GetHashCode();
|
||||
}
|
||||
|
||||
// Token: 0x060081CC RID: 33228 RVA: 0x001B98EC File Offset: 0x001B7AEC
|
||||
[Token(Token = "0x60081CC")]
|
||||
[Address(RVA = "0xC11960", Offset = "0xC10360", VA = "0x180C11960")]
|
||||
public static CertificateID DeriveCertificateID(CertificateID original, BigInteger newSerialNumber)
|
||||
{
|
||||
CertID certID = original.id;
|
||||
Asn1OctetString issuerNameHash = certID.issuerNameHash;
|
||||
AlgorithmIdentifier hashAlgorithm = certID.hashAlgorithm;
|
||||
Asn1OctetString issuerKeyHash = certID.issuerKeyHash;
|
||||
DerInteger derInteger = new DerInteger(newSerialNumber);
|
||||
return new CertificateID(new CertID(hashAlgorithm, issuerNameHash, issuerKeyHash, derInteger));
|
||||
}
|
||||
|
||||
// Token: 0x060081CD RID: 33229 RVA: 0x001B9934 File Offset: 0x001B7B34
|
||||
[Token(Token = "0x60081CD")]
|
||||
[Address(RVA = "0xC11750", Offset = "0xC10150", VA = "0x180C11750")]
|
||||
private static CertID CreateCertID(AlgorithmIdentifier hashAlg, X509Certificate issuerCert, DerInteger serialNumber)
|
||||
{
|
||||
Asn1Object asn1Object = hashAlg.ToAsn1Object();
|
||||
byte[] encoded = PrincipalUtilities.GetSubjectX509Principal(issuerCert).GetEncoded();
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
byte[] octets = subjectPublicKeyInfo.keyData.GetOctets();
|
||||
byte[] array;
|
||||
DerOctetString derOctetString = new DerOctetString(array);
|
||||
byte[] array2;
|
||||
DerOctetString derOctetString2 = new DerOctetString(array2);
|
||||
return new CertID(hashAlg, derOctetString, derOctetString2, serialNumber);
|
||||
}
|
||||
|
||||
// Token: 0x04005BC3 RID: 23491
|
||||
[Token(Token = "0x4005BC3")]
|
||||
public const string HashSha1 = "1.3.14.3.2.26";
|
||||
|
||||
// Token: 0x04005BC4 RID: 23492
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BC4")]
|
||||
private readonly CertID id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013E7 RID: 5095
|
||||
[Token(Token = "0x20013E7")]
|
||||
[StructLayout(3)]
|
||||
public abstract class CertificateStatus
|
||||
{
|
||||
// Token: 0x060081CE RID: 33230 RVA: 0x001B99BC File Offset: 0x001B7BBC
|
||||
[Token(Token = "0x60081CE")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected CertificateStatus()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060081CF RID: 33231 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
// Note: this type is marked as 'beforefieldinit'.
|
||||
[Token(Token = "0x60081CF")]
|
||||
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60")]
|
||||
static CertificateStatus()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x04005BC5 RID: 23493
|
||||
[Token(Token = "0x4005BC5")]
|
||||
public static readonly CertificateStatus Good;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013ED RID: 5101
|
||||
[Token(Token = "0x20013ED")]
|
||||
[StructLayout(3)]
|
||||
public class OCSPRespGenerator
|
||||
{
|
||||
// Token: 0x060081FB RID: 33275 RVA: 0x001BA320 File Offset: 0x001B8520
|
||||
[Token(Token = "0x60081FB")]
|
||||
[Address(RVA = "0xC205D0", Offset = "0xC1EFD0", VA = "0x180C205D0")]
|
||||
public OcspResp Generate(int status, object response)
|
||||
{
|
||||
while (response != 0)
|
||||
{
|
||||
if (response == 0)
|
||||
{
|
||||
OcspException ex = new OcspException("unknown response object");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
if (response != 0)
|
||||
{
|
||||
byte[] array;
|
||||
DerOctetString derOctetString = new DerOctetString(array);
|
||||
ResponseBytes responseBytes = new ResponseBytes(OcspObjectIdentifiers.PkixOcspBasic, derOctetString);
|
||||
OcspResponseStatus ocspResponseStatus = new OcspResponseStatus(status);
|
||||
OcspResponse ocspResponse = new OcspResponse(status);
|
||||
break;
|
||||
}
|
||||
}
|
||||
int num;
|
||||
OcspResponse ocspResponse2 = new OcspResponse(new OcspResponseStatus(status), num);
|
||||
num = 0;
|
||||
OcspResp ocspResp;
|
||||
ocspResp.resp = ocspResponse2;
|
||||
return ocspResp;
|
||||
}
|
||||
|
||||
// Token: 0x060081FC RID: 33276 RVA: 0x001BA3A4 File Offset: 0x001B85A4
|
||||
[Token(Token = "0x60081FC")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public OCSPRespGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04005BCD RID: 23501
|
||||
[Token(Token = "0x4005BCD")]
|
||||
public const int Successful = 0;
|
||||
|
||||
// Token: 0x04005BCE RID: 23502
|
||||
[Token(Token = "0x4005BCE")]
|
||||
public const int MalformedRequest = 1;
|
||||
|
||||
// Token: 0x04005BCF RID: 23503
|
||||
[Token(Token = "0x4005BCF")]
|
||||
public const int InternalError = 2;
|
||||
|
||||
// Token: 0x04005BD0 RID: 23504
|
||||
[Token(Token = "0x4005BD0")]
|
||||
public const int TryLater = 3;
|
||||
|
||||
// Token: 0x04005BD1 RID: 23505
|
||||
[Token(Token = "0x4005BD1")]
|
||||
public const int SigRequired = 5;
|
||||
|
||||
// Token: 0x04005BD2 RID: 23506
|
||||
[Token(Token = "0x4005BD2")]
|
||||
public const int Unauthorized = 6;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013EE RID: 5102
|
||||
[Token(Token = "0x20013EE")]
|
||||
[Obsolete]
|
||||
[StructLayout(3)]
|
||||
public abstract class OcscpRespStatus : OcspRespStatus
|
||||
{
|
||||
// Token: 0x060081FD RID: 33277 RVA: 0x001BA3B8 File Offset: 0x001B85B8
|
||||
[Token(Token = "0x60081FD")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected OcscpRespStatus()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013E8 RID: 5096
|
||||
[Token(Token = "0x20013E8")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class OcspException : Exception
|
||||
{
|
||||
// Token: 0x060081D0 RID: 33232 RVA: 0x001B99D0 File Offset: 0x001B7BD0
|
||||
[Token(Token = "0x60081D0")]
|
||||
[Address(RVA = "0xC20840", Offset = "0xC1F240", VA = "0x180C20840")]
|
||||
public OcspException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060081D1 RID: 33233 RVA: 0x001B99E4 File Offset: 0x001B7BE4
|
||||
[Token(Token = "0x60081D1")]
|
||||
[Address(RVA = "0xC208A0", Offset = "0xC1F2A0", VA = "0x180C208A0")]
|
||||
public OcspException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x060081D2 RID: 33234 RVA: 0x001B99F8 File Offset: 0x001B7BF8
|
||||
[Token(Token = "0x60081D2")]
|
||||
[Address(RVA = "0xC20910", Offset = "0xC1F310", VA = "0x180C20910")]
|
||||
public OcspException(string message, Exception e)
|
||||
: base(message, e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,316 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
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.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013E9 RID: 5097
|
||||
[Token(Token = "0x20013E9")]
|
||||
[StructLayout(3)]
|
||||
public class OcspReq : X509ExtensionBase
|
||||
{
|
||||
// Token: 0x060081D3 RID: 33235 RVA: 0x001B9A10 File Offset: 0x001B7C10
|
||||
[Token(Token = "0x60081D3")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public OcspReq(OcspRequest req)
|
||||
{
|
||||
this.req = req;
|
||||
}
|
||||
|
||||
// Token: 0x060081D4 RID: 33236 RVA: 0x001B9A2C File Offset: 0x001B7C2C
|
||||
[Token(Token = "0x60081D4")]
|
||||
[Address(RVA = "0xC222A0", Offset = "0xC20CA0", VA = "0x180C222A0")]
|
||||
public OcspReq(byte[] req)
|
||||
{
|
||||
Asn1InputStream asn1InputStream = new Asn1InputStream(req);
|
||||
}
|
||||
|
||||
// Token: 0x060081D5 RID: 33237 RVA: 0x001B9A40 File Offset: 0x001B7C40
|
||||
[Token(Token = "0x60081D5")]
|
||||
[Address(RVA = "0xC22230", Offset = "0xC20C30", VA = "0x180C22230")]
|
||||
public OcspReq(Stream inStr)
|
||||
{
|
||||
Asn1InputStream asn1InputStream = new Asn1InputStream(inStr);
|
||||
}
|
||||
|
||||
// Token: 0x060081D6 RID: 33238 RVA: 0x001B9A54 File Offset: 0x001B7C54
|
||||
[Token(Token = "0x60081D6")]
|
||||
[Address(RVA = "0xC22310", Offset = "0xC20D10", VA = "0x180C22310")]
|
||||
private OcspReq(Asn1InputStream aIn)
|
||||
{
|
||||
OcspRequest instance = OcspRequest.GetInstance(aIn.ReadObject());
|
||||
this.req = instance;
|
||||
}
|
||||
|
||||
// Token: 0x060081D7 RID: 33239 RVA: 0x001B9A90 File Offset: 0x001B7C90
|
||||
[Token(Token = "0x60081D7")]
|
||||
[Address(RVA = "0xC21EC0", Offset = "0xC208C0", VA = "0x180C21EC0")]
|
||||
public byte[] GetTbsRequest()
|
||||
{
|
||||
return this.req.tbsRequest.GetEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x17001513 RID: 5395
|
||||
// (get) Token: 0x060081D8 RID: 33240 RVA: 0x001B9ABC File Offset: 0x001B7CBC
|
||||
[Token(Token = "0x17001513")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x60081D8")]
|
||||
[Address(RVA = "0x53C660", Offset = "0x53B060", VA = "0x18053C660")]
|
||||
get
|
||||
{
|
||||
int intValue = this.req.tbsRequest.version.Value.IntValue;
|
||||
return intValue + 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001514 RID: 5396
|
||||
// (get) Token: 0x060081D9 RID: 33241 RVA: 0x001B9AF0 File Offset: 0x001B7CF0
|
||||
[Token(Token = "0x17001514")]
|
||||
public GeneralName RequestorName
|
||||
{
|
||||
[Token(Token = "0x60081D9")]
|
||||
[Address(RVA = "0xC22470", Offset = "0xC20E70", VA = "0x180C22470")]
|
||||
get
|
||||
{
|
||||
return GeneralName.GetInstance(this.req.tbsRequest.requestorName);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081DA RID: 33242 RVA: 0x001B9B18 File Offset: 0x001B7D18
|
||||
[Token(Token = "0x60081DA")]
|
||||
[Address(RVA = "0xC21D40", Offset = "0xC20740", VA = "0x180C21D40")]
|
||||
public Req[] GetRequestList()
|
||||
{
|
||||
Asn1Sequence requestList = this.req.tbsRequest.requestList;
|
||||
Asn1Encodable asn1Encodable;
|
||||
Req[] array = new Req[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = requestList.Parser;
|
||||
Req req;
|
||||
Request request;
|
||||
req.req = request;
|
||||
num++;
|
||||
array[0] = req;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x17001515 RID: 5397
|
||||
// (get) Token: 0x060081DB RID: 33243 RVA: 0x001B9B70 File Offset: 0x001B7D70
|
||||
[Token(Token = "0x17001515")]
|
||||
public X509Extensions RequestExtensions
|
||||
{
|
||||
[Token(Token = "0x60081DB")]
|
||||
[Address(RVA = "0xC21F70", Offset = "0xC20970", VA = "0x180C21F70")]
|
||||
get
|
||||
{
|
||||
return X509Extensions.GetInstance(this.req.tbsRequest.requestExtensions);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081DC RID: 33244 RVA: 0x001B9B98 File Offset: 0x001B7D98
|
||||
[Token(Token = "0x60081DC")]
|
||||
[Address(RVA = "0xC21F70", Offset = "0xC20970", VA = "0x180C21F70", Slot = "8")]
|
||||
protected override X509Extensions GetX509Extensions()
|
||||
{
|
||||
return X509Extensions.GetInstance(this.req.tbsRequest.requestExtensions);
|
||||
}
|
||||
|
||||
// Token: 0x17001516 RID: 5398
|
||||
// (get) Token: 0x060081DD RID: 33245 RVA: 0x001B9BC0 File Offset: 0x001B7DC0
|
||||
[Token(Token = "0x17001516")]
|
||||
public string SignatureAlgOid
|
||||
{
|
||||
[Token(Token = "0x60081DD")]
|
||||
[Address(RVA = "0xC224A0", Offset = "0xC20EA0", VA = "0x180C224A0")]
|
||||
get
|
||||
{
|
||||
Signature optionalSignature = this.req.optionalSignature;
|
||||
if (optionalSignature != 0)
|
||||
{
|
||||
Asn1Object asn1Object = optionalSignature.signatureAlgorithm.ToAsn1Object();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081DE RID: 33246 RVA: 0x001B9BF0 File Offset: 0x001B7DF0
|
||||
[Token(Token = "0x60081DE")]
|
||||
[Address(RVA = "0xC21E80", Offset = "0xC20880", VA = "0x180C21E80")]
|
||||
public byte[] GetSignature()
|
||||
{
|
||||
Signature optionalSignature = this.req.optionalSignature;
|
||||
if (optionalSignature != 0)
|
||||
{
|
||||
return optionalSignature.GetSignatureOctets();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081DF RID: 33247 RVA: 0x001B9C1C File Offset: 0x001B7E1C
|
||||
[Token(Token = "0x60081DF")]
|
||||
[Address(RVA = "0xC216F0", Offset = "0xC200F0", VA = "0x180C216F0")]
|
||||
private IList GetCertList()
|
||||
{
|
||||
IList list;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
list = Platform.CreateArrayList();
|
||||
Asn1Sequence certs = this.req.optionalSignature.certs;
|
||||
if (certs == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IEnumerator enumerator = certs.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0)
|
||||
{
|
||||
}
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_6A;
|
||||
}
|
||||
byte[] array;
|
||||
if (new X509CertificateParser().ReadCertificate(array) != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return list;
|
||||
IL_6A:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081E0 RID: 33248 RVA: 0x001B9C98 File Offset: 0x001B7E98
|
||||
[Token(Token = "0x60081E0")]
|
||||
[Address(RVA = "0xC21AA0", Offset = "0xC204A0", VA = "0x180C21AA0")]
|
||||
public X509Certificate[] GetCerts()
|
||||
{
|
||||
while (this.req.optionalSignature > (ulong)0L)
|
||||
{
|
||||
IList certList = this.GetCertList();
|
||||
X509Certificate[] array = new X509Certificate[certList];
|
||||
int num = 0;
|
||||
if (num < certList)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num < array)
|
||||
{
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
ulong num3;
|
||||
num3 += num3;
|
||||
num3 += num3;
|
||||
if (num == 0 || num == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
num++;
|
||||
array[0] = num;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081E1 RID: 33249 RVA: 0x001B9D14 File Offset: 0x001B7F14
|
||||
[Token(Token = "0x60081E1")]
|
||||
[Address(RVA = "0xC21990", Offset = "0xC20390", VA = "0x180C21990")]
|
||||
public IX509Store GetCertificates(string type)
|
||||
{
|
||||
if (this.req.optionalSignature > (ulong)0L)
|
||||
{
|
||||
string text = "Certificate/" + type;
|
||||
X509CollectionStoreParameters x509CollectionStoreParameters = new X509CollectionStoreParameters(this.GetCertList());
|
||||
return X509StoreFactory.Create(text, x509CollectionStoreParameters);
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001517 RID: 5399
|
||||
// (get) Token: 0x060081E2 RID: 33250 RVA: 0x001B9D58 File Offset: 0x001B7F58
|
||||
[Token(Token = "0x17001517")]
|
||||
public bool IsSigned
|
||||
{
|
||||
[Token(Token = "0x60081E2")]
|
||||
[Address(RVA = "0xC22450", Offset = "0xC20E50", VA = "0x180C22450")]
|
||||
get
|
||||
{
|
||||
OcspRequest ocspRequest = this.req;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081E3 RID: 33251 RVA: 0x001B9D74 File Offset: 0x001B7F74
|
||||
[Token(Token = "0x60081E3")]
|
||||
[Address(RVA = "0xC21FE0", Offset = "0xC209E0", VA = "0x180C21FE0")]
|
||||
public bool Verify(AsymmetricKeyParameter publicKey)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (060081E3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.OcspReq::Verify(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.AsymmetricKeyParameter)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_B7:
|
||||
stloc:OcspException(var_9_C1, newobj:OcspException(OcspException::.ctor, ldstr:string("attempt to Verify signature on unsigned object")))
|
||||
}
|
||||
|
||||
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: 0x060081E4 RID: 33252 RVA: 0x001B9E44 File Offset: 0x001B8044
|
||||
[Token(Token = "0x60081E4")]
|
||||
[Address(RVA = "0x53BEA0", Offset = "0x53A8A0", VA = "0x18053BEA0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return this.req.GetEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x04005BC6 RID: 23494
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BC6")]
|
||||
private OcspRequest req;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,260 @@
|
||||
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.Security;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013EA RID: 5098
|
||||
[Token(Token = "0x20013EA")]
|
||||
[StructLayout(3)]
|
||||
public class OcspReqGenerator
|
||||
{
|
||||
// Token: 0x060081E5 RID: 33253 RVA: 0x001B9E64 File Offset: 0x001B8064
|
||||
[Token(Token = "0x60081E5")]
|
||||
[Address(RVA = "0xC20A30", Offset = "0xC1F430", VA = "0x180C20A30")]
|
||||
public void AddRequest(CertificateID certId)
|
||||
{
|
||||
IList list = this.list;
|
||||
OcspReqGenerator.RequestObject requestObject;
|
||||
requestObject.certId = certId;
|
||||
requestObject.extensions = (ulong)0L;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081E6 RID: 33254 RVA: 0x001B9E90 File Offset: 0x001B8090
|
||||
[Token(Token = "0x60081E6")]
|
||||
[Address(RVA = "0xC20990", Offset = "0xC1F390", VA = "0x180C20990")]
|
||||
public void AddRequest(CertificateID certId, X509Extensions singleRequestExtensions)
|
||||
{
|
||||
IList list = this.list;
|
||||
OcspReqGenerator.RequestObject requestObject;
|
||||
requestObject.certId = certId;
|
||||
requestObject.extensions = singleRequestExtensions;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081E7 RID: 33255 RVA: 0x001B9EB8 File Offset: 0x001B80B8
|
||||
[Token(Token = "0x60081E7")]
|
||||
[Address(RVA = "0xC21580", Offset = "0xC1FF80", VA = "0x180C21580")]
|
||||
public void SetRequestorName(X509Name requestorName)
|
||||
{
|
||||
GeneralName generalName = new GeneralName(4, requestorName);
|
||||
this.requestorName = generalName;
|
||||
}
|
||||
|
||||
// Token: 0x060081E8 RID: 33256 RVA: 0x001B9ED4 File Offset: 0x001B80D4
|
||||
[Token(Token = "0x60081E8")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
public void SetRequestorName(GeneralName requestorName)
|
||||
{
|
||||
this.requestorName = requestorName;
|
||||
}
|
||||
|
||||
// Token: 0x060081E9 RID: 33257 RVA: 0x001B9EE8 File Offset: 0x001B80E8
|
||||
[Token(Token = "0x60081E9")]
|
||||
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
|
||||
public void SetRequestExtensions(X509Extensions requestExtensions)
|
||||
{
|
||||
this.requestExtensions = requestExtensions;
|
||||
}
|
||||
|
||||
// Token: 0x060081EA RID: 33258 RVA: 0x001B9EFC File Offset: 0x001B80FC
|
||||
[Token(Token = "0x60081EA")]
|
||||
[Address(RVA = "0xC20AC0", Offset = "0xC1F4C0", VA = "0x180C20AC0")]
|
||||
private OcspReq GenerateRequest(DerObjectIdentifier signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, SecureRandom random)
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
int num2;
|
||||
DerSequence derSequence;
|
||||
TbsRequest tbsRequest;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
IList list = this.list;
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
num2 = 0;
|
||||
ArrayTypeMismatchException ex;
|
||||
if (ex != 0)
|
||||
{
|
||||
}
|
||||
if ((num == -1 || "{il2cpp array field local12->}" != (ulong)111L) && num != 0)
|
||||
{
|
||||
goto IL_140;
|
||||
}
|
||||
GeneralName generalName = this.requestorName;
|
||||
derSequence = new DerSequence(asn1EncodableVector);
|
||||
X509Extensions x509Extensions = this.requestExtensions;
|
||||
tbsRequest = new TbsRequest(generalName, derSequence, x509Extensions);
|
||||
if (tbsRequest == 0)
|
||||
{
|
||||
goto IL_110;
|
||||
}
|
||||
if (this.requestorName != (ulong)0L)
|
||||
{
|
||||
goto Block_4;
|
||||
}
|
||||
}
|
||||
if (asn1EncodableVector == 0)
|
||||
{
|
||||
}
|
||||
if (asn1EncodableVector != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
Block_4:
|
||||
DerInteger version = tbsRequest.version;
|
||||
if (derSequence == 0)
|
||||
{
|
||||
}
|
||||
int length = tbsRequest.GetEncoded().Length;
|
||||
if (chain == 0 || chain.Length == 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
Asn1EncodableVector asn1EncodableVector2;
|
||||
if (num2 != chain.Length)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
AsymmetricKeyParameter publicKey = chain[num2].GetPublicKey();
|
||||
Asn1Object asn1Object;
|
||||
X509CertificateStructure instance = X509CertificateStructure.GetInstance(asn1Object);
|
||||
if (instance != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = instance;
|
||||
asn1EncodableVector2.Add(array2);
|
||||
num2++;
|
||||
}
|
||||
DerSequence derSequence2 = new DerSequence(asn1EncodableVector2);
|
||||
IL_110:
|
||||
OcspReq ocspReq;
|
||||
OcspRequest ocspRequest;
|
||||
ocspReq.req = ocspRequest;
|
||||
return ocspReq;
|
||||
IL_140:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081EB RID: 33259 RVA: 0x001BA074 File Offset: 0x001B8274
|
||||
[Token(Token = "0x60081EB")]
|
||||
[Address(RVA = "0xC21550", Offset = "0xC1FF50", VA = "0x180C21550")]
|
||||
public OcspReq Generate()
|
||||
{
|
||||
OcspReq ocspReq;
|
||||
return ocspReq;
|
||||
}
|
||||
|
||||
// Token: 0x060081EC RID: 33260 RVA: 0x001BA084 File Offset: 0x001B8284
|
||||
[Token(Token = "0x60081EC")]
|
||||
[Address(RVA = "0xC212A0", Offset = "0xC1FCA0", VA = "0x180C212A0")]
|
||||
public OcspReq Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain)
|
||||
{
|
||||
int num = 0;
|
||||
return this.Generate(signingAlgorithm, privateKey, chain, num);
|
||||
}
|
||||
|
||||
// Token: 0x060081ED RID: 33261 RVA: 0x001BA0A0 File Offset: 0x001B82A0
|
||||
[Token(Token = "0x60081ED")]
|
||||
[Address(RVA = "0xC212C0", Offset = "0xC1FCC0", VA = "0x180C212C0")]
|
||||
public OcspReq Generate(string signingAlgorithm, AsymmetricKeyParameter privateKey, X509Certificate[] chain, SecureRandom random)
|
||||
{
|
||||
if (signingAlgorithm != 0)
|
||||
{
|
||||
string text = Platform.ToUpperInvariant(signingAlgorithm);
|
||||
IDictionary algorithms = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier(text);
|
||||
IDictionary algorithms2 = OcspUtilities.algorithms;
|
||||
IDictionary algorithms3 = OcspUtilities.algorithms;
|
||||
OcspReq ocspReq;
|
||||
return ocspReq;
|
||||
}
|
||||
ArgumentException ex = new ArgumentException("no signing algorithm specified");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001518 RID: 5400
|
||||
// (get) Token: 0x060081EE RID: 33262 RVA: 0x001BA0FC File Offset: 0x001B82FC
|
||||
[Token(Token = "0x17001518")]
|
||||
public IEnumerable SignatureAlgNames
|
||||
{
|
||||
[Token(Token = "0x60081EE")]
|
||||
[Address(RVA = "0xC216A0", Offset = "0xC200A0", VA = "0x180C216A0")]
|
||||
get
|
||||
{
|
||||
return OcspUtilities.AlgNames;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081EF RID: 33263 RVA: 0x001BA110 File Offset: 0x001B8310
|
||||
[Token(Token = "0x60081EF")]
|
||||
[Address(RVA = "0xC21640", Offset = "0xC20040", VA = "0x180C21640")]
|
||||
public OcspReqGenerator()
|
||||
{
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.list = list;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04005BC7 RID: 23495
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BC7")]
|
||||
private IList list;
|
||||
|
||||
// Token: 0x04005BC8 RID: 23496
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005BC8")]
|
||||
private GeneralName requestorName;
|
||||
|
||||
// Token: 0x04005BC9 RID: 23497
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005BC9")]
|
||||
private X509Extensions requestExtensions;
|
||||
|
||||
// Token: 0x020013EB RID: 5099
|
||||
[Token(Token = "0x20013EB")]
|
||||
private class RequestObject
|
||||
{
|
||||
// Token: 0x060081F0 RID: 33264 RVA: 0x001BA134 File Offset: 0x001B8334
|
||||
[Token(Token = "0x60081F0")]
|
||||
[Address(RVA = "0x3C39C0", Offset = "0x3C23C0", VA = "0x1803C39C0")]
|
||||
public RequestObject(CertificateID certId, X509Extensions extensions)
|
||||
{
|
||||
this.certId = certId;
|
||||
this.extensions = extensions;
|
||||
}
|
||||
|
||||
// Token: 0x060081F1 RID: 33265 RVA: 0x001BA158 File Offset: 0x001B8358
|
||||
[Token(Token = "0x60081F1")]
|
||||
[Address(RVA = "0xC24120", Offset = "0xC22B20", VA = "0x180C24120")]
|
||||
public Request ToRequest()
|
||||
{
|
||||
CertID id = this.certId.id;
|
||||
X509Extensions x509Extensions = this.extensions;
|
||||
return new Request(id, x509Extensions);
|
||||
}
|
||||
|
||||
// Token: 0x04005BCA RID: 23498
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BCA")]
|
||||
internal CertificateID certId;
|
||||
|
||||
// Token: 0x04005BCB RID: 23499
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005BCB")]
|
||||
internal X509Extensions extensions;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013EC RID: 5100
|
||||
[Token(Token = "0x20013EC")]
|
||||
[StructLayout(3)]
|
||||
public class OcspResp
|
||||
{
|
||||
// Token: 0x060081F2 RID: 33266 RVA: 0x001BA188 File Offset: 0x001B8388
|
||||
[Token(Token = "0x60081F2")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public OcspResp(OcspResponse resp)
|
||||
{
|
||||
this.resp = resp;
|
||||
}
|
||||
|
||||
// Token: 0x060081F3 RID: 33267 RVA: 0x001BA1A4 File Offset: 0x001B83A4
|
||||
[Token(Token = "0x60081F3")]
|
||||
[Address(RVA = "0xC22840", Offset = "0xC21240", VA = "0x180C22840")]
|
||||
public OcspResp(byte[] resp)
|
||||
{
|
||||
Asn1InputStream asn1InputStream = new Asn1InputStream(resp);
|
||||
}
|
||||
|
||||
// Token: 0x060081F4 RID: 33268 RVA: 0x001BA1B8 File Offset: 0x001B83B8
|
||||
[Token(Token = "0x60081F4")]
|
||||
[Address(RVA = "0xC228B0", Offset = "0xC212B0", VA = "0x180C228B0")]
|
||||
public OcspResp(Stream inStr)
|
||||
{
|
||||
Asn1InputStream asn1InputStream = new Asn1InputStream(inStr);
|
||||
}
|
||||
|
||||
// Token: 0x060081F5 RID: 33269 RVA: 0x001BA1CC File Offset: 0x001B83CC
|
||||
[Token(Token = "0x60081F5")]
|
||||
[Address(RVA = "0xC22760", Offset = "0xC21160", VA = "0x180C22760")]
|
||||
private OcspResp(Asn1InputStream aIn)
|
||||
{
|
||||
OcspResponse instance = OcspResponse.GetInstance(aIn.ReadObject());
|
||||
this.resp = instance;
|
||||
}
|
||||
|
||||
// Token: 0x17001519 RID: 5401
|
||||
// (get) Token: 0x060081F6 RID: 33270 RVA: 0x001BA208 File Offset: 0x001B8408
|
||||
[Token(Token = "0x17001519")]
|
||||
public int Status
|
||||
{
|
||||
[Token(Token = "0x60081F6")]
|
||||
[Address(RVA = "0xC22920", Offset = "0xC21320", VA = "0x180C22920")]
|
||||
get
|
||||
{
|
||||
return this.resp.responseStatus.Value.IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x060081F7 RID: 33271 RVA: 0x001BA230 File Offset: 0x001B8430
|
||||
[Token(Token = "0x60081F7")]
|
||||
[Address(RVA = "0xC225B0", Offset = "0xC20FB0", VA = "0x180C225B0")]
|
||||
public object GetResponseObject()
|
||||
{
|
||||
ResponseBytes responseBytes = this.resp.responseBytes;
|
||||
if (responseBytes != 0)
|
||||
{
|
||||
DerObjectIdentifier responseType = responseBytes.responseType;
|
||||
Asn1OctetString response = responseBytes.response;
|
||||
Stream octetStream = responseBytes.response.GetOctetStream();
|
||||
Asn1Object asn1Object;
|
||||
BasicOcspResponse instance = BasicOcspResponse.GetInstance(asn1Object);
|
||||
BasicOcspResp basicOcspResp;
|
||||
basicOcspResp.resp = instance;
|
||||
ResponseData tbsResponseData = instance.tbsResponseData;
|
||||
basicOcspResp.data = tbsResponseData;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x060081F8 RID: 33272 RVA: 0x001BA2B0 File Offset: 0x001B84B0
|
||||
[Token(Token = "0x60081F8")]
|
||||
[Address(RVA = "0x53BEA0", Offset = "0x53A8A0", VA = "0x18053BEA0")]
|
||||
public byte[] GetEncoded()
|
||||
{
|
||||
return this.resp.GetEncoded();
|
||||
}
|
||||
|
||||
// Token: 0x060081F9 RID: 33273 RVA: 0x001BA2D0 File Offset: 0x001B84D0
|
||||
[Token(Token = "0x60081F9")]
|
||||
[Address(RVA = "0xC224F0", Offset = "0xC20EF0", VA = "0x180C224F0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
Asn1Object asn1Object = this.resp.ToAsn1Object();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x060081FA RID: 33274 RVA: 0x001BA300 File Offset: 0x001B8500
|
||||
[Token(Token = "0x60081FA")]
|
||||
[Address(RVA = "0x528AC0", Offset = "0x5274C0", VA = "0x180528AC0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
Asn1Object asn1Object = this.resp.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005BCC RID: 23500
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BCC")]
|
||||
private OcspResponse resp;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013EF RID: 5103
|
||||
[Token(Token = "0x20013EF")]
|
||||
[StructLayout(3)]
|
||||
public abstract class OcspRespStatus
|
||||
{
|
||||
// Token: 0x060081FE RID: 33278 RVA: 0x001BA3CC File Offset: 0x001B85CC
|
||||
[Token(Token = "0x60081FE")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
protected OcspRespStatus()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04005BD3 RID: 23507
|
||||
[Token(Token = "0x4005BD3")]
|
||||
public const int Successful = 0;
|
||||
|
||||
// Token: 0x04005BD4 RID: 23508
|
||||
[Token(Token = "0x4005BD4")]
|
||||
public const int MalformedRequest = 1;
|
||||
|
||||
// Token: 0x04005BD5 RID: 23509
|
||||
[Token(Token = "0x4005BD5")]
|
||||
public const int InternalError = 2;
|
||||
|
||||
// Token: 0x04005BD6 RID: 23510
|
||||
[Token(Token = "0x4005BD6")]
|
||||
public const int TryLater = 3;
|
||||
|
||||
// Token: 0x04005BD7 RID: 23511
|
||||
[Token(Token = "0x4005BD7")]
|
||||
public const int SigRequired = 5;
|
||||
|
||||
// Token: 0x04005BD8 RID: 23512
|
||||
[Token(Token = "0x4005BD8")]
|
||||
public const int Unauthorized = 6;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,196 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.CryptoPro;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Nist;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.TeleTrust;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X9;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013F0 RID: 5104
|
||||
[Token(Token = "0x20013F0")]
|
||||
[StructLayout(3)]
|
||||
internal class OcspUtilities
|
||||
{
|
||||
// Token: 0x060081FF RID: 33279 RVA: 0x001BA3E0 File Offset: 0x001B85E0
|
||||
[Token(Token = "0x60081FF")]
|
||||
[Address(RVA = "0xC22D10", Offset = "0xC21710", VA = "0x180C22D10")]
|
||||
static OcspUtilities()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
OcspUtilities.algorithms = dictionary;
|
||||
OcspUtilities.oids = Platform.CreateHashtable();
|
||||
OcspUtilities.noParams = new HashSet();
|
||||
IDictionary dictionary2 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier md2WithRsaEncryption = PkcsObjectIdentifiers.MD2WithRsaEncryption;
|
||||
IDictionary dictionary3 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier md2WithRsaEncryption2 = PkcsObjectIdentifiers.MD2WithRsaEncryption;
|
||||
IDictionary dictionary4 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier md5WithRsaEncryption = PkcsObjectIdentifiers.MD5WithRsaEncryption;
|
||||
IDictionary dictionary5 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier md5WithRsaEncryption2 = PkcsObjectIdentifiers.MD5WithRsaEncryption;
|
||||
IDictionary dictionary6 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha1WithRsaEncryption = PkcsObjectIdentifiers.Sha1WithRsaEncryption;
|
||||
IDictionary dictionary7 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha1WithRsaEncryption2 = PkcsObjectIdentifiers.Sha1WithRsaEncryption;
|
||||
IDictionary dictionary8 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha224WithRsaEncryption = PkcsObjectIdentifiers.Sha224WithRsaEncryption;
|
||||
IDictionary dictionary9 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha224WithRsaEncryption2 = PkcsObjectIdentifiers.Sha224WithRsaEncryption;
|
||||
IDictionary dictionary10 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha256WithRsaEncryption = PkcsObjectIdentifiers.Sha256WithRsaEncryption;
|
||||
IDictionary dictionary11 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha256WithRsaEncryption2 = PkcsObjectIdentifiers.Sha256WithRsaEncryption;
|
||||
IDictionary dictionary12 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha384WithRsaEncryption = PkcsObjectIdentifiers.Sha384WithRsaEncryption;
|
||||
IDictionary dictionary13 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha384WithRsaEncryption2 = PkcsObjectIdentifiers.Sha384WithRsaEncryption;
|
||||
IDictionary dictionary14 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha512WithRsaEncryption = PkcsObjectIdentifiers.Sha512WithRsaEncryption;
|
||||
IDictionary dictionary15 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier sha512WithRsaEncryption2 = PkcsObjectIdentifiers.Sha512WithRsaEncryption;
|
||||
IDictionary dictionary16 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier rsaSignatureWithRipeMD = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD160;
|
||||
IDictionary dictionary17 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier rsaSignatureWithRipeMD2 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD160;
|
||||
IDictionary dictionary18 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier rsaSignatureWithRipeMD3 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD128;
|
||||
IDictionary dictionary19 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier rsaSignatureWithRipeMD4 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD128;
|
||||
IDictionary dictionary20 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier rsaSignatureWithRipeMD5 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD256;
|
||||
IDictionary dictionary21 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier rsaSignatureWithRipeMD6 = TeleTrusTObjectIdentifiers.RsaSignatureWithRipeMD256;
|
||||
IDictionary dictionary22 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier idDsaWithSha = X9ObjectIdentifiers.IdDsaWithSha1;
|
||||
IDictionary dictionary23 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier idDsaWithSha2 = X9ObjectIdentifiers.IdDsaWithSha1;
|
||||
IDictionary dictionary24 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier dsaWithSha = NistObjectIdentifiers.DsaWithSha224;
|
||||
IDictionary dictionary25 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier dsaWithSha2 = NistObjectIdentifiers.DsaWithSha256;
|
||||
IDictionary dictionary26 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier ecdsaWithSha = X9ObjectIdentifiers.ECDsaWithSha1;
|
||||
IDictionary dictionary27 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier ecdsaWithSha2 = X9ObjectIdentifiers.ECDsaWithSha1;
|
||||
IDictionary dictionary28 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier ecdsaWithSha3 = X9ObjectIdentifiers.ECDsaWithSha224;
|
||||
IDictionary dictionary29 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier ecdsaWithSha4 = X9ObjectIdentifiers.ECDsaWithSha256;
|
||||
IDictionary dictionary30 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier ecdsaWithSha5 = X9ObjectIdentifiers.ECDsaWithSha384;
|
||||
IDictionary dictionary31 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier ecdsaWithSha6 = X9ObjectIdentifiers.ECDsaWithSha512;
|
||||
IDictionary dictionary32 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier gostR3411x94WithGostR3410x = CryptoProObjectIdentifiers.GostR3411x94WithGostR3410x94;
|
||||
IDictionary dictionary33 = OcspUtilities.algorithms;
|
||||
DerObjectIdentifier gostR3411x94WithGostR3410x2 = CryptoProObjectIdentifiers.GostR3411x94WithGostR3410x94;
|
||||
IDictionary dictionary34 = OcspUtilities.oids;
|
||||
IDictionary dictionary35 = OcspUtilities.oids;
|
||||
IDictionary dictionary36 = OcspUtilities.oids;
|
||||
IDictionary dictionary37 = OcspUtilities.oids;
|
||||
IDictionary dictionary38 = OcspUtilities.oids;
|
||||
IDictionary dictionary39 = OcspUtilities.oids;
|
||||
IDictionary dictionary40 = OcspUtilities.oids;
|
||||
IDictionary dictionary41 = OcspUtilities.oids;
|
||||
IDictionary dictionary42 = OcspUtilities.oids;
|
||||
IDictionary dictionary43 = OcspUtilities.oids;
|
||||
IDictionary dictionary44 = OcspUtilities.oids;
|
||||
IDictionary dictionary45 = OcspUtilities.oids;
|
||||
IDictionary dictionary46 = OcspUtilities.oids;
|
||||
IDictionary dictionary47 = OcspUtilities.oids;
|
||||
IDictionary dictionary48 = OcspUtilities.oids;
|
||||
IDictionary dictionary49 = OcspUtilities.oids;
|
||||
IDictionary dictionary50 = OcspUtilities.oids;
|
||||
IDictionary dictionary51 = OcspUtilities.oids;
|
||||
IDictionary dictionary52 = OcspUtilities.oids;
|
||||
IDictionary dictionary53 = OcspUtilities.oids;
|
||||
IDictionary dictionary54 = OcspUtilities.oids;
|
||||
IDictionary dictionary55 = OcspUtilities.oids;
|
||||
ISet set = OcspUtilities.noParams;
|
||||
ISet set2 = OcspUtilities.noParams;
|
||||
ISet set3 = OcspUtilities.noParams;
|
||||
ISet set4 = OcspUtilities.noParams;
|
||||
ISet set5 = OcspUtilities.noParams;
|
||||
ISet set6 = OcspUtilities.noParams;
|
||||
ISet set7 = OcspUtilities.noParams;
|
||||
ISet set8 = OcspUtilities.noParams;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008200 RID: 33280 RVA: 0x001BA6A8 File Offset: 0x001B88A8
|
||||
[Token(Token = "0x6008200")]
|
||||
[Address(RVA = "0xC22A70", Offset = "0xC21470", VA = "0x180C22A70")]
|
||||
internal static DerObjectIdentifier GetAlgorithmOid(string algorithmName)
|
||||
{
|
||||
string text = Platform.ToUpperInvariant(algorithmName);
|
||||
IDictionary dictionary = OcspUtilities.algorithms;
|
||||
if (text == 0)
|
||||
{
|
||||
return new DerObjectIdentifier(text);
|
||||
}
|
||||
IDictionary dictionary2 = OcspUtilities.algorithms;
|
||||
IDictionary dictionary3 = OcspUtilities.algorithms;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06008201 RID: 33281 RVA: 0x001BA6E4 File Offset: 0x001B88E4
|
||||
[Token(Token = "0x6008201")]
|
||||
[Address(RVA = "0xC22960", Offset = "0xC21360", VA = "0x180C22960")]
|
||||
internal static string GetAlgorithmName(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary = OcspUtilities.oids;
|
||||
return oid.identifier;
|
||||
}
|
||||
|
||||
// Token: 0x06008202 RID: 33282 RVA: 0x001BA70C File Offset: 0x001B890C
|
||||
[Token(Token = "0x6008202")]
|
||||
[Address(RVA = "0xC22BF0", Offset = "0xC215F0", VA = "0x180C22BF0")]
|
||||
internal static AlgorithmIdentifier GetSigAlgID(DerObjectIdentifier sigOid)
|
||||
{
|
||||
ISet set = OcspUtilities.noParams;
|
||||
DerNull instance = DerNull.Instance;
|
||||
return new AlgorithmIdentifier(sigOid, instance);
|
||||
}
|
||||
|
||||
// Token: 0x1700151A RID: 5402
|
||||
// (get) Token: 0x06008203 RID: 33283 RVA: 0x001BA73C File Offset: 0x001B893C
|
||||
[Token(Token = "0x1700151A")]
|
||||
internal static IEnumerable AlgNames
|
||||
{
|
||||
[Token(Token = "0x6008203")]
|
||||
[Address(RVA = "0xC24000", Offset = "0xC22A00", VA = "0x180C24000")]
|
||||
get
|
||||
{
|
||||
IDictionary dictionary = OcspUtilities.algorithms;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008204 RID: 33284 RVA: 0x001BA754 File Offset: 0x001B8954
|
||||
[Token(Token = "0x6008204")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public OcspUtilities()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x04005BD9 RID: 23513
|
||||
[Token(Token = "0x4005BD9")]
|
||||
private static readonly IDictionary algorithms;
|
||||
|
||||
// Token: 0x04005BDA RID: 23514
|
||||
[Token(Token = "0x4005BDA")]
|
||||
private static readonly IDictionary oids;
|
||||
|
||||
// Token: 0x04005BDB RID: 23515
|
||||
[Token(Token = "0x4005BDB")]
|
||||
private static readonly ISet noParams;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013F1 RID: 5105
|
||||
[Token(Token = "0x20013F1")]
|
||||
[StructLayout(3)]
|
||||
public class Req : X509ExtensionBase
|
||||
{
|
||||
// Token: 0x06008205 RID: 33285 RVA: 0x001BA768 File Offset: 0x001B8968
|
||||
[Token(Token = "0x6008205")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public Req(Request req)
|
||||
{
|
||||
this.req = req;
|
||||
}
|
||||
|
||||
// Token: 0x06008206 RID: 33286 RVA: 0x001BA784 File Offset: 0x001B8984
|
||||
[Token(Token = "0x6008206")]
|
||||
[Address(RVA = "0xC240B0", Offset = "0xC22AB0", VA = "0x180C240B0")]
|
||||
public CertificateID GetCertID()
|
||||
{
|
||||
return new CertificateID(this.req.reqCert);
|
||||
}
|
||||
|
||||
// Token: 0x1700151B RID: 5403
|
||||
// (get) Token: 0x06008207 RID: 33287 RVA: 0x001BA7A8 File Offset: 0x001B89A8
|
||||
[Token(Token = "0x1700151B")]
|
||||
public X509Extensions SingleRequestExtensions
|
||||
{
|
||||
[Token(Token = "0x6008207")]
|
||||
[Address(RVA = "0x53C640", Offset = "0x53B040", VA = "0x18053C640")]
|
||||
get
|
||||
{
|
||||
return this.req.singleRequestExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008208 RID: 33288 RVA: 0x001BA7C8 File Offset: 0x001B89C8
|
||||
[Token(Token = "0x6008208")]
|
||||
[Address(RVA = "0x53C640", Offset = "0x53B040", VA = "0x18053C640", Slot = "8")]
|
||||
protected override X509Extensions GetX509Extensions()
|
||||
{
|
||||
return this.req.singleRequestExtensions;
|
||||
}
|
||||
|
||||
// Token: 0x04005BDC RID: 23516
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BDC")]
|
||||
private Request req;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
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.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013F2 RID: 5106
|
||||
[Token(Token = "0x20013F2")]
|
||||
[StructLayout(3)]
|
||||
public class RespData : X509ExtensionBase
|
||||
{
|
||||
// Token: 0x06008209 RID: 33289 RVA: 0x001BA7E8 File Offset: 0x001B89E8
|
||||
[Token(Token = "0x6008209")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public RespData(ResponseData data)
|
||||
{
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
// Token: 0x1700151C RID: 5404
|
||||
// (get) Token: 0x0600820A RID: 33290 RVA: 0x001BA804 File Offset: 0x001B8A04
|
||||
[Token(Token = "0x1700151C")]
|
||||
public int Version
|
||||
{
|
||||
[Token(Token = "0x600820A")]
|
||||
[Address(RVA = "0xC24380", Offset = "0xC22D80", VA = "0x180C24380")]
|
||||
get
|
||||
{
|
||||
int intValue = this.data.version.Value.IntValue;
|
||||
return intValue + 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600820B RID: 33291 RVA: 0x001BA834 File Offset: 0x001B8A34
|
||||
[Token(Token = "0x600820B")]
|
||||
[Address(RVA = "0xC241A0", Offset = "0xC22BA0", VA = "0x180C241A0")]
|
||||
public RespID GetResponderId()
|
||||
{
|
||||
ResponderID responderID = this.data.responderID;
|
||||
RespID respID;
|
||||
respID.id = responderID;
|
||||
return respID;
|
||||
}
|
||||
|
||||
// Token: 0x1700151D RID: 5405
|
||||
// (get) Token: 0x0600820C RID: 33292 RVA: 0x001BA85C File Offset: 0x001B8A5C
|
||||
[Token(Token = "0x1700151D")]
|
||||
public DateTime ProducedAt
|
||||
{
|
||||
[Token(Token = "0x600820C")]
|
||||
[Address(RVA = "0xC24350", Offset = "0xC22D50", VA = "0x180C24350")]
|
||||
get
|
||||
{
|
||||
return this.data.producedAt.ToDateTime();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600820D RID: 33293 RVA: 0x001BA880 File Offset: 0x001B8A80
|
||||
[Token(Token = "0x600820D")]
|
||||
[Address(RVA = "0xC24210", Offset = "0xC22C10", VA = "0x180C24210")]
|
||||
public SingleResp[] GetResponses()
|
||||
{
|
||||
Asn1Sequence responses = this.data.responses;
|
||||
Asn1Encodable asn1Encodable;
|
||||
SingleResp[] array = new SingleResp[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num != array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = responses.Parser;
|
||||
SingleResp singleResp;
|
||||
SingleResponse singleResponse;
|
||||
singleResp.resp = singleResponse;
|
||||
num++;
|
||||
array[0] = singleResp;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x1700151E RID: 5406
|
||||
// (get) Token: 0x0600820E RID: 33294 RVA: 0x001BA8D0 File Offset: 0x001B8AD0
|
||||
[Token(Token = "0x1700151E")]
|
||||
public X509Extensions ResponseExtensions
|
||||
{
|
||||
[Token(Token = "0x600820E")]
|
||||
[Address(RVA = "0xA4BA40", Offset = "0xA4A440", VA = "0x180A4BA40")]
|
||||
get
|
||||
{
|
||||
return this.data.responseExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600820F RID: 33295 RVA: 0x001BA8F0 File Offset: 0x001B8AF0
|
||||
[Token(Token = "0x600820F")]
|
||||
[Address(RVA = "0xA4BA40", Offset = "0xA4A440", VA = "0x180A4BA40", Slot = "8")]
|
||||
protected override X509Extensions GetX509Extensions()
|
||||
{
|
||||
return this.data.responseExtensions;
|
||||
}
|
||||
|
||||
// Token: 0x04005BDD RID: 23517
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BDD")]
|
||||
internal readonly ResponseData data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
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.Security;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013F3 RID: 5107
|
||||
[Token(Token = "0x20013F3")]
|
||||
[StructLayout(3)]
|
||||
public class RespID
|
||||
{
|
||||
// Token: 0x06008210 RID: 33296 RVA: 0x001BA910 File Offset: 0x001B8B10
|
||||
[Token(Token = "0x6008210")]
|
||||
[Address(RVA = "0x3C3A30", Offset = "0x3C2430", VA = "0x1803C3A30")]
|
||||
public RespID(ResponderID id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
// Token: 0x06008211 RID: 33297 RVA: 0x001BA92C File Offset: 0x001B8B2C
|
||||
[Token(Token = "0x6008211")]
|
||||
[Address(RVA = "0xC245E0", Offset = "0xC22FE0", VA = "0x180C245E0")]
|
||||
public RespID(X509Name name)
|
||||
{
|
||||
ResponderID responderID = new ResponderID(name);
|
||||
this.id = responderID;
|
||||
}
|
||||
|
||||
// Token: 0x06008212 RID: 33298 RVA: 0x001BA950 File Offset: 0x001B8B50
|
||||
[Token(Token = "0x6008212")]
|
||||
[Address(RVA = "0xC24480", Offset = "0xC22E80", VA = "0x180C24480")]
|
||||
public RespID(AsymmetricKeyParameter publicKey)
|
||||
{
|
||||
byte[] octets = SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(publicKey).keyData.GetOctets();
|
||||
DerOctetString derOctetString = new DerOctetString(DigestUtilities.CalculateDigest("SHA1", octets));
|
||||
ResponderID responderID = new ResponderID(derOctetString);
|
||||
this.id = responderID;
|
||||
}
|
||||
|
||||
// Token: 0x06008213 RID: 33299 RVA: 0x001BA9B4 File Offset: 0x001B8BB4
|
||||
[Token(Token = "0x6008213")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
public ResponderID ToAsn1Object()
|
||||
{
|
||||
return this.id;
|
||||
}
|
||||
|
||||
// Token: 0x06008214 RID: 33300 RVA: 0x001BA9C8 File Offset: 0x001B8BC8
|
||||
[Token(Token = "0x6008214")]
|
||||
[Address(RVA = "0xC243C0", Offset = "0xC22DC0", VA = "0x180C243C0", Slot = "0")]
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != this)
|
||||
{
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
Asn1Object asn1Object = this.id.ToAsn1Object();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06008215 RID: 33301 RVA: 0x001BA9F8 File Offset: 0x001B8BF8
|
||||
[Token(Token = "0x6008215")]
|
||||
[Address(RVA = "0x528AC0", Offset = "0x5274C0", VA = "0x180528AC0", Slot = "2")]
|
||||
public override int GetHashCode()
|
||||
{
|
||||
Asn1Object asn1Object = this.id.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005BDE RID: 23518
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BDE")]
|
||||
internal readonly ResponderID id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
using System;
|
||||
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 Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013F4 RID: 5108
|
||||
[Token(Token = "0x20013F4")]
|
||||
[StructLayout(3)]
|
||||
public class RevokedStatus : CertificateStatus
|
||||
{
|
||||
// Token: 0x06008216 RID: 33302 RVA: 0x001BAA18 File Offset: 0x001B8C18
|
||||
[Token(Token = "0x6008216")]
|
||||
[Address(RVA = "0xC24C00", Offset = "0xC23600", VA = "0x180C24C00")]
|
||||
public RevokedStatus(RevokedInfo info)
|
||||
{
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
// Token: 0x06008217 RID: 33303 RVA: 0x001BAA34 File Offset: 0x001B8C34
|
||||
[Token(Token = "0x6008217")]
|
||||
[Address(RVA = "0xC24B20", Offset = "0xC23520", VA = "0x180C24B20")]
|
||||
public RevokedStatus(DateTime revocationDate, int reason)
|
||||
{
|
||||
DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(revocationDate);
|
||||
CrlReason crlReason = new CrlReason(reason);
|
||||
RevokedInfo revokedInfo = new RevokedInfo(derGeneralizedTime, crlReason);
|
||||
this.info = revokedInfo;
|
||||
}
|
||||
|
||||
// Token: 0x1700151F RID: 5407
|
||||
// (get) Token: 0x06008218 RID: 33304 RVA: 0x001BAA64 File Offset: 0x001B8C64
|
||||
[Token(Token = "0x1700151F")]
|
||||
public DateTime RevocationTime
|
||||
{
|
||||
[Token(Token = "0x6008218")]
|
||||
[Address(RVA = "0xC24D00", Offset = "0xC23700", VA = "0x180C24D00")]
|
||||
get
|
||||
{
|
||||
return this.info.revocationTime.ToDateTime();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001520 RID: 5408
|
||||
// (get) Token: 0x06008219 RID: 33305 RVA: 0x001BAA88 File Offset: 0x001B8C88
|
||||
[Token(Token = "0x17001520")]
|
||||
public bool HasRevocationReason
|
||||
{
|
||||
[Token(Token = "0x6008219")]
|
||||
[Address(RVA = "0xC22450", Offset = "0xC20E50", VA = "0x180C22450")]
|
||||
get
|
||||
{
|
||||
RevokedInfo revokedInfo = this.info;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001521 RID: 5409
|
||||
// (get) Token: 0x0600821A RID: 33306 RVA: 0x001BAAA4 File Offset: 0x001B8CA4
|
||||
[Token(Token = "0x17001521")]
|
||||
public int RevocationReason
|
||||
{
|
||||
[Token(Token = "0x600821A")]
|
||||
[Address(RVA = "0xC24C70", Offset = "0xC23670", VA = "0x180C24C70")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600821A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp.RevokedStatus::get_RevocationReason()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_22:
|
||||
stloc:InvalidOperationException(var_1_2C, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("attempt to get a reason where none is available")))
|
||||
}
|
||||
|
||||
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: 0x04005BDF RID: 23519
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BDF")]
|
||||
internal readonly RevokedInfo info;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
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.Utilities.Date;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013F5 RID: 5109
|
||||
[Token(Token = "0x20013F5")]
|
||||
[StructLayout(3)]
|
||||
public class SingleResp : X509ExtensionBase
|
||||
{
|
||||
// Token: 0x0600821B RID: 33307 RVA: 0x001BAAE0 File Offset: 0x001B8CE0
|
||||
[Token(Token = "0x600821B")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public SingleResp(SingleResponse resp)
|
||||
{
|
||||
this.resp = resp;
|
||||
}
|
||||
|
||||
// Token: 0x0600821C RID: 33308 RVA: 0x001BAAFC File Offset: 0x001B8CFC
|
||||
[Token(Token = "0x600821C")]
|
||||
[Address(RVA = "0xC24D30", Offset = "0xC23730", VA = "0x180C24D30")]
|
||||
public CertificateID GetCertID()
|
||||
{
|
||||
return new CertificateID(this.resp.certID);
|
||||
}
|
||||
|
||||
// Token: 0x0600821D RID: 33309 RVA: 0x001BAB20 File Offset: 0x001B8D20
|
||||
[Token(Token = "0x600821D")]
|
||||
[Address(RVA = "0xC24DA0", Offset = "0xC237A0", VA = "0x180C24DA0")]
|
||||
public object GetCertStatus()
|
||||
{
|
||||
CertStatus certStatus = this.resp.certStatus;
|
||||
int tagNo = certStatus.tagNo;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 1)
|
||||
{
|
||||
UnknownStatus unknownStatus = new UnknownStatus();
|
||||
}
|
||||
RevokedInfo instance = RevokedInfo.GetInstance(certStatus.value);
|
||||
RevokedStatus revokedStatus;
|
||||
revokedStatus.info = instance;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001522 RID: 5410
|
||||
// (get) Token: 0x0600821E RID: 33310 RVA: 0x001BAB6C File Offset: 0x001B8D6C
|
||||
[Token(Token = "0x17001522")]
|
||||
public DateTime ThisUpdate
|
||||
{
|
||||
[Token(Token = "0x600821E")]
|
||||
[Address(RVA = "0xC24F30", Offset = "0xC23930", VA = "0x180C24F30")]
|
||||
get
|
||||
{
|
||||
return this.resp.thisUpdate.ToDateTime();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001523 RID: 5411
|
||||
// (get) Token: 0x0600821F RID: 33311 RVA: 0x001BAB90 File Offset: 0x001B8D90
|
||||
[Token(Token = "0x17001523")]
|
||||
public DateTimeObject NextUpdate
|
||||
{
|
||||
[Token(Token = "0x600821F")]
|
||||
[Address(RVA = "0xC24EA0", Offset = "0xC238A0", VA = "0x180C24EA0")]
|
||||
get
|
||||
{
|
||||
DerGeneralizedTime nextUpdate = this.resp.nextUpdate;
|
||||
if (nextUpdate == 0)
|
||||
{
|
||||
}
|
||||
return new DateTimeObject(nextUpdate.ToDateTime());
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001524 RID: 5412
|
||||
// (get) Token: 0x06008220 RID: 33312 RVA: 0x001BABC0 File Offset: 0x001B8DC0
|
||||
[Token(Token = "0x17001524")]
|
||||
public X509Extensions SingleExtensions
|
||||
{
|
||||
[Token(Token = "0x6008220")]
|
||||
[Address(RVA = "0x720990", Offset = "0x71F390", VA = "0x180720990")]
|
||||
get
|
||||
{
|
||||
return this.resp.singleExtensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06008221 RID: 33313 RVA: 0x001BABE0 File Offset: 0x001B8DE0
|
||||
[Token(Token = "0x6008221")]
|
||||
[Address(RVA = "0x720990", Offset = "0x71F390", VA = "0x180720990", Slot = "8")]
|
||||
protected override X509Extensions GetX509Extensions()
|
||||
{
|
||||
return this.resp.singleExtensions;
|
||||
}
|
||||
|
||||
// Token: 0x04005BE0 RID: 23520
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005BE0")]
|
||||
internal readonly SingleResponse resp;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Ocsp
|
||||
{
|
||||
// Token: 0x020013F6 RID: 5110
|
||||
[Token(Token = "0x20013F6")]
|
||||
[StructLayout(3)]
|
||||
public class UnknownStatus : CertificateStatus
|
||||
{
|
||||
// Token: 0x06008222 RID: 33314 RVA: 0x001BAC00 File Offset: 0x001B8E00
|
||||
[Token(Token = "0x6008222")]
|
||||
[Address(RVA = "0x4F4D40", Offset = "0x4F3740", VA = "0x1804F4D40")]
|
||||
public UnknownStatus()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user