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;
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
BLOB Structure, CERT_ALT_NAME_INFO, CRYPT_ATTRIBUTE_TYPE_VALUE