1gnutls_openpgp_key_export(3) gnutls gnutls_openpgp_key_export(3)
2
3
4
6 gnutls_openpgp_key_export - This function will export a RAW or BASE64
7 encoded key
8
10 #include <gnutls/openpgp.h>
11
12 int gnutls_openpgp_key_export(gnutls_openpgp_key_t key,
13 gnutls_openpgp_key_fmt_t format, void * output_data, size_t * out‐
14 put_data_size);
15
17 gnutls_openpgp_key_t key
18 Holds the key.
19
20 gnutls_openpgp_key_fmt_t format
21 One of gnutls_openpgp_key_fmt_t elements.
22
23 void * output_data
24 will contain the key base64 encoded or raw
25
26 size_t * output_data_size
27 holds the size of output_data (and will be replaced by the
28 actual size of parameters)
29
31 This function will convert the given key to RAW or Base64 format. If
32 the buffer provided is not long enough to hold the output, then
33 GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
34
35 Returns 0 on success.
36
38 Report bugs to <bug-gnutls@gnu.org>.
39
41 Copyright © 2006 Free Software Foundation.
42 Permission is granted to make and distribute verbatim copies of this
43 manual provided the copyright notice and this permission notice are
44 preserved on all copies.
45
47 The full documentation for gnutls is maintained as a Texinfo manual.
48 If the info and gnutls programs are properly installed at your site,
49 the command
50
51 info gnutls
52
53 should give you access to the complete manual.
54
55
56
57gnutls 1.6.3 gnutls_openpgp_key_export(3)