CertVerifyValidityNesting function (wincrypt.h)

The CertVerifyValidityNesting function verifies that a subject certificate's time validity nests correctly within its issuer's time validity.

Syntax

BOOL CertVerifyValidityNesting(
  [in] PCERT_INFO pSubjectInfo,
  [in] PCERT_INFO pIssuerInfo
);

Parameters

[in] pSubjectInfo

A pointer to the CERT_INFO structure of the subject certificate.

[in] pIssuerInfo

A pointer to the CERT_INFO structure of the issuer certificate.

Return value

Returns TRUE if the NotBefore time of the subject's certificate is after the NotBefore time of the issuer's certificate and the NotAfter time of the subject's certificate is not after the NotAfter time of the issuer's certificate. Otherwise, returns FALSE.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header wincrypt.h
Library Crypt32.lib
DLL Crypt32.dll

See also

CertVerifyCRLRevocation

CertVerifyCRLTimeValidity

CertVerifyTimeValidity

Data Management Functions