mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
evp_rand: fix bug in gettable_ctx/settable_ctx calls
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12931)
This commit is contained in:
parent
44d2482ba6
commit
d8e52fd05e
@ -433,7 +433,7 @@ const OSSL_PARAM *EVP_RAND_gettable_params(const EVP_RAND *rand)
|
||||
|
||||
const OSSL_PARAM *EVP_RAND_gettable_ctx_params(const EVP_RAND *rand)
|
||||
{
|
||||
if (rand->gettable_params == NULL)
|
||||
if (rand->gettable_ctx_params == NULL)
|
||||
return NULL;
|
||||
return rand->gettable_ctx_params(
|
||||
ossl_provider_ctx(EVP_RAND_provider(rand)));
|
||||
@ -441,7 +441,7 @@ const OSSL_PARAM *EVP_RAND_gettable_ctx_params(const EVP_RAND *rand)
|
||||
|
||||
const OSSL_PARAM *EVP_RAND_settable_ctx_params(const EVP_RAND *rand)
|
||||
{
|
||||
if (rand->gettable_params == NULL)
|
||||
if (rand->settable_ctx_params == NULL)
|
||||
return NULL;
|
||||
return rand->settable_ctx_params(
|
||||
ossl_provider_ctx(EVP_RAND_provider(rand)));
|
||||
|
Loading…
Reference in New Issue
Block a user