correctly match ECDSA subtype (== curve) for offered/recevied
authordjm <djm@openbsd.org>
Mon, 26 Jan 2015 06:10:03 +0000 (06:10 +0000)
committerdjm <djm@openbsd.org>
Mon, 26 Jan 2015 06:10:03 +0000 (06:10 +0000)
commit3482e0682edd6eb30695936bb3ab094c65412449
treef83899506f348b5e38060912fd066fc4878f7696
parent1ad32c60f8cd3a641755c16a49ac85e49c575385
correctly match ECDSA subtype (== curve) for offered/recevied
host keys. Fixes connection-killing host key mismatches when
a server offers multiple ECDSA keys with different curve type
(an extremely unlikely configuration).

ok markus, "looks mechanical" deraadt@
14 files changed:
usr.bin/ssh/auth.h
usr.bin/ssh/kex.c
usr.bin/ssh/kex.h
usr.bin/ssh/kexc25519c.c
usr.bin/ssh/kexc25519s.c
usr.bin/ssh/kexdhc.c
usr.bin/ssh/kexdhs.c
usr.bin/ssh/kexecdhc.c
usr.bin/ssh/kexecdhs.c
usr.bin/ssh/kexgexc.c
usr.bin/ssh/kexgexs.c
usr.bin/ssh/ssh_api.c
usr.bin/ssh/sshconnect.c
usr.bin/ssh/sshd.c