]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: Call callback function after loading SSL CRL data
authorMiroslav Zagorac <mzagorac@haproxy.com>
Fri, 23 Feb 2024 02:24:29 +0000 (03:24 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 23 Feb 2024 17:12:27 +0000 (18:12 +0100)
commit3f771f5118fb028489603d72e1dc9486fcc61a52
tree3b266c0eb5d04219b9a52ada89b1259f829436e1
parentba9f905da978afafb81ceb4277af2a886e6ca616
MINOR: ssl: Call callback function after loading SSL CRL data

Due to the possibility of calling a control process after adding CRLs, the
ssl_commit_crlfile_cb variable was added.  It is actually a pointer to the
callback function, which is called if defined after initial loading of CRL
data from disk and after committing CRL data via CLI command
'commit ssl crl-file ..'.

If the callback function returns an error, then the CLI commit operation
is terminated.

Also, one case was added to the CLI context used by "commit cafile" and
"commit crlfile": CACRL_ST_CRLCB in which the callback function is called.

Signed-off-by: William Lallemand <wlallemand@haproxy.com>
include/haproxy/ssl_ckch.h
src/ssl_ckch.c