mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
tests: Use the SHA2 extension by default to avoid issues in FIPS mode
This commit is contained in:
committed by
Andreas Schneider
parent
53ae2502f4
commit
03ca994cc0
@ -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);
|
||||
|
Reference in New Issue
Block a user