From c33bce644052e272c3836daec29c0f865ec3a0fd Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 13 Aug 2025 12:25:14 +1000 Subject: [PATCH] hkdf: make the mode decoding more straightforward Reviewed-by: Tomas Mraz Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/28242) --- providers/implementations/kdfs/hkdf.c.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/implementations/kdfs/hkdf.c.in b/providers/implementations/kdfs/hkdf.c.in index 634577c4cf3..3241f3fee35 100644 --- a/providers/implementations/kdfs/hkdf.c.in +++ b/providers/implementations/kdfs/hkdf.c.in @@ -456,7 +456,7 @@ static int hkdf_common_get_ctx_params(void *vctx, OSSL_PARAM params[]) default: return 0; } - } else if (p.mode->data_type == OSSL_PARAM_INTEGER) { + } else { if (!OSSL_PARAM_set_int(p.mode, ctx->mode)) return 0; } -- 2.47.3