mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-13 22:21:09 +02:00
* certpath.c (check_cert_policy): Don't use log_error to print a
warning.
This commit is contained in:
parent
5795c02b09
commit
6041ae63f3
@ -1,5 +1,8 @@
|
||||
2002-07-02 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* certpath.c (check_cert_policy): Don't use log_error to print a
|
||||
warning.
|
||||
|
||||
* keydb.c (keydb_store_cert): Add optional ar EXISTED and changed
|
||||
all callers.
|
||||
* call-agent.c (learn_cb): Print info message only for real imports.
|
||||
|
@ -145,9 +145,14 @@ check_cert_policy (KsbaCert cert)
|
||||
if (feof (fp))
|
||||
{
|
||||
fclose (fp);
|
||||
log_error (_("certificate policy not allowed\n"));
|
||||
/* with no critical policies this is only a warning */
|
||||
return any_critical? GNUPG_No_Policy_Match : 0;
|
||||
if (!any_critical)
|
||||
{
|
||||
log_info (_("note: certificate policy not allowed\n"));
|
||||
return 0;
|
||||
}
|
||||
log_error (_("certificate policy not allowed\n"));
|
||||
return GNUPG_No_Policy_Match;
|
||||
}
|
||||
fclose (fp);
|
||||
return GNUPG_Read_Error;
|
||||
|
@ -145,9 +145,14 @@ check_cert_policy (KsbaCert cert)
|
||||
if (feof (fp))
|
||||
{
|
||||
fclose (fp);
|
||||
log_error (_("certificate policy not allowed\n"));
|
||||
/* with no critical policies this is only a warning */
|
||||
return any_critical? GNUPG_No_Policy_Match : 0;
|
||||
if (!any_critical)
|
||||
{
|
||||
log_info (_("note: certificate policy not allowed\n"));
|
||||
return 0;
|
||||
}
|
||||
log_error (_("certificate policy not allowed\n"));
|
||||
return GNUPG_No_Policy_Match;
|
||||
}
|
||||
fclose (fp);
|
||||
return GNUPG_Read_Error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user