From d804a7a4bc871f38f6cdc2cd63af3ef004580437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 5 Aug 2024 17:14:01 +0200 Subject: core: New function gpgme_op_setownertrust * src/Makefile.am (main_sources): Add new file. * src/context.h (ctx_op_data_id_t): Add OPDATA_SETOWNERTRUST. * src/engine.c, src/engine.h (_gpgme_engine_op_setownertrust): New. * src/engine-backend.h (engine_ops): Add 'setownertrust' and adjust all engine initializers. * src/engine-gpg.c (gpg_setownertrust): New. (_gpgme_engine_ops_gpg): Set setownertrust to gpg_setownertrust. * src/gpgme.h.in (gpgme_op_setownertrust_start, gpgme_op_setownertrust): New. * src/gpgme.def, src/libgpgme.vers: Add new functions. * src/setownertrust.c: New. * doc/gpgme.texi: Document new functions. * tests/Makefile.am (noinst_PROGRAMS): Add new test program. * tests/run-setownertrust.c: New. * tests/gpg/Makefile.am (c_tests): Add new file. (LDADD): Add @GPG_ERROR_LIBS@. * tests/gpg/t-setownertrust.c: New. * tests/gpg/t-support.h (have_gpg_version): New. -- This extends GPGME to support the --quick-set-ownertrust command added by GnuPG 2.4.6. This allows changing the owner trust of keys and enabling/disabling keys without using the editinteractor interface. GnuPG-bug-id: 7239 --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 2c4bb158..f222ac3a 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,10 @@ Noteworthy changes in version 1.24.0 (unrelease) * New context flag "import-options". [T7152] + * New function gpgme_op_setownertrust to make changing the owner trust + easier and to allow enabling/disabling of keys (requires GnuPG 2.4.6). + [T7239] + * cpp: Provide information about designated revocation keys for a Key. [T7118] @@ -38,6 +42,8 @@ Noteworthy changes in version 1.24.0 (unrelease) gpgme_key_t EXTENDED: New field 'revkeys'. gpgme_revocation_key_t NEW. gpgme_set_ctx_flag EXTENDED: New flag 'import-options'. + gpgme_op_setownertrust_start NEW. + gpgme_op_setownertrust NEW. cpp: Context::EncryptFile NEW. cpp: SignatureMode::SignFile NEW. cpp: RevocationKey NEW. -- cgit v1.2.3