Skip to content

Commit

Permalink
test RNG: set state to uninitialised as part of uninstantiate call.
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Matthias St. Pierre <[email protected]>
(Merged from openssl#13226)
  • Loading branch information
paulidale committed Nov 19, 2020
1 parent 1f50630 commit 15f5494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions providers/implementations/rands/test_rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion test/build.info
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15f5494

Please sign in to comment.