95 lines
2.9 KiB
C#
95 lines
2.9 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509
|
|
{
|
|
// Token: 0x02001323 RID: 4899
|
|
[Token(Token = "0x2001323")]
|
|
[StructLayout(3)]
|
|
public class X509Attribute : Asn1Encodable
|
|
{
|
|
// Token: 0x06007AC6 RID: 31430 RVA: 0x00198488 File Offset: 0x00196688
|
|
[Token(Token = "0x6007AC6")]
|
|
[Address(RVA = "0x52D910", Offset = "0x52C310", VA = "0x18052D910")]
|
|
internal X509Attribute(Asn1Encodable at)
|
|
{
|
|
AttributeX509 instance = AttributeX509.GetInstance(at);
|
|
this.attr = instance;
|
|
}
|
|
|
|
// Token: 0x06007AC7 RID: 31431 RVA: 0x001984AC File Offset: 0x001966AC
|
|
[Token(Token = "0x6007AC7")]
|
|
[Address(RVA = "0x52D850", Offset = "0x52C250", VA = "0x18052D850")]
|
|
public X509Attribute(string oid, Asn1Encodable value)
|
|
{
|
|
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier(oid);
|
|
DerSet derSet = new DerSet(value);
|
|
AttributeX509 attributeX = new AttributeX509(derObjectIdentifier, derSet);
|
|
this.attr = attributeX;
|
|
}
|
|
|
|
// Token: 0x06007AC8 RID: 31432 RVA: 0x001984DC File Offset: 0x001966DC
|
|
[Token(Token = "0x6007AC8")]
|
|
[Address(RVA = "0x52D790", Offset = "0x52C190", VA = "0x18052D790")]
|
|
public X509Attribute(string oid, Asn1EncodableVector value)
|
|
{
|
|
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier(oid);
|
|
DerSet derSet = new DerSet(value);
|
|
AttributeX509 attributeX = new AttributeX509(derObjectIdentifier, derSet);
|
|
this.attr = attributeX;
|
|
}
|
|
|
|
// Token: 0x170013FF RID: 5119
|
|
// (get) Token: 0x06007AC9 RID: 31433 RVA: 0x0019850C File Offset: 0x0019670C
|
|
[Token(Token = "0x170013FF")]
|
|
public string Oid
|
|
{
|
|
[Token(Token = "0x6007AC9")]
|
|
[Address(RVA = "0x52D940", Offset = "0x52C340", VA = "0x18052D940")]
|
|
get
|
|
{
|
|
return this.attr.attrType.identifier;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007ACA RID: 31434 RVA: 0x00198530 File Offset: 0x00196730
|
|
[Token(Token = "0x6007ACA")]
|
|
[Address(RVA = "0x52D640", Offset = "0x52C040", VA = "0x18052D640")]
|
|
public Asn1Encodable[] GetValues()
|
|
{
|
|
Asn1Set attrValues = this.attr.attrValues;
|
|
Asn1Encodable asn1Encodable;
|
|
Asn1Encodable[] array = new Asn1Encodable[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (num != asn1Encodable2)
|
|
{
|
|
IEnumerator enumerator = attrValues.GetEnumerator();
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = enumerator;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x06007ACB RID: 31435 RVA: 0x00198578 File Offset: 0x00196778
|
|
[Token(Token = "0x6007ACB")]
|
|
[Address(RVA = "0x52D760", Offset = "0x52C160", VA = "0x18052D760", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
return this.attr.ToAsn1Object();
|
|
}
|
|
|
|
// Token: 0x0400583D RID: 22589
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400583D")]
|
|
private readonly AttributeX509 attr;
|
|
}
|
|
}
|