CERT_ALT_NAME_ENTRY

The CERT_ALT_NAME_ENTRY structure contains one or more alternative names, using any of a variety of name forms, which are bound by the CA to the certified public key.

CERT_ALT_NAME_ENTRY is a component of CERT_ALT_NAME_INFO.

typedef struct _CERT_ALT_NAME_ENTRY {
    DWORD    dwAltNameChoice;
    union {
      PCERT_OTHER_NAME              OtherName;
      LPWSTR                        pwszRfc822Name;
      LPWSTR                        pwszDNSName;
      \\Not implemented             x400Address;
      CERT_NAME_BLOB                DirectoryName;
      \\Not implemented             pwszEdiPartyName;
      LPWSTR                        pwszURL;
      CRYPT_DATA_BLOB               IPAddress;
      LPSTR                         pszRegisteredID;
    }; 
} CERT_ALT_NAME_ENTRY,   *PCERT_ALT_NAME_ENTRY;

Members

dwAltNameChoice
Indicates the variant used for the alternative name data contained in the union.

The following dwAltNameChoice values are defined in Wincrypt.h:

#define CERT_ALT_NAME_OTHER_NAME         1
#define CERT_ALT_NAME_RFC822_NAME        2
#define CERT_ALT_NAME_DNS_NAME           3
#define CERT_ALT_NAME_X400_ADDRESS       4
#define CERT_ALT_NAME_DIRECTORY_NAME     5
#define CERT_ALT_NAME_EDI_PARTY_NAME     6
#define CERT_ALT_NAME_URL                7
#define CERT_ALT_NAME_IP_ADDRESS         8
#define CERT_ALT_NAME_REGISTERED_ID      9
 
pOtherName
The name of a type as set in dwAltNameChoice.
pwszRfc822Name
An e-mail address.
pwszDNSName
An IA5 string.
x400Address
An OR address. Not currently implemented.
DirectoryName
A name.
pszEdiPartyName
An IA5 string. Not currently implemented.
pwszURL
An IA5 string (URL).
IPAddress
An octet string which is an Internet Protocol address defined in accordance with Internet RFC 791.
pszRegisteredID
An identifier of any registered object.

See Also

BLOB Structure, CERT_ALT_NAME_INFO, CRYPT_ATTRIBUTE_TYPE_VALUE