summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-14 03:11:50 +0100
committerPauli <paul.dale@oracle.com>2020-01-29 10:49:23 +0100
commitdbde4726889a19af0a718fe9c5542f39c81acbd3 (patch)
tree371afa179289e0ba48e5a5c99520b139fd0f325f /crypto/rand
parenthmac: preprocessor indentation fixes (diff)
downloadopenssl-dbde4726889a19af0a718fe9c5542f39c81acbd3.tar.xz
openssl-dbde4726889a19af0a718fe9c5542f39c81acbd3.zip
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 <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10836)
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/drbg_hmac.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/rand/drbg_hmac.c b/crypto/rand/drbg_hmac.c
index 3bda6c0d05..241619a295 100644
--- a/crypto/rand/drbg_hmac.c
+++ b/crypto/rand/drbg_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 <stdlib.h>
#include <string.h>
#include <openssl/crypto.h>