118 lines
5.8 KiB
C#
118 lines
5.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography.X509Certificates
|
|
{
|
|
/// <summary>Defines the status of an X509 chain.</summary>
|
|
// Token: 0x020001D6 RID: 470
|
|
[Token(Token = "0x20001D6")]
|
|
[Flags]
|
|
public enum X509ChainStatusFlags
|
|
{
|
|
/// <summary>Specifies that the X509 chain has no errors.</summary>
|
|
// Token: 0x0400068A RID: 1674
|
|
[Token(Token = "0x400068A")]
|
|
NoError = 0,
|
|
/// <summary>Specifies that the X509 chain is not valid due to an invalid time value, such as a value that indicates an expired certificate.</summary>
|
|
// Token: 0x0400068B RID: 1675
|
|
[Token(Token = "0x400068B")]
|
|
NotTimeValid = 1,
|
|
/// <summary>Deprecated. Specifies that the CA (certificate authority) certificate and the issued certificate have validity periods that are not nested. For example, the CA cert can be valid from January 1 to December 1 and the issued certificate from January 2 to December 2, which would mean the validity periods are not nested.</summary>
|
|
// Token: 0x0400068C RID: 1676
|
|
[Token(Token = "0x400068C")]
|
|
NotTimeNested = 2,
|
|
/// <summary>Specifies that the X509 chain is invalid due to a revoked certificate.</summary>
|
|
// Token: 0x0400068D RID: 1677
|
|
[Token(Token = "0x400068D")]
|
|
Revoked = 4,
|
|
/// <summary>Specifies that the X509 chain is invalid due to an invalid certificate signature.</summary>
|
|
// Token: 0x0400068E RID: 1678
|
|
[Token(Token = "0x400068E")]
|
|
NotSignatureValid = 8,
|
|
/// <summary>Specifies that the key usage is not valid.</summary>
|
|
// Token: 0x0400068F RID: 1679
|
|
[Token(Token = "0x400068F")]
|
|
NotValidForUsage = 16,
|
|
/// <summary>Specifies that the X509 chain is invalid due to an untrusted root certificate.</summary>
|
|
// Token: 0x04000690 RID: 1680
|
|
[Token(Token = "0x4000690")]
|
|
UntrustedRoot = 32,
|
|
/// <summary>Specifies that it is not possible to determine whether the certificate has been revoked. This can be due to the certificate revocation list (CRL) being offline or unavailable.</summary>
|
|
// Token: 0x04000691 RID: 1681
|
|
[Token(Token = "0x4000691")]
|
|
RevocationStatusUnknown = 64,
|
|
/// <summary>Specifies that the X509 chain could not be built.</summary>
|
|
// Token: 0x04000692 RID: 1682
|
|
[Token(Token = "0x4000692")]
|
|
Cyclic = 128,
|
|
/// <summary>Specifies that the X509 chain is invalid due to an invalid extension.</summary>
|
|
// Token: 0x04000693 RID: 1683
|
|
[Token(Token = "0x4000693")]
|
|
InvalidExtension = 256,
|
|
/// <summary>Specifies that the X509 chain is invalid due to invalid policy constraints.</summary>
|
|
// Token: 0x04000694 RID: 1684
|
|
[Token(Token = "0x4000694")]
|
|
InvalidPolicyConstraints = 512,
|
|
/// <summary>Specifies that the X509 chain is invalid due to invalid basic constraints.</summary>
|
|
// Token: 0x04000695 RID: 1685
|
|
[Token(Token = "0x4000695")]
|
|
InvalidBasicConstraints = 1024,
|
|
/// <summary>Specifies that the X509 chain is invalid due to invalid name constraints.</summary>
|
|
// Token: 0x04000696 RID: 1686
|
|
[Token(Token = "0x4000696")]
|
|
InvalidNameConstraints = 2048,
|
|
/// <summary>Specifies that the certificate does not have a supported name constraint or has a name constraint that is unsupported.</summary>
|
|
// Token: 0x04000697 RID: 1687
|
|
[Token(Token = "0x4000697")]
|
|
HasNotSupportedNameConstraint = 4096,
|
|
/// <summary>Specifies that the certificate has an undefined name constraint.</summary>
|
|
// Token: 0x04000698 RID: 1688
|
|
[Token(Token = "0x4000698")]
|
|
HasNotDefinedNameConstraint = 8192,
|
|
/// <summary>Specifies that the certificate has an impermissible name constraint.</summary>
|
|
// Token: 0x04000699 RID: 1689
|
|
[Token(Token = "0x4000699")]
|
|
HasNotPermittedNameConstraint = 16384,
|
|
/// <summary>Specifies that the X509 chain is invalid because a certificate has excluded a name constraint.</summary>
|
|
// Token: 0x0400069A RID: 1690
|
|
[Token(Token = "0x400069A")]
|
|
HasExcludedNameConstraint = 32768,
|
|
/// <summary>Specifies that the X509 chain could not be built up to the root certificate.</summary>
|
|
// Token: 0x0400069B RID: 1691
|
|
[Token(Token = "0x400069B")]
|
|
PartialChain = 65536,
|
|
/// <summary>Specifies that the certificate trust list (CTL) is not valid because of an invalid time value, such as one that indicates that the CTL has expired.</summary>
|
|
// Token: 0x0400069C RID: 1692
|
|
[Token(Token = "0x400069C")]
|
|
CtlNotTimeValid = 131072,
|
|
/// <summary>Specifies that the certificate trust list (CTL) contains an invalid signature.</summary>
|
|
// Token: 0x0400069D RID: 1693
|
|
[Token(Token = "0x400069D")]
|
|
CtlNotSignatureValid = 262144,
|
|
/// <summary>Specifies that the certificate trust list (CTL) is not valid for this use.</summary>
|
|
// Token: 0x0400069E RID: 1694
|
|
[Token(Token = "0x400069E")]
|
|
CtlNotValidForUsage = 524288,
|
|
/// <summary>Specifies that the online certificate revocation list (CRL) the X509 chain relies on is currently offline.</summary>
|
|
// Token: 0x0400069F RID: 1695
|
|
[Token(Token = "0x400069F")]
|
|
OfflineRevocation = 16777216,
|
|
/// <summary>Specifies that there is no certificate policy extension in the certificate. This error would occur if a group policy has specified that all certificates must have a certificate policy.</summary>
|
|
// Token: 0x040006A0 RID: 1696
|
|
[Token(Token = "0x40006A0")]
|
|
NoIssuanceChainPolicy = 33554432,
|
|
/// <summary>Specifies that the certificate is explicitly distrusted.</summary>
|
|
// Token: 0x040006A1 RID: 1697
|
|
[Token(Token = "0x40006A1")]
|
|
ExplicitDistrust = 67108864,
|
|
/// <summary>Specifies that the certificate does not support a critical extension.</summary>
|
|
// Token: 0x040006A2 RID: 1698
|
|
[Token(Token = "0x40006A2")]
|
|
HasNotSupportedCriticalExtension = 134217728,
|
|
/// <summary>Specifies that the certificate has not been strong signed. Typically, this indicates that the MD2 or MD5 hashing algorithms were used to create a hash of the certificate.</summary>
|
|
// Token: 0x040006A3 RID: 1699
|
|
[Token(Token = "0x40006A3")]
|
|
HasWeakSignature = 1048576
|
|
}
|
|
}
|