diff options
author | Pauli <ppzgs1@gmail.com> | 2021-03-10 18:38:04 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-12 08:27:30 +1000 |
commit | 20b8dc6fb1964ca16b85799b25c5f46d23b1a7cb (patch) | |
tree | 005592e00ecb4ea1c1bf5bc2d0138ad489e87787 /providers/implementations/rands/drbg.c | |
parent | 5a6b62bb427e828edecf52c2280f9958d97142b6 (diff) |
update set_ctx_param DRBG calls to return 1 for a NULL params
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14383)
Diffstat (limited to 'providers/implementations/rands/drbg.c')
-rw-r--r-- | providers/implementations/rands/drbg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/implementations/rands/drbg.c b/providers/implementations/rands/drbg.c index a05c9397c8..461d641273 100644 --- a/providers/implementations/rands/drbg.c +++ b/providers/implementations/rands/drbg.c @@ -915,6 +915,9 @@ int ossl_drbg_set_ctx_params(PROV_DRBG *drbg, const OSSL_PARAM params[]) { const OSSL_PARAM *p; + if (params == NULL) + return 1; + p = OSSL_PARAM_locate_const(params, OSSL_DRBG_PARAM_RESEED_REQUESTS); if (p != NULL && !OSSL_PARAM_get_uint(p, &drbg->reseed_interval)) return 0; |