NPKIT_x509SubjectAltName
Retrieves the specified subject alternative name and related information (formerly NW509SubjectAltName).
#include "NPKIT_x509.h" NWRCODE NPKIT_x509SubjectAltName ( NPKIT_x509Context context, nuint32 index, nuint8 *type, nuint8 const **value, pnuint32 length, unicode const **name );
NOTE:This field is only set when the Subject Alternative Name is one of the following types:
For more details, see Section 4.3, General Name Type Extensions.
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. You should call NPKIT_x509SubjectAltNamesInfo before calling this function to determine how many subject alternative names are encoded in the certificate. For more details about subject alternative names, see Section 4.3, General Name Type Extensions. The subject alternative name extension is optional. Therefore, not all certificates have subject alternative names.