Commit c162b132 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Automatically mark the CRL cached encoding as invalid when some operations

are performed.
parent b4e0ce51
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}

+1 −0
Original line number Diff line number Diff line
@@ -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;
	}

+1 −0
Original line number Diff line number Diff line
@@ -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));
	}