Fix data races in EVP_CIPHER_fetch and EVP_MD_fetch
authorMatt Caswell <matt@openssl.org>
Wed, 14 Aug 2019 17:09:28 +0000 (18:09 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 29 Aug 2019 09:50:47 +0000 (10:50 +0100)
commited71e917e9fb763adfb36a9cee0e0935aee898e2
tree131efda0c1fef9f5cae39690847351a8eca258d9
parent505f46602043c7c28884e4c13f3cfa9419ae2f15
Fix data races in EVP_CIPHER_fetch and EVP_MD_fetch

Don't modify the cipher/md we just fetched - it could be shared by multiple
threads.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9590)
crypto/evp/digest.c
crypto/evp/evp_enc.c