120 lines
3.4 KiB
C#
120 lines
3.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001816 RID: 6166
|
|
[Token(Token = "0x2001816")]
|
|
[StructLayout(3)]
|
|
public class AttributeTable
|
|
{
|
|
// Token: 0x0600A617 RID: 42519 RVA: 0x00269A90 File Offset: 0x00267C90
|
|
[Token(Token = "0x600A617")]
|
|
[Address(RVA = "0x2AFD120", Offset = "0x2AFBB20", VA = "0x182AFD120")]
|
|
public AttributeTable(IDictionary attrs)
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
|
this.attributes = dictionary;
|
|
}
|
|
|
|
// Token: 0x0600A618 RID: 42520 RVA: 0x00269AB4 File Offset: 0x00267CB4
|
|
[Token(Token = "0x600A618")]
|
|
[Address(RVA = "0x2AFD190", Offset = "0x2AFBB90", VA = "0x182AFD190")]
|
|
[Obsolete]
|
|
public AttributeTable(Hashtable attrs)
|
|
{
|
|
IDictionary dictionary = Platform.CreateHashtable(attrs);
|
|
this.attributes = dictionary;
|
|
}
|
|
|
|
// Token: 0x0600A619 RID: 42521 RVA: 0x00269AD8 File Offset: 0x00267CD8
|
|
[Token(Token = "0x600A619")]
|
|
[Address(RVA = "0x2AFCFA0", Offset = "0x2AFB9A0", VA = "0x182AFCFA0")]
|
|
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: 0x0600A61A RID: 42522 RVA: 0x00269B4C File Offset: 0x00267D4C
|
|
[Token(Token = "0x600A61A")]
|
|
[Address(RVA = "0x2AFCE00", Offset = "0x2AFB800", VA = "0x182AFCE00")]
|
|
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: 0x0600A61B RID: 42523 RVA: 0x00269BA4 File Offset: 0x00267DA4
|
|
[Token(Token = "0x600A61B")]
|
|
[Address(RVA = "0x2AFCC90", Offset = "0x2AFB690", VA = "0x182AFCC90")]
|
|
public AttributeX509 Get(DerObjectIdentifier oid)
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600A61C RID: 42524 RVA: 0x00269BC8 File Offset: 0x00267DC8
|
|
[Token(Token = "0x600A61C")]
|
|
[Address(RVA = "0x2AFCDA0", Offset = "0x2AFB7A0", VA = "0x182AFCDA0")]
|
|
[Obsolete]
|
|
public Hashtable ToHashtable()
|
|
{
|
|
return new Hashtable(this.attributes);
|
|
}
|
|
|
|
// Token: 0x0600A61D RID: 42525 RVA: 0x00269BE0 File Offset: 0x00267DE0
|
|
[Token(Token = "0x600A61D")]
|
|
[Address(RVA = "0x2AFCD40", Offset = "0x2AFB740", VA = "0x182AFCD40")]
|
|
public IDictionary ToDictionary()
|
|
{
|
|
return Platform.CreateHashtable(this.attributes);
|
|
}
|
|
|
|
// Token: 0x04006C26 RID: 27686
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006C26")]
|
|
private readonly IDictionary attributes;
|
|
}
|
|
}
|