aboutsummaryrefslogtreecommitdiff
path: root/apps/speed.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-15 11:13:03 +1000
committerPauli <paul.dale@oracle.com>2020-01-19 10:14:39 +1000
commit781aa7ab63eca123ecef6eef90bbf435b881976e (patch)
tree8cf2d2f8cd42b0f90f31895d1518b1b55af0441c /apps/speed.c
parent85d843c8eccce937d073a9df7a193032478e21dd (diff)
downloadopenssl-781aa7ab63eca123ecef6eef90bbf435b881976e.zip
openssl-781aa7ab63eca123ecef6eef90bbf435b881976e.tar.gz
openssl-781aa7ab63eca123ecef6eef90bbf435b881976e.tar.bz2
Deprecate the low level MD5 functions.
Use of the low level MD5 functions has been informally discouraged for a long time. We now formally deprecate them. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10791)
Diffstat (limited to 'apps/speed.c')
-rw-r--r--apps/speed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/speed.c b/apps/speed.c
index 773bd22..dd07527 100644
--- a/apps/speed.c
+++ b/apps/speed.c
@@ -338,7 +338,7 @@ static const OPT_PAIR doit_choices[] = {
#if !defined(OPENSSL_NO_MD4) && !defined(OPENSSL_NO_DEPRECATED_3_0)
{"md4", D_MD4},
#endif
-#ifndef OPENSSL_NO_MD5
+#if !defined(OPENSSL_NO_MD5) && !defined(OPENSSL_NO_DEPRECATED_3_0)
{"md5", D_MD5},
{"hmac", D_HMAC},
#endif
@@ -623,7 +623,7 @@ static int EVP_Digest_MD4_loop(void *args)
}
#endif
-#ifndef OPENSSL_NO_MD5
+#if !defined(OPENSSL_NO_MD5) && !defined(OPENSSL_NO_DEPRECATED_3_0)
static int MD5_loop(void *args)
{
loopargs_t *tempargs = *(loopargs_t **) args;
@@ -2289,7 +2289,7 @@ int speed_main(int argc, char **argv)
}
#endif
-#ifndef OPENSSL_NO_MD5
+#if !defined(OPENSSL_NO_MD5) && !defined(OPENSSL_NO_DEPRECATED_3_0)
if (doit[D_MD5]) {
for (testnum = 0; testnum < size_num; testnum++) {
print_message(names[D_MD5], c[D_MD5][testnum], lengths[testnum],