The NPKI_Extension consists of the general purpose
extension structure described in the following section:
5.2.1 General Purpose Extension Structure
The following extension is the genera purpose structure that
allows data to be specified for most supported extensions.
typedef struct NPKI_Extension
{
nuint32 flags;
nuint32 length; /* length of value */
nuint8 *value;
}NPKI_Extension;
- flags
- Specifies how the extension is encoded in the certificate. flag is
composed of both general purpose flags combined with any extension
specific flags if necessary. See General Purpose Extension Flags.
- length
- Specifies the number of bytes which follow in value.
If the extension is not to be encoded in the certificate, flags
should be set to PKI_EXTENSION_DONT_INCLUDE,
length should be set to 0 and value should be NULL.
- value
- Points to a byte-array of data.