Applications de bureau Windows
Réduire la table des matières
Développer la table des matières
EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.

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

Wincrypt.h

Library

Crypt32.lib

DLL

Crypt32.dll

See also

Data Management Functions
CertVerifyCRLTimeValidity
CertVerifyCRLRevocation
CertVerifyValidityNesting

 

 

Afficher:
© 2016 Microsoft