summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-12-07 08:59:03 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-12-07 10:12:05 +0100
commit6f68286a00e2d18163d26d744a369c7a6ffe1766 (patch)
treeea2c0b0efff0ef604c3a5853b542cc97904042bc
parentb5643b40ba2b66da6731e24821f1497e287d5d3c (diff)
downloadgnutls-6f68286a00e2d18163d26d744a369c7a6ffe1766.tar.gz
x509 crl: Allow generation of CRLs not to specify a nextUpdate
-rw-r--r--lib/x509/crl_write.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/x509/crl_write.c b/lib/x509/crl_write.c
index 0d46835ad6..fa90da9f25 100644
--- a/lib/x509/crl_write.c
+++ b/lib/x509/crl_write.c
@@ -308,6 +308,12 @@ gnutls_x509_crl_set_crt(gnutls_x509_crl_t crl, gnutls_x509_crt_t crt,
*/
static void disable_optional_stuff(gnutls_x509_crl_t crl)
{
+ time_t t;
+
+ t = _gnutls_x509_get_time(crl->crl, "tbsCertList.nextUpdate", 0);
+ if (t == (time_t)-1) {
+ asn1_write_value(crl->crl, "tbsCertList.nextUpdate", NULL, 0);
+ }
if (crl->use_extensions == 0) {
asn1_write_value(crl->crl, "tbsCertList.crlExtensions",