Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
126154b5
Commit
126154b5
authored
Feb 07, 2011
by
Leigh B Stoller
Browse files
Minor fix to Resolve(); use a self credential.
parent
e21fc44a
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniAuthority.pm.in
View file @
126154b5
#
!/usr/bin/perl -wT
#
#
GENIPUBLIC
-
COPYRIGHT
#
Copyright
(
c
)
2008
-
201
0
University
of
Utah
and
the
Flux
Group
.
#
Copyright
(
c
)
2008
-
201
1
University
of
Utah
and
the
Flux
Group
.
#
All
rights
reserved
.
#
package
GeniAuthority
;
...
...
@@ -513,9 +513,14 @@ sub Resolve($$)
return
undef
;
}
my
$
context
=
Genixmlrpc
->
GetContext
();
my
$
credential
=
GeniCredential
->
GetSelfCredential
($
self
);
my
$
me
=
GeniAuthority
->
Lookup
($
context
->
certificate
()->
uuid
());
if
(
!defined($me)) {
print
STDERR
"Could not find my own authority for $context
\n
"
;
return
undef
;
}
my
$
credential
=
GeniCredential
->
GetSelfCredential
($
me
);
if
(
!defined($credential)) {
print
STDERR
"Could not create self credential for $
self
\n
"
;
print
STDERR
"Could not create self credential for $
me
\n
"
;
return
undef
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment