1libssh2_banner_set(3)           libssh2 manual           libssh2_banner_set(3)
2
3
4

NAME

6       libssh2_banner_set - set the SSH prococol banner for the local client
7

SYNOPSIS

9       #include <libssh2.h>
10
11       int libssh2_banner_set(LIBSSH2_SESSION *session, const char *banner);
12
13

DESCRIPTION

15       session - Session instance as returned by libssh2_session_init(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
22

RETURN VALUE

24       Return  0  on  success  or  negative  on  failure.   It  returns   LIB‐
25       SSH2_ERROR_EAGAIN   when   it   would   otherwise   block.  While  LIB‐
26       SSH2_ERROR_EAGAIN is a negative number, it isn't really a  failure  per
27       se.
28
29

ERRORS

31       LIBSSH2_ERROR_ALLOC -  An internal memory allocation call failed.
32
33

SEE ALSO

35       libssh2_session_startup(3)
36
37
38
39libssh2 0.15                      1 Jun 2007             libssh2_banner_set(3)
Impressum