libssh2_session_banner_get.3 (795B)
1.TH libssh2_session_banner_get 3 "9 Sep 2011" "libssh2" "libssh2" 2.SH NAME 3libssh2_session_banner_get - get the remote banner 4.SH SYNOPSIS 5.nf 6#include <libssh2.h> 7 8const char * 9libssh2_session_banner_get(oLIBSSH2_SESSION *session); 10.fi 11.SH DESCRIPTION 12Once the session has been setup and \fIlibssh2_session_handshake(3)\fP has 13completed successfully, this function can be used to get the server id from 14the banner each server presents. 15.SH RETURN VALUE 16A pointer to a string or NULL if something failed. The data pointed to will be 17allocated and associated to the session handle and will be freed by libssh2 18when \fIlibssh2_session_free(3)\fP is used. 19.SH AVAILABILITY 20Added in 1.4.0 21.SH SEE ALSO 22.BR libssh2_session_banner_set(3), 23.BR libssh2_session_handshake(3), 24.BR libssh2_session_free(3)