CERT_NAME_VALUE

The CERT_NAME_VALUE structure is a CERT_RDN_ATTR without the object identifier. The interpretation of the Value data member depends on the dwValueType.

typedef struct _CERT_NAME_VALUE {
    DWORD                dwValueType;
    CERT_RDN_VALUE_BLOB  Value;
} CERT_NAME_VALUE,      *PCERT_NAME_VALUE;
 

Members

dwValueType
For CERT_RDN_ENCODED_BLOB, the Value's CERT_RDN_VALUE_BLOB is in its encoded representation. Otherwise, its an array of bytes.

For all CERT_RDN types, Value.cbData is always the number of bytes, not necessarily the number of elements in the string. For instance, CERT_RDN_UNIVERSAL_STRING is an array of ints (cbData == intCnt * 4) and CERT_RDN_BMP_STRING is an array of unsigned shorts (cbData == ushortCnt * 2). The dwValueTypes are defined in Wincrypt.h and are shown in the CERT_RDN_ATTR section.

Value
Either a null-terminated array of 8-bit or 16-bit characters, an array of INT4s, or an encoded representation.

See Also

BLOB Structure