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

This commit is contained in:
David CARLIER 2021-09-11 20:54:09 +01:00 committed by GitHub
parent d7fa44f4da
commit 418c2e7931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}