diff options
author | drebs <drebs@leap.se> | 2013-08-08 15:33:33 +0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2013-08-08 16:00:15 +0200 |
commit | a46b3fcea0db6a3545e955a1c4cb648750d93974 (patch) | |
tree | e05e6d02114bbe9f144ab5935f749c39398663d7 /src/leap/mail/imap | |
parent | efe498757821622f4f0661a3ed13babb9c41aa02 (diff) |
Update use of keymanager API.
Diffstat (limited to 'src/leap/mail/imap')
-rw-r--r-- | src/leap/mail/imap/fetch.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/mail/imap/fetch.py b/src/leap/mail/imap/fetch.py index 1c41813..d66496e 100644 --- a/src/leap/mail/imap/fetch.py +++ b/src/leap/mail/imap/fetch.py @@ -8,7 +8,6 @@ from twisted.internet.task import LoopingCall from twisted.internet.threads import deferToThread from leap.common.check import leap_assert, leap_assert_type -from leap.keymanager import openpgp from leap.soledad import Soledad logger = logging.getLogger(__name__) @@ -130,7 +129,7 @@ class LeapIncomingMail(object): def _decrypt_msg(self, doc, encdata): log.msg('decrypting msg') key = self._pkey - decrdata = (openpgp.decrypt_asym( + decrdata = (self._keymanager.decrypt( encdata, key, # XXX get from public method instead passphrase=self._soledad._passphrase)) |