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:31:33 +0100
commitc04ad5700ae0a531e91697b26cdcac6764dd6072 (patch)
treefd1c6984eb57b1d7fd960ef0d4b33711192e9233
parentd1b2c9bf0b076c06dd240cab6140c68ec9f2cf5c (diff)
downloadopenssl-new-c04ad5700ae0a531e91697b26cdcac6764dd6072.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 d2e543a2cd..c76d9e96c5 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;