m
This commit is contained in:
+93
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Extension
|
||||
{
|
||||
// Token: 0x020019FF RID: 6655
|
||||
[Token(Token = "0x20019FF")]
|
||||
public class X509ExtensionUtilities
|
||||
{
|
||||
// Token: 0x06009BD2 RID: 39890 RVA: 0x001FE0BC File Offset: 0x001FC2BC
|
||||
[Token(Token = "0x6009BD2")]
|
||||
[Address(RVA = "0x41F2A0", Offset = "0x41E2A0", VA = "0x18041F2A0")]
|
||||
public static Asn1Object FromExtensionValue(Asn1OctetString extensionValue)
|
||||
{
|
||||
Stream octetStream = extensionValue.GetOctetStream();
|
||||
Asn1Object asn1Object;
|
||||
return asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x06009BD3 RID: 39891 RVA: 0x001FE0D8 File Offset: 0x001FC2D8
|
||||
[Token(Token = "0x6009BD3")]
|
||||
[Address(RVA = "0x41F760", Offset = "0x41E760", VA = "0x18041F760")]
|
||||
public static ICollection GetIssuerAlternativeNames(X509Certificate cert)
|
||||
{
|
||||
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
|
||||
ICollection collection;
|
||||
return collection;
|
||||
}
|
||||
|
||||
// Token: 0x06009BD4 RID: 39892 RVA: 0x001FE0F4 File Offset: 0x001FC2F4
|
||||
[Token(Token = "0x6009BD4")]
|
||||
[Address(RVA = "0x41F7F0", Offset = "0x41E7F0", VA = "0x18041F7F0")]
|
||||
public static ICollection GetSubjectAlternativeNames(X509Certificate cert)
|
||||
{
|
||||
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
|
||||
ICollection collection;
|
||||
return collection;
|
||||
}
|
||||
|
||||
// Token: 0x06009BD5 RID: 39893 RVA: 0x001FE110 File Offset: 0x001FC310
|
||||
[Token(Token = "0x6009BD5")]
|
||||
[Address(RVA = "0x41F2D0", Offset = "0x41E2D0", VA = "0x18041F2D0")]
|
||||
private static ICollection GetAlternativeName(Asn1OctetString extVal)
|
||||
{
|
||||
int num;
|
||||
Asn1Object asn1Object;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
IList list = Platform.CreateArrayList();
|
||||
if (extVal == 0)
|
||||
{
|
||||
goto IL_77;
|
||||
}
|
||||
Stream octetStream = extVal.GetOctetStream();
|
||||
}
|
||||
while (Asn1Sequence.GetInstance(asn1Object).GetEnumerator() == 0);
|
||||
IList list2 = Platform.CreateArrayList();
|
||||
GeneralName generalName;
|
||||
if (generalName.tag > 8)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
Asn1Encodable obj = generalName.obj;
|
||||
X509Name instance = X509Name.GetInstance(obj);
|
||||
int hashCode = instance.GetHashCode();
|
||||
Asn1Object asn1Object2 = instance.ToAsn1Object();
|
||||
Stream octetStream2 = Asn1OctetString.GetInstance(0).GetOctetStream();
|
||||
if (DerObjectIdentifier.GetInstance(obj) != 0)
|
||||
{
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
IL_77:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009BD6 RID: 39894 RVA: 0x001FE1F0 File Offset: 0x001FC3F0
|
||||
[Token(Token = "0x6009BD6")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public X509ExtensionUtilities()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user