TLS build fix on OpenBSD when built with LibreSSL. (#9486)

(cherry picked from commit 418c2e79313b367e64e47d38edd59f9f22a3b4fa)
This commit is contained in:
David CARLIER 2021-09-11 20:54:09 +01:00 committed by Oran Agra
parent 23ed37dd87
commit 4cbccab2bd

View File

@ -176,7 +176,8 @@ void tlsCleanup(void) {
redis_tls_client_ctx = NULL;
}
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
// unavailable on LibreSSL
OPENSSL_cleanup();
#endif
}