aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-10-18 16:18:22 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-19 17:43:20 +0200
commitbdb3bb9ccd81dc3e4c7a6b90868fd4e6e4fc428c (patch)
tree41c74ef4591b635718520cc4fde630641231a71b /src
parent32e502a79d335de9309aecfa6bfba4580044f60a (diff)
downloadlibssh-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kex.c b/src/kex.c
index bb014baf..8bb19db0 100644
--- a/src/kex.c
+++ b/src/kex.c
@@ -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};