Windows version sshdump can't support some DH key exchange algos
Summary
Windows version sshdump can't support kex algos, this will crash sshdump. Maybe because libssh is too old.
Steps to reproduce
Just normal use sshdump in wireshark GUI(windows).
What is the current bug behavior?
sshdump crash with below error:
Error by extcap pipe: * (sshdump.exe:4708): WARNING *: Error creating connection.
* (sshdump.exe:4708): WARNING : Connection error: kex error : no match for method kex algos: *server [curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256],
client [diffie-hellman-group14-sha1,diffie-hellman-group1-sha1]
What is the expected correct behavior?
sshdump should work fine without crash.
Sample capture file
N/A
Relevant logs and/or screenshots
C:\Program Files\Wireshark>extcap\sshdump.exe --version
sshdump.exe version 1.0.0
Compiled with libssh version 0.7.3
Running with libssh version 0.7.3/gnutls/zlib
Build information
3.4.0 (v3.4.0-0-g9733f173ea5e)
Compiled (64-bit) with Qt 5.15.1, with libpcap, with GLib 2.52.3, with zlib
1.2.11, with SMI 0.4.8, with c-ares 1.15.0, with Lua 5.2.4, with GnuTLS 3.6.3
and PKCS #11 support, with Gcrypt 1.8.3, with MIT Kerberos, with MaxMind DB
resolver, with nghttp2 1.39.2, with brotli, with LZ4, with Zstandard, with
Snappy, with libxml2 2.9.9, with QtMultimedia, with automatic updates using
WinSparkle 0.5.7, with AirPcap, with SpeexDSP (using bundled resampler).
Running on 64-bit Windows 10 (2009), build 19042, with Intel(R) Core(TM)
i5-4300M CPU @ 2.60GHz (with SSE4.2), with 7876 MB of physical memory, with
locale Chinese (Simplified)_China.utf8, with light display mode, without HiDPI,
with WinPcap version 4.1.3 (packet.dll version 4.1.0.2980), based on libpcap
version 1.0 branch 1_0_rel0b (20091008), with GnuTLS 3.6.3, with Gcrypt 1.8.3,
with brotli 1.0.2, without AirPcap, binary plugins supported (21 loaded).
Built using Microsoft Visual Studio 2019 (VC++ 14.27, build 29112).
Edited by zizifn