Automatically mark the CRL cached encoding as invalid when some operations
authorDr. Stephen Henson <steve@openssl.org>
Thu, 9 Dec 2004 13:34:41 +0000 (13:34 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 9 Dec 2004 13:34:41 +0000 (13:34 +0000)
are performed.

crypto/asn1/x_crl.c
crypto/x509/x509cset.c
crypto/x509/x_all.c

index e4d19183cabc2df4dc8b854a080808823ad515f7..b99f8fc522c1e2a6b25f72a61b3ffb0cf3a67ecb 100644 (file)
@@ -130,6 +130,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;
 }
 
index 6cac440ea936b68fa2131f8b968c59e4044af4e7..9d1646d5c8d779b35d4521e68ce7ebb85adeefcd 100644 (file)
@@ -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;
        }
 
index fb5015cd4defa667e960ea0c0c1f6a20c104f304..ac6dea493a872eaa7e10b2c6041f7e84f4cc1641 100644 (file)
@@ -103,6 +103,7 @@ int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md)
 
 int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md)
        {
+       x->crl->enc.modified = 1;
        return(ASN1_item_sign(ASN1_ITEM_rptr(X509_CRL_INFO),x->crl->sig_alg,
                x->sig_alg, x->signature, x->crl,pkey,md));
        }