CertFindCertificateInCRL function

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

Syntax

BOOL CertFindCertificateInCRL(
  PCCERT_CONTEXT pCert,
  PCCRL_CONTEXT  pCrlContext,
  DWORD          dwFlags,
  void           *pvReserved,
  PCRL_ENTRY     *ppCrlEntry
);

Parameters

pCert

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

pCrlContext

A pointer to the CRL_CONTEXT to be searched.

dwFlags

Reserved for future use. Must be set to zero.

pvReserved

Reserved for future use. Must be set to zero.

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.

Requirements

   
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