aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-04-14 14:41:50 +0200
committerJakub Jelen <jjelen@redhat.com>2020-04-20 14:14:33 +0200
commit9ac2d1470763c416f018f3065725d2d7a6c6c366 (patch)
tree85e467be3ff169266508967459ba3ca8fa0431f4
parentbab2c775da62663163c51d0aa21c7ed25345905a (diff)
downloadlibssh-9ac2d1470763c416f018f3065725d2d7a6c6c366.tar.gz
libssh-9ac2d1470763c416f018f3065725d2d7a6c6c366.tar.xz
libssh-9ac2d1470763c416f018f3065725d2d7a6c6c366.zip
tests: Enable all host key algorithms in testing client
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
-rw-r--r--tests/server/torture_server_config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/server/torture_server_config.c b/tests/server/torture_server_config.c
index 88385752..2f0fa8c9 100644
--- a/tests/server/torture_server_config.c
+++ b/tests/server/torture_server_config.c
@@ -237,6 +237,7 @@ static int session_setup(void **state)
struct test_server_st *tss = *state;
struct torture_state *s;
int verbosity = torture_libssh_verbosity();
+ const char *compat_hostkeys = ssh_kex_get_supported_method(SSH_HOSTKEYS);
struct passwd *pwd;
bool b = false;
int rc;
@@ -265,6 +266,8 @@ static int session_setup(void **state)
/* Make sure no other configuration options from system will get used */
rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_PROCESS_CONFIG, &b);
assert_ssh_return_code(s->ssh.session, rc);
+ rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_HOSTKEYS, compat_hostkeys);
+ assert_ssh_return_code(s->ssh.session, rc);
return 0;
}