Fix (most) WIN32 warnings and errors.
[oweals/openssl.git] / crypto / asn1 / x_crl.c
index e4d19183cabc2df4dc8b854a080808823ad515f7..0f727114523ee7f8c5de7f26fad96ea61f6de92d 100644 (file)
@@ -74,7 +74,8 @@ ASN1_SEQUENCE(X509_REVOKED) = {
  * Since we cache the original encoding the signature wont be affected by
  * reordering of the revoked field.
  */
-static int crl_inf_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it)
+static int crl_inf_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
+                                                               void *exarg)
 {
        X509_CRL_INFO *a = (X509_CRL_INFO *)*pval;
 
@@ -130,6 +131,7 @@ int X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev)
                ASN1err(ASN1_F_X509_CRL_ADD0_REVOKED, ERR_R_MALLOC_FAILURE);
                return 0;
        }
+       inf->enc.modified = 1;
        return 1;
 }