diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-09-03 12:27:17 -0300 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-09-03 12:27:17 -0300 |
commit | bc6e680636fe385e04bacc994908526ea038e0bd (patch) | |
tree | 7085d9eabc659fef0e364c454d08f8f37eb5ef0e /service/pixelated | |
parent | c934cf44f9269377f9d05c0ec4063dcd23177818 (diff) |
when opening leap session, also create and exchange gpg keys in case there aren't any
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/bitmask_libraries/session.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/pixelated/bitmask_libraries/session.py b/service/pixelated/bitmask_libraries/session.py index 09229e17..421b8c60 100644 --- a/service/pixelated/bitmask_libraries/session.py +++ b/service/pixelated/bitmask_libraries/session.py @@ -40,6 +40,8 @@ def open(username, password, server_name): config = LeapConfig(certs_home=certs_home) provider = LeapProvider(server_name, config) session = LeapSessionFactory(provider).create(LeapCredentials(username, password)) + session.nicknym.generate_openpgp_key() + return session except: traceback.print_exc(file=sys.stdout) |