Home GnuPG
Diffusion GnuPG 53f5aad90517

gpgsm: Avoid increasing error count when enumerating an expired cert.

Description

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

Details

Provenance
Ramón García <ramon.garcia.f@gmail.com>Authored on Tue, Mar 18, 10:04 AM
wernerCommitted on Tue, Mar 18, 10:04 AM
Parents
rG029ac17b40bd: gpgsm: When selecting certs also skip certificates too young.
Branches
Unknown
Tags
Unknown