diff options
author | Werner Koch <[email protected]> | 2022-12-05 13:31:45 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-12-06 07:25:41 +0000 |
commit | d9271d594b5b81cc4242de141ef99767390e83a5 (patch) | |
tree | 41e4556891cbbac95093c8dc94f3b72c5ac66065 | |
parent | wkd: New option --add-revocs and some fixes. (diff) | |
download | gnupg-d9271d594b5b81cc4242de141ef99767390e83a5.tar.gz gnupg-d9271d594b5b81cc4242de141ef99767390e83a5.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.
(cherry picked from commit 4f1b9e3abb337470e5e4809b3a7f2df33f5a63a4)
-rw-r--r-- | sm/certchain.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sm/certchain.c b/sm/certchain.c index d2a180062..ba9f3ff83 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; } |