diff options
author | Pauli <ppzgs1@gmail.com> | 2021-02-27 11:55:59 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-02 13:23:17 +1000 |
commit | 5a11de50a41054ed17d4280c39825a2bdaa96b96 (patch) | |
tree | b9d09e0ff74440b2d34cf5bad976b1fedf17fb39 /test/testutil.h | |
parent | 0647162f6af7c2e0edb4c770bf501ad7e0302970 (diff) |
test: update test_random to create real contexts instead of sharing one
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14341)
Diffstat (limited to 'test/testutil.h')
-rw-r--r-- | test/testutil.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/testutil.h b/test/testutil.h index 93c91a4a41..8989b1f735 100644 --- a/test/testutil.h +++ b/test/testutil.h @@ -569,7 +569,9 @@ void test_random_seed(uint32_t sd); /* Fake non-secure random number generator */ OSSL_PROVIDER *fake_rand_start(OSSL_LIB_CTX *libctx); void fake_rand_finish(OSSL_PROVIDER *p); -void fake_rand_set_callback(int (*cb)(unsigned char *out, size_t outlen)); +void fake_rand_set_callback(EVP_RAND_CTX *ctx, + int (*cb)(unsigned char *out, size_t outlen, + const char *name, EVP_RAND_CTX *ctx)); /* Create a file path from a directory and a filename */ char *test_mk_file_path(const char *dir, const char *file); |