diff options
author | Pauli <ppzgs1@gmail.com> | 2021-02-25 13:52:06 +1000 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-28 17:25:49 +1000 |
commit | 91593b37840067c588ce38bc628922d4b3400917 (patch) | |
tree | ffe8eff72a57ed44f83ea8d0fca21d50ad6b84b5 | |
parent | 19ea8a8a215c2fc637b3e3664c75fc0636189459 (diff) |
prov: use new MAC_init arguments in signature legacy code
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14310)
-rw-r--r-- | providers/implementations/signature/mac_legacy.c | 6 |
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; |