diff options
| author | Werner Koch <[email protected]> | 2025-08-27 09:26:37 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-08-27 09:41:38 +0000 |
| commit | 6a05d7f0e87fea373f42317c15df9e1ab59dea3e (patch) | |
| tree | cf84b7251dc439530be1d6cfef44945af2346d40 /sm/call-agent.c | |
| parent | gpgsm: Change the debug flags used with --debug-level basic to expert. (diff) | |
| download | gnupg-6a05d7f0e87fea373f42317c15df9e1ab59dea3e.tar.gz gnupg-6a05d7f0e87fea373f42317c15df9e1ab59dea3e.zip | |
gpgsm: Add option --no-qes-note and trustlist flag "noconsent".
* agent/trustlist.c (struct trustitem_s): Add flag "noconsent".
(read_one_trustfile): Set flag.
(istrusted_internal): Emit flag value.
* sm/call-agent.c (istrusted_status_cb): Parse flag.
* sm/certchain.c (do_validate_chain): Handle flag by using a different
true value for an existing variable.
* sm/sign.c (gpgsm_sign): Consult the new flag.
* sm/gpgsm.c (enum cmd_and_opt_values): Add oNoQESNote.
(opts): Add option --no-qes-note.
* sm/gpgsm.h (opt): Add field no_qes_note.
(struct rootca_flags_s): Add flag noconsent.
* sm/sign.c (gpgsm_sign): Take care of the noconsent flag.
* sm/qualified.c (gpgsm_qualified_consent): Take care of no_qes_note.
* sm/verify.c (gpgsm_verify): Ditto.
--
GnuPG-bug-id: 7713
Diffstat (limited to 'sm/call-agent.c')
| -rw-r--r-- | sm/call-agent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c index c2875626b..16fb10901 100644 --- a/sm/call-agent.c +++ b/sm/call-agent.c @@ -970,6 +970,8 @@ istrusted_status_cb (void *opaque, const char *line) parm->flags.chain_model = 1; else if (has_leading_keyword (line, "qual")) parm->flags.qualified = 1; + else if (has_leading_keyword (line, "noconsent")) + parm->flags.noconsent = 1; else if (has_leading_keyword (line, "de-vs")) parm->flags.de_vs = 1; |
