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

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