mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-30 03:34:39 +00:00
test RNG: set state to uninitialised as part of uninstantiate call.
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)
This commit is contained in:
parent
1f50630af8
commit
15f54941bd
@ -96,6 +96,7 @@ static int test_rng_uninstantiate(void *vtest)
|
|||||||
PROV_TEST_RNG *t = (PROV_TEST_RNG *)vtest;
|
PROV_TEST_RNG *t = (PROV_TEST_RNG *)vtest;
|
||||||
|
|
||||||
t->entropy_pos = 0;
|
t->entropy_pos = 0;
|
||||||
|
t->state = EVP_RAND_STATE_UNINITIALISED;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ IF[{- !$disabled{tests} -}]
|
|||||||
DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
|
DEPEND[recordlentest]=../libcrypto ../libssl libtestutil.a
|
||||||
|
|
||||||
SOURCE[drbgtest]=drbgtest.c
|
SOURCE[drbgtest]=drbgtest.c
|
||||||
INCLUDE[drbgtest]=../include ../apps/include
|
INCLUDE[drbgtest]=../include ../apps/include ../providers/common/include
|
||||||
DEPEND[drbgtest]=../libcrypto.a libtestutil.a
|
DEPEND[drbgtest]=../libcrypto.a libtestutil.a
|
||||||
|
|
||||||
SOURCE[rand_status_test]=rand_status_test.c
|
SOURCE[rand_status_test]=rand_status_test.c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user