From: Pauli Date: Wed, 4 Nov 2020 03:05:46 +0000 (+1000) Subject: test RNG: set state to uninitialised as part of uninstantiate call. X-Git-Tag: openssl-3.0.0-alpha9~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15f54941bd4c0324f1c8d7773db56004183a9cb7;p=thirdparty%2Fopenssl.git test RNG: set state to uninitialised as part of uninstantiate call. Reviewed-by: Matt Caswell Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/13226) --- diff --git a/providers/implementations/rands/test_rng.c b/providers/implementations/rands/test_rng.c index 3f3ab236f9c..33cbd20e9b0 100644 --- a/providers/implementations/rands/test_rng.c +++ b/providers/implementations/rands/test_rng.c @@ -96,6 +96,7 @@ static int test_rng_uninstantiate(void *vtest) PROV_TEST_RNG *t = (PROV_TEST_RNG *)vtest; t->entropy_pos = 0; + t->state = EVP_RAND_STATE_UNINITIALISED; return 1; } diff --git a/test/build.info b/test/build.info index b7fafb7ebab..0ce3e27ae87 100644 --- a/test/build.info +++ b/test/build.info @@ -381,7 +381,7 @@ IF[{- !$disabled{tests} -}] DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a SOURCE[drbgtest]=drbgtest.c - INCLUDE[drbgtest]=../include ../apps/include + INCLUDE[drbgtest]=../include ../apps/include ../providers/common/include DEPEND[drbgtest]=../libcrypto.a libtestutil.a SOURCE[rand_status_test]=rand_status_test.c