1libssh2_base64_decode(3)            libssh2           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
12       libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest,
13                             unsigned int *dest_len, const char *src,
14                             unsigned int src_len);
15

DESCRIPTION

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

BUGS

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

RETURN VALUE

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