1libssh2_banner_set(3) libssh2 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
12 libssh2_banner_set(LIBSSH2_SESSION *session, const char *banner);
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 LIBSSH2_ER‐
28 ROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is
29 a negative number, it is not really a failure per se.
30
32 Marked as deprecated since 1.4.0
33
35 LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
36
38 libssh2_session_handshake(3)
39
40
41
42libssh2 0.15 1 Jun 2007 libssh2_banner_set(3)