aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/torture.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/torture.c b/tests/torture.c
index dfd55be8..14402b0c 100644
--- a/tests/torture.c
+++ b/tests/torture.c
@@ -732,6 +732,7 @@ void torture_setup_socket_dir(void **state)
static void torture_setup_create_sshd_config(void **state)
{
struct torture_state *s = *state;
+ char ed25519_hostkey[1024] = {0};
char dsa_hostkey[1024];
char rsa_hostkey[1024];
char ecdsa_hostkey[1024];
@@ -754,6 +755,7 @@ static void torture_setup_create_sshd_config(void **state)
"HostKey %s\n"
"HostKey %s\n"
"HostKey %s\n"
+ "HostKey %s\n"
"\n"
"LogLevel DEBUG3\n"
"Subsystem sftp %s -l DEBUG2\n"
@@ -805,6 +807,13 @@ static void torture_setup_create_sshd_config(void **state)
rc = mkdir(sshd_path, 0755);
assert_return_code(rc, errno);
+ snprintf(ed25519_hostkey,
+ sizeof(ed25519_hostkey),
+ "%s/sshd/ssh_host_ed25519_key",
+ s->socket_dir);
+ torture_write_file(ed25519_hostkey,
+ torture_get_testkey(SSH_KEYTYPE_ED25519, 0, 0));
+
snprintf(dsa_hostkey,
sizeof(dsa_hostkey),
"%s/sshd/ssh_host_dsa_key",
@@ -840,6 +849,7 @@ static void torture_setup_create_sshd_config(void **state)
snprintf(sshd_config, sizeof(sshd_config),
config_string,
+ ed25519_hostkey,
dsa_hostkey,
rsa_hostkey,
ecdsa_hostkey,