summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-08-07 09:52:58 -0300
committerTomás Touceda <chiiph@leap.se>2013-08-08 10:48:55 -0300
commitdcef4e423ca044c5c008e77b463080f3d0fc3bf5 (patch)
tree3db3a09811ff7e6ce292611cc55ebb8d2bf5c757 /src/leap
parent2d61fd7a27aad51092ccf831c76ce1cd993dacd1 (diff)
Check for str or unicode for the cert/key fields
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/mail/smtp/smtprelay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/mail/smtp/smtprelay.py b/src/leap/mail/smtp/smtprelay.py
index e5a5614..773bae0 100644
--- a/src/leap/mail/smtp/smtprelay.py
+++ b/src/leap/mail/smtp/smtprelay.py
@@ -86,9 +86,9 @@ def assert_config_structure(config):
leap_assert(PORT_KEY in config)
leap_assert_type(config[PORT_KEY], int)
leap_assert(CERT_KEY in config)
- leap_assert_type(config[CERT_KEY], str)
+ leap_assert_type(config[CERT_KEY], (str, unicode))
leap_assert(KEY_KEY in config)
- leap_assert_type(config[KEY_KEY], str)
+ leap_assert_type(config[KEY_KEY], (str, unicode))
leap_assert(ENCRYPTED_ONLY_KEY in config)
leap_assert_type(config[ENCRYPTED_ONLY_KEY], bool)
# assert received params are not empty