提交 d8e52fd0 编写于 作者: P Pauli

evp_rand: fix bug in gettable_ctx/settable_ctx calls

Reviewed-by: NMatt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12931)
上级 44d2482b
......@@ -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)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册