NPKIT_CRLEntryInfo

Obtains information about a revoked certificate.

Syntax

   #include "NPKIT_x509.h"
   
   NWRCODE NPKIT_CRLEntryInfo
   (
      NPKIT_CRLContext              context,
      const nuint32                 index,
      nuint8 const                **serialNumber,
      pnuint32                      serialNumberLen,
      struct tm const             **revocationDate,
      time_t const                **revocationTime,
      pnuint32                      numberOfCRLEntryExtensions
   );
   

Parameters

context
(IN) Specifies the NPKIT_CRL context handle for the request. This is a nuint32 value.
index
(IN) Specifies which CRL entry information is to be returned. index is 0 based.
serialNumber
(OUT) Points to the serial number of the specified revoked certificate.
serialNumberLen
(OUT) Points to the length of the data in serialNumber.
revocationDate
(OUT) Points to a struct tm representation of the date the specified certificate was revoked. The time is in UTC standard time.
revocationTime
(OUT) Points to a time_t representation of the time the specified certificate was revoked. Represented as the number of seconds since 00:00:00 UTC January 1, 1970.
numberOfCRLEntryExtensions
(OUT) Specifies the number of extensions of the specified certificate.

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

Returns the serial number, length of the serial number, the date and the time the certificate was revoked for the index specified. A successful call to NPKIT_CRLDecode must be made prior to making this call. Subsequent calls to NPKIT_CRLEntryExtensionInfo can be made to retrieve the CRL entry extension information for each of the CRL entry extensions identified in numberOfCRLEntryExtensions.

See Also

NPKIT_CRLDecode, NPKIT_CRLEntryExtensionInfo, NPKIT_CRLInvalidityDateInfo, NPKIT_CRLReasonCodeInfo