]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl-sock: use HA_OPENSSL_VERSION_NUMBER instead of OPENSSL_VERSION_NUMBER
authorWilly Tarreau <w@1wt.eu>
Thu, 9 May 2019 11:26:41 +0000 (13:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 9 May 2019 12:25:43 +0000 (14:25 +0200)
commit9a1ab081607984bf3bfd2a7f8bf411ad0c19cd0f
tree0d4ba095719f04fb01b7592074808b7cd4e03619
parentaffd1b980aa03be038e2d4504ec8b0bad7ea253d
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.
include/proto/openssl-compat.h
include/proto/ssl_sock.h
include/types/listener.h
include/types/server.h
include/types/ssl_sock.h
src/backend.c
src/cli.c
src/haproxy.c
src/server.c
src/ssl_sock.c