diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-04-17 10:40:53 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-04-17 10:40:53 +0100 |
commit | b3c92b2ffb6dd36cdf8bfc4c0d7f066a85705eed (patch) | |
tree | 7ccf7b2683aeba9dfb639dfb348f02bf97adf447 | |
parent | b6cfdcfcaa83f0b9d144338c4f51f103dc6e340e (diff) | |
download | obnam-b3c92b2ffb6dd36cdf8bfc4c0d7f066a85705eed.tar.gz |
Add --no-encrypt-to and--no-default-recipient to gpg encryption.
Suggested by Joey Hess.
-rw-r--r-- | obnamlib/encryption.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/obnamlib/encryption.py b/obnamlib/encryption.py index feaec35b..a5579917 100644 --- a/obnamlib/encryption.py +++ b/obnamlib/encryption.py @@ -214,7 +214,12 @@ def encrypt_with_keyring(cleartext, keyring): recipients = [] for keyid in keyring.keyids(): recipients += ['-r', keyid] - return keyring.gpg(False, ['-e', '--trust-model', 'always'] + recipients, + return keyring.gpg(False, + ['-e', + '--trust-model', 'always', + '--no-encrypt-to', + '--no-default-recipient', + ] + recipients, stdin=cleartext) |