summaryrefslogtreecommitdiffstats
path: root/crypto/evp/legacy_ripemd.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-09 09:08:31 +1000
committerPauli <paul.dale@oracle.com>2020-01-12 12:00:31 +1000
commit601fca1778f8d3cb38031655d2aa01b91b8f0cde (patch)
tree651fb601498df124cfba7443d029eae278067192 /crypto/evp/legacy_ripemd.c
parent65167dba890b2e92821ee3b90e8f7f46fa30f9c1 (diff)
Deprecate the low level RIPEMD160 functions.
Use of the low level RIPEMD160 functions has been informally discouraged for a long time. We now formally deprecate them. Applications should instead use the EVP APIs, e.g. EVP_Digest, EVP_DigestInit_ex, EVP_DigestUpdate and EVP_DigestFinal_ex. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/10789)
Diffstat (limited to 'crypto/evp/legacy_ripemd.c')
-rw-r--r--crypto/evp/legacy_ripemd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/evp/legacy_ripemd.c b/crypto/evp/legacy_ripemd.c
index 8edcbba371..fd1739c7cd 100644
--- a/crypto/evp/legacy_ripemd.c
+++ b/crypto/evp/legacy_ripemd.c
@@ -7,6 +7,12 @@
* https://www.openssl.org/source/license.html
*/
+/*
+ * RIPEMD160 low level APIs are deprecated for public use, but still ok for
+ * internal use.
+ */
+#include "internal/deprecated.h"
+
#include <openssl/ripemd.h>
#include "crypto/evp.h"
#include "legacy_meth.h"