diff options
author | Richard Levitte <levitte@openssl.org> | 2023-04-21 06:00:47 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-05-01 11:42:40 +0100 |
commit | 05d42befb962db332cc73d3d4e835396b8e1edde (patch) | |
tree | 88fa84d4febbde6a171f9701c1fd53211fa420e5 | |
parent | ff56f28d2d8225e2a83747c37ef6b47f42f3073a (diff) |
param->ctrl translation: Fix evp_pkey_ctx_setget_params_to_ctrl()
Ensure that ctx.ctrl_cmd defaults to translation->cmd_num
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/20780)
(cherry picked from commit 1009940c14716ac03d5f161bdb4ae626ec6fe729)
-rw-r--r-- | crypto/evp/ctrl_params_translate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c index fd1f824109..0e0146d9ea 100644 --- a/crypto/evp/ctrl_params_translate.c +++ b/crypto/evp/ctrl_params_translate.c @@ -2734,6 +2734,7 @@ static int evp_pkey_ctx_setget_params_to_ctrl(EVP_PKEY_CTX *pctx, if (translation->fixup_args != NULL) fixup = translation->fixup_args; ctx.action_type = translation->action_type; + ctx.ctrl_cmd = translation->ctrl_num; } ctx.pctx = pctx; ctx.params = params; |