118 lines
3.3 KiB
C#
118 lines
3.3 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001DF3 RID: 7667
|
|
[Token(Token = "0x2001DF3")]
|
|
public class AttributeTable
|
|
{
|
|
// Token: 0x0600C1F1 RID: 49649 RVA: 0x002C206C File Offset: 0x002C026C
|
|
[Token(Token = "0x600C1F1")]
|
|
[Address(RVA = "0x271FA20", Offset = "0x271E820", VA = "0x18271FA20")]
|
|
public AttributeTable(IDictionary attrs)
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
|
this.attributes = dictionary;
|
|
}
|
|
|
|
// Token: 0x0600C1F2 RID: 49650 RVA: 0x002C2090 File Offset: 0x002C0290
|
|
[Token(Token = "0x600C1F2")]
|
|
[Address(RVA = "0x271FA90", Offset = "0x271E890", VA = "0x18271FA90")]
|
|
[Obsolete]
|
|
public AttributeTable(Hashtable attrs)
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
|
this.attributes = dictionary;
|
|
}
|
|
|
|
// Token: 0x0600C1F3 RID: 49651 RVA: 0x002C20B4 File Offset: 0x002C02B4
|
|
[Token(Token = "0x600C1F3")]
|
|
[Address(RVA = "0x271F8A0", Offset = "0x271E6A0", VA = "0x18271F8A0")]
|
|
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: 0x0600C1F4 RID: 49652 RVA: 0x002C2128 File Offset: 0x002C0328
|
|
[Token(Token = "0x600C1F4")]
|
|
[Address(RVA = "0x271F700", Offset = "0x271E500", VA = "0x18271F700")]
|
|
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: 0x0600C1F5 RID: 49653 RVA: 0x002C2180 File Offset: 0x002C0380
|
|
[Token(Token = "0x600C1F5")]
|
|
[Address(RVA = "0x271F590", Offset = "0x271E390", VA = "0x18271F590")]
|
|
public AttributeX509 Get(DerObjectIdentifier oid)
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C1F6 RID: 49654 RVA: 0x002C21A4 File Offset: 0x002C03A4
|
|
[Token(Token = "0x600C1F6")]
|
|
[Address(RVA = "0x271F6A0", Offset = "0x271E4A0", VA = "0x18271F6A0")]
|
|
[Obsolete]
|
|
public Hashtable ToHashtable()
|
|
{
|
|
return new Hashtable(this.attributes);
|
|
}
|
|
|
|
// Token: 0x0600C1F7 RID: 49655 RVA: 0x002C21BC File Offset: 0x002C03BC
|
|
[Token(Token = "0x600C1F7")]
|
|
[Address(RVA = "0x271F640", Offset = "0x271E440", VA = "0x18271F640")]
|
|
public IDictionary ToDictionary()
|
|
{
|
|
return Platform.CreateHashtable(this.attributes);
|
|
}
|
|
|
|
// Token: 0x04007A69 RID: 31337
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007A69")]
|
|
private readonly IDictionary attributes;
|
|
}
|
|
}
|