From 15f54941bd4c0324f1c8d7773db56004183a9cb7 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 4 Nov 2020 13:05:46 +1000 Subject: [PATCH] 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) --- providers/implementations/rands/test_rng.c | 1 + test/build.info | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.2