summaryrefslogtreecommitdiffstats
path: root/boringssl
diff options
context:
space:
mode:
authorDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>2020-07-20 23:21:37 +0200
committerDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>2020-07-23 01:12:48 +0200
commita27cb956c02220c502449176a8834b1d9643ac23 (patch)
tree0ee7664718c30eedfea527db19e9aefc0798db72 /boringssl
parentd1768e8298a35fcd8e6e19575e4a9b2e93e4d788 (diff)
Fix: uninstantiation breaks the RAND_DRBG callback mechanism
The RAND_DRBG callbacks are wrappers around the EVP_RAND callbacks. During uninstantiation, the EVP_RAND callbacks got lost while the RAND_DRBG callbacks remained, because RAND_DRBG_uninstantiate() calls RAND_DRBG_set(), which recreates the EVP_RAND object. This was causing drbgtest failures. This commit fixes the problem by adding code to RAND_DRBG_set() for saving and restoring the EVP_RAND callbacks. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11195)
Diffstat (limited to 'boringssl')
0 files changed, 0 insertions, 0 deletions