Refactor creation of KEX proposal.
authordtucker <dtucker@openbsd.org>
Mon, 6 Mar 2023 12:14:48 +0000 (12:14 +0000)
committerdtucker <dtucker@openbsd.org>
Mon, 6 Mar 2023 12:14:48 +0000 (12:14 +0000)
commitb4176c6e4c197e25e2d0cc6a48666540d742ccba
tree64704ad950984528bd3fdc5cb3da8e3ed64c37d6
parent146a7c8d4188d18bd0690442e92ea3cfdf206e26
Refactor creation of KEX proposal.

This adds kex_proposal_populate_entries (and corresponding free) which
populates the KEX proposal array with dynamically allocated strings.
This replaces the previous mix of static and dynamic that has been the
source of previous leaks and bugs.  Remove unused compat functions.
With & ok djm@.
usr.bin/ssh/compat.c
usr.bin/ssh/compat.h
usr.bin/ssh/kex.c
usr.bin/ssh/kex.h
usr.bin/ssh/sshconnect2.c
usr.bin/ssh/sshd.c