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.
 
 
 
 

33 lines
1.1 KiB

  1. .TH libssh2_session_banner_set 3 "9 Sep 2011" "libssh2 1.4.0" "libssh2 manual"
  2. .SH NAME
  3. libssh2_session_banner_set - set the SSH protocol banner for the local client
  4. .SH SYNOPSIS
  5. #include <libssh2.h>
  6. int
  7. libssh2_session_banner_set(LIBSSH2_SESSION *session, const char *banner);
  8. .SH DESCRIPTION
  9. \fIsession\fP - Session instance as returned by
  10. .BR libssh2_session_init_ex(3)
  11. \fIbanner\fP - A pointer to a zero-terminated string holding the user defined
  12. banner
  13. Set the banner that will be sent to the remote host when the SSH session is
  14. started with \fIlibssh2_session_handshake(3)\fP This is optional; a banner
  15. corresponding to the protocol and libssh2 version will be sent by default.
  16. .SH RETURN VALUE
  17. Returns 0 on success or negative on failure. It returns LIBSSH2_ERROR_EAGAIN
  18. when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative
  19. number, it isn't really a failure per se.
  20. .SH ERRORS
  21. \fILIBSSH2_ERROR_ALLOC\fP - An internal memory allocation call failed.
  22. .SH AVAILABILITY
  23. Added in 1.4.0.
  24. Before 1.4.0 this function was known as libssh2_banner_set(3)
  25. .SH SEE ALSO
  26. .BR libssh2_session_handshake(3),
  27. .BR libssh2_session_banner_get(3)