1libssh2_banner_set(3) libssh2 manual libssh2_banner_set(3)
2
3
4
6 libssh2_banner_set - set the SSH prococol 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 session - Session instance as returned by libssh2_session_init_ex(3)
16
17 banner - A pointer to a user defined banner
18
19 Set the banner that will be sent to the remote host when the SSH ses‐
20 sion is started with libssh2_session_startup(3)
21 This is optional; a banner corresponding to the protocol and libssh2
22 version will be sent by default.
23
24
26 Return 0 on success or negative on failure. It returns LIB‐
27 SSH2_ERROR_EAGAIN when it would otherwise block. While LIB‐
28 SSH2_ERROR_EAGAIN is a negative number, it isn't really a failure per
29 se.
30
31
33 LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
34
35
37 libssh2_session_startup(3)
38
39
40
41libssh2 0.15 1 Jun 2007 libssh2_banner_set(3)