Libssh2 banner set

From Libssh2

int libssh2_banner_set(LIBSSH2_SESSION *session, const char *banner);

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.

Parameters

Returns

  • On Success: 0
  • On Failure: -1