CertVerifyValidityNesting function

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

Syntax

BOOL CertVerifyValidityNesting(
  PCERT_INFO pSubjectInfo,
  PCERT_INFO pIssuerInfo
);

Parameters

pSubjectInfo

A pointer to the CERT_INFO structure of the subject certificate.

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

   
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