]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sshserver.pl: adjust `AuthorizedKeysFile2` cutoff version
authorViktor Szakats <commit@vsz.me>
Fri, 21 Mar 2025 16:18:24 +0000 (17:18 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 23 Mar 2025 19:26:41 +0000 (20:26 +0100)
To avoid in `ssh_server.log`:
```
reprocess config line 6: Deprecated option AuthorizedKeysFile2
```
with openssh 7.1

Closes #16787

tests/sshserver.pl

index 063e37973aef27bd81b87728992d38456068a9fa..fff6175e5d869c49a07a968b0e044432af54eb70 100755 (executable)
@@ -609,7 +609,7 @@ if ($sshdid =~ /OpenSSH-Windows/) {
 }
 
 push @cfgarr, "AuthorizedKeysFile $clipubkeyf_config";
-if(!($sshdid =~ /OpenSSH/) || ($sshdvernum <= 730)) {
+if(!($sshdid =~ /OpenSSH/) || ($sshdvernum <= 590)) {
     push @cfgarr, "AuthorizedKeysFile2 $clipubkeyf_config";
 }
 push @cfgarr, "HostKey $hstprvkeyf_config";