diff options
author | Andre Heinecke <[email protected]> | 2018-09-12 07:42:09 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2018-10-09 08:48:58 +0000 |
commit | 85627e58184529e982369cfc00ed7865244c13d6 (patch) | |
tree | 307d51952c0f108f9b80d2635ad989540e9a5fa4 /src/context.h | |
parent | cpp: Initialize all gpgme_key_t's in context (diff) | |
download | gpgme-85627e58184529e982369cfc00ed7865244c13d6.tar.gz gpgme-85627e58184529e982369cfc00ed7865244c13d6.zip |
core: Add trust-model flag
* 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 (gpgme_set_ctx_flag): Handle trust-model flag.
(gpgme_release): Release trust-model.
* doc/gpgme.texi: Document new flag for gpgme_set_ctx_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.
Changing the trust model for only a single application depends
on:
GnuPG-Bug-Id: T4134
Maniphest Tasks: T4134
Differential Revision: https://dev.gnupg.org/D466
Diffstat (limited to 'src/context.h')
-rw-r--r-- | src/context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/context.h b/src/context.h index 1c9379b8..d65bf9b5 100644 --- a/src/context.h +++ b/src/context.h @@ -162,6 +162,9 @@ struct gpgme_context char *lc_ctype; char *lc_messages; + /* The optional trust-model override. */ + char *trust_model; + /* The operation data hooked into the context. */ ctx_op_data_t op_data; |