aboutsummaryrefslogtreecommitdiffstats
path: root/src/context.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2022-11-04 09:21:25 +0000
committerIngo Klöcker <[email protected]>2022-11-04 09:38:41 +0000
commit4f874ea431ba68ba70cf569741488502b1f61e66 (patch)
tree9b17d35addc0d86ecbb60bbf51a9004932de34b6 /src/context.h
parentbuild: Update libassuan.m4. (diff)
downloadgpgme-4f874ea431ba68ba70cf569741488502b1f61e66.tar.gz
gpgme-4f874ea431ba68ba70cf569741488502b1f61e66.zip
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
Diffstat (limited to 'src/context.h')
-rw-r--r--src/context.h3
1 files changed, 3 insertions, 0 deletions
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;