From: Pauli Date: Wed, 13 Aug 2025 02:25:14 +0000 (+1000) Subject: hkdf: make the mode decoding more straightforward X-Git-Tag: openssl-3.6.0-alpha1~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c33bce644052e272c3836daec29c0f865ec3a0fd;p=thirdparty%2Fopenssl.git hkdf: make the mode decoding more straightforward Reviewed-by: Tomas Mraz Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/28242) --- 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; }