Fix EVP_PKEY_new_mac_key()
authorMatt Caswell <matt@openssl.org>
Wed, 18 Mar 2020 14:46:33 +0000 (14:46 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 25 Mar 2020 10:56:35 +0000 (10:56 +0000)
commit129c22840ee73c0c6cb1e5ed629fa361b688e537
treed26068b05654561809d44450882b21761a5abb6e
parent5f1adadce1a7199507b6cb717e2e30261b0d02f5
Fix EVP_PKEY_new_mac_key()

EVP_PKEY_new_mac_key() was failing if the specified MAC was not available
in the default provider - even though that MAC is never actually needed
to successfully complete the function. The resulting EVP_PKEY can then
be used in some non-default libctx which *does* have the MAC loaded.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11360)
crypto/evp/pkey_mac.c