]> granicus.if.org Git - openssl/commitdiff
Automatically mark the CRL cached encoding as invalid when some operations
authorDr. Stephen Henson <steve@openssl.org>
Thu, 9 Dec 2004 13:35:06 +0000 (13:35 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 9 Dec 2004 13:35:06 +0000 (13:35 +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 eb33e0f6e6710e13ea36ec3d065f6a8bac455d4d..4701959b1e89e2be2d0ae9d409ddf000ba5db0e2 100644 (file)
@@ -105,6 +105,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));
        }