Blame SOURCES/libssh-0.9.4-enable-sshd-sha1-algorithms.patch

f3993f
--- a/tests/torture.c	2020-04-09 16:16:07.691894761 +0200
f3993f
+++ b/tests/torture.c	2020-04-09 20:11:50.577962771 +0200
f3993f
@@ -636,6 +636,15 @@
f3993f
 # else /* HAVE_DSA */
f3993f
              "HostKeyAlgorithms +ssh-rsa\n"
f3993f
 # endif /* HAVE_DSA */
f3993f
+/* Add back algorithms removed from default in OpenSSH-8.2 due to SHA1
f3993f
+ * deprecation*/
f3993f
+# if (OPENSSH_VERSION_MAJOR == 8 && OPENSSH_VERSION_MINOR >= 2)
f3993f
+             "KexAlgorithms +diffie-hellman-group14-sha1,"
f3993f
+             "diffie-hellman-group-exchange-sha1,"
f3993f
+             "diffie-hellman-group1-sha1\n"
f3993f
+             "HostKeyAlgorithms +ssh-rsa\n"
f3993f
+             "CASignatureAlgorithms +ssh-rsa\n"
f3993f
+#endif
f3993f
 # if (OPENSSH_VERSION_MAJOR == 7 && OPENSSH_VERSION_MINOR < 6)
f3993f
              "Ciphers +3des-cbc,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc\n"
f3993f
 # else /* OPENSSH_VERSION 7.0 - 7.5 */