]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl/cli: support crt-list filters
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 4 Dec 2019 14:39:35 +0000 (15:39 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 5 Mar 2020 10:27:53 +0000 (11:27 +0100)
commit38df1c8006a2adf97f4ad5a183f80cfdcba3da8a
tree7cb98217e6cdc2457addb52d28cb29543918242d
parentf4629a5346ea341026e908792a6b31e98022faa1
MINOR: ssl/cli: support crt-list filters

Generate a list of the previous filters when updating a certificate
which use filters in crt-list. Then pass this list to the function
generating the sni_ctx during the commit.

This feature allows the update of the crt-list certificates which uses
the filters with "set ssl cert".

This function could be probably replaced by creating a new
ckch_inst_new_load_store() function which take the previous sni_ctx list as
an argument instead of the char **sni_filter, avoiding the
allocation/copy during runtime for each filter. But since are still
handling the multi-cert bundles, it's better this way to avoid code
duplication.
include/types/ssl_sock.h
src/ssl_sock.c