diff options
Diffstat (limited to 'alot/crypto.py')
-rw-r--r-- | alot/crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/crypto.py b/alot/crypto.py index dfa8491f..be7e83e2 100644 --- a/alot/crypto.py +++ b/alot/crypto.py @@ -153,7 +153,7 @@ def detached_signature_for(plaintext_str, key=None): return sigs, signature -def encrypt(plaintext_str, key=None): +def encrypt(plaintext_str, keys=None): """ Encrypts the given plaintext string and returns a PGP/MIME compatible string @@ -166,7 +166,7 @@ def encrypt(plaintext_str, key=None): encrypted_data = StringIO() ctx = gpgme.Context() ctx.armor = True - ctx.encrypt([key], gpgme.ENCRYPT_ALWAYS_TRUST, plaintext_data, + ctx.encrypt(keys, gpgme.ENCRYPT_ALWAYS_TRUST, plaintext_data, encrypted_data) encrypted_data.seek(0, 0) encrypted = encrypted_data.read() |