Add `allow_default_signer` to `sign_and_encrypt_bytes`.
authorW. Trevor King <wking@tremily.us>
Sat, 21 Apr 2012 17:20:00 +0000 (13:20 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 21 Apr 2012 17:28:53 +0000 (13:28 -0400)
commit3abed698897f01f7b9d71675ea038e21bff39c56
tree0e7f43e6eb2fea96248fa803bcba6b086bf9b008
parent8c8bd91b858e3cf47431310e43af1903f18e54a1
Add `allow_default_signer` to `sign_and_encrypt_bytes`.

This allows you to fall back to your configured default signer
(`default-key` in `~/.gnupg/gpg.conf`).  `sign_and_encrypt_bytes` will
sign (and possibly encrypt) content when either `signers` is non-empty
or `allow_default_signer` is set.

The signing PGP/MIME wrappers around `sign_and_encrypt_bytes` (`sign`
and `sign_and_encrypt`) both expose the new option to their callers.
pgp_mime/crypt.py
pgp_mime/pgp.py