From 03ca994cc048ac5af7c2722e9f4e4b27d8a95784 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 30 May 2019 17:43:54 +0200 Subject: [PATCH] tests: Use the SHA2 extension by default to avoid issues in FIPS mode --- tests/server/torture_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/server/torture_server.c b/tests/server/torture_server.c index 6ed64238..ab9af4cb 100644 --- a/tests/server/torture_server.c +++ b/tests/server/torture_server.c @@ -461,8 +461,8 @@ static void torture_server_hostkey_mismatch(void **state) rc = ssh_options_set(session, SSH_OPTIONS_USER, SSHD_DEFAULT_USER); assert_ssh_return_code(session, rc); - /* Configure the client to offer only ssh-rsa hostkey algorithm */ - rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, "ssh-rsa"); + /* Configure the client to offer only rsa-sha2-256 hostkey algorithm */ + rc = ssh_options_set(session, SSH_OPTIONS_HOSTKEYS, "rsa-sha2-256"); assert_ssh_return_code(session, rc); rc = ssh_connect(session);