Add a test to check that RAND_bytes_ex() works with a child lib ctx
authorMatt Caswell <matt@openssl.org>
Mon, 21 Jun 2021 12:01:57 +0000 (13:01 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 24 Jun 2021 13:48:15 +0000 (14:48 +0100)
commitdcbb2be7f76776e86dbdc1b6599c199a16af3742
treedfae6804ee1663fb2e55f705c61f90d825538b84
parentf109e96559097b882ad772b6b6396abfb1818cfe
Add a test to check that RAND_bytes_ex() works with a child lib ctx

Previously, when locks were held while calling a provider init function,
then RAND_bytes_ex() would fail if called from the init function and
used in conjunction with a child lib ctx. We add an explicit test of that.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15854)
test/provfetchtest.c