aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/kex.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-24 16:28:39 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-24 18:01:34 +0200
commit895055ab38e7716390019aae5e11771a88b99d26 (patch)
treeba8f6050331f45e411be4696e930f5ecd3d0fed8 /include/libssh/kex.h
parentde35212789d11086621e176a11399de0d75ab3a6 (diff)
downloadlibssh-895055ab38e7716390019aae5e11771a88b99d26.tar.gz
libssh-895055ab38e7716390019aae5e11771a88b99d26.tar.xz
libssh-895055ab38e7716390019aae5e11771a88b99d26.zip
ssh_options_set_algo: ensure we only set known algorithms internally
That way, we will not fail later on key exchange phase when something unknown is negotiated. Fixes T37 Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'include/libssh/kex.h')
-rw-r--r--include/libssh/kex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/kex.h b/include/libssh/kex.h
index e872bde1..3b70ec72 100644
--- a/include/libssh/kex.h
+++ b/include/libssh/kex.h
@@ -41,6 +41,7 @@ void ssh_list_kex(struct ssh_kex_struct *kex);
int ssh_set_client_kex(ssh_session session);
int ssh_kex_select_methods(ssh_session session);
int ssh_verify_existing_algo(int algo, const char *name);
+char *ssh_keep_known_algos(enum ssh_kex_types_e algo, const char *list);
char **ssh_space_tokenize(const char *chain);
int ssh_get_kex1(ssh_session session);
char *ssh_find_matching(const char *in_d, const char *what_d);