NPKIT_CRLExtensionInfo

Obtains information about the specified extension of the CRL (Certificate Revocation List) (formerly NWx509CRLExtensionInfo).

Syntax

   #include "NPKIT_x509.h"
   
   NWRCODE NPKIT_CRLExtensionInfo
   (
      NPKIT_CRLContext           context,
      nuint32                    index,
      enum NPKIT_x509Extension  *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.
index
(IN) Specifies which CRL extension is to be returned. index is 0 based.
type
(OUT) Points to the extension type.
OID
(OUT) Points to a Unicode representation of the OID that identifies the extension.
critical
(OUT) Specifies whether the extension is critical or not.
valueLen
(OUT) Specifies the length of the data in value.
value
(OUT) Points to the ASN.1 encoded value of the extension indicated by the index.

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 call NPKIT_CRLDecode successfully.

See Also

NPKIT_CRLDecode