Historical Content Alert
This is a historical content for Windows NT 4.0 product and is presented for informative purposes only. All content in this directory is copyrighted and owned by Microsoft.

GetRevocationReason

The GetRevocationReason method returns a human-readable string specifying the reason a certificate was revoked. This call must be preceded by a successful IsValidCertificate method call.

[VB] Long GetRevocationReason(void);
[JAVA] int GetRevocationReason(void);
[C++] HRESULT GetRevocationReason(
  LONG * pReason  // out, return value
);
 

Parameters

[C++] pReason
Points to the return value. See Return Values.

Return Values

Returns a value specifying the reason the certificate was revoked. The value can be one of the following values (defined in WinCrypt.h).

Revocation Reason 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


Share this article: