mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-20 17:43:32 +02:00
CLEANUP: ssl-sock: use HA_OPENSSL_VERSION_NUMBER instead of OPENSSL_VERSION_NUMBER
Most tests on OPENSSL_VERSION_NUMBER have become complex and break all the time because this number is fake for some derivatives like LibreSSL. This patch creates a new macro, HA_OPENSSL_VERSION_NUMBER, which will carry the real openssl version defining the compatibility level, and this version will be adjusted depending on the variants.
This commit is contained in:
@@ -1002,7 +1002,7 @@ static int cli_io_handler_show_fd(struct appctx *appctx)
|
||||
(fdt.iocb == poller_pipe_io_handler) ? "poller_pipe_io_handler" :
|
||||
(fdt.iocb == mworker_accept_wrapper) ? "mworker_accept_wrapper" :
|
||||
#ifdef USE_OPENSSL
|
||||
#if (OPENSSL_VERSION_NUMBER >= 0x1010000fL) && !defined(OPENSSL_NO_ASYNC) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
#if (HA_OPENSSL_VERSION_NUMBER >= 0x1010000fL) && !defined(OPENSSL_NO_ASYNC) && !defined(LIBRESSL_VERSION_NUMBER)
|
||||
(fdt.iocb == ssl_async_fd_free) ? "ssl_async_fd_free" :
|
||||
(fdt.iocb == ssl_async_fd_handler) ? "ssl_async_fd_handler" :
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user