]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: use the ssh key filenames from the sshhelp package
authorDan Fandrich <dan@coneharvesters.com>
Fri, 31 Mar 2023 02:42:06 +0000 (19:42 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 1 Apr 2023 06:08:00 +0000 (23:08 -0700)
tests/runtests.pl

index ac0c2a2c5ee463dcd6305e04985e6352897fc857..700632f416529970304d53e2351c08bb449a2d1a 100755 (executable)
@@ -96,6 +96,8 @@ use serverhelp qw(
 
 # Variables and subs imported from sshhelp module
 use sshhelp qw(
+    $hstpubmd5f
+    $hstpubsha256f
     $sshdexe
     $sshexe
     $sftpexe
@@ -2214,7 +2216,6 @@ sub runsshserver {
         return (0,0,0);
     }
 
-    my $hstpubmd5f = "curl_host_rsa_key.pub_md5";
     my $hostfile;
     if(!open($hostfile, "<", $hstpubmd5f) ||
        (read($hostfile, $SSHSRVMD5, 32) != 32) ||
@@ -2227,7 +2228,6 @@ sub runsshserver {
         die $msg;
     }
 
-    my $hstpubsha256f = "curl_host_rsa_key.pub_sha256";
     if(!open($hostfile, "<", $hstpubsha256f) ||
        (read($hostfile, $SSHSRVSHA256, 48) == 0) ||
        !close($hostfile))