]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl/cli: replace the default_ctx during 'commit ssl cert'
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 4 Nov 2019 16:56:13 +0000 (17:56 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 4 Nov 2019 17:16:53 +0000 (18:16 +0100)
commit21724f0807ba089aacb2be3b7725032bbd191554
tree3db8ef2f72b2af4fc424ebcc454fc74beb3550ec
parent3246d9466a4accad62ee22e348dda709d65077af
MINOR: ssl/cli: replace the default_ctx during 'commit ssl cert'

If the SSL_CTX of a previous instance (ckch_inst) was used as a
default_ctx, replace the default_ctx of the bind_conf by the first
SSL_CTX inserted in the SNI tree.

Use the RWLOCK of the sni tree to handle the change of the default_ctx.
include/types/ssl_sock.h
src/ssl_sock.c