1libssh2_base64_decode(3)        libssh2 manual        libssh2_base64_decode(3)
2
3
4

NAME

6       libssh2_base64_decode - decode a base64 encoded string
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest,
12                                 unsigned int *dest_len, const char *src,
13                                 unsigned int src_len);
14

DESCRIPTION

16       This  function is deemed DEPRECATED and will be removed from libssh2 in
17       a future version. Don't use it!
18
19       Decode a base64 chunk and store  it  into  a  newly  allocated  buffer.
20       'dest_len'  will  be set to hold the length of the returned buffer that
21       '*dest' will point to.
22
23       The returned buffer is allocated by this function, but it is not  clear
24       how to free that memory!
25

BUGS

27       The  memory  that  *dest  points to is allocated by the malloc function
28       libssh2 uses, but there's no way for an appliction to free this data in
29       a safe and reliable way!
30

RETURN VALUE

32       0 if successful, -1 if any error occurred.
33
34
35
36libssh2 1.0                       23 Dec 2008         libssh2_base64_decode(3)
Impressum