Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / doc / functions / gnutls_openpgp_privkey_get_preferred_key_id
1
2
3
4
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.
7
8 @var{keyid}: the struct to save the keyid.
9
10 Get the preferred key-id for the key.
11
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} .
14 @end deftypefun