]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl/crtlist: split the ckch_conf loading from the crtlist line parsing
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 11 Feb 2025 14:01:33 +0000 (15:01 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 17 Feb 2025 17:26:37 +0000 (18:26 +0100)
commit69163cd63ed11d5ac922714d7a8672b4c8a38a55
tree1ac79a7bff639335fbe14a0984c67304676bd86a
parentca79ed5eefaa65fc82e1a8c1ec4308eaaadaebd1
MINOR: ssl/crtlist: split the ckch_conf loading from the crtlist line parsing

ckch_conf loading is not that simple as it requires to check
- if the cert already exists in the ckchs_tree
- if the ckch_conf is compatible with an existing cert in ckchs_tree
- if the cert is a bundle which need to load multiple ckch_store

This logic could be reuse elsewhere, so this commit introduce the new
crtlist_load_crt() function which does that.
include/haproxy/ssl_crtlist.h
src/ssl_crtlist.c