Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
6a84d492
Commit
6a84d492
authored
17 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Improved compatibility with perl 5.0 on the 'open' calls.
parent
873d95a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/sshserver.pl
+5
-5
5 additions, 5 deletions
tests/sshserver.pl
with
5 additions
and
5 deletions
tests/sshserver.pl
+
5
−
5
View file @
6a84d492
...
...
@@ -151,7 +151,7 @@ if (! -e "curl_client_key.pub") {
system
"
ssh-keygen -q -t dsa -f curl_client_key -C 'curl test client' -N ''
"
and
die
"
Could not generate key
";
}
open
(
FILE
,
"
>>
",
$conffile
)
||
die
"
Could not write
$conffile
";
open
(
FILE
,
"
>>
$conffile
"
)
||
die
"
Could not write
$conffile
";
print
FILE
<<EOFSSHD
AllowUsers $username
DenyUsers
...
...
@@ -205,20 +205,20 @@ if ($supports_ChReAu) {
# Now, set up some configuration files for the ssh client
open
(
DSAKEYFILE
,
"
<
",
"
curl_host_dsa_key.pub
")
||
die
'
Could not read curl_host_dsa_key.pub
';
open
(
DSAKEYFILE
,
"
<curl_host_dsa_key.pub
")
||
die
'
Could not read curl_host_dsa_key.pub
';
my
@dsahostkey
=
do
{
local
$/
=
'
';
<
DSAKEYFILE
>
};
close
DSAKEYFILE
||
die
"
Could not close RSAKEYFILE
";
open
(
RSAKEYFILE
,
"
<
",
"
curl_host_dsa_key.pub
")
||
die
'
Could not read curl_host_dsa_key.pub
';
open
(
RSAKEYFILE
,
"
<curl_host_dsa_key.pub
")
||
die
'
Could not read curl_host_dsa_key.pub
';
my
@rsahostkey
=
do
{
local
$/
=
'
';
<
RSAKEYFILE
>
};
close
RSAKEYFILE
||
die
"
Could not close RSAKEYFILE
";
open
(
KNOWNHOSTS
,
"
>
",
$knownhostsfile
)
||
die
"
Could not write
$knownhostsfile
";
open
(
KNOWNHOSTS
,
"
>
$knownhostsfile
"
)
||
die
"
Could not write
$knownhostsfile
";
print
KNOWNHOSTS
"
[127.0.0.1]:
$port
ssh-dss
$dsahostkey
[1]
\n
"
||
die
'
Could not write to KNOWNHOSTS
';
print
KNOWNHOSTS
"
[127.0.0.1]:
$port
ssh-rsa
$rsahostkey
[1]
\n
"
||
die
'
Could not write to KNOWNHOSTS
';
close
KNOWNHOSTS
||
die
"
Could not close KNOWNHOSTS
";
open
(
SSHFILE
,
"
>
",
$conffile_ssh
)
||
die
"
Could not write
$conffile_ssh
";
open
(
SSHFILE
,
"
>
$conffile_ssh
"
)
||
die
"
Could not write
$conffile_ssh
";
print
SSHFILE
<<EOFSSH
IdentityFile $path/curl_client_key
UserKnownHostsFile $path/$knownhostsfile
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment