From 4f874ea431ba68ba70cf569741488502b1f61e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Fri, 4 Nov 2022 10:21:25 +0100 Subject: core: New context flag "no-auto-check-trustdb" * src/context.h (gpgme_context): Add field no_auto_check_trustdb. * src/gpgme.c (gpgme_set_ctx_flag, gpgme_get_ctx_flag): Add flag "no-auto-check-trustdb". * src/engine-gpg.c (engine_gpg): Add flags.no_auto_check_trustdb. (gpg_set_engine_flags): Set the flag. (build_argv): Pass option to gpg. * tests/run-keylist.c (show_usage, main): Add option --no-trust-check. -- This makes the --no-auto-check-trustdb option available in the GPGME API to disable the potentially expensive automatic trust database check. GnuPG-bug-id: 6261 --- src/context.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/context.h') diff --git a/src/context.h b/src/context.h index e976ba3f..7a1b9ada 100644 --- a/src/context.h +++ b/src/context.h @@ -134,6 +134,9 @@ struct gpgme_context * after the operation. */ unsigned int ignore_mdc_error : 1; + /* True if the option --no-auto-check-trustdb shall be passed to gpg. */ + unsigned int no_auto_check_trustdb : 1; + /* Pass --expert to gpg edit key. */ unsigned int extended_edit : 1; -- cgit v1.2.3