From dbde4726889a19af0a718fe9c5542f39c81acbd3 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 14 Jan 2020 12:11:50 +1000 Subject: Deprecate the low level HMAC functions Use of the low level HMAC functions has been informally discouraged for a long time. We now formally deprecate them. Applications should instead use EVP_MAC_CTX_new(3), EVP_MAC_CTX_free(3), EVP_MAC_init(3), EVP_MAC_update(3) and EVP_MAC_final(3). Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/10836) --- crypto/hmac/hmac.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crypto/hmac/hmac.c') diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index a94550a37a..37bd7e6726 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -7,6 +7,12 @@ * https://www.openssl.org/source/license.html */ +/* + * HMAC low level APIs are deprecated for public use, but still ok for internal + * use. + */ +#include "internal/deprecated.h" + #include #include #include -- cgit v1.2.3