]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Restructure KEXINIT generation and parsing.
authorBen Harris <bjh21@bjh21.me.uk>
Sun, 17 May 2015 09:53:27 +0000 (10:53 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sun, 17 May 2015 10:08:08 +0000 (11:08 +0100)
commit5de81cb0356187a8dff7b776b9f6abcee2ed0e91
treecfaa11ff3d3701ee7a64e1beca4affa6a8e058ff
parentdee305c318fa9b9f2213032dfaf0ccd4c220f16d
Restructure KEXINIT generation and parsing.

The new code remembers the contents and meaning of the outgoing KEXINIT
and uses this to drive the algorithm negotiation, rather than trying to
reconstruct what the outgoing KEXINIT probably said.  This removes the
need to maintain the KEXINIT generation and parsing code precisely in
parallel.

It also fixes a bug whereby PuTTY would have selected the wrong host key
type in cases where the server gained a host key type between rekeys.
ssh.c