Home GnuPG
Diffusion GPGME 4f874ea431ba

core: New context flag "no-auto-check-trustdb"

Description

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.

Details

Provenance
ikloeckerAuthored on Nov 4 2022, 10:21 AM
Parents
rM9f5e11729260: build: Update libassuan.m4.
Branches
Unknown
Tags
Unknown
Tasks
T6261: Kleopatra / QGPGME: Use --no-auto-check-trustdb for initial keylisting