ICertAdmin::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

QuickInfo

  Windows NT: Requires version 5.0 or later (or version 4.0 with the Windows NT 4.0 Option Pack).
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in certadm.h.
  Import Library: Use certidl.lib.