aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/ssh-base.h
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2024-01-13 19:05:48 -0500
committerJohn Thacker <johnthacker@gmail.com>2024-01-15 06:40:08 -0500
commit5c8c379b69907fb1fd5cdf4bb42c249aa8fc3c7b (patch)
tree1d4a38234d57749e9ed8eca8b2a2dbc0637742c2 /extcap/ssh-base.h
parentb8f252dd99ea51a4325a0c84afc3d619242c83c7 (diff)
extcap: Add ability to enable SHA-1 algorithms
libssh 0.10.0 removed SHA-1 based keys and algorithms from its default configuration, though they are still supported. We ship with 0.10.5 in Windows and macOS now, and many Linux distributions are on 0.10.x as well. Add the ability to re-enable SHA-1 RSA keys, MAC, and KEX algorithms with a preference to ciscodump, sshdump, and wifidump. This will be a little easier in 0.11.0, where it's possible to just specify the algorithms you want to add to the default list, instead of having to specify the entire list. Fix #19510. Fix #19594
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 8283bffcc2..9ac592300c 100644
--- a/extcap/ssh-base.h
+++ b/extcap/ssh-base.h
@@ -38,7 +38,8 @@
{ "remote-count", ws_required_argument, NULL, OPT_REMOTE_COUNT}, \
{ "sshkey", ws_required_argument, NULL, OPT_SSHKEY}, \
{ "sshkey-passphrase", ws_required_argument, NULL, OPT_SSHKEY_PASSPHRASE}, \
- { "proxycommand", ws_required_argument, NULL, OPT_PROXYCOMMAND}
+ { "proxycommand", ws_required_argument, NULL, OPT_PROXYCOMMAND}, \
+ { "ssh-sha1", ws_no_argument, NULL, OPT_SSH_SHA1}
typedef struct _ssh_params {
char* host;
@@ -48,6 +49,7 @@ typedef struct _ssh_params {
char* sshkey_path;
char* sshkey_passphrase;
char* proxycommand;
+ bool ssh_sha1;
bool debug;
} ssh_params_t;