libcrypto: Skip unneccessary call to ENGINE_cleanup in OSSL>1.1

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
Jakub Jelen
2022-08-24 14:08:07 +02:00
parent 382ff38caa
commit f721ee847b

View File

@@ -1393,8 +1393,8 @@ void ssh_crypto_finalize(void)
return;
}
ENGINE_cleanup();
#if OPENSSL_VERSION_NUMBER < 0x10100000L
ENGINE_cleanup();
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */