NPKIT_CRLReasonCodeInfo

Returns the CRL invalidity reason code associated with the CRL entry (formerly NWx509CRLReasonCodeInfo).

Syntax

   #include "NPKIT_x509.h"
   
   NWRCODE NPKIT_CRLReasonCodeInfo
   (
      NPKIT_CRLContext      context,
      pnuint32              reason
   );
   

Parameters

context
(IN) Specifies the NPKIT_CRL context handle for the request. This is a nuint32 value.
reason
(OUT) Points to the reason why the certificate is on the CRL. For more information, see Section 4.7, NPKIT_x509 Certificate Invalidity Reason Flags.

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_CRLEntryInfo. The reason code retrieved in this call is for the entry specified in your call to NPKIT_CRLEntryInfo. The reason code is an optional extension. Therefore, not all CRL entries have an associated reason code.

See Also

NPKIT_CRLDecode, NPKIT_CRLEntryInfo, NPKIT_CRLExtensionInfo