diff options
author | Richard Levitte <levitte@openssl.org> | 2017-01-28 17:43:17 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-01-28 20:07:04 +0100 |
commit | 6195848b2eea627c47f74b63eb2ba3dc3d5b6436 (patch) | |
tree | 0d9d6db3b93c97c7f44a1a6b27ef09acf153c44b /crypto/x509/x_crl.c | |
parent | 63414e64e66e376654e993ac966e3b2f9d849d3b (diff) |
X509_CRL_digest() - ensure precomputed sha1 hash before returning it
X509_CRL_digest() didn't check if the precomputed sha1 hash was actually
present. This also makes sure there's an appropriate flag to check.
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2314)
Diffstat (limited to 'crypto/x509/x_crl.c')
-rw-r--r-- | crypto/x509/x_crl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x509/x_crl.c b/crypto/x509/x_crl.c index da9c6b6157..dbed850b37 100644 --- a/crypto/x509/x_crl.c +++ b/crypto/x509/x_crl.c @@ -226,6 +226,8 @@ static int crl_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, if (crl->meth->crl_init(crl) == 0) return 0; } + + crl->flags |= EXFLAG_SET; break; case ASN1_OP_FREE_POST: |