NPKIT_CRLInvalidityDateInfo

Returns the invalidity date associated with the CRL (Certificate Revocation List) entry (formerly NWx509CRLInvalidityDateInfo).

Syntax

   #include "NPKIT_x509.h"
   
   NWRCODE NPKIT_CRLInvalidityDateInfo
   (
      NPKIT_CRLContext      context,
      struct tm const     **invalidityDate,
      time_t const        **invalidityDateTime
   );
   

Parameters

context
(IN) Specifies the NPKIT_CRL context handle for the request. This is a nuint32 value.
invalidityDate
(OUT) Points to a struct tm representation of the date the certificate became invalid. The time is in UTC standard time.
invalidityDateTime
(OUT) Points to a time_t representation of when the certificate became invalid. Represented as the number of seconds since 00:00:00 UTC January 1, 1970.

Return Values

Returns 0 if successful or a PKI error code if not successful. For a listing of NPKIT error codes, see Certificate Server Error Code Constants.

Remarks

Before calling this function, you must first successfully call NPKIT_CRLDecode followed by NPKIT_CRLEntryExtensionInfo. The invalidity date retrieved in this call is for the entry specified in your call to NPKIT_CRLEntryInfo. The invalidity date is an optional extension. Therefore, not all CRL entries will have an associated invalidity date.

See Also

NPKIT_CRLDecode, NPKIT_CRLEntryInfo, NPKIT_CRLExtensionInfo