Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
278373f6
Commit
278373f6
authored
Mar 01, 2016
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not barf if there is no existing encrypted certificate to reuse,
just create a new one.
parent
3ebffb34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
account/mkusercert.in
account/mkusercert.in
+12
-15
No files found.
account/mkusercert.in
View file @
278373f6
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-201
5
University of Utah and the Flux Group.
# Copyright (c) 2000-201
6
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -207,21 +207,18 @@ if (defined($options{"c"}) || defined($options{"C"})) {
if
(
defined
(
$options
{"
c
"}))
{
$old_password
=
$options
{"
c
"};
}
else
{
$target_user
->
SSLPassPhrase
(
1
,
\
$old_password
)
==
0
or
fatal
("
No password for encrypted SSL key
");
}
#
# Make sure its all escaped since any printable char is allowed.
#
if
(
$old_password
=~
/^([\040-\176]*)$/
)
{
$old_password
=
$1
;
}
else
{
die
("
Tainted argument:
$old_password
\n
");
elsif
(
$target_user
->
SSLPassPhrase
(
1
,
\
$old_password
)
==
0
)
{
#
# Make sure its all escaped since any printable char is allowed.
#
if
(
$old_password
=~
/^([\040-\176]*)$/
)
{
$old_password
=
$1
;
}
else
{
fatal
("
Tainted password:
$old_password
");
}
$old_password
=~
s/\'/\'\\\'\'/g
;
}
$old_password
=~
s/\'/\'\\\'\'/g
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment