1gnutls_openpgp_key_get_name(3) gnutls gnutls_openpgp_key_get_name(3)
2
3
4
6 gnutls_openpgp_key_get_name - Extracts the userID
7
9 #include <gnutls/openpgp.h>
10
11 int gnutls_openpgp_key_get_name(gnutls_openpgp_key_t key, int idx, char
12 * buf, size_t * sizeof_buf);
13
15 gnutls_openpgp_key_t key
16 the structure that contains the OpenPGP public key.
17
18 int idx the index of the ID to extract
19
20 char * buf a pointer to a structure to hold the name
21
22 size_t * sizeof_buf
23 holds the maximum size of buf, on return hold the
24 actual/required size of buf.
25
27 Extracts the userID from the parsed OpenPGP key.
28
29 Returns 0 on success, and GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if the
30 index of the ID does not exist.
31
33 Report bugs to <bug-gnutls@gnu.org>.
34
36 Copyright © 2006 Free Software Foundation.
37 Permission is granted to make and distribute verbatim copies of this
38 manual provided the copyright notice and this permission notice are
39 preserved on all copies.
40
42 The full documentation for gnutls is maintained as a Texinfo manual.
43 If the info and gnutls programs are properly installed at your site,
44 the command
45
46 info gnutls
47
48 should give you access to the complete manual.
49
50
51
52gnutls 1.6.3 gnutls_openpgp_key_get_name(3)