From: Scott Baker Date: Thu, 1 Oct 2009 06:34:06 +0000 (+0000) Subject: remove dependency of Config module from trustedroots module X-Git-Tag: sfa-0.9-3~16 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=3950e3e0a0e1850d04ba3f28fbcbea8bbfe69451 remove dependency of Config module from trustedroots module --- diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 2f807a7d..83cded0f 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -24,10 +24,10 @@ class Auth: def __init__(self, peer_cert = None, config = None ): self.peer_cert = peer_cert self.hierarchy = Hierarchy() - self.trusted_cert_list = TrustedRootList().get_list() if not config: - self.config = Config() - + self.config = Config() + self.trusted_cert_list = TrustedRootList(self.config.get_trustedroots_dir()).get_list() + def check(self, cred, operation): """