m
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001ED3 RID: 7891
|
||||
[Token(Token = "0x2001ED3")]
|
||||
public class AttributeTable
|
||||
{
|
||||
// Token: 0x0600C5BF RID: 50623 RVA: 0x002CA8D0 File Offset: 0x002C8AD0
|
||||
[Token(Token = "0x600C5BF")]
|
||||
[Address(RVA = "0x2D83C90", Offset = "0x2D82C90", VA = "0x182D83C90")]
|
||||
public AttributeTable(IDictionary attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600C5C0 RID: 50624 RVA: 0x002CA8F4 File Offset: 0x002C8AF4
|
||||
[Token(Token = "0x600C5C0")]
|
||||
[Address(RVA = "0x2D83D00", Offset = "0x2D82D00", VA = "0x182D83D00")]
|
||||
[Obsolete]
|
||||
public AttributeTable(Hashtable attrs)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
||||
this.attributes = dictionary;
|
||||
}
|
||||
|
||||
// Token: 0x0600C5C1 RID: 50625 RVA: 0x002CA918 File Offset: 0x002C8B18
|
||||
[Token(Token = "0x600C5C1")]
|
||||
[Address(RVA = "0x2D83B10", Offset = "0x2D82B10", VA = "0x182D83B10")]
|
||||
public AttributeTable(Asn1EncodableVector v)
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable(v.Count);
|
||||
int num = 0;
|
||||
this.attributes = dictionary;
|
||||
int count = v.Count;
|
||||
if (num != count)
|
||||
{
|
||||
int num2 = 0;
|
||||
AttributeX509 instance = AttributeX509.GetInstance(v[num]);
|
||||
IDictionary dictionary2 = this.attributes;
|
||||
DerObjectIdentifier derObjectIdentifier = instance.attrType;
|
||||
if (num < num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
derObjectIdentifier += derObjectIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C5C2 RID: 50626 RVA: 0x002CA98C File Offset: 0x002C8B8C
|
||||
[Token(Token = "0x600C5C2")]
|
||||
[Address(RVA = "0x2D83970", Offset = "0x2D82970", VA = "0x182D83970")]
|
||||
public AttributeTable(Asn1Set s)
|
||||
{
|
||||
int num = 0;
|
||||
IDictionary dictionary;
|
||||
this.attributes = dictionary;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (num != asn1Encodable)
|
||||
{
|
||||
IEnumerator enumerator = s.GetEnumerator();
|
||||
IDictionary dictionary2 = this.attributes;
|
||||
AttributeX509 attributeX;
|
||||
DerObjectIdentifier derObjectIdentifier = attributeX.attrType;
|
||||
if (num < 0)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
derObjectIdentifier += derObjectIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C5C3 RID: 50627 RVA: 0x002CA9E4 File Offset: 0x002C8BE4
|
||||
[Token(Token = "0x600C5C3")]
|
||||
[Address(RVA = "0x2D83800", Offset = "0x2D82800", VA = "0x182D83800")]
|
||||
public AttributeX509 Get(DerObjectIdentifier oid)
|
||||
{
|
||||
IDictionary dictionary;
|
||||
do
|
||||
{
|
||||
dictionary = this.attributes;
|
||||
}
|
||||
while (dictionary == 0);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C5C4 RID: 50628 RVA: 0x002CAA08 File Offset: 0x002C8C08
|
||||
[Token(Token = "0x600C5C4")]
|
||||
[Address(RVA = "0x2D83910", Offset = "0x2D82910", VA = "0x182D83910")]
|
||||
[Obsolete]
|
||||
public Hashtable ToHashtable()
|
||||
{
|
||||
return new Hashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x0600C5C5 RID: 50629 RVA: 0x002CAA20 File Offset: 0x002C8C20
|
||||
[Token(Token = "0x600C5C5")]
|
||||
[Address(RVA = "0x2D838B0", Offset = "0x2D828B0", VA = "0x182D838B0")]
|
||||
public IDictionary ToDictionary()
|
||||
{
|
||||
return Platform.CreateHashtable(this.attributes);
|
||||
}
|
||||
|
||||
// Token: 0x04007C22 RID: 31778
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007C22")]
|
||||
private readonly IDictionary attributes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user