Expand Minimize
EN
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.

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 only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Wincrypt.h

Library

Crypt32.lib

DLL

Crypt32.dll

See also

Data Management Functions
CertVerifyCRLTimeValidity
CertVerifyCRLRevocation
CertVerifyValidityNesting

 

 

Community-inhoud

Toevoegen
Weergeven:
© 2014 Microsoft