Ensure that both the MD and key have been initialised before attempting to
authorMatt Caswell <matt@openssl.org>
Tue, 10 Feb 2015 11:39:52 +0000 (11:39 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 25 Mar 2015 13:01:04 +0000 (13:01 +0000)
commit2674af2f790aa1c869dcf5f2024e9eb6758edf56
tree716b61b736e9921f516799b00590fe6bdc55429a
parentbae9b9915a302f2f6a9146287d761e55cf458351
Ensure that both the MD and key have been initialised before attempting to
create an HMAC

Inspired by BoringSSL commit 2fe7f2d0d9a6fcc75b4e594eeec306cc55acd594

Reviewed-by: Richard Levitte <levitte@openssl.org>
Conflicts:
crypto/hmac/hmac.c
crypto/hmac/hmac.c
crypto/hmac/hmac.h