소스 검색

Yay, CryptoEngine in a bit more testtable form

oz123 10 년 전
부모
커밋
a8b40adb03
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      pwman/util/crypto.py

+ 1 - 2
pwman/util/crypto.py

@@ -169,8 +169,7 @@ class CryptoEngine(object):
         """
         Initialise the Cryptographic Engine
         """
-        algo = config.get_value("Encryption", "algorithm")
-        self._algo = algo if algo else None
+        self._algo = algorithm
         self._keycrypted = keycrypted if keycrypted else None
         self._timeout = timeout
         self._cipher = None