diff options
author | Jakub Jelen <jjelen@redhat.com> | 2018-10-18 16:18:22 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-10-19 17:43:20 +0200 |
commit | bdb3bb9ccd81dc3e4c7a6b90868fd4e6e4fc428c (patch) | |
tree | 41c74ef4591b635718520cc4fde630641231a71b /src | |
parent | 32e502a79d335de9309aecfa6bfba4580044f60a (diff) | |
download | libssh-bdb3bb9ccd81dc3e4c7a6b90868fd4e6e4fc428c.tar.gz libssh-bdb3bb9ccd81dc3e4c7a6b90868fd4e6e4fc428c.tar.xz libssh-bdb3bb9ccd81dc3e4c7a6b90868fd4e6e4fc428c.zip |
tests: Verify the hostkey ordering for negotiation is correct
Previously, not all of the host keys algorithms were used for algorithm
negotiation. This verifies the algorithms list is sane and ordered
with the key types from known hosts in the first place.
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/kex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -606,7 +606,7 @@ void ssh_list_kex(struct ssh_kex_struct *kex) { * @returns a cstring containing a comma-separated list of hostkey methods. * NULL if no method matches */ -static char *ssh_client_select_hostkeys(ssh_session session) +char *ssh_client_select_hostkeys(ssh_session session) { char methods_buffer[128]={0}; char tail_buffer[128]={0}; |