1gnutls_openpgp_key_import(3) gnutls gnutls_openpgp_key_import(3)
2
3
4
6 gnutls_openpgp_key_import - This function will import a RAW or BASE64
7 encoded key
8
10 #include <gnutls/openpgp.h>
11
12 int gnutls_openpgp_key_import(gnutls_openpgp_key_t key, const
13 gnutls_datum_t * data, gnutls_openpgp_key_fmt_t format);
14
16 gnutls_openpgp_key_t key
17 The structure to store the parsed key.
18
19 const gnutls_datum_t * data
20 The RAW or BASE64 encoded key.
21
22 gnutls_openpgp_key_fmt_t format
23 One of gnutls_openpgp_key_fmt_t elements.
24
26 This function will convert the given RAW or Base64 encoded key to the
27 native gnutls_openpgp_key_t format. The output will be stored in 'key'.
28
29 Returns 0 on success.
30
32 Report bugs to <bug-gnutls@gnu.org>.
33
35 Copyright © 2006 Free Software Foundation.
36 Permission is granted to make and distribute verbatim copies of this
37 manual provided the copyright notice and this permission notice are
38 preserved on all copies.
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 1.6.3 gnutls_openpgp_key_import(3)