From ffba27b005f35add9b2022dd2d4c7b7a0c9b6615 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Mon, 5 Apr 2010 20:57:07 +0000 Subject: [PATCH] move process of loading trusted cert files into its own method --- sfa/trust/auth.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.43.0