



@deftypefun {int} {gnutls_openpgp_crt_get_preferred_key_id} (gnutls_openpgp_crt_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 preferred key id.  If it hasn't been set it returns
@code{GNUTLS_E_INVALID_REQUEST} .

@strong{Returns:} the 64-bit preferred keyID of the OpenPGP key.
@end deftypefun
