CertVerifyCRLTimeValidity function (wincrypt.h)

The CertVerifyCRLTimeValidity function verifies the time validity of a CRL.

Syntax

LONG CertVerifyCRLTimeValidity(
  [in] LPFILETIME pTimeToVerify,
  [in] PCRL_INFO  pCrlInfo
);

Parameters

[in] pTimeToVerify

A pointer to FILETIME structure containing the time to be used in the verification. If set to NULL, the current time is used.

[in] pCrlInfo

A pointer to a CRL_INFO structure containing the CRL for which the time is to be verified.

Return value

Returns a minus one (–1) if the comparison time is before the ThisUpdate member of the CRL_INFO pointed to by pCrlInfo. Returns a plus one (+1) if the comparison time is after the NextUpdate time. Returns zero for valid time for the CRL.

Requirements

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

See also

CertVerifyCRLRevocation

CertVerifyTimeValidity

CertVerifyValidityNesting

Data Management Functions