core: New encryption flag GPGME_ENCRYPT_THROW_KEYIDS.
authorWerner Koch <wk@gnupg.org>
Tue, 21 Mar 2017 09:39:33 +0000 (10:39 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 21 Mar 2017 09:39:33 +0000 (10:39 +0100)
commitfab8b1a166fff7265d8a7a7acbbf5f30d26cc93c
treee2f8f3f20fb025737cf7e43740d30db77604e0a0
parent35023f313622fb1b34108dd934e84831c58b81aa
core: New encryption flag GPGME_ENCRYPT_THROW_KEYIDS.

* src/gpgme.h.in (GPGME_ENCRYPT_THROW_KEYIDS): New flag.
* src/engine-gpg.c (gpg_encrypt): Implement flag
(gpg_encrypt_sign): Implement flag.

* tests/run-encrypt.c (main): New option --throw-keyids.
--

It would be nice to also selectively hide recipients (that is gpg
--hidden-recipient) but our API does not ye allow this because it is
based on key objects.  A possible way to implement that would be a API
to set processing flags into a key but this is complicated due to the
reference counting and thus the possibility that a key object is used
by different context.

Signed-off-by: Werner Koch <wk@gnupg.org>
NEWS
doc/gpgme.texi
src/engine-gpg.c
src/gpgme.h.in
tests/run-encrypt.c