146 lines
3.5 KiB
C#
146 lines
3.5 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Pkcs
|
|
{
|
|
// Token: 0x020013B1 RID: 5041
|
|
[Token(Token = "0x20013B1")]
|
|
[StructLayout(3)]
|
|
public abstract class Pkcs12Entry
|
|
{
|
|
// Token: 0x06008061 RID: 32865 RVA: 0x001B10F8 File Offset: 0x001AF2F8
|
|
[Token(Token = "0x6008061")]
|
|
[Address(RVA = "0x4E17B0", Offset = "0x4E01B0", VA = "0x1804E17B0")]
|
|
protected internal Pkcs12Entry(IDictionary attributes)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
base..ctor();
|
|
this.attributes = attributes;
|
|
if (typeof(IEnumerator).TypeHandle == 0 || typeof(IEnumerator).TypeHandle == 0)
|
|
{
|
|
goto IL_55;
|
|
}
|
|
if (typeof(string).TypeHandle == 0)
|
|
{
|
|
goto IL_38;
|
|
}
|
|
if (typeof(string).TypeHandle != 0)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_38:
|
|
Type typeFromHandle = typeof(Asn1Encodable);
|
|
throw new NullReferenceException();
|
|
IL_55:
|
|
Type typeFromHandle2 = typeof(string);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06008062 RID: 32866 RVA: 0x001B1188 File Offset: 0x001AF388
|
|
[Token(Token = "0x6008062")]
|
|
[Address(RVA = "0x4E1700", Offset = "0x4E0100", VA = "0x1804E1700")]
|
|
[Obsolete]
|
|
public Asn1Encodable GetBagAttribute(DerObjectIdentifier oid)
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06008063 RID: 32867 RVA: 0x001B11AC File Offset: 0x001AF3AC
|
|
[Token(Token = "0x6008063")]
|
|
[Address(RVA = "0x4E1650", Offset = "0x4E0050", VA = "0x1804E1650")]
|
|
[Obsolete]
|
|
public Asn1Encodable GetBagAttribute(string oid)
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06008064 RID: 32868 RVA: 0x001B11D0 File Offset: 0x001AF3D0
|
|
[Token(Token = "0x6008064")]
|
|
[Address(RVA = "0x4E15F0", Offset = "0x4DFFF0", VA = "0x1804E15F0")]
|
|
[Obsolete]
|
|
public IEnumerator GetBagAttributeKeys()
|
|
{
|
|
IDictionary dictionary = this.attributes;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x170014F6 RID: 5366
|
|
[Token(Token = "0x170014F6")]
|
|
public Asn1Encodable this[DerObjectIdentifier oid]
|
|
{
|
|
[Token(Token = "0x6008065")]
|
|
[Address(RVA = "0x4E1BC0", Offset = "0x4E05C0", VA = "0x1804E1BC0")]
|
|
get
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x170014F7 RID: 5367
|
|
[Token(Token = "0x170014F7")]
|
|
public Asn1Encodable this[string oid]
|
|
{
|
|
[Token(Token = "0x6008066")]
|
|
[Address(RVA = "0x4E1B10", Offset = "0x4E0510", VA = "0x1804E1B10")]
|
|
get
|
|
{
|
|
IDictionary dictionary;
|
|
do
|
|
{
|
|
dictionary = this.attributes;
|
|
}
|
|
while (dictionary == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x170014F8 RID: 5368
|
|
// (get) Token: 0x06008067 RID: 32871 RVA: 0x001B1234 File Offset: 0x001AF434
|
|
[Token(Token = "0x170014F8")]
|
|
public IEnumerable BagAttributeKeys
|
|
{
|
|
[Token(Token = "0x6008067")]
|
|
[Address(RVA = "0x4E1A90", Offset = "0x4E0490", VA = "0x1804E1A90")]
|
|
get
|
|
{
|
|
IDictionary dictionary = this.attributes;
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x04005AE4 RID: 23268
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4005AE4")]
|
|
private readonly IDictionary attributes;
|
|
}
|
|
}
|