CertVerifyTimeValidity function
The CertVerifyTimeValidity function verifies the time validity of a certificate.
Syntax
LONG WINAPI CertVerifyTimeValidity( _In_ LPFILETIME pTimeToVerify, _In_ PCERT_INFO pCertInfo );
Parameters
- pTimeToVerify [in]
-
A pointer to a FILETIME structure containing the comparison time. If NULL, the current time is used.
- pCertInfo [in]
-
A pointer to the CERT_INFO structure of the certificate for which the time is being verified.
Return value
Returns a minus one if the comparison time is before the NotBefore member of the CERT_INFO structure. Returns a plus one if the comparison time is after the NotAfter member. Returns zero for valid time for the certificate.
Examples
See Example C Program: Certificate Store Operations.
Requirements
|
Minimum supported client |
Windows XP [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- Data Management Functions
- CertVerifyCRLTimeValidity
- CertVerifyCRLRevocation
- CertVerifyValidityNesting