]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: servers: do not include openssl-compat
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 09:23:32 +0000 (11:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:36:51 +0000 (01:36 +0200)
commit340ef2502eae2a37781e460d3590982c0e437fbd
tree1317aceec6b6d6ae211d2a68e8409723cd622b4c
parentb0d81946842e64b241ade4a9e051ac5ab9959c7c
CLEANUP: servers: do not include openssl-compat

This is exactly the same as for listeners, servers only include
openssl-compat to provide the SSL_CTX type to use as two pointers to
contexts, and to detect if NPN, ALPN, and cipher suites are supported,
and save up to 5 pointers in the ssl_ctx struct if not supported. This
is pointless, as these ones have all been supported for about a decade,
and including this file comes with a long dependency chain that impacts
lots of other files. The ctx was made a void*.

Now the build time was significantly reduced, from 9.2 to 8.1 seconds,
thanks to opensslconf.h being included "only" 456 times instead of 2424
previously!

The total number of lines of code compiled was reduced by 15%.
include/haproxy/server-t.h