diff options
author | Ingo Klöcker <[email protected]> | 2022-11-04 09:21:25 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-11-04 09:38:41 +0000 |
commit | 4f874ea431ba68ba70cf569741488502b1f61e66 (patch) | |
tree | 9b17d35addc0d86ecbb60bbf51a9004932de34b6 /doc/gpgme.texi | |
parent | build: Update libassuan.m4. (diff) | |
download | gpgme-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 'doc/gpgme.texi')
-rw-r--r-- | doc/gpgme.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/gpgme.texi b/doc/gpgme.texi index b707b93f..327a5ea1 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -3236,6 +3236,11 @@ The string given in @var{value} is passed to the GnuPG engine to use as filter when importing keys. Valid values are documented in the GnuPG manual and the gpg man page under the option @option{--import-filter}. +@item "no-auto-check-trustdb" +@since{1.18.1} +Setting the @var{value} to "1" forces the GPG backend to disable the +automatic check of the trust database. + @end table This function returns @code{0} on success. |