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.4 KiB

  1. .TH libssh2_session_method_pref 3 "1 Jun 2007" "libssh2 0.15" "libssh2 manual"
  2. .SH NAME
  3. libssh2_session_method_pref - set preferred key exchange method
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_session_method_pref(LIBSSH2_SESSION *session, int method_type, const char *prefs);
  8. .SH DESCRIPTION
  9. \fIsession\fP - Session instance as returned by
  10. .BR libssh2_session_init_ex(3)
  11. \fImethod_type\fP - One of the Method Type constants.
  12. \fIprefs\fP - Coma delimited list of preferred methods to use with
  13. the most preferred listed first and the least preferred listed last.
  14. If a method is listed which is not supported by libssh2 it will be
  15. ignored and not sent to the remote host during protocol negotiation.
  16. Set preferred methods to be negotiated. These
  17. preferences must be set prior to calling
  18. .BR libssh2_session_handshake(3)
  19. as they are used during the protocol initiation phase.
  20. .SH RETURN VALUE
  21. Return 0 on success or negative on failure. It returns
  22. LIBSSH2_ERROR_EAGAIN when it would otherwise block. While
  23. LIBSSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per se.
  24. .SH ERRORS
  25. \fILIBSSH2_ERROR_INVAL\fP - The requested method type was invalid.
  26. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  27. \fILIBSSH2_ERROR_METHOD_NOT_SUPPORTED\fP - The requested method is not supported.
  28. .SH SEE ALSO
  29. .BR libssh2_session_init_ex(3)
  30. .BR libssh2_session_handshake(3)