1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-04-19 02:24:03 +03:00
Jon Simons fa6aa125a2 tests/pkd: repro rsa-sha2-{256,512} negotiation bug
Add four passes to the pkd tests to exercise codepaths where an
OpenSSH client requests these HostKeyAlgorithms combinations:

 * rsa-sha2-256
 * rsa-sha2-512
 * rsa-sha2-256,rsa-sha2-512
 * rsa-sha2-512,rsa-sha2-256

The tests demonstrate that the third combination currently fails:
libssh ends up choosing `rsa-sha2-512` instead of `rsa-sha2-256`,
and the initial exchange fails on the client side citing a signature
failure.

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit c2077ab7752c9d1fa149d7b5337d9e4aaeb96188)
2019-02-07 14:22:58 +01:00
..
2016-02-03 09:01:29 +01:00
2009-05-04 22:30:21 +00:00
2010-05-17 20:08:11 +02:00
2008-03-17 02:31:22 +00:00
2018-10-19 21:22:21 +02:00
2009-11-05 18:18:35 +01:00
2008-03-17 02:31:22 +00:00