Handle mdname in legacy EVP_DigestSignInit_ex codepaths
authorMatt Caswell <matt@openssl.org>
Mon, 16 Mar 2020 16:04:12 +0000 (16:04 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 23 Mar 2020 11:09:49 +0000 (11:09 +0000)
commit55ca81259a63286a88dd1f53ef14f7830f444c7e
tree691c5a2ccdadaf0c34594040706ffb86cd7c362b
parenta45694a3567ce8de754cffa7b450c22578ebdd6c
Handle mdname in legacy EVP_DigestSignInit_ex codepaths

Even though an application callS the new EVP_DigestSignInit_ex()
function to pass an mdname by string rather than EVP_MD, we may still end
up in legacy codepaths, and therefore we need to handle either mdname or
EVP_MD, in both legacy and non-legacy codepaths.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11353)
crypto/evp/m_sigver.c