CertFindCertificateInCRL function (wincrypt.h)

The CertFindCertificateInCRL function searches the certificate revocation list (CRL) for the specified certificate.


BOOL CertFindCertificateInCRL(
  [in]           PCCERT_CONTEXT pCert,
  [in]           PCCRL_CONTEXT  pCrlContext,
  [in]           DWORD          dwFlags,
  [in, optional] void           *pvReserved,
  [out]          PCRL_ENTRY     *ppCrlEntry


[in] pCert

A pointer to a CERT_CONTEXT of the certificate to be searched for in the CRL.

[in] pCrlContext

A pointer to the CRL_CONTEXT to be searched.

[in] dwFlags

Reserved for future use. Must be set to zero.

[in, optional] pvReserved

Reserved for future use. Must be set to zero.

[out] ppCrlEntry

If the certificate is found in the CRL, this pointer is updated with a pointer to the entry. Otherwise, it is set to NULL. The returned entry is not allocated and must not be freed.

Return value

TRUE if the list was searched; otherwise FALSE.


Requirement Value
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header wincrypt.h
Library Crypt32.lib
DLL Crypt32.dll