5 @deftypefun {int} {gnutls_openpgp_privkey_get_preferred_key_id} (gnutls_openpgp_privkey_t @var{key}, gnutls_openpgp_keyid_t @var{keyid})
6 @var{key}: the structure that contains the OpenPGP public key.
8 @var{keyid}: the struct to save the keyid.
10 Get the preferred key-id for the key.
12 @strong{Returns:} the 64-bit preferred keyID of the OpenPGP key, or if it
13 hasn't been set it returns @code{GNUTLS_E_INVALID_REQUEST} .