]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl/cli: update pointer to store in 'commit ssl cert'
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 30 Mar 2020 17:29:45 +0000 (19:29 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 31 Mar 2020 10:32:17 +0000 (12:32 +0200)
commit90afe90681badedadb8ec486b371a2870e6eb448
tree1c03e40f8a3785aca097fa07c5b281a6f035714b
parentfa8cf0c476259407cae97b15aa02e0e61550668f
MINOR: ssl/cli: update pointer to store in 'commit ssl cert'

The crtlist_entry structure use a pointer to the store as key.
That's a problem with the dynamic update of a certificate over the CLI,
because it allocates a new ckch_store. So updating the pointers is
needed. To achieve that, a linked list of the crtlist_entry was added in
the ckch_store, so it's easy to iterate on this list to update the
pointers. Another solution would have been to rework the system so we
don't allocate a new ckch_store, but it requires a rework of the ckch
code.
src/ssl_sock.c