summaryrefslogtreecommitdiffstats
path: root/src/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.c')
-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.