133 lines
3.7 KiB
C#
133 lines
3.7 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
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.Cms
|
|
{
|
|
// Token: 0x02001E3F RID: 7743
|
|
[Token(Token = "0x2001E3F")]
|
|
public class OriginatorInformation
|
|
{
|
|
// Token: 0x0600C23E RID: 49726 RVA: 0x002BED28 File Offset: 0x002BCF28
|
|
[Token(Token = "0x600C23E")]
|
|
[Address(RVA = "0x493D90", Offset = "0x492D90", VA = "0x180493D90")]
|
|
internal OriginatorInformation(OriginatorInfo originatorInfo)
|
|
{
|
|
this.originatorInfo = originatorInfo;
|
|
}
|
|
|
|
// Token: 0x0600C23F RID: 49727 RVA: 0x002BED44 File Offset: 0x002BCF44
|
|
[Token(Token = "0x600C23F")]
|
|
[Address(RVA = "0x2932A30", Offset = "0x2931A30", VA = "0x182932A30", Slot = "4")]
|
|
public virtual IX509Store GetCertificates()
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
Asn1Set certs = this.originatorInfo.certs;
|
|
if (certs == 0)
|
|
{
|
|
break;
|
|
}
|
|
IEnumerator enumerator = certs.GetEnumerator();
|
|
if (enumerator != 0)
|
|
{
|
|
if (num < enumerator)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
ulong num2;
|
|
enumerator += num2;
|
|
if (enumerator == 0 || enumerator == 0)
|
|
{
|
|
goto IL_82;
|
|
}
|
|
X509CertificateStructure x509CertificateStructure;
|
|
if (new X509Certificate(x509CertificateStructure) != 0)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
goto Block_5;
|
|
}
|
|
}
|
|
}
|
|
X509CollectionStoreParameters x509CollectionStoreParameters = new X509CollectionStoreParameters(Platform.CreateArrayList());
|
|
return X509StoreFactory.Create("Certificate/Collection", x509CollectionStoreParameters);
|
|
Block_5:
|
|
IList list;
|
|
X509CollectionStoreParameters x509CollectionStoreParameters2 = new X509CollectionStoreParameters(list);
|
|
throw new NullReferenceException();
|
|
IL_82:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C240 RID: 49728 RVA: 0x002BEDE0 File Offset: 0x002BCFE0
|
|
[Token(Token = "0x600C240")]
|
|
[Address(RVA = "0x2932DC0", Offset = "0x2931DC0", VA = "0x182932DC0", Slot = "5")]
|
|
public virtual IX509Store GetCrls()
|
|
{
|
|
for (;;)
|
|
{
|
|
int num = 0;
|
|
Asn1Set certs = this.originatorInfo.certs;
|
|
if (certs == 0)
|
|
{
|
|
break;
|
|
}
|
|
IEnumerator enumerator = certs.GetEnumerator();
|
|
if (enumerator != 0)
|
|
{
|
|
if (num < enumerator)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
ulong num2;
|
|
enumerator += num2;
|
|
if (enumerator == 0 || enumerator == 0)
|
|
{
|
|
goto IL_82;
|
|
}
|
|
CertificateList certificateList;
|
|
if (new X509Crl(certificateList) != 0)
|
|
{
|
|
}
|
|
if (num == 0)
|
|
{
|
|
goto Block_5;
|
|
}
|
|
}
|
|
}
|
|
X509CollectionStoreParameters x509CollectionStoreParameters = new X509CollectionStoreParameters(Platform.CreateArrayList());
|
|
return X509StoreFactory.Create("CRL/Collection", x509CollectionStoreParameters);
|
|
Block_5:
|
|
IList list;
|
|
X509CollectionStoreParameters x509CollectionStoreParameters2 = new X509CollectionStoreParameters(list);
|
|
throw new NullReferenceException();
|
|
IL_82:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C241 RID: 49729 RVA: 0x002BEE7C File Offset: 0x002BD07C
|
|
[Token(Token = "0x600C241")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
public virtual OriginatorInfo ToAsn1Structure()
|
|
{
|
|
return this.originatorInfo;
|
|
}
|
|
|
|
// Token: 0x04007AE4 RID: 31460
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007AE4")]
|
|
private readonly OriginatorInfo originatorInfo;
|
|
}
|
|
}
|