CertVerifyTimeValidity (Compact 2013)
3/28/2014
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 |
See Also
Reference
Certificates Functions
CertVerifyValidityNesting
CERT_INFO
FILETIME