mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +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.
This commit is contained in:
parent
7fa1d3cc82
commit
4f1b9e3abb
@ -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,6 +380,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.verbose)
|
||||
do_list (0, listmode, fplist,
|
||||
_("Note: non-critical certificate policy not allowed"));
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user