mirror of
https://github.com/openssl/openssl.git
synced 2024-12-18 22:43:41 +08:00
Automatically mark the CRL cached encoding as invalid when some operations
are performed.
This commit is contained in:
parent
b4e0ce5165
commit
c162b132eb
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user