NPKIT_CRLEntryExtensionInfo

Obtains the specified ASN.1 encoded extension for the CRL entry (formerly NWx509CRLEntryExtensionInfo).

Syntax

   #include "NPKIT_x509.h"
   
   NWRCODE NPKIT_CRLEntryExtensionInfo
   (
      NPKIT_CRLContext           context,
      const nuint32              extensionIndex,
      enum NPKIT_509Extension   *type,
      unicode const            **OID,
      pnbool8                    critical,
      pnuint32                   valueLen,
      nuint8 const             **value
   );
   

Parameters

context
(IN) Specifies the NPKIT_CRL context handle for the request. This is a nuint32 value.
extensionIndex
(IN) Specifies which extension is to be returned. index is 0 based.
type
(OUT) Points to the extension type of the extension indicated by the extensionIndex. See Section 4.10, X.509 Extensions.
OID
(OUT) Points to a Unicode representation of the OID.
critical
(OUT) Specifies whether the extension is critical or not.
valueLen
(OUT) Specifies the length of data in bytes pointed to by value.
value
(OUT) Points to the ASN.1 encoded value of the extension.

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 extension retrieved in this call is for the entry specified in your call to NPKIT_CRLEntryInfo.

See Also

NPKIT_CRLDecode, NPKIT_CRLEntryInfo, NPKIT_CRLInvalidityDateInfo, NPKIT_CRLReasonCodeInfo