



@deftypefun {int} {gnutls_openpgp_privkey_get_preferred_key_id} (gnutls_openpgp_privkey_t @var{key}, gnutls_openpgp_keyid_t @var{keyid})
@var{key}: the structure that contains the OpenPGP public key.

@var{keyid}: the struct to save the keyid.

Get the preferred key-id for the key.

@strong{Returns:} the 64-bit preferred keyID of the OpenPGP key, or if it
hasn't been set it returns @code{GNUTLS_E_INVALID_REQUEST} .
@end deftypefun
