mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 01:32:25 +00:00
Expand comment on BUG_SSH2_OLDGEX to make it clear why it's necessary.
I had wondered why we couldn't just catch SSH_MSG_UNIMPLEMENTED, and now I know: OpenSSH disconnects if the client sends SSH_MSG_KEX_DH_GEX_REQUEST.
This commit is contained in:
parent
830a454a42
commit
6912888c8a
3
ssh.c
3
ssh.c
@ -2908,7 +2908,8 @@ static void ssh_detect_bugs(Ssh ssh, char *vstring)
|
|||||||
(wc_match("OpenSSH_2.[235]*", imp)))) {
|
(wc_match("OpenSSH_2.[235]*", imp)))) {
|
||||||
/*
|
/*
|
||||||
* These versions only support the original (pre-RFC4419)
|
* These versions only support the original (pre-RFC4419)
|
||||||
* SSH-2 GEX request.
|
* SSH-2 GEX request, and disconnect with a protocol error if
|
||||||
|
* we use the newer version.
|
||||||
*/
|
*/
|
||||||
ssh->remote_bugs |= BUG_SSH2_OLDGEX;
|
ssh->remote_bugs |= BUG_SSH2_OLDGEX;
|
||||||
logevent("We believe remote version has outdated SSH-2 GEX");
|
logevent("We believe remote version has outdated SSH-2 GEX");
|
||||||
|
Loading…
Reference in New Issue
Block a user