1gnutls_pem_base64_encode(3)         gnutls         gnutls_pem_base64_encode(3)
2
3
4

NAME

6       gnutls_pem_base64_encode - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_pem_base64_encode(const  char * msg, const gnutls_datum_t *
12       data, char * result, size_t * result_size);
13

ARGUMENTS

15       const char * msg
16                   is a message to be put in the header
17
18       const gnutls_datum_t * data
19                   contain the raw data
20
21       char * result
22                   the place where base64 data will be copied
23
24       size_t * result_size
25                   holds the size of the result
26

DESCRIPTION

28       This function will convert the given data to printable data, using  the
29       base64 encoding. This is the encoding used in PEM messages.
30
31       The  output  string will be null terminated, although the size will not
32       include the terminating null.
33

RETURNS

35       On success GNUTLS_E_SUCCESS (0) is returned, GNUTLS_E_SHORT_MEMORY_BUF‐
36       FER  is  returned  if the buffer given is not long enough, or 0 on suc‐
37       cess.
38

REPORTING BUGS

40       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
41       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
42       http://www.gnu.org/gethelp/
43
45       Copyright © 2008 Free Software Foundation.
46       Copying and distribution of this file, with  or  without  modification,
47       are  permitted  in  any  medium  without royalty provided the copyright
48       notice and this notice are preserved.
49

SEE ALSO

51       The full documentation for gnutls is maintained as  a  Texinfo  manual.
52       If  the  info  and gnutls programs are properly installed at your site,
53       the command
54
55              info gnutls
56
57       should give you access to the complete manual.
58
59
60
61gnutls                             2.12.6.1        gnutls_pem_base64_encode(3)
Impressum