From d35d44efaf72f90ee4f92af8382c4bcb9982da3f Mon Sep 17 00:00:00 2001 From: Ingo Klöcker Date: Tue, 14 Dec 2021 15:44:37 +0100 Subject: core: Allow setting import filters when importing keys * src/context.h (struct gpgme_context): New field import_filter. * src/engine-backend.h (struct engine_ops): Add arg import_filter to field 'import'. * src/engine-gpg.c (gpg_import): Add arg import_filter and pass option --import-filter with argument value to gpg. Adjust all callers. * src/engine-gpgsm.c (gpgsm_import): Add dummy arg import_filter. * src/gpgme.c (gpgme_release): Free 'import_filter'. (gpgme_set_ctx_flag, gpgme_get_ctx_flag): New flag "import-filter". * tests/run-import.c (main): Add option --import-filter. -- This makes the --import-filter option available in the GPGME API for key imports. GnuPG-bug-id: 5739 --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 1331c13a..e57637d5 100644 --- a/NEWS +++ b/NEWS @@ -3,12 +3,15 @@ Noteworthy changes in version 1.16.1 (unreleased) * New context flag "key-origin". [#5733] + * New context flag "import-filter". [#5739] + * qt: Extend ChangeExpiryJob to change expiration of primary key and of subkeys at the same time. [#4717] * Interface changes relative to the 1.16.0 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpgme_set_ctx_flag EXTENDED: New flag 'key-origin'. + gpgme_set_ctx_flag EXTENDED: New flag 'import-filter'. qt: ChangeExpiryJob::Option NEW. qt: ChangeExpiryJob::Options NEW. qt: ChangeExpiryJob::setOptions NEW. -- cgit