Share via


CertVerifyTimeValidity (Windows Embedded CE 6.0)

1/6/2010

This function verifies the time validity of a certificate.

Syntax

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 Value

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

Header wincrypt.h
Library crypt32.lib
Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Certificates Functions
CertVerifyValidityNesting
CERT_INFO

Other Resources

FILETIME