From 42b2797e8abced593084e5cd02d8c6e5ee5ed5c5 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Sat, 6 Jun 2020 14:35:57 +0200 Subject: [PATCH] APPS: Exclude legacy algorighms from speed Legacy crypto algorithms are not provided by the default "provider" leading to a warning. Remove legacy algorithms from the set that is tested by default. The algorihms can be tested manually if selected manually and using the legacy provider. Fixes #11650 Signed-off-by: Sebastian Andrzej Siewior Reviewed-by: Matt Caswell Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/12074) --- apps/speed.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/speed.c b/apps/speed.c index f481b6b8fd..9d53bab3ac 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1995,6 +1995,15 @@ int speed_main(int argc, char **argv) if (argc == 0 && !doit[D_EVP] && !doit[D_EVP_HMAC] && !doit[D_EVP_CMAC]) { memset(doit, 1, sizeof(doit)); doit[D_EVP] = doit[D_EVP_HMAC] = doit[D_EVP_CMAC] = 0; +#if !defined(OPENSSL_NO_MDC2) && !defined(OPENSSL_NO_DEPRECATED_3_0) + doit[D_MDC2] = 0; +#endif +#if !defined(OPENSSL_NO_MD4) && !defined(OPENSSL_NO_DEPRECATED_3_0) + doit[D_MD4] = 0; +#endif +#if !defined(OPENSSL_NO_RMD160) && !defined(OPENSSL_NO_DEPRECATED_3_0) + doit[D_RMD160] = 0; +#endif #if !defined(OPENSSL_NO_RSA) && !defined(OPENSSL_NO_DEPRECATED_3_0) memset(rsa_doit, 1, sizeof(rsa_doit)); #endif -- 2.25.1