MINOR: ssl: Add "del ssl ca-file" CLI command
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 25 Mar 2021 17:13:57 +0000 (18:13 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 17 May 2021 08:50:24 +0000 (10:50 +0200)
commitc3a8477776a10f0289efff763173ad9ce708bb15
tree00aa679a9a2e6b39fe42483ca83e9a3b0554f940
parent9f40fe02026440e513ff0f377f8bd18a72e5eff0
MINOR: ssl: Add "del ssl ca-file" CLI command

This patch adds the "del ssl ca-file <cafile>" CLI command which can be
used to delete an unused CA file.
The CA file will be considered unused if its list of ckch instances is
empty. This command cannot be used to delete the uncommitted CA file of
a previous "set ssl ca-file" without commit. It only acts on
CA file entries already inserted in the CA file tree.

This fixes a subpart of GitHub issue #1057.
src/ssl_ckch.c