NPKIT_x509GetExtensionData
Retrieves the ASN.1 encoded certificate extension specified by index (formerly NWx509GetExtensionData).
#include "NPKIT_x509.h"
NWRCODE NPKIT_x509GetExtensionData
(
NPKIT_x509Context context,
nuint32 index,
enum NPKIT_x509Extension type,
unicode const **OID,
pnbool8 critical,
pnuint32 valueLen,
nuint8 const **value
);
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.
Before calling this function, you must first successfully call NPKIT_x509DecodeCertificate. If the extension is of the corresponding type, you can call one of the following functions to retrieve the decoded extension information: