git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f07947b
)
move process of loading trusted cert files into its own method
author
Tony Mack
<tmack@cs.princeton.edu>
Mon, 5 Apr 2010 20:57:07 +0000
(20:57 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Mon, 5 Apr 2010 20:57:07 +0000
(20:57 +0000)
sfa/trust/auth.py
patch
|
blob
|
history
diff --git
a/sfa/trust/auth.py
b/sfa/trust/auth.py
index
3bcc097
..
7a92959
100644
(file)
--- a/
sfa/trust/auth.py
+++ b/
sfa/trust/auth.py
@@
-27,9
+27,11
@@
class Auth:
self.hierarchy = Hierarchy()
if not config:
self.config = Config()
- self.trusted_cert_list = TrustedRootList(self.config.get_trustedroots_dir()).get_list()
-
+ self.load_trusted_certs()
+ def load_trusted_certs(self):
+ self.trusted_cert_list = TrustedRootList(self.config.get_trustedroots_dir()).get_list()
+
def check(self, cred, operation):
"""
Check the credential against the peer cert (callerGID included