oh dear
This commit is contained in:
@@ -0,0 +1,218 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F5F RID: 8031
|
||||
[Token(Token = "0x2001F5F")]
|
||||
public class PkiMessage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB40 RID: 52032 RVA: 0x002E9010 File Offset: 0x002E7210
|
||||
[Token(Token = "0x600CB40")]
|
||||
[Address(RVA = "0x2ADF880", Offset = "0x2ADE680", VA = "0x182ADF880")]
|
||||
private PkiMessage(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser3;
|
||||
do
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
PkiHeader pkiHeader;
|
||||
this.header = pkiHeader;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
PkiBody pkiBody;
|
||||
this.body = pkiBody;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if ((uint)2 >= asn1Encodable)
|
||||
{
|
||||
return;
|
||||
}
|
||||
parser3 = seq.Parser;
|
||||
}
|
||||
while (parser3 == 0);
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.extraCerts = asn1Sequence;
|
||||
DerBitString derBitString;
|
||||
this.protection = derBitString;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB41 RID: 52033 RVA: 0x002E9068 File Offset: 0x002E7268
|
||||
[Token(Token = "0x600CB41")]
|
||||
[Address(RVA = "0x2ADF4B0", Offset = "0x2ADE2B0", VA = "0x182ADF4B0")]
|
||||
public static PkiMessage GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new PkiMessage(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB42 RID: 52034 RVA: 0x002E909C File Offset: 0x002E729C
|
||||
[Token(Token = "0x600CB42")]
|
||||
[Address(RVA = "0x2ADF710", Offset = "0x2ADE510", VA = "0x182ADF710")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection, CmpCertificate[] extraCerts)
|
||||
{
|
||||
this.body = body;
|
||||
this.header = header;
|
||||
this.protection = protection;
|
||||
DerSequence derSequence;
|
||||
this.extraCerts = derSequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB43 RID: 52035 RVA: 0x002E90CC File Offset: 0x002E72CC
|
||||
[Token(Token = "0x600CB43")]
|
||||
[Address(RVA = "0x2ADF7B0", Offset = "0x2ADE5B0", VA = "0x182ADF7B0")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body, DerBitString protection)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = protection;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB44 RID: 52036 RVA: 0x002E90F4 File Offset: 0x002E72F4
|
||||
[Token(Token = "0x600CB44")]
|
||||
[Address(RVA = "0x2ADF820", Offset = "0x2ADE620", VA = "0x182ADF820")]
|
||||
public PkiMessage(PkiHeader header, PkiBody body)
|
||||
{
|
||||
this.header = header;
|
||||
this.body = body;
|
||||
this.protection = (ulong)0L;
|
||||
}
|
||||
|
||||
// Token: 0x17002043 RID: 8259
|
||||
// (get) Token: 0x0600CB45 RID: 52037 RVA: 0x002E9120 File Offset: 0x002E7320
|
||||
[Token(Token = "0x17002043")]
|
||||
public virtual PkiHeader Header
|
||||
{
|
||||
[Token(Token = "0x600CB45")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.header;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002044 RID: 8260
|
||||
// (get) Token: 0x0600CB46 RID: 52038 RVA: 0x002E9134 File Offset: 0x002E7334
|
||||
[Token(Token = "0x17002044")]
|
||||
public virtual PkiBody Body
|
||||
{
|
||||
[Token(Token = "0x600CB46")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.body;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002045 RID: 8261
|
||||
// (get) Token: 0x0600CB47 RID: 52039 RVA: 0x002E9148 File Offset: 0x002E7348
|
||||
[Token(Token = "0x17002045")]
|
||||
public virtual DerBitString Protection
|
||||
{
|
||||
[Token(Token = "0x600CB47")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.protection;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB48 RID: 52040 RVA: 0x002E915C File Offset: 0x002E735C
|
||||
[Token(Token = "0x600CB48")]
|
||||
[Address(RVA = "0x2ADF390", Offset = "0x2ADE190", VA = "0x182ADF390", Slot = "9")]
|
||||
public virtual CmpCertificate[] GetExtraCerts()
|
||||
{
|
||||
if (this.extraCerts != 0)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
CmpCertificate[] array = new CmpCertificate[asn1Encodable];
|
||||
int num = 0;
|
||||
if (num < array.Length)
|
||||
{
|
||||
Asn1SequenceParser parser = this.extraCerts.Parser;
|
||||
CmpCertificate cmpCertificate;
|
||||
if (cmpCertificate != 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
array[0] = cmpCertificate;
|
||||
}
|
||||
return array;
|
||||
}
|
||||
throw new ArrayTypeMismatchException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB49 RID: 52041 RVA: 0x002E91AC File Offset: 0x002E73AC
|
||||
[Token(Token = "0x600CB49")]
|
||||
[Address(RVA = "0x2ADF5B0", Offset = "0x2ADE3B0", VA = "0x182ADF5B0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
PkiHeader pkiHeader = this.header;
|
||||
if (pkiHeader != 0)
|
||||
{
|
||||
}
|
||||
array[0] = pkiHeader;
|
||||
PkiBody pkiBody = this.body;
|
||||
if (pkiBody != 0)
|
||||
{
|
||||
}
|
||||
array[1] = pkiBody;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
DerBitString derBitString = this.protection;
|
||||
int num = 0;
|
||||
PkiMessage.AddOptional(asn1EncodableVector, num, derBitString);
|
||||
Asn1Sequence asn1Sequence = this.extraCerts;
|
||||
PkiMessage.AddOptional(asn1EncodableVector, 1, asn1Sequence);
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CB4A RID: 52042 RVA: 0x002E9220 File Offset: 0x002E7420
|
||||
[Token(Token = "0x600CB4A")]
|
||||
[Address(RVA = "0x2ADF290", Offset = "0x2ADE090", VA = "0x182ADF290")]
|
||||
private static void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
||||
{
|
||||
if (obj != 0)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derTaggedObject;
|
||||
v.Add(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x04008187 RID: 33159
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4008187")]
|
||||
private readonly PkiHeader header;
|
||||
|
||||
// Token: 0x04008188 RID: 33160
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008188")]
|
||||
private readonly PkiBody body;
|
||||
|
||||
// Token: 0x04008189 RID: 33161
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008189")]
|
||||
private readonly DerBitString protection;
|
||||
|
||||
// Token: 0x0400818A RID: 33162
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400818A")]
|
||||
private readonly Asn1Sequence extraCerts;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user