summaryrefslogtreecommitdiff
path: root/extcap/ssh-base.h
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-08-31 10:14:33 +0200
committerDario Lombardo <lomato@gmail.com>2016-09-16 14:21:16 +0000
commitd67c1db3f2b16185d7cff250e098f48d94883f0e (patch)
treef111269e33ea8b0ac29532c18e2ce16762f4f515 /extcap/ssh-base.h
parent2492fe41ba165738aa8667ebfe7f9e96f69ef350 (diff)
downloadwireshark-d67c1db3f2b16185d7cff250e098f48d94883f0e.tar.gz
extcap: make extcap use the ws_strtoi/u functions.
Change-Id: Id75c72eba869c8a0f413ce8b5d6329ce172aed1f Reviewed-on: https://code.wireshark.org/review/17415 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to 'extcap/ssh-base.h')
-rw-r--r--extcap/ssh-base.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/extcap/ssh-base.h b/extcap/ssh-base.h
index 28a4b08acb..d407d309e8 100644
--- a/extcap/ssh-base.h
+++ b/extcap/ssh-base.h
@@ -27,6 +27,8 @@
#include <libssh/libssh.h>
+#include <glib.h>
+
#ifndef STDERR_FILENO
#define STDERR_FILENO 2
#endif
@@ -47,7 +49,7 @@
{ "sshkey-passphrase", required_argument, NULL, OPT_SSHKEY_PASSPHRASE}
/* Create a ssh connection using all the possible authentication menthods */
-ssh_session create_ssh_connection(const char* hostname, const unsigned int port, const char* username,
+ssh_session create_ssh_connection(const char* hostname, const guint16 port, const char* username,
const char* password, const char* sshkey_path, const char* sshkey_passphrase, char** err_info);
/* Write a formatted message in the channel */