X509_CRL_REASON_CODE

When X509_CRL_REASON_CODE, X509_ENUMERATED, or szOID_CRL_REASON_CODE are used for the lpszStructType with CryptEncodeObject, CryptEncodeObjectEx, CryptDecodeObject, or CryptDecodeObjectEx the following details apply.

Object Identifier String

"2.5.29.21"

Corresponding Data Structure being encoded or decoded

pvStructInfo points to an integer containing the enumerated value.

Additional Details

The Integer can be set to one of the following enumerated values:

Reason code Value
CRL_REASON_UNSPECIFIED 0
CRL_REASON_KEY_COMPROMISE 1
CRL_REASON_CA_COMPROMISE 2
CRL_REASON_AFFILIATION_CHANGED 3
CRL_REASON_SUPERSEDED 4
CRL_REASON_CESSATION_OF_OPERATION 5
CRL_REASON_CERTIFICATE_HOLD 6
CRL_REASON_REMOVE_FROM_CRL 8