aboutsummaryrefslogtreecommitdiffstats
path: root/sm/call-agent.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-02-27 11:03:20 +0000
committerWerner Koch <[email protected]>2022-02-27 11:26:38 +0000
commit7c8c6060616ab91f5490e91a0fb9efc9aee9f58e (patch)
tree668b52ae34cf03c609fbd90ae086e99f693de110 /sm/call-agent.c
parentdimngr: Do not check the self-signature of a root CA cert. (diff)
downloadgnupg-7c8c6060616ab91f5490e91a0fb9efc9aee9f58e.tar.gz
gnupg-7c8c6060616ab91f5490e91a0fb9efc9aee9f58e.zip
agent: New flag "qual" for the trustlist.txt.
* agent/trustlist.c (struct trustitem_s): Add flag "qual". (read_one_trustfile): Rename arg "allow_include" to "systrust" and change callers. Parse new flag "qual". (istrusted_internal): Print all flags. * sm/call-agent.c (istrusted_status_cb): Detect the "qual" flag. * sm/gpgsm.h (struct rootca_flags_s): Add flag "qualified". * sm/certchain.c (do_validate_chain): Take care of the qualified flag.
Diffstat (limited to 'sm/call-agent.c')
-rw-r--r--sm/call-agent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c
index 6373829e8..06319cf62 100644
--- a/sm/call-agent.c
+++ b/sm/call-agent.c
@@ -888,6 +888,8 @@ istrusted_status_cb (void *opaque, const char *line)
flags->relax = 1;
else if (has_leading_keyword (line, "cm"))
flags->chain_model = 1;
+ else if (has_leading_keyword (line, "qual"))
+ flags->qualified = 1;
}
return 0;
}