X509_CRL_digest() - ensure precomputed sha1 hash before returning it
authorRichard Levitte <levitte@openssl.org>
Sat, 28 Jan 2017 16:43:17 +0000 (17:43 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 28 Jan 2017 19:07:04 +0000 (20:07 +0100)
commit6195848b2eea627c47f74b63eb2ba3dc3d5b6436
tree0d9d6db3b93c97c7f44a1a6b27ef09acf153c44b
parent63414e64e66e376654e993ac966e3b2f9d849d3b
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)
crypto/x509/x_all.c
crypto/x509/x_crl.c