mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
gpgsm: When selecting certs also skip certificates too young.
* sm/certlist.c (gpgsm_add_to_certlist): Also check for not yet valid certs.
This commit is contained in:
parent
4cf83273e8
commit
029ac17b40
1 changed files with 2 additions and 1 deletions
|
@ -395,7 +395,8 @@ gpgsm_add_to_certlist (ctrl_t ctrl, const char *name, int secret,
|
||||||
else
|
else
|
||||||
wrong_usage = rc;
|
wrong_usage = rc;
|
||||||
}
|
}
|
||||||
else if (gpg_err_code (rc) == GPG_ERR_CERT_EXPIRED)
|
else if (gpg_err_code (rc) == GPG_ERR_CERT_EXPIRED
|
||||||
|
|| gpg_err_code (rc) == GPG_ERR_CERT_TOO_YOUNG)
|
||||||
{
|
{
|
||||||
ksba_cert_release (cert);
|
ksba_cert_release (cert);
|
||||||
cert = NULL;
|
cert = NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue