Add missing entries in ssl_mac_pkey_id
authorMatt Caswell <matt@openssl.org>
Mon, 14 Jan 2019 16:36:33 +0000 (16:36 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 15 Jan 2019 11:40:39 +0000 (11:40 +0000)
Fixes #8005

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/8020)

ssl/ssl_ciph.c

index bd97c0fdab3a820abe80c9555e8743e9b9551eac..461a9debab4c1ef2a5dfdedde42a318ed037c86f 100644 (file)
@@ -171,6 +171,8 @@ static int ssl_mac_pkey_id[SSL_MD_NUM_IDX] = {
     EVP_PKEY_HMAC, EVP_PKEY_HMAC, EVP_PKEY_HMAC, NID_undef,
     /* GOST2012_512 */
     EVP_PKEY_HMAC,
+    /* MD5/SHA1, SHA224, SHA512 */
+    NID_undef, NID_undef, NID_undef
 };
 
 static size_t ssl_mac_secret_size[SSL_MD_NUM_IDX];