From eb40fb60ae495a9e15dc7a5f095ebd56a35546a1 Mon Sep 17 00:00:00 2001 From: Norbert Pocs Date: Wed, 5 Oct 2022 15:40:27 +0200 Subject: [PATCH] libcrypto.c: Remove no longer supported openssl versions As openssl 1.1.0, 1.0.2, 1.0.1, 1.0.0 and 0.9.8 are no longer supported let's remove them. Signed-off-by: Norbert Pocs Reviewed-by: Jakub Jelen Reviewed-by: Andreas Schneider --- src/libcrypto.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libcrypto.c b/src/libcrypto.c index 5404d8b7..92c33234 100644 --- a/src/libcrypto.c +++ b/src/libcrypto.c @@ -1394,9 +1394,6 @@ int ssh_crypto_init(void) OPENSSL_ia32cap &= ~(1LL << 57); } #endif /* CAN_DISABLE_AESNI */ -#if OPENSSL_VERSION_NUMBER < 0x10100000L - OpenSSL_add_all_algorithms(); -#endif /* OPENSSL_VERSION_NUMBER */ #if !defined(HAVE_OPENSSL_EVP_CHACHA20) || !defined(HAVE_OPENSSL_EVP_POLY1305) for (i = 0; ssh_ciphertab[i].name != NULL; i++) { @@ -1438,12 +1435,6 @@ void ssh_crypto_finalize(void) } #endif -#if OPENSSL_VERSION_NUMBER < 0x10100000L - ENGINE_cleanup(); - EVP_cleanup(); - CRYPTO_cleanup_all_ex_data(); -#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */ - libcrypto_initialized = 0; }