1gnutls_pem_base64_encode(3) gnutls gnutls_pem_base64_encode(3)
2
3
4
6 gnutls_pem_base64_encode - This function will convert raw data to
7 Base64 encoded
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_pem_base64_encode(const char * msg, const gnutls_datum_t *
13 data, char * result, size_t * result_size);
14
16 const char * msg
17 is a message to be put in the header
18
19 const gnutls_datum_t * data
20 contain the raw data
21
22 char * result
23 the place where base64 data will be copied
24
25 size_t * result_size
26 holds the size of the result
27
29 This function will convert the given data to printable data, using the
30 base64 encoding. This is the encoding used in PEM messages. If the pro‐
31 vided buffer is not long enough GNUTLS_E_SHORT_MEMORY_BUFFER is
32 returned.
33
34 The output string will be null terminated, although the size will not
35 include the terminating null.
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_pem_base64_encode(3)