1gnutls_openpgp_privkey_set_prefergrneudt_glknseu_yto_lpisedn(p3g)p_privkey_set_preferred_key_id(3)
2
3
4
6 gnutls_openpgp_privkey_set_preferred_key_id - Set the prefered keyID
7
9 #include <gnutls/openpgp.h>
10
11 int gnutls_openpgp_privkey_set_pre‐
12 ferred_key_id(gnutls_openpgp_privkey_t key, const
13 gnutls_openpgp_keyid_t keyid);
14
16 gnutls_openpgp_privkey_t key
17 the structure that contains the OpenPGP public key.
18
19 const gnutls_openpgp_keyid_t keyid
20 the selected keyid
21
23 This allows setting a preferred key id for the given certificate. This
24 key will be used by functions that involve key handling.
25
27 On success, 0 is returned, or an error code.
28
30 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
31 http://www.gnu.org/software/gnutls/ General help using GNU software:
32 http://www.gnu.org/gethelp/
33
35 Copyright © 2008 Free Software Foundation.
36 Copying and distribution of this file, with or without modification,
37 are permitted in any medium without royalty provided the copyright
38 notice and this notice are preserved.
39
41 The full documentation for gnutls is maintained as a Texinfo manual.
42 If the info and gnutls programs are properly installed at your site,
43 the command
44
45 info gnutls
46
47 should give you access to the complete manual.
48
49
50
51gnutls gnutl2s._8o.p6enpgp_privkey_set_preferred_key_id(3)