1libssh2_session_banner_get(3) libssh2 libssh2_session_banner_get(3)
2
3
4
6 libssh2_session_banner_get - get the remote banner
7
9 #include <libssh2.h>
10
11 const char *
12 libssh2_session_banner_get(oLIBSSH2_SESSION *session);
13
15 Once the session has been setup and libssh2_session_handshake(3) has
16 completed successfully, this function can be used to get the server id
17 from the banner each server presents.
18
20 A pointer to a string or NULL if something failed. The data pointed to
21 will be allocated and associated to the session handle and will be
22 freed by libssh2 when libssh2_session_free(3) is used.
23
25 Added in 1.4.0
26
28 libssh2_session_banner_set(3), libssh2_session_handshake(3), lib‐
29 ssh2_session_free(3)
30
31
32
33libssh2 9 Sep 2011 libssh2_session_banner_get(3)