Home GnuPG
Diffusion GnuPG 4cf83273e84c

gpgsm: select unexpired certificates skipping expired ones

Description

gpgsm: select unexpired certificates skipping expired ones

* sm/certchain.c (check_validity_period_cm):  Make function global.
* sm/certlist.c (gpgsm_add_to_certlist): If an expired certificate is
found, continue looking for another one.

This enables the user to select a certificate by subject, and keep
old expired certificates in the store in case he wishes to decrypt
or verify an old file. This makes renewal of certificate smoother.

Due to a broken patch I had to massage the patch and while doing this
also fixed the indentation and moved a declaration to the begin of a
block. - wk@gnupg.org

Details

Provenance
Ramón García <ramon.garcia.f@gmail.com>Authored on Tue, Mar 18, 9:43 AM
wernerCommitted on Tue, Mar 18, 9:43 AM
Parents
rG4f4264c4e8b9: doc: Register DCO for Ramon García F.
Branches
Unknown
Tags
Unknown