Explorar o código

Yay, CryptoEngine in a bit more testtable form

oz123 %!s(int64=10) %!d(string=hai) anos
pai
achega
a8b40adb03
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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