CERT_RDN_ATTR structure
The CERT_RDN_ATTR structure contains a single attribute of a relative distinguished name (RDN). A whole RDN is expressed in a CERT_RDN structure that contains an array of CERT_RDN_ATTR structures.
Syntax
typedef struct _CERT_RDN_ATTR { LPSTR pszObjId; DWORD dwValueType; CERT_RDN_VALUE_BLOB Value; } CERT_RDN_ATTR, *PCERT_RDN_ATTR;
Members
- pszObjId
-
Object identifier (OID) for the type of the attribute defined in this structure. This member can be one of the following OIDs.
- dwValueType
-
Indicates the interpretation of the Value member.
This member can be one of the following values.
Value Meaning - CERT_RDN_ANY_TYPE
The pszObjId member determines the assumed type and length.
- CERT_RDN_BMP_STRING
An array of Unicode characters (16-bit).
- CERT_RDN_ENCODED_BLOB
An encoded data BLOB.
- CERT_RDN_GENERAL_STRING
Currently not used.
- CERT_RDN_GRAPHIC_STRING
Currently not used.
- CERT_RDN_IA5_STRING
An arbitrary string of IA5 (ASCII) characters.
- CERT_RDN_INT4_STRING
An array of INT4 elements (32-bit).
- CERT_RDN_ISO646_STRING
A 128-character set (8-bit).
- CERT_RDN_NUMERIC_STRING
Only the characters 0 through 9 and the space character (8-bit).
- CERT_RDN_OCTET_STRING
An arbitrary string of octets (8-bit).
- CERT_RDN_PRINTABLE_STRING
An arbitrary string of printable characters (8-bit).
- CERT_RDN_T61_STRING
An arbitrary string of T.61 characters (8-bit).
- CERT_RDN_TELETEX_STRING
An arbitrary string of T.61 characters (8-bit)
- CERT_RDN_UNICODE_STRING
An array of Unicode characters (16-bit).
- CERT_RDN_UNIVERSAL_STRING
An array of INT4 elements (32-bit).
- CERT_RDN_UTF8_STRING
An array of 16 bit Unicode characters UTF8 encoded on the wire as a sequence of one, two, or three, eight-bit characters.
- CERT_RDN_VIDEOTEX_STRING
An arbitrary string of videotext characters.
- CERT_RDN_VISIBLE_STRING
A 95-character set (8-bit).
The following flags can be combined by using a bitwise-OR operation into the dwValueType member.
- Value
-
A CERT_RDN_VALUE_BLOB that contains the attribute value. The cbData member of Value is the length, in bytes, of the pbData member. It is not the number of elements in the pbData string.
For example, a DWORD is 32 bits or 4 bytes long. If pbData is a DWORD array, cbData would be four times the number of DWORD elements in the array. A SHORT is 16 bits or 2 bytes long. If pbData is an array of SHORT elements, cbData must be two times the length of the array.
The pbData member of Value can be a null-terminated array of 8-bit or 16-bit characters or a fixed-length array of elements. If dwValueType is set to CERT_RDN_ENCODED_BLOB, pbData is encoded.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
See also