]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
macsig: call updated ossl_prov_set_macctx function
authorPauli <ppzgs1@gmail.com>
Wed, 16 Jul 2025 08:09:54 +0000 (18:09 +1000)
committerTomas Mraz <tomas@openssl.org>
Thu, 31 Jul 2025 18:21:25 +0000 (20:21 +0200)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27923)

providers/implementations/signature/mac_legacy_sig.c

index b25a74506ab02b5c18a52a2ef9e046a0c83834af..92132b79ec7731d71f150447a56275b4cba6f11e 100644 (file)
@@ -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,