]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl/cli: certs added from the CLI can't be deleted
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 23 Jun 2020 23:00:52 +0000 (01:00 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 23 Jun 2020 23:00:52 +0000 (01:00 +0200)
commit9ab8f8d1b6a6a6cf3277f88d2b808057de1cd0e2
treef7112dcbc57036a6d568718b670df9c1d362c638
parent82d877dd021791788da555910c2055f23e0c4187
BUG/MINOR: ssl/cli: certs added from the CLI can't be deleted

In ticket #706 it was reported that a certificate which was added from
the CLI can't be removed with 'del ssl cert' and is marked as 'Used'.

The problem is that the certificate instances are not added to the
created crtlist_entry, so they can't be deleted upon a 'del ssl
crt-list', and the store can't never be marked 'Unused' because of this.

This patch fixes the issue by adding the instances to the crtlist_entry,
which is enough to fix the issue.
src/ssl_crtlist.c