1gnutls_openpgp_crt_export(3) gnutls gnutls_openpgp_crt_export(3)
2
3
4
6 gnutls_openpgp_crt_export - API function
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 raw or base64 encoded key
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 <bugs@gnutls.org>.
39 Home page: http://www.gnutls.org
40
41
43 Copyright © 2001-2014 Free Software Foundation, Inc..
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 http://www.gnutls.org/manual/
54
55gnutls 3.3.29 gnutls_openpgp_crt_export(3)