1gnutls_certificate_set_openpgp_key_fgignlnueut2tl(ls3s_)certificate_set_openpgp_key_file2(3)
2
3
4
6 gnutls_certificate_set_openpgp_key_file2 - API function
7
9 #include <gnutls/openpgp.h>
10
11 int gnutls_certificate_set_openpgp_key_file2(gnutls_certificate_creden‐
12 tials_t res, const char *
13 certfile, const char * keyfile, const char * subkey_id,
14 gnutls_openpgp_crt_fmt_t format);
15
17 gnutls_certificate_credentials_t
18 res
19 the destination context to save the data.
20
21 const char * certfile
22 the file that contains the public key.
23
24 const char * keyfile
25 the file that contains the secret key.
26
27 const char * subkey_id
28 a hex encoded subkey id
29
30 gnutls_openpgp_crt_fmt_t format
31 the format of the keys
32
34 This funtion is used to load OpenPGP keys into the GnuTLS credential
35 structure. The file should contain at least one valid non encrypted
36 subkey.
37
38 The special keyword "auto" is also accepted as subkey_id. In that case
39 the gnutls_openpgp_crt_get_auth_subkey() will be used to retrieve the
40 subkey.
41
43 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
44 value.
45
47 2.4.0
48
50 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
51 http://www.gnu.org/software/gnutls/ General help using GNU software:
52 http://www.gnu.org/gethelp/
53
55 Copyright © 2008 Free Software Foundation.
56 Copying and distribution of this file, with or without modification,
57 are permitted in any medium without royalty provided the copyright
58 notice and this notice are preserved.
59
61 The full documentation for gnutls is maintained as a Texinfo manual.
62 If the info and gnutls programs are properly installed at your site,
63 the command
64
65 info gnutls
66
67 should give you access to the complete manual.
68
69
70
71gnutls 2g.n1u2t.l6s._1certificate_set_openpgp_key_file2(3)