Adapt HMAC to the EVP_MD_CTX changes
authorRichard Levitte <levitte@openssl.org>
Fri, 27 Nov 2015 13:10:15 +0000 (14:10 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 7 Dec 2015 16:36:57 +0000 (17:36 +0100)
commitfa0c23de83efaf92da17cffce12444adbca48c89
treeeabc5d551793512d436f4cecd34c24bd82c3505b
parent77a01145be26ceeefa6870e1e9dd7f99ac123fa3
Adapt HMAC to the EVP_MD_CTX changes

This change required some special treatment, as HMAC is intertwined
with EVP_MD.  For now, all local HMAC_CTX variables MUST be
initialised with HMAC_CTX_EMPTY, or whatever happens to be on the
stack will be mistaken for actual pointers to EVP_MD_CTX.  This will
change as soon as HMAC_CTX becomes opaque.

Also, since HMAC_CTX_init() can fail now, its return type changes from
void to int, and it will return 0 on failure, 1 on success.

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/speed.c
crypto/engine/eng_openssl.c
crypto/evp/p5_crpt2.c
crypto/hmac/hm_pmeth.c
crypto/hmac/hmac.c
crypto/pkcs12/p12_mutl.c
include/openssl/hmac.h
ssl/statem/statem_srvr.c
ssl/t1_lib.c
test/hmactest.c