1gnutls_pem_base64_decode(3) gnutls gnutls_pem_base64_decode(3)
2
3
4
6 gnutls_pem_base64_decode - This function will decode base64 encoded
7 data
8
10 #include <gnutls/gnutls.h>
11
12 int gnutls_pem_base64_decode(const char * header, const gnutls_datum_t
13 * b64_data, unsigned char * result, size_t * result_size);
14
16 const char * header
17 A null terminated string with the PEM header (eg. CERTIFI‐
18 CATE)
19
20 const gnutls_datum_t * b64_data
21 contain the encoded data
22
23 unsigned char * result
24 the place where decoded data will be copied
25
26 size_t * result_size
27 holds the size of the result
28
30 This function will decode the given encoded data. If the header given
31 is non null this function will search for "-----BEGIN header" and
32 decode only this part. Otherwise it will decode the first PEM packet
33 found.
34
35 Returns GNUTLS_E_SHORT_MEMORY_BUFFER if the buffer given is not long
36 enough, or 0 on success.
37
39 Report bugs to <bug-gnutls@gnu.org>.
40
42 Copyright © 2006 Free Software Foundation.
43 Permission is granted to make and distribute verbatim copies of this
44 manual provided the copyright notice and this permission notice are
45 preserved on all copies.
46
48 The full documentation for gnutls is maintained as a Texinfo manual.
49 If the info and gnutls programs are properly installed at your site,
50 the command
51
52 info gnutls
53
54 should give you access to the complete manual.
55
56
57
58gnutls 1.6.3 gnutls_pem_base64_decode(3)