If not present do not attempt to utilize its value.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
gnutls_x509_crt_t issuer = NULL;
int result, sigalg;
time_t now = gnutls_time(0);
+ time_t nextu;
unsigned int usage;
if (verify)
if (gnutls_x509_crl_get_this_update(crl) > now && verify)
*verify |= GNUTLS_CERT_REVOCATION_DATA_ISSUED_IN_FUTURE;
- if (gnutls_x509_crl_get_next_update(crl) < now && verify)
+ nextu = gnutls_x509_crl_get_next_update(crl);
+ if (nextu != -1 && nextu < now && verify)
*verify |= GNUTLS_CERT_REVOCATION_DATA_SUPERSEDED;