From fab8b1a166fff7265d8a7a7acbbf5f30d26cc93c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 21 Mar 2017 10:39:33 +0100 Subject: 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 --- NEWS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index cf02fc2f..7ad1188e 100644 --- a/NEWS +++ b/NEWS @@ -12,7 +12,8 @@ Noteworthy changes in version 1.8.1 (unreleased) GPGME_CREATE_NOEXPIRE NEW. gpgme_subkey_t EXTENDED: New field is_de_vs. gpgme_op_keylist_from_data_start NEW. - gpgme_data_rewind UN-DEPRECATE. + GPGME_ENCRYPT_THROW_KEYIDS NEW. + gpgme_data_rewind UN-DEPRECATE cpp: Context::revUid(const Key&, const char*) NEW. cpp: Context::startRevUid(const Key&, const char*) NEW. cpp: Context::addUid(const Key&, const char*) NEW. -- cgit v1.2.3