aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorRamón García <[email protected]>2025-03-18 09:04:37 +0000
committerWerner Koch <[email protected]>2025-03-18 09:04:37 +0000
commit53f5aad90517600a882844f7be552d85e1ad89ea (patch)
tree7e6bad27b775bfd4c4f9c32001f648427760a8f4 /sm/gpgsm.h
parentgpgsm: When selecting certs also skip certificates too young. (diff)
downloadgnupg-53f5aad90517600a882844f7be552d85e1ad89ea.tar.gz
gnupg-53f5aad90517600a882844f7be552d85e1ad89ea.zip
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. - [email protected]
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index c837cbee3..d23223ea9 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -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 --*/