MEDIUM: ssl/cli: apply SSL configuration on SSL_CTX during commit
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 21 Nov 2019 15:30:34 +0000 (16:30 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 21 Nov 2019 16:48:11 +0000 (17:48 +0100)
commit8ef0c2a5699c5c7fe559fb357594cb23fcd160bf
treeae15809d10933a943e3c7083034546b5f4ad2729
parent8b453912ce9a4e1a3b1329efb2af04d1e470852e
MEDIUM: ssl/cli: apply SSL configuration on SSL_CTX during commit

Apply the configuration of the ssl_bind_conf on the generated SSL_CTX.
It's a little bit hacky at the moment because the ssl_sock_prepare_ctx()
function was made for the configuration parsing, not for being using at
runtime. Only the 'verify' bind keyword seems to cause a file access so
we prevent it before calling the function.
src/ssl_sock.c