]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: Store 'ocsp-update' mode in the ckch_data and check for inconsistencies
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 20 Dec 2022 10:11:11 +0000 (11:11 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 21 Dec 2022 10:21:07 +0000 (11:21 +0100)
commitfb2b9988e84c6d79a1672b8895830bceda20622d
tree79a5de3894887f2601c729dfb2acad043debb665
parent03c5ffff8ed173b496156e8b3c6a1164918187a9
MINOR: ssl: Store 'ocsp-update' mode in the ckch_data and check for inconsistencies

The 'ocsp-update' option is parsed at the same time as all the other
bind line options but it does not actually have anything to do with the
bind line since it concerns the frontend certificate instead. For that
reason, we should have a mean to identify inconsistencies in the
configuration and raise an error when a given certificate has two
different ocsp-update modes specified in one or more crt-lists.
The simplest way to do it is to store the ocsp update mode directly in
the ckch and not only in the ssl_bind_conf.
include/haproxy/ssl_ckch-t.h
src/ssl_crtlist.c