1gnutls_pubkey_get_openpgp_key_id(3) gnutls gnutls_pubkey_get_openpgp_key_id(3)
2
3
4

NAME

6       gnutls_pubkey_get_openpgp_key_id - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int  gnutls_pubkey_get_openpgp_key_id(gnutls_pubkey_t key, unsigned int
12       flags, unsigned char * output_data, size_t * output_data_size, unsigned
13       int * subkey);
14

ARGUMENTS

16       gnutls_pubkey_t key
17                   Holds the public key
18
19       unsigned int flags
20                   should be 0 or GNUTLS_PUBKEY_GET_OPENPGP_FINGERPRINT
21
22       unsigned char * output_data
23                   will contain the key ID
24
25       size_t * output_data_size
26                   holds  the size of output_data (and will be replaced by the
27                   actual size of parameters)
28
29       unsigned int * subkey
30                   Will be non zero if the key ID corresponds to a subkey
31

DESCRIPTION

33       This function returns the OpenPGP key ID of the corresponding key.  The
34       key is a unique ID that depends on the public key parameters.
35
36       If  the  flag  GNUTLS_PUBKEY_GET_OPENPGP_FINGERPRINT  is specified this
37       function returns the fingerprint of the master key.
38
39       If the buffer provided is not long enough  to  hold  the  output,  then
40       *output_data_size  is  updated and GNUTLS_E_SHORT_MEMORY_BUFFER will be
41       returned.  The output is GNUTLS_OPENPGP_KEYID_SIZE bytes long.
42

RETURNS

44       In case of failure a negative error code will be  returned,  and  0  on
45       success.
46

SINCE

48       3.0
49

REPORTING BUGS

51       Report bugs to <bugs@gnutls.org>.
52       Home page: http://www.gnutls.org
53
54
56       Copyright © 2001-2014 Free Software Foundation, Inc..
57       Copying  and  distribution  of this file, with or without modification,
58       are permitted in any medium  without  royalty  provided  the  copyright
59       notice and this notice are preserved.
60

SEE ALSO

62       The  full  documentation  for gnutls is maintained as a Texinfo manual.
63       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
64       visit
65
66       http://www.gnutls.org/manual/
67
68gnutls                              3.3.29 gnutls_pubkey_get_openpgp_key_id(3)
Impressum