HomePhabricator

kex: List also the SHA2 extension when ordering hostkey algorithms

Authored by Jakuje on Tue, Jan 8, 2:27 PM.

Description

kex: List also the SHA2 extension when ordering hostkey algorithms

By default, the list of already stored known host types is preferred,
but this selection so far ignored the SHA2 extension and excluded these
keys in the KEXINIT list leading to not using this extension if not
explicitly enabled from configuration.

This commit extends the default list with the SHA2 signatures algoritms
and compares only base types so they can be listed in the KEXINIT list.

This adjust the tests to expect the full list of algorithms to pass.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnWed, Jan 9, 1:18 PM
Parents
rLIBSSH27fe60954c29: server: Correctly handle extensions
Branches
Unknown
Tags
Unknown