diff --git a/tests/torture.c b/tests/torture.c index 907f45b..c22ca34 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -636,6 +636,15 @@ static void torture_setup_create_sshd_config(void **state, bool pam) # else /* HAVE_DSA */ "HostKeyAlgorithms +ssh-rsa\n" # endif /* HAVE_DSA */ +/* Add back algorithms removed from default in OpenSSH-8.2 due to SHA1 + * deprecation*/ +# if (OPENSSH_VERSION_MAJOR == 8 && OPENSSH_VERSION_MINOR >= 2) + "KexAlgorithms +diffie-hellman-group14-sha1," + "diffie-hellman-group-exchange-sha1," + "diffie-hellman-group1-sha1\n" + "HostKeyAlgorithms +ssh-rsa\n" + "CASignatureAlgorithms +ssh-rsa\n" +#endif # if (OPENSSH_VERSION_MAJOR == 7 && OPENSSH_VERSION_MINOR < 6) "Ciphers +3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc\n" # else /* OPENSSH_VERSION 7.0 - 7.5 */