]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl: make inclusion of openssl headers safe
authorWilly Tarreau <w@1wt.eu>
Fri, 10 May 2019 07:58:43 +0000 (09:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 May 2019 07:58:43 +0000 (09:58 +0200)
commitc125cef6da5d9c5a628e266b57811e5309b363b0
tree2c0d0baba66c658f0ced8d8340e73a8be21dd2cb
parent8d164dc5684a9ccf7afa4cf0ef0bbcad290c3222
CLEANUP: ssl: make inclusion of openssl headers safe

It's always a pain to have to stuff lots of #ifdef USE_OPENSSL around
ssl headers, it even results in some of them appearing in a random order
and multiple times just to benefit form an existing ifdef block. Let's
make these headers safe for inclusion when USE_OPENSSL is not defined,
they now perform the test themselves and do nothing if USE_OPENSSL is
not defined. This allows to remove no less than 8 such ifdef blocks
and make include blocks more readable.
include/common/openssl-compat.h
include/proto/ssl_sock.h
include/types/server.h
include/types/ssl_sock.h
src/backend.c
src/checks.c
src/cli.c
src/connection.c
src/haproxy.c
src/log.c
src/stats.c