[PATCH gnupg 2/4] sm: Also skip certificates too young

Ramón García via Gnupg-devel <[email protected]>
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <CA+=ghCj=dZ7qr8HSb7=LfueRhbB+70_rqSqNAvepjC0daET++A@mail.gmail.com>
* sm/certlist.c: Skip certificates not yet valid
---
 sm/certlist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sm/certlist.c b/sm/certlist.c
index 6c5080a69..a343efe64 100644
--- a/sm/certlist.c
+++ b/sm/certlist.c
@@ -397,7 +397,7 @@ gpgsm_add_to_certlist (ctrl_t ctrl, const char
*name, int secret,
                     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);
                   cert = NULL;
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.