From 0bdda64724c2a897872ff394dc215c823899d7bd Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 25 Sep 2018 23:38:49 +0100 Subject: [PATCH] Fix paste error in packet-type list macro. In commit 8cb68390e I managed to copy the packet contexts inaccurately from the old implementation of ssh2_pkt_type, and listed the ECDH KEX packets against SSH2_PKTCTX_DHGEX instead of SSH2_PKTCTX_ECDHKEX, which led to them appearing as "unknown" in packet log files. --- ssh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh.h b/ssh.h index 797b40c9..c5c8cdb9 100644 --- a/ssh.h +++ b/ssh.h @@ -1247,8 +1247,8 @@ void platform_ssh_share_cleanup(const char *name); K(y, SSH2_MSG_KEXRSA_PUBKEY, 30, SSH2_PKTCTX_RSAKEX) \ K(y, SSH2_MSG_KEXRSA_SECRET, 31, SSH2_PKTCTX_RSAKEX) \ K(y, SSH2_MSG_KEXRSA_DONE, 32, SSH2_PKTCTX_RSAKEX) \ - K(y, SSH2_MSG_KEX_ECDH_INIT, 30, SSH2_PKTCTX_DHGEX) \ - K(y, SSH2_MSG_KEX_ECDH_REPLY, 31, SSH2_PKTCTX_DHGEX) \ + K(y, SSH2_MSG_KEX_ECDH_INIT, 30, SSH2_PKTCTX_ECDHKEX) \ + K(y, SSH2_MSG_KEX_ECDH_REPLY, 31, SSH2_PKTCTX_ECDHKEX) \ X(y, SSH2_MSG_USERAUTH_REQUEST, 50) \ X(y, SSH2_MSG_USERAUTH_FAILURE, 51) \ X(y, SSH2_MSG_USERAUTH_SUCCESS, 52) \