NPKIT_x509KeyUsageInfo
Retrieves the information from the key usage extension of the certificate if a key usage extension is encoded in the certificate (formerly NWx509KeyUsageInfo).
#include "NPKIT_x509.h"
NWRCODE NPKIT_x509KeyUsageInfo
(
NPKIT_x509Context context,
pnuint16 keyUsage
);
For more information about key usages, see Section 4.4, Key Usage Extension 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.
Before calling this function, you must first successfully call NPKIT_x509DecodeCertificate. The key usage extension is optional. Therefore, not all certificates will have key usages.