141 lines
3.4 KiB
C#
141 lines
3.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x0200181C RID: 6172
|
|
[Token(Token = "0x200181C")]
|
|
[StructLayout(3)]
|
|
public class CrlReason : DerEnumerated
|
|
{
|
|
// Token: 0x0600A645 RID: 42565 RVA: 0x0026A68C File Offset: 0x0026888C
|
|
[Token(Token = "0x600A645")]
|
|
[Address(RVA = "0x2B01C00", Offset = "0x2B00600", VA = "0x182B01C00")]
|
|
public CrlReason(int reason)
|
|
: base(reason)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600A646 RID: 42566 RVA: 0x0026A6A0 File Offset: 0x002688A0
|
|
[Token(Token = "0x600A646")]
|
|
[Address(RVA = "0x2B01B70", Offset = "0x2B00570", VA = "0x182B01B70")]
|
|
public CrlReason(DerEnumerated reason)
|
|
{
|
|
int intValue = reason.Value.IntValue;
|
|
base..ctor(intValue);
|
|
}
|
|
|
|
// Token: 0x0600A647 RID: 42567 RVA: 0x0026A6C8 File Offset: 0x002688C8
|
|
[Token(Token = "0x600A647")]
|
|
[Address(RVA = "0x2B01680", Offset = "0x2B00080", VA = "0x182B01680", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
BigInteger value = base.Value;
|
|
int num = 0;
|
|
if (value.IntValue > 10)
|
|
{
|
|
}
|
|
return "CrlReason: " + num;
|
|
}
|
|
|
|
// Token: 0x0600A648 RID: 42568 RVA: 0x0026A6FC File Offset: 0x002688FC
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600A648")]
|
|
[Address(RVA = "0x2B01740", Offset = "0x2B00140", VA = "0x182B01740")]
|
|
static CrlReason()
|
|
{
|
|
string[] array = new string[11];
|
|
if ("Unspecified" != 0)
|
|
{
|
|
}
|
|
array[0] = "Unspecified";
|
|
if ("KeyCompromise" != 0)
|
|
{
|
|
}
|
|
array[1] = "KeyCompromise";
|
|
if ("CACompromise" != 0)
|
|
{
|
|
}
|
|
array[2] = "CACompromise";
|
|
if ("AffiliationChanged" != 0)
|
|
{
|
|
}
|
|
array[3] = "AffiliationChanged";
|
|
if ("Superseded" != 0)
|
|
{
|
|
}
|
|
array[4] = "Superseded";
|
|
if ("CessationOfOperation" != 0)
|
|
{
|
|
}
|
|
array[5] = "CessationOfOperation";
|
|
if ("CertificateHold" != 0)
|
|
{
|
|
}
|
|
array[6] = "CertificateHold";
|
|
if ("Unknown" != 0)
|
|
{
|
|
}
|
|
array[7] = "Unknown";
|
|
if ("RemoveFromCrl" != 0)
|
|
{
|
|
}
|
|
array[8] = "RemoveFromCrl";
|
|
if ("PrivilegeWithdrawn" != 0)
|
|
{
|
|
}
|
|
array[9] = "PrivilegeWithdrawn";
|
|
if ("AACompromise" != 0)
|
|
{
|
|
}
|
|
array[10] = "AACompromise";
|
|
}
|
|
|
|
// Token: 0x04006C2E RID: 27694
|
|
[Token(Token = "0x4006C2E")]
|
|
public const int Unspecified = 0;
|
|
|
|
// Token: 0x04006C2F RID: 27695
|
|
[Token(Token = "0x4006C2F")]
|
|
public const int KeyCompromise = 1;
|
|
|
|
// Token: 0x04006C30 RID: 27696
|
|
[Token(Token = "0x4006C30")]
|
|
public const int CACompromise = 2;
|
|
|
|
// Token: 0x04006C31 RID: 27697
|
|
[Token(Token = "0x4006C31")]
|
|
public const int AffiliationChanged = 3;
|
|
|
|
// Token: 0x04006C32 RID: 27698
|
|
[Token(Token = "0x4006C32")]
|
|
public const int Superseded = 4;
|
|
|
|
// Token: 0x04006C33 RID: 27699
|
|
[Token(Token = "0x4006C33")]
|
|
public const int CessationOfOperation = 5;
|
|
|
|
// Token: 0x04006C34 RID: 27700
|
|
[Token(Token = "0x4006C34")]
|
|
public const int CertificateHold = 6;
|
|
|
|
// Token: 0x04006C35 RID: 27701
|
|
[Token(Token = "0x4006C35")]
|
|
public const int RemoveFromCrl = 8;
|
|
|
|
// Token: 0x04006C36 RID: 27702
|
|
[Token(Token = "0x4006C36")]
|
|
public const int PrivilegeWithdrawn = 9;
|
|
|
|
// Token: 0x04006C37 RID: 27703
|
|
[Token(Token = "0x4006C37")]
|
|
public const int AACompromise = 10;
|
|
|
|
// Token: 0x04006C38 RID: 27704
|
|
[Token(Token = "0x4006C38")]
|
|
private static readonly string[] ReasonString;
|
|
}
|
|
}
|