From: Tony Mack Date: Mon, 5 Apr 2010 20:57:07 +0000 (+0000) Subject: move process of loading trusted cert files into its own method X-Git-Tag: sfa-0.9-11~27 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=ffba27b005f35add9b2022dd2d4c7b7a0c9b6615 move process of loading trusted cert files into its own method --- diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 3bcc0971..7a929590 100644 --- 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