Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
be818f32
Commit
be818f32
authored
Oct 22, 2009
by
Jonathon Duerig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return actual urns in target_urn and owner_urn rather than uuids.
parent
ff6b3ea5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
protogeni/lib/GeniCertificate.pm.in
protogeni/lib/GeniCertificate.pm.in
+1
-0
protogeni/lib/GeniCredential.pm.in
protogeni/lib/GeniCredential.pm.in
+2
-2
No files found.
protogeni/lib/GeniCertificate.pm.in
View file @
be818f32
...
...
@@ -512,6 +512,7 @@ sub created($) { return field($_[0], "created"); }
sub
cert
($)
{
return
field
($
_
[
0
],
"cert"
);
}
sub
privkey
($)
{
return
field
($
_
[
0
],
"privkey"
);
}
sub
revoked
($)
{
return
field
($
_
[
0
],
"revoked"
);
}
sub
uri
($)
{
return
field
($
_
[
0
],
"uri"
);
}
#
#
Need
to
add
DN
to
the
emulab
table
.
...
...
protogeni/lib/GeniCredential.pm.in
View file @
be818f32
...
...
@@ -376,14 +376,14 @@ sub Sign($$)
return
-
1
;
}
my
$
target_cert
=
$
self
->
target_cert
()->
cert
();
my
$
target_urn
=
$
self
->
target_u
uid
();
my
$
target_urn
=
$
self
->
target_u
ri
();
if
(
!defined($self->owner_cert())) {
print
STDERR
"No owner certificate attached to $self
\n
"
;
return
-
1
;
}
my
$
owner_cert
=
$
self
->
owner_cert
()->
cert
();
my
$
owner_urn
=
$
self
->
owner_u
uid
();
my
$
owner_urn
=
$
self
->
owner_u
ri
();
#
Credential
expiration
:
hard
-
code
to
24
hours
from
now
.
my
@
expt
=
gmtime
(
time
()
+
24
*
60
*
60
);
...
...
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