mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-05 12:31:50 +01:00
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)
This commit is contained in:
parent
2f4492f3be
commit
d9271d594b
@ -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 */
|
/* With no critical policies this is only a warning */
|
||||||
if (!any_critical)
|
if (!any_critical)
|
||||||
{
|
{
|
||||||
if (!opt.quiet)
|
if (opt.verbose)
|
||||||
do_list (0, listmode, fplist,
|
do_list (0, listmode, fplist,
|
||||||
_("Note: non-critical certificate policy not allowed"));
|
_("Note: non-critical certificate policy not allowed"));
|
||||||
return 0;
|
return 0;
|
||||||
@ -380,6 +380,7 @@ check_cert_policy (ksba_cert_t cert, int listmode, estream_t fplist)
|
|||||||
/* With no critical policies this is only a warning */
|
/* With no critical policies this is only a warning */
|
||||||
if (!any_critical)
|
if (!any_critical)
|
||||||
{
|
{
|
||||||
|
if (opt.verbose)
|
||||||
do_list (0, listmode, fplist,
|
do_list (0, listmode, fplist,
|
||||||
_("Note: non-critical certificate policy not allowed"));
|
_("Note: non-critical certificate policy not allowed"));
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user