]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
hkdf: make the mode decoding more straightforward
authorPauli <ppzgs1@gmail.com>
Wed, 13 Aug 2025 02:25:14 +0000 (12:25 +1000)
committerPauli <ppzgs1@gmail.com>
Fri, 15 Aug 2025 01:13:19 +0000 (11:13 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/28242)

providers/implementations/kdfs/hkdf.c.in

index 634577c4cf39d1d9c8f6a516dbbf8b5f38911506..3241f3fee3549d3750a2c51165d6bd2886bedfc5 100644 (file)
@@ -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;
         }