libssh2_base64_decode.3 (960B)
1.TH libssh2_base64_decode 3 "23 Dec 2008" "libssh2 1.0" "libssh2" 2.SH NAME 3libssh2_base64_decode - decode a base64 encoded string 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8int 9libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest, 10 unsigned int *dest_len, const char *src, 11 unsigned int src_len); 12.fi 13.SH DESCRIPTION 14This function is deemed DEPRECATED and will be removed from libssh2 in a 15future version. Do not use it! 16 17Decode a base64 chunk and store it into a newly allocated buffer. 'dest_len' 18will be set to hold the length of the returned buffer that '*dest' will point 19to. 20 21The returned buffer is allocated by this function, but it is not clear how to 22free that memory! 23.SH BUGS 24The memory that *dest points to is allocated by the malloc function libssh2 25uses, but there is no way for an application to free this data in a safe and 26reliable way! 27.SH RETURN VALUE 280 if successful, \-1 if any error occurred.