1libssh2_banner_set(3) libssh2 manual libssh2_banner_set(3)
2
3
4
6 libssh2_banner_set - set the SSH protocol banner for the local client
7
9 #include <libssh2.h>
10
11 int libssh2_banner_set(LIBSSH2_SESSION *session, const char *banner);
12
13
15 This function is DEPRECATED. Use libssh2_session_banner_set(3) instead!
16
17 session - Session instance as returned by libssh2_session_init_ex(3)
18
19 banner - A pointer to a user defined banner
20
21 Set the banner that will be sent to the remote host when the SSH ses‐
22 sion is started with libssh2_session_handshake(3)
23 This is optional; a banner corresponding to the protocol and libssh2
24 version will be sent by default.
25
27 Return 0 on success or negative on failure. It returns LIB‐
28 SSH2_ERROR_EAGAIN when it would otherwise block. While LIB‐
29 SSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per
30 se.
31
33 Marked as deprecated since 1.4.0
34
36 LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
37
39 libssh2_session_handshake(3)
40
41
42
43libssh2 0.15 1 Jun 2007 libssh2_banner_set(3)