CERT_ID structure (wincrypt.h)
The CERT_ID structure is used as a flexible means of uniquely identifying a certificate.
typedef struct _CERT_ID {
DWORD dwIdChoice;
union {
CERT_ISSUER_SERIAL_NUMBER IssuerSerialNumber;
CRYPT_HASH_BLOB KeyId;
CRYPT_HASH_BLOB HashId;
} DUMMYUNIONNAME;
} CERT_ID, *PCERT_ID;
dwIdChoice
A DWORD value that indicates which member of the union is being used. This can be one of the following values.
Value | Meaning |
---|---|
|
IssuerSerialNumber |
|
KeyId |
|
HashId |
DUMMYUNIONNAME
DUMMYUNIONNAME.IssuerSerialNumber
A CERT_ISSUER_SERIAL_NUMBER structure that uniquely identifies a certificate.
DUMMYUNIONNAME.KeyId
A CRYPT_HASH_BLOB structure that contains a certificate key identifier.
DUMMYUNIONNAME.HashId
A CRYPT_HASH_BLOB that contains a SHA1 hash of the certificate to be used as a unique identifier of the certificate.
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | wincrypt.h |