HomePhabricator

server: Correctly handle extensions

Authored by Jakuje on Jan 7 2019, 6:49 PM.

Description

server: Correctly handle extensions

If the server had an RSA host key, it provided unconditionally SHA2
signatures without consulting the client proposed list of supported host
keys.

This commit implements more fine-grained detection of the extension
to provide the client with valid signatures according to RFC 8332
Section 3.1.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 27fe60954c29e548c30af239d92ab4faaf8cf788)

Details

Committed
asnJan 9 2019, 5:22 PM
Parents
rLIBSSHd028b2495d0b: dh: Make sure we do not access uninitialized memory
Branches
Unknown
Tags
Unknown