Audit libcrypto for unchecked return values: fix all cases enountered
[openssl.git] / crypto / x509 / x509cset.c
index 6cac440ea936b68fa2131f8b968c59e4044af4e7..3109defb0b2dba0e2879cd2d8fb6bea756dbcb83 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/x509/x509cset.c */
-/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
+/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
  * project 2001.
  */
 /* ====================================================================
@@ -81,7 +81,7 @@ int X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name)
        }
 
 
-int X509_CRL_set_lastUpdate(X509_CRL *x, ASN1_TIME *tm)
+int X509_CRL_set_lastUpdate(X509_CRL *x, const ASN1_TIME *tm)
        {
        ASN1_TIME *in;
 
@@ -99,7 +99,7 @@ int X509_CRL_set_lastUpdate(X509_CRL *x, ASN1_TIME *tm)
        return(in != NULL);
        }
 
-int X509_CRL_set_nextUpdate(X509_CRL *x, ASN1_TIME *tm)
+int X509_CRL_set_nextUpdate(X509_CRL *x, const ASN1_TIME *tm)
        {
        ASN1_TIME *in;
 
@@ -129,6 +129,7 @@ int X509_CRL_sort(X509_CRL *c)
                r=sk_X509_REVOKED_value(c->crl->revoked,i);
                r->sequence=i;
                }
+       c->crl->enc.modified = 1;
        return 1;
        }