summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-12-05 14:31:45 +0100
committerWerner Koch <wk@gnupg.org>2022-12-05 14:31:45 +0100
commit4f1b9e3abb337470e5e4809b3a7f2df33f5a63a4 (patch)
tree9789d21c0291a960ff1a9c047a0110b65f57b94b
parentgpgsm: Always use the chain model if the root-CA requests this. (diff)
downloadgnupg2-4f1b9e3abb337470e5e4809b3a7f2df33f5a63a4.tar.xz
gnupg2-4f1b9e3abb337470e5e4809b3a7f2df33f5a63a4.zip
gpgsm: Silence the "non-critical certificate policy not allowed".
* sm/certchain.c (check_cert_policy): Print non-critical policy warning only in verbose mode.
-rw-r--r--sm/certchain.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sm/certchain.c b/sm/certchain.c
index ca03a766f..efe8cb1d5 100644
--- a/sm/certchain.c
+++ b/sm/certchain.c
@@ -350,7 +350,7 @@ check_cert_policy (ksba_cert_t cert, int listmode, estream_t fplist)
/* With no critical policies this is only a warning */
if (!any_critical)
{
- if (!opt.quiet)
+ if (opt.verbose)
do_list (0, listmode, fplist,
_("Note: non-critical certificate policy not allowed"));
return 0;
@@ -380,7 +380,8 @@ check_cert_policy (ksba_cert_t cert, int listmode, estream_t fplist)
/* With no critical policies this is only a warning */
if (!any_critical)
{
- do_list (0, listmode, fplist,
+ if (opt.verbose)
+ do_list (0, listmode, fplist,
_("Note: non-critical certificate policy not allowed"));
return 0;
}