summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/signature/mac_legacy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/providers/implementations/signature/mac_legacy.c b/providers/implementations/signature/mac_legacy.c
index 2386583069..fb99221f08 100644
--- a/providers/implementations/signature/mac_legacy.c
+++ b/providers/implementations/signature/mac_legacy.c
@@ -117,11 +117,11 @@ static int mac_digest_sign_init(void *vpmacctx, const char *mdname, void *vkey)
(char *)mdname,
(char *)engine,
pmacctx->key->properties,
- pmacctx->key->priv_key,
- pmacctx->key->priv_key_len))
+ NULL, 0))
return 0;
- if (!EVP_MAC_init(pmacctx->macctx))
+ if (!EVP_MAC_init(pmacctx->macctx, pmacctx->key->priv_key,
+ pmacctx->key->priv_key_len, NULL))
return 0;
return 1;