xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/libssh2/libssh2/fix-ssh2-test.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1In 8.8 OpenSSH disabled sha1 rsa-sha keys out of the box,
2so we need to re-enable them as a workaround for the test
3suite until upstream updates the tests.
4
5See: https://github.com/libssh2/libssh2/issues/630
6
7Upstream-Status: Backport [alternative fixes merged upstream]
8
9Patch taken from https://github.com/mirror-rpm/libssh2/commit/47f7114f7d0780f3075bad51a71881f45cc933c5
10
11--- a/tests/ssh2.sh
12+++ b/tests/ssh2.sh
13@@ -25,7 +25,8 @@ $SSHD -f /dev/null -h "$srcdir"/etc/host
14     -o 'Port 4711' \
15     -o 'Protocol 2' \
16     -o "AuthorizedKeysFile $srcdir/etc/user.pub" \
17-    -o 'UsePrivilegeSeparation no' \
18+    -o 'HostKeyAlgorithms +ssh-rsa' \
19+    -o 'PubkeyAcceptedAlgorithms +ssh-rsa' \
20     -o 'StrictModes no' \
21     -D \
22     $libssh2_sshd_params &
23
24