aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2012-01-02 16:31:37 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2012-01-02 16:31:37 +0100
commit2ffbdb0492d3ceae6943eff1a8fd39076808c175 (patch)
treef706957e63a0d435e80b006815c783c2498fde82 /src
parent4305da29a19446ccd2ab83c6b42cbd037fe377a3 (diff)
downloadlibssh-2ffbdb0492d3ceae6943eff1a8fd39076808c175.tar.gz
libssh-2ffbdb0492d3ceae6943eff1a8fd39076808c175.tar.xz
libssh-2ffbdb0492d3ceae6943eff1a8fd39076808c175.zip
commit a7e14524c4f7903f607cdcd02b83782e89f0a82c
Diffstat (limited to 'src')
-rw-r--r--src/session.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 2160ffe..404b36b 100644
--- a/src/session.c
+++ b/src/session.c
@@ -246,6 +246,17 @@ void ssh_free(ssh_session session) {
}
/**
+ * @brief get the server banner
+ * @param[in] session The SSH session
+ */
+const char* ssh_get_serverbanner(ssh_session session) {
+ if(!session) {
+ return NULL;
+ }
+ return session->serverbanner;
+}
+
+/**
* @brief Disconnect impolitely from a remote host by closing the socket.
*
* Suitable if you forked and want to destroy this session.