libssh2_init.3 577 B

1234567891011121314151617181920
  1. .TH libssh2_init 3 "19 Mar 2010" "libssh2 1.2.5" "libssh2 manual"
  2. .SH NAME
  3. libssh2_init - global library initialization
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. #define LIBSSH2_INIT_NO_CRYPTO 0x0001
  7. int
  8. libssh2_init(int flags);
  9. .SH DESCRIPTION
  10. Initialize the libssh2 functions. This typically initialize the
  11. crypto library. It uses a global state, and is not thread safe -- you
  12. must make sure this function is not called concurrently.
  13. .SH RETURN VALUE
  14. Returns 0 if succeeded, or a negative value for error.
  15. .SH AVAILABILITY
  16. Added in libssh2 1.2.5
  17. .SH SEE ALSO
  18. .BR libssh2_exit(3)