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.
 
 
 
 

41 lines
1.3 KiB

  1. .TH libssh2_session_handshake 3 "7 Oct 2010" "libssh2 1.2.8" "libssh2 manual"
  2. .SH NAME
  3. libssh2_session_handshake - perform the SSH handshake
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_session_handshake(LIBSSH2_SESSION *session, libssh2_socket_t socket);
  8. .SH DESCRIPTION
  9. \fIsession\fP - Session instance as returned by
  10. .BR libssh2_session_init_ex(3)
  11. \fIsocket\fP - Connected socket descriptor. Typically a TCP connection
  12. though the protocol allows for any reliable transport and the library will
  13. attempt to use any berkeley socket.
  14. Begin transport layer protocol negotiation with the connected host.
  15. .SH RETURN VALUE
  16. Returns 0 on success, negative on failure.
  17. .SH ERRORS
  18. \fILIBSSH2_ERROR_SOCKET_NONE\fP - The socket is invalid.
  19. \fILIBSSH2_ERROR_BANNER_SEND\fP - Unable to send banner to remote host.
  20. \fILIBSSH2_ERROR_KEX_FAILURE\fP - >Encryption key exchange with the remote
  21. host failed.
  22. \fILIBSSH2_ERROR_SOCKET_SEND\fP - Unable to send data on socket.
  23. \fILIBSSH2_ERROR_SOCKET_DISCONNECT\fP - The socket was disconnected.
  24. \fILIBSSH2_ERROR_PROTO\fP - An invalid SSH protocol response was received on
  25. the socket.
  26. \fILIBSSH2_ERROR_EAGAIN\fP - Marked for non-blocking I/O but the call would block.
  27. .SH AVAILABILITY
  28. Added in 1.2.8
  29. .SH SEE ALSO
  30. .BR libssh2_session_free(3)
  31. .BR libssh2_session_init_ex(3)