diff options
author | Ramón García <[email protected]> | 2025-03-18 11:14:50 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-03-18 11:14:50 +0000 |
commit | ad8bce774d91bbd1dbbf43f8b6f018a5e981e176 (patch) | |
tree | c39a430f7e4a6ef8312ce3350521935b221e9b69 /common/t-mapstrings.c | |
parent | gpgsm: Avoid increasing error count when enumerating an expired cert. (diff) | |
download | gnupg-ad8bce774d91bbd1dbbf43f8b6f018a5e981e176.tar.gz gnupg-ad8bce774d91bbd1dbbf43f8b6f018a5e981e176.zip |
gpgsm: Fix error message if all selected certificates are expired.
* sm/certlist.c (gpgsm_add_to_certlist): Track expired error. Make
the expired check easier to read by using if and case.
--
Original ChangeLog:
If all selected certificates are expired, don't mislead the user
saying that no certificate was found. Instead, return the error
of the first certificate selected.
* sm/certlist.c: if one expired certificate was found, don't return
no certificate found, return instead the expiration error
I heavily changed Ramon's original patch and hope that I don't
introduced a regression to his patch. - [email protected]
Diffstat (limited to 'common/t-mapstrings.c')
0 files changed, 0 insertions, 0 deletions