CLEANUP: ssl/server: move ssl_sock_set_srv() to srv_set_ssl() in server.c
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 09:48:34 +0000 (11:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Oct 2021 23:41:06 +0000 (01:41 +0200)
commita8a72c68d513cdd906d83e394396515f7cf885f3
treeeb49d253211d0e3752aeee2d87272f4d6a2f09c6
parentd2ae3858e94e5970bfef26a8e576825fcca2d300
CLEANUP: ssl/server: move ssl_sock_set_srv() to srv_set_ssl() in server.c

This one has nothing to do with ssl_sock as it manipulates the struct
server only. Let's move it to server.c and remove unneeded dependencies
on ssl_sock.h. This further reduces by 10% the number of includes of
opensslconf.h and by 0.5% the number of compiled lines.
include/haproxy/server.h
include/haproxy/ssl_sock.h
src/server.c
src/server_state.c
src/ssl_sock.c