remove dependency of Config module from trustedroots module
authorScott Baker <bakers@cs.arizona.edu>
Thu, 1 Oct 2009 06:34:06 +0000 (06:34 +0000)
committerScott Baker <bakers@cs.arizona.edu>
Thu, 1 Oct 2009 06:34:06 +0000 (06:34 +0000)
sfa/trust/auth.py

index 2f807a7..83cded0 100644 (file)
@@ -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):
         """