aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/client/torture_auth.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c
index b89f4334..24ecc507 100644
--- a/tests/client/torture_auth.c
+++ b/tests/client/torture_auth.c
@@ -52,6 +52,7 @@ static int session_setup(void **state)
{
struct torture_state *s = *state;
int verbosity = torture_libssh_verbosity();
+ const char *all_keytypes = NULL;
struct passwd *pwd;
bool b = false;
int rc;
@@ -71,6 +72,11 @@ static int session_setup(void **state)
rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_PROCESS_CONFIG, &b);
assert_ssh_return_code(s->ssh.session, rc);
+ /* Enable all hostkeys */
+ all_keytypes = ssh_kex_get_supported_method(SSH_HOSTKEYS);
+ rc = ssh_options_set(s->ssh.session, SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES, all_keytypes);
+ assert_ssh_return_code(s->ssh.session, rc);
+
return 0;
}