Libssh2 banner set
From Libssh2
int libssh2_banner_set(LIBSSH2_SESSION *session, const char *banner);
[edit]
About
Alter the default banner sent by libssh2 during transport startup. The default banner is defined by LIBSSH2_SSH_BANNER. Note that in order to avoid protocol negotiation errors, the first eight characters of the string must contain SSH-2.0- and there must be no carriage returns or linefeeds.
[edit]
Parameters
- session
- Session instance as returned by libssh2_session_init().
- banner
- Banner string to send.
[edit]
Returns
- On Success: 0
- On Failure: -1
