- src/context.h (gpgme_context): Extend with trust_model.
- src/engine-gpg.c (engine_gpg): Extend with trust_model.
(gpg_set_engine_flags): Take trust_model from context.
(build_argv): Handle trust_model.
(gpg_release): Free trust_model.
- src/gpgme.c (def_trust_model_lock): New lock for trust_model
global.
(def_trust_model): New global variable for trust model.
(gpgme_set_global_flag, gpgme_new, gpgme_release): Handle trust-model.
(gpgme_set_ctx_flag): Take global trust-model into account.
- doc/gpgme.texi: Document new flag for gpgme_set_ctx_flag and
gpgme_set_global_flag.
(Context Flags): New subsection for the context flags.
- tests/run-keylist.c (show_usage, main): Add new --trust-model
parameter.
This gives a GPGME user fine grained control over the
trust-model. There is a usecase for both a local change (e.g.
to fetch the tofu_info of a single key). And a global
application wide change.
Changing the trust model for only a single application depends
on:
GnuPG-Bug-Id: T4134