summaryrefslogtreecommitdiff
path: root/src/leap/crypto
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-12-05 23:50:08 +0900
committerkali <kali@leap.se>2012-12-12 04:27:50 +0900
commit490cde9c33039c2c5b16d929d6f8bb8e8f06f430 (patch)
tree2f03c228e674569e0bdb74e088b487c9b3aaa19b /src/leap/crypto
parent01116d8725eaa74f8f3581248198b5d0ec1577dd (diff)
tests for firstrun/wizard
Diffstat (limited to 'src/leap/crypto')
-rw-r--r--src/leap/crypto/leapkeyring.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/leap/crypto/leapkeyring.py b/src/leap/crypto/leapkeyring.py
index d4be7bf9..c241d0bc 100644
--- a/src/leap/crypto/leapkeyring.py
+++ b/src/leap/crypto/leapkeyring.py
@@ -53,6 +53,7 @@ class LeapCryptedFileKeyring(keyring.backend.CryptedFileKeyring):
def leap_set_password(key, value, seed="xxx"):
+ key, value = map(unicode, (key, value))
keyring.set_keyring(LeapCryptedFileKeyring(seed=seed))
keyring.set_password('leap', key, value)