aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/ssh-base.h
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2020-07-16 02:42:52 -0700
committerGuy Harris <gharris@sonic.net>2020-07-16 10:00:01 +0000
commit3dedaf80648c00a5c1e7b6498d553f793600cc23 (patch)
treeecd21aea14de9a0e0063610b0e0016439b828e2b /extcap/ssh-base.h
parent92966774721fe914403cebbcbc38ceb7e4c01ea3 (diff)
extcap: put the code to add lissh version information into a common routine.
add_libssh_info() can be used by ciscodump, sshdump. and any other extcap program that uses libssh. Change-Id: I60474bd610eeb7dfb6ec07fc1aaaf19c4f745cdd Reviewed-on: https://code.wireshark.org/review/37882 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <gharris@sonic.net>
Diffstat (limited to 'extcap/ssh-base.h')
-rw-r--r--extcap/ssh-base.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/extcap/ssh-base.h b/extcap/ssh-base.h
index 55565646d9..11a6d62043 100644
--- a/extcap/ssh-base.h
+++ b/extcap/ssh-base.h
@@ -17,6 +17,8 @@
#include <glib.h>
+#include <extcap/extcap-base.h>
+
#ifndef STDERR_FILENO
#define STDERR_FILENO 2
#endif
@@ -48,6 +50,9 @@ typedef struct _ssh_params {
gboolean debug;
} ssh_params_t;
+/* Add libssh version information to an extcap_parameters structure */
+void add_libssh_info(extcap_parameters * extcap_conf);
+
/* Create a ssh connection using all the possible authentication menthods */
ssh_session create_ssh_connection(const ssh_params_t* ssh_params, char** err_info);