test RNG: set state to uninitialised as part of uninstantiate call.
authorPauli <paul.dale@oracle.com>
Wed, 4 Nov 2020 03:05:46 +0000 (13:05 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 19 Nov 2020 22:24:21 +0000 (08:24 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/13226)

providers/implementations/rands/test_rng.c
test/build.info

index 3f3ab236f9c94a756dca82ed99920ce636abb177..33cbd20e9b0dd6739ca0909e81ddbd62a4c93462 100644 (file)
@@ -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;
 }
 
index b7fafb7ebab785f8eb88a725358ee287598a4d4c..0ce3e27ae87bbbdac002642582744c023c5fdfde 100644 (file)
@@ -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