test: add ctx gettable/settable to the generic fake random number generator
authorPauli <ppzgs1@gmail.com>
Tue, 23 Feb 2021 23:24:26 +0000 (09:24 +1000)
committerPauli <ppzgs1@gmail.com>
Fri, 26 Feb 2021 08:08:41 +0000 (18:08 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14240)

test/testutil/fake_random.c

index 7e18e72d45c847e4b011e7cfe68795f50158eabb..9d9b10feb15334b4c1cdbb17881840b49f63ab2b 100644 (file)
@@ -109,7 +109,8 @@ static int fake_rand_get_ctx_params(ossl_unused void *vrng, OSSL_PARAM params[])
     return 1;
 }
 
-static const OSSL_PARAM *fake_rand_gettable_ctx_params(void *vrng)
+static const OSSL_PARAM *fake_rand_gettable_ctx_params(ossl_unused void *vrng,
+                                                       ossl_unused void *provctx)
 {
     static const OSSL_PARAM known_gettable_ctx_params[] = {
         OSSL_PARAM_int(OSSL_RAND_PARAM_STATE, NULL),