1gnutls_pem_base64_encode_alloc(3) gnutls gnutls_pem_base64_encode_alloc(3)
2
3
4
6 gnutls_pem_base64_encode_alloc - This function will convert raw data to
7 Base64 encoded
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_pem_base64_encode_alloc(const char * msg, const
13 gnutls_datum_t * data, gnutls_datum_t * result);
14
16 const char * msg
17 is a message to be put in the encoded header
18
19 const gnutls_datum_t * data
20 contains the raw data
21
22 gnutls_datum_t * result
23 will hold the newly allocated encoded data
24
26 This function will convert the given data to printable data, using the
27 base64 encoding. This is the encoding used in PEM messages. This func‐
28 tion will allocate the required memory to hold the encoded data.
29
30 You should use gnutls_free() to free the returned data.
31
33 Report bugs to <bug-gnutls@gnu.org>.
34
36 Copyright © 2006 Free Software Foundation.
37 Permission is granted to make and distribute verbatim copies of this
38 manual provided the copyright notice and this permission notice are
39 preserved on all copies.
40
42 The full documentation for gnutls is maintained as a Texinfo manual.
43 If the info and gnutls programs are properly installed at your site,
44 the command
45
46 info gnutls
47
48 should give you access to the complete manual.
49
50
51
52gnutls 1.6.3 gnutls_pem_base64_encode_alloc(3)