mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpgsm: Avoid increasing error count when enumerating an expired cert.
* sm/certchain.c (check_validity_period_cm): Add arg no_log_expired to avoid bumping of the error counter due to the do_list function. * sm/certlist.c (gpgsm_add_to_certlist): Set no_log_expired when checking the expiration. -- I modified the original patch to make the patch smaller and the code easier to read. - wk@gnupg.org
This commit is contained in:
parent
029ac17b40
commit
53f5aad905
3 changed files with 42 additions and 30 deletions
|
@ -445,7 +445,8 @@ gpg_error_t check_validity_period_cm (ksba_isotime_t current_time,
|
|||
ksba_isotime_t check_time,
|
||||
ksba_cert_t subject_cert,
|
||||
ksba_isotime_t exptime,
|
||||
int listmode, estream_t listfp, int depth);
|
||||
int listmode, estream_t listfp, int depth,
|
||||
int no_log_expired);
|
||||
int gpgsm_basic_cert_check (ctrl_t ctrl, ksba_cert_t cert);
|
||||
|
||||
/*-- certlist.c --*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue