diff options
author | Pauli <ppzgs1@gmail.com> | 2021-02-26 10:56:17 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-28 17:25:49 +1000 |
commit | 7198bd1a8f44be994106d3dba4bbb3362147b144 (patch) | |
tree | b2924a0d2ac3314a8596cca9ac117c2b9ac4d311 /test/evp_test.c | |
parent | b98d550d807eccde3bd3f88f9831e002d3835cc3 (diff) |
test: update tests to allow for params argument for the instantiate call on EVP_RAND_CTXs
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14310)
Diffstat (limited to 'test/evp_test.c')
-rw-r--r-- | test/evp_test.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/evp_test.c b/test/evp_test.c index ef7ddd37fe..8c88f0937c 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -2259,16 +2259,15 @@ static int rand_test_run(EVP_TEST *t) *p++ = OSSL_PARAM_construct_octet_string(OSSL_RAND_PARAM_TEST_NONCE, z, item->nonce_len); *p = OSSL_PARAM_construct_end(); - if (!TEST_true(EVP_RAND_set_ctx_params(expected->parent, params)) - || !TEST_true(EVP_RAND_instantiate(expected->parent, strength, - 0, NULL, 0))) + if (!TEST_true(EVP_RAND_instantiate(expected->parent, strength, + 0, NULL, 0, params))) goto err; z = item->pers != NULL ? item->pers : (unsigned char *)""; if (!TEST_true(EVP_RAND_instantiate (expected->ctx, strength, expected->prediction_resistance, z, - item->pers_len))) + item->pers_len, NULL))) goto err; if (item->reseed_entropy != NULL) { |