summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2023-04-21 06:00:47 +0200
committerMatt Caswell <matt@openssl.org>2023-05-01 11:42:40 +0100
commit05d42befb962db332cc73d3d4e835396b8e1edde (patch)
tree88fa84d4febbde6a171f9701c1fd53211fa420e5
parentff56f28d2d8225e2a83747c37ef6b47f42f3073a (diff)
downloadopenssl-new-05d42befb962db332cc73d3d4e835396b8e1edde.tar.gz
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.c1
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;