libssh2_session_banner_get
(3ssh2)
Name
libssh2_session_banner_get - get the remote banner
Synopsis
#include <libssh2.h>
const char *libssh2_session_banner_get(oLIBSSH2_SESSION *session);
Description
libssh2 manual libssh2_session_banner_get(3ssh2)
NAME
libssh2_session_banner_get - get the remote banner
SYNOPSIS
#include <libssh2.h>
const char *libssh2_session_banner_get(oLIBSSH2_SESSION *session);
DESCRIPTION
Once the session has been setup and libssh2_session_handshake(3) has
completed successfully, this function can be used to get the server id
from the banner each server presents.
RETURN VALUE
A pointer to a string or NULL if something failed. The data pointed to
will be allocated and associated to the session handle and will be
freed by libssh2 when libssh2_session_free(3) is used.
AVAILABILITY
Added in 1.4.0
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+------------------+
|Availability | library/libssh2 |
+---------------+------------------+
|Stability | Uncommitted |
+---------------+------------------+
SEE ALSO
libssh2_session_banner_set(3), libssh2_session_handshake(3), lib-
ssh2_session_free(3)
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from https://www.libssh2.org/download/lib-
ssh2-1.10.0.tar.gz.
Further information about this software can be found on the open source
community website at https://www.libssh2.org/.
libssh2 1.4.0 9 Sep 2011
libssh2_session_banner_get(3ssh2)