diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-11-03 15:15:43 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-11-05 05:59:38 +0000 |
commit | 0a5770a78a82147142bb7e2ead914eef1b254724 (patch) | |
tree | d34c02f9274f92bac3c4f78103db435300f657f0 /extcap/ssh-base.h | |
parent | 2be2febfc6dd606ef667e05a323a1b0bdc726f62 (diff) |
extcap: add option to set proxycommand to ssh sessions.
sshdump and ciscodump have been updated to use it.
Change-Id: I4e1e0d35f086d76c13264939bc4f14308cc88cfb
Reviewed-on: https://code.wireshark.org/review/30496
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap/ssh-base.h')
-rw-r--r-- | extcap/ssh-base.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extcap/ssh-base.h b/extcap/ssh-base.h index 8c81ac5c50..bd1f7b3f82 100644 --- a/extcap/ssh-base.h +++ b/extcap/ssh-base.h @@ -34,11 +34,13 @@ { "remote-filter", required_argument, NULL, OPT_REMOTE_FILTER}, \ { "remote-count", required_argument, NULL, OPT_REMOTE_COUNT}, \ { "sshkey", required_argument, NULL, OPT_SSHKEY}, \ - { "sshkey-passphrase", required_argument, NULL, OPT_SSHKEY_PASSPHRASE} + { "sshkey-passphrase", required_argument, NULL, OPT_SSHKEY_PASSPHRASE}, \ + { "proxycommand", required_argument, NULL, OPT_PROXYCOMMAND} /* Create a ssh connection using all the possible authentication menthods */ 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); + const char* password, const char* sshkey_path, const char* sshkey_passphrase, const char* proxycommand, + char** err_info); /* Write a formatted message in the channel */ int ssh_channel_printf(ssh_channel channel, const char* fmt, ...); |