Blame SOURCES/0015-curl-7.76.1-tests-openssh.patch

e078bf
From 85a8c0e9992cee271145ecf009f60b9bee9b7a60 Mon Sep 17 00:00:00 2001
e078bf
From: Kamil Dudka <kdudka@redhat.com>
e078bf
Date: Wed, 15 Sep 2021 09:59:14 +0200
e078bf
Subject: [PATCH] tests/sshserver.pl: make it work with openssh-8.7p1
e078bf
e078bf
... by not using options with no argument where an argument is required:
e078bf
e078bf
=== Start of file tests/log/ssh_server.log
e078bf
curl_sshd_config line 6: no argument after keyword "DenyGroups"
e078bf
curl_sshd_config line 7: no argument after keyword "AllowGroups"
e078bf
curl_sshd_config line 10: Deprecated option AuthorizedKeysFile2
e078bf
curl_sshd_config line 29: Deprecated option KeyRegenerationInterval
e078bf
curl_sshd_config line 39: Deprecated option RhostsRSAAuthentication
e078bf
curl_sshd_config line 40: Deprecated option RSAAuthentication
e078bf
curl_sshd_config line 41: Deprecated option ServerKeyBits
e078bf
curl_sshd_config line 45: Deprecated option UseLogin
e078bf
curl_sshd_config line 56: no argument after keyword "AcceptEnv"
e078bf
curl_sshd_config: terminating, 3 bad configuration options
e078bf
=== End of file tests/log/ssh_server.log
e078bf
e078bf
=== Start of file log/sftp_server.log
e078bf
curl_sftp_config line 33: Unsupported option "rhostsrsaauthentication"
e078bf
curl_sftp_config line 34: Unsupported option "rsaauthentication"
e078bf
curl_sftp_config line 52: no argument after keyword "sendenv"
e078bf
curl_sftp_config: terminating, 1 bad configuration options
e078bf
Connection closed.
e078bf
Connection closed
e078bf
=== End of file log/sftp_server.log
e078bf
e078bf
Closes #7724
e078bf
e078bf
Upstream-commit: ab78d2c679dfb37b27e89f42ad050c3153fa7513
e078bf
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
e078bf
---
e078bf
 tests/sshserver.pl | 14 --------------
e078bf
 1 file changed, 14 deletions(-)
e078bf
e078bf
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
e078bf
index 9441939..2afaace 100644
e078bf
--- a/tests/sshserver.pl
e078bf
+++ b/tests/sshserver.pl
e078bf
@@ -428,9 +428,7 @@ if ($sshdid =~ /OpenSSH-Windows/) {
e078bf
 #  ssh daemon configuration file options we might use and version support
e078bf
 #
e078bf
 #  AFSTokenPassing                  : OpenSSH 1.2.1 and later [1]
e078bf
-#  AcceptEnv                        : OpenSSH 3.9.0 and later
e078bf
 #  AddressFamily                    : OpenSSH 4.0.0 and later
e078bf
-#  AllowGroups                      : OpenSSH 1.2.1 and later
e078bf
 #  AllowTcpForwarding               : OpenSSH 2.3.0 and later
e078bf
 #  AllowUsers                       : OpenSSH 1.2.1 and later
e078bf
 #  AuthorizedKeysFile               : OpenSSH 2.9.9 and later
e078bf
@@ -441,7 +439,6 @@ if ($sshdid =~ /OpenSSH-Windows/) {
e078bf
 #  ClientAliveCountMax              : OpenSSH 2.9.0 and later
e078bf
 #  ClientAliveInterval              : OpenSSH 2.9.0 and later
e078bf
 #  Compression                      : OpenSSH 3.3.0 and later
e078bf
-#  DenyGroups                       : OpenSSH 1.2.1 and later
e078bf
 #  DenyUsers                        : OpenSSH 1.2.1 and later
e078bf
 #  ForceCommand                     : OpenSSH 4.4.0 and later [3]
e078bf
 #  GatewayPorts                     : OpenSSH 2.1.0 and later
e078bf
@@ -534,9 +531,6 @@ if ($sshdid =~ /OpenSSH-Windows/) {
e078bf
     push @cfgarr, "AllowUsers $username";
e078bf
 }
e078bf
 
e078bf
-push @cfgarr, 'DenyGroups';
e078bf
-push @cfgarr, 'AllowGroups';
e078bf
-push @cfgarr, '#';
e078bf
 push @cfgarr, "AuthorizedKeysFile $clipubkeyf_config";
e078bf
 push @cfgarr, "AuthorizedKeysFile2 $clipubkeyf_config";
e078bf
 push @cfgarr, "HostKey $hstprvkeyf_config";
e078bf
@@ -684,9 +678,6 @@ push @cfgarr, '#';
e078bf
 #***************************************************************************
e078bf
 # Options that might be supported or not in sshd OpenSSH 2.9.9 and later
e078bf
 #
e078bf
-if(sshd_supports_opt('AcceptEnv','')) {
e078bf
-    push @cfgarr, 'AcceptEnv';
e078bf
-}
e078bf
 if(sshd_supports_opt('AddressFamily','any')) {
e078bf
     # Address family must be specified before ListenAddress
e078bf
     splice @cfgarr, 14, 0, 'AddressFamily any';
e078bf
@@ -873,7 +864,6 @@ if ($sshdid =~ /OpenSSH-Windows/) {
e078bf
 #  RemoteForward                     : OpenSSH 1.2.1 and later [3]
e078bf
 #  RhostsRSAAuthentication           : OpenSSH 1.2.1 and later
e078bf
 #  RSAAuthentication                 : OpenSSH 1.2.1 and later
e078bf
-#  SendEnv                           : OpenSSH 3.9.0 and later
e078bf
 #  ServerAliveCountMax               : OpenSSH 3.8.0 and later
e078bf
 #  ServerAliveInterval               : OpenSSH 3.8.0 and later
e078bf
 #  SmartcardDevice                   : OpenSSH 2.9.9 and later [1][3]
e078bf
@@ -1028,10 +1018,6 @@ if((($sshid =~ /OpenSSH/) && ($sshvernum >= 370)) ||
e078bf
     push @cfgarr, 'RekeyLimit 1G';
e078bf
 }
e078bf
 
e078bf
-if(($sshid =~ /OpenSSH/) && ($sshvernum >= 390)) {
e078bf
-    push @cfgarr, 'SendEnv';
e078bf
-}
e078bf
-
e078bf
 if((($sshid =~ /OpenSSH/) && ($sshvernum >= 380)) ||
e078bf
    (($sshid =~ /SunSSH/) && ($sshvernum >= 120))) {
e078bf
     push @cfgarr, 'ServerAliveCountMax 3';
e078bf
-- 
e078bf
2.34.1
e078bf