CertVerifyTimeValidity

This function verifies the time validity of a certificate.

LONG WINAPI CertVerifyTimeValidity(
  LPFILETIME pTimeToVerify,
  PCERT_INFO pCertInfo
);

Parameters

  • pTimeToVerify
    [in] Pointer to a FILETIME structure containing the comparison time. If NULL, the current time is used.
  • pCertInfo
    [in] Pointer to the CERT_INFO structure of the certificate for which the time is being verified.

Return Values

Returns -1 if the comparison time is before the NotBefore member value of the CERT_INFO structure. Returns +1 if the comparison time is after the NotAfter member value. Returns zero for the valid time for the certificate.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Wincrypt.h.
Link Library: Crypt32.lib.

See Also

CertVerifyValidityNesting | CERT_INFO | FILETIME

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.