]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: ssl: lookup and store in a ckch_node tree
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 23 Jul 2019 13:00:54 +0000 (15:00 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 29 Jul 2019 13:28:46 +0000 (15:28 +0200)
commit6af03991dacb3db5860c67cf2156d87f720c8d21
tree70dfb7de322cd868364a7ffbb00f5ebcb37e43e3
parent36b8463777c8b39c3cddecc9b38279b704bac35f
MEDIUM: ssl: lookup and store in a ckch_node tree

Don't read a certificate file again if it was already stored in the
ckchn tree. It allows HAProxy to start more quickly if the same
certificate is used at different places in the configuration.

HAProxy lookup in the ssl_sock_load_cert() function, doing it at this
level allows to skip the reading of the certificate in the filesystem.

If the certificate is not found in the tree, we insert the ckch_node in
the tree once the certificate is read on the filesystem, the filename or
the bundle name is used as the key.
src/ssl_sock.c