oh dear
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: 0x0200191F RID: 6431
|
||||
[Token(Token = "0x200191F")]
|
||||
public class X509ExtensionUtilities
|
||||
{
|
||||
// Token: 0x06009804 RID: 38916 RVA: 0x001F5024 File Offset: 0x001F3224
|
||||
[Token(Token = "0x6009804")]
|
||||
[Address(RVA = "0x1631EC0", Offset = "0x1630CC0", VA = "0x181631EC0")]
|
||||
public static Asn1Object FromExtensionValue(Asn1OctetString extensionValue)
|
||||
{
|
||||
Stream octetStream = extensionValue.GetOctetStream();
|
||||
Asn1Object asn1Object;
|
||||
return asn1Object;
|
||||
}
|
||||
|
||||
// Token: 0x06009805 RID: 38917 RVA: 0x001F5040 File Offset: 0x001F3240
|
||||
[Token(Token = "0x6009805")]
|
||||
[Address(RVA = "0x1632380", Offset = "0x1631180", VA = "0x181632380")]
|
||||
public static ICollection GetIssuerAlternativeNames(X509Certificate cert)
|
||||
{
|
||||
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
|
||||
ICollection collection;
|
||||
return collection;
|
||||
}
|
||||
|
||||
// Token: 0x06009806 RID: 38918 RVA: 0x001F505C File Offset: 0x001F325C
|
||||
[Token(Token = "0x6009806")]
|
||||
[Address(RVA = "0x1632410", Offset = "0x1631210", VA = "0x181632410")]
|
||||
public static ICollection GetSubjectAlternativeNames(X509Certificate cert)
|
||||
{
|
||||
ISet criticalExtensionOids = cert.GetCriticalExtensionOids();
|
||||
ICollection collection;
|
||||
return collection;
|
||||
}
|
||||
|
||||
// Token: 0x06009807 RID: 38919 RVA: 0x001F5078 File Offset: 0x001F3278
|
||||
[Token(Token = "0x6009807")]
|
||||
[Address(RVA = "0x1631EF0", Offset = "0x1630CF0", VA = "0x181631EF0")]
|
||||
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: 0x06009808 RID: 38920 RVA: 0x001F5158 File Offset: 0x001F3358
|
||||
[Token(Token = "0x6009808")]
|
||||
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
||||
public X509ExtensionUtilities()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user