1gnutls_openpgp_crt_export(3) gnutls gnutls_openpgp_crt_export(3)
2
3
4
6 gnutls_openpgp_crt_export - export a RAW or BASE64 encoded key
7
9 #include <gnutls/openpgp.h>
10
11 int gnutls_openpgp_crt_export(gnutls_openpgp_crt_t key,
12 gnutls_openpgp_crt_fmt_t format, void * output_data, size_t * out‐
13 put_data_size);
14
16 gnutls_openpgp_crt_t key
17 Holds the key.
18
19 gnutls_openpgp_crt_fmt_t format
20 One of gnutls_openpgp_crt_fmt_t elements.
21
22 void * output_data
23 will contain the key base64 encoded or raw
24
25 size_t * output_data_size
26 holds the size of output_data (and will be replaced by the
27 actual size of parameters)
28
30 This function will convert the given key to RAW or Base64 format. If
31 the buffer provided is not long enough to hold the output, then
32 GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
33
35 GNUTLS_E_SUCCESS on success, or an error code.
36
38 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
39 http://www.gnu.org/software/gnutls/ General help using GNU software:
40 http://www.gnu.org/gethelp/
41
43 Copyright © 2008 Free Software Foundation.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the info and gnutls programs are properly installed at your site,
51 the command
52
53 info gnutls
54
55 should give you access to the complete manual.
56
57
58
59gnutls 2.8.6 gnutls_openpgp_crt_export(3)