1gnutls_pem_base64_decode(3)         gnutls         gnutls_pem_base64_decode(3)
2
3
4

NAME

6       gnutls_pem_base64_decode - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_pem_base64_decode(const char * header, const gnutls_datum_t
12       * b64_data, unsigned char * result, size_t * result_size);
13

ARGUMENTS

15       const char * header
16                   A null terminated string with the PEM header (eg.  CERTIFI‐
17                   CATE)
18
19       const gnutls_datum_t * b64_data
20                   contain the encoded data
21
22       unsigned char * result
23                   the place where decoded data will be copied
24
25       size_t * result_size
26                   holds the size of the result
27

DESCRIPTION

29       This  function will decode the given encoded data.  If the header given
30       is non null this function  will  search  for  "-----BEGIN  header"  and
31       decode  only  this part.  Otherwise it will decode the first PEM packet
32       found.
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_decode(3)
Impressum