Increase libssh minimum version to 0.8.5
libssh 0.8.5 was released in October 2018, all known Linux distributions that currently compile on the master branch with their default packages include a more recent version, and we ship the 0.10.x series for Windows and MacOS. (Among major Linux distributions that compile currently, Debian Buster has 0.8.7). It has several API changes to ssh_options_get and ssh_options_set, new features, and a number of bugs and CVEs fixed. We can remove a workaround for a missing API call in extcap/ssh-base
This commit is contained in:
parent
87f06bfd58
commit
49ada98a88
|
@ -1231,7 +1231,7 @@ if(BUILD_sshdump OR BUILD_ciscodump OR BUILD_wifidump)
|
|||
else()
|
||||
set(ENABLE_LIBSSH OFF)
|
||||
endif()
|
||||
ws_find_package(LIBSSH ENABLE_LIBSSH HAVE_LIBSSH "0.6")
|
||||
ws_find_package(LIBSSH ENABLE_LIBSSH HAVE_LIBSSH "0.8.5")
|
||||
|
||||
ws_find_package(PCAP ENABLE_PCAP HAVE_LIBPCAP)
|
||||
ws_find_package(AIRPCAP ENABLE_AIRPCAP HAVE_AIRPCAP)
|
||||
|
|
|
@ -112,12 +112,10 @@ ssh_session create_ssh_connection(const ssh_params_t* ssh_params, char** err_inf
|
|||
*err_info = ws_strdup_printf("Can't set host keys to allow SHA-1.");
|
||||
goto failure;
|
||||
}
|
||||
#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0,8,3)
|
||||
if (ssh_options_set(sshs, SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES, HOSTKEYS_SHA1)) {
|
||||
*err_info = ws_strdup_printf("Can't set public key algorithms to allow SSH-RSA (SHA-1).");
|
||||
goto failure;
|
||||
}
|
||||
#endif
|
||||
if (ssh_options_set(sshs, SSH_OPTIONS_KEY_EXCHANGE, KEY_EXCHANGE_SHA1)) {
|
||||
*err_info = ws_strdup_printf("Can't set key exchange methods to allow SHA-1.");
|
||||
goto failure;
|
||||
|
|
Loading…
Reference in New Issue