MEDIUM: ssl: Add "new+del crl-file" CLI commands
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 26 Apr 2021 09:00:42 +0000 (11:00 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 17 May 2021 08:50:24 +0000 (10:50 +0200)
commit720e3b9f3375f32b5dadc127dcd9a4caa683630b
tree41a632d062513d0f25df7e060aaed143396a8880
parenta51b339d95d4a0349517c1a386f0bc5ebd618ff7
MEDIUM: ssl: Add "new+del crl-file" CLI commands

This patch adds the "new ssl crl-file" and "del ssl crl-file" CLI
commands.
The "new" command can be used to create a new empty CRL file that can be
filled in thanks to a "set ssl crl-file" command. It can then be used in
a new crt-list line.
The newly created CRL file is added to the CA file tree so any call to
"show ssl crl-file" will display its name.
The "del" command allows to delete an unused CRL file. A CRL file will
be considered unused if its list of ckch instances is empty. It does not
work on an uncommitted CRL file transaction created via a "set ssl
crl-file" command call.
src/ssl_ckch.c