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 12:58:53 +0000 (12:58 +0000)
commit929b0d70c19f60227f89fac63f22a21f21950823
tree2ff081dfcfa9fcf5de5e0a5eb91cce1b538e5007
parentb7279ed55c8bc11f78123f987e46f7772bd2047c
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