From 0b8c7b936eb0235aebdeff96dae51fd7c6c08ecd Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 16 Jul 2025 18:09:54 +1000 Subject: [PATCH] macsig: call updated ossl_prov_set_macctx function Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27923) --- providers/implementations/signature/mac_legacy_sig.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/providers/implementations/signature/mac_legacy_sig.c b/providers/implementations/signature/mac_legacy_sig.c index b25a74506ab..92132b79ec7 100644 --- a/providers/implementations/signature/mac_legacy_sig.c +++ b/providers/implementations/signature/mac_legacy_sig.c @@ -122,12 +122,11 @@ static int mac_digest_sign_init(void *vpmacctx, const char *mdname, void *vkey, engine = (char *)ENGINE_get_id(pmacctx->key->cipher.engine); #endif - if (!ossl_prov_set_macctx(pmacctx->macctx, NULL, + if (!ossl_prov_set_macctx(pmacctx->macctx, (char *)ciphername, (char *)mdname, (char *)engine, - pmacctx->key->properties, - NULL, 0)) + pmacctx->key->properties)) return 0; if (!EVP_MAC_init(pmacctx->macctx, pmacctx->key->priv_key, -- 2.47.2