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: 0x02001D5F RID: 7519
|
|
[Token(Token = "0x2001D5F")]
|
|
public class OriginatorInformation
|
|
{
|
|
// Token: 0x0600BE70 RID: 48752 RVA: 0x002B6430 File Offset: 0x002B4630
|
|
[Token(Token = "0x600BE70")]
|
|
[Address(RVA = "0x3FFB80", Offset = "0x3FE980", VA = "0x1803FFB80")]
|
|
internal OriginatorInformation(OriginatorInfo originatorInfo)
|
|
{
|
|
this.originatorInfo = originatorInfo;
|
|
}
|
|
|
|
// Token: 0x0600BE71 RID: 48753 RVA: 0x002B644C File Offset: 0x002B464C
|
|
[Token(Token = "0x600BE71")]
|
|
[Address(RVA = "0x2011F30", Offset = "0x2010D30", VA = "0x182011F30", 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: 0x0600BE72 RID: 48754 RVA: 0x002B64E8 File Offset: 0x002B46E8
|
|
[Token(Token = "0x600BE72")]
|
|
[Address(RVA = "0x20122C0", Offset = "0x20110C0", VA = "0x1820122C0", 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: 0x0600BE73 RID: 48755 RVA: 0x002B6584 File Offset: 0x002B4784
|
|
[Token(Token = "0x600BE73")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
public virtual OriginatorInfo ToAsn1Structure()
|
|
{
|
|
return this.originatorInfo;
|
|
}
|
|
|
|
// Token: 0x0400792B RID: 31019
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400792B")]
|
|
private readonly OriginatorInfo originatorInfo;
|
|
}
|
|
}
|