aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2014-12-22 00:30:02 +0100
committerMarc Hoersken <info@marc-hoersken.de>2014-12-22 00:30:02 +0100
commit003dd2e7de18a945dc4b91fd28d19e595ee31cd0 (patch)
treeccdccccbfcd5e25e3bbd818de951b276d9788f5e /tests
parent03e206d18aebad1fab67d5c0b583169cd9e544df (diff)
sshserver.pl: clarify and streamline variable names
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sshserver.pl13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
index f167f0a21..d8c2d6f15 100755
--- a/tests/sshserver.pl
+++ b/tests/sshserver.pl
@@ -89,6 +89,7 @@ my $path = getcwd(); # current working directory
my $logdir = $path .'/log'; # directory for log files
my $username = $ENV{USER}; # default user
my $pidfile; # ssh daemon pid file
+my $identity = 'curl_client_key'; # default identity file
my $error;
my @cfgarr;
@@ -758,13 +759,13 @@ if((! -e $knownhosts) || (! -s $knownhosts)) {
#***************************************************************************
# Convert paths for curl's tests running on Windows using Cygwin OpenSSH
#
-my $identityf = abs_path("$path/curl_client_key");
-my $knownhostsf = abs_path("$path/$knownhosts");
+my $identity_config = abs_path("$path/$identity");
+my $knownhosts_config = abs_path("$path/$knownhosts");
if ($^O eq 'MSWin32' || $^O eq 'cygwin' || $^O eq 'msys') {
# convert MinGW drive paths to Cygwin drive paths
- $identityf =~ s/^\/(\w)\//\/cygdrive\/$1\//;
- $knownhostsf =~ s/^\/(\w)\//\/cygdrive\/$1\//;
+ $identity_config =~ s/^\/(\w)\//\/cygdrive\/$1\//;
+ $knownhosts_config =~ s/^\/(\w)\//\/cygdrive\/$1\//;
}
@@ -864,8 +865,8 @@ push @cfgarr, '#';
push @cfgarr, "BindAddress $listenaddr";
push @cfgarr, "DynamicForward $socksport";
push @cfgarr, '#';
-push @cfgarr, "IdentityFile $identityf";
-push @cfgarr, "UserKnownHostsFile $knownhostsf";
+push @cfgarr, "IdentityFile $identity_config";
+push @cfgarr, "UserKnownHostsFile $knownhosts_config";
push @cfgarr, '#';
push @cfgarr, 'BatchMode yes';
push @cfgarr, 'ChallengeResponseAuthentication no';