Correctly check the return code of EVP_MAC_ctrl everwhere it is used
authorMatt Caswell <matt@openssl.org>
Tue, 26 Mar 2019 12:11:12 +0000 (12:11 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 27 Mar 2019 14:31:56 +0000 (14:31 +0000)
commit17838470617afd50813a66adcebad2e6e17de79c
treedb2ab932b6b858e87517d46e3b0d839c413d27b1
parent183f52e29af27285ea4ed7c947b71c83618f8702
Correctly check the return code of EVP_MAC_ctrl everwhere it is used

EVP_MAC_ctrl is documented to return 0 or -1 on failure. Numerous places
were not getting this check correct.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/8584)
crypto/evp/pkey_mac.c
crypto/kdf/sskdf.c
crypto/modes/siv128.c