geom_gate userland utility improvements
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
965 B

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