MINOR: ssl/cli: restrain certificate path when inserting into a directory
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 21 Apr 2020 16:29:12 +0000 (18:29 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 21 Apr 2020 16:42:42 +0000 (18:42 +0200)
commit916d0b523d6ab11db9f8b2589a05422c6a21bfea
tree083a251660c9c534c32adbf1d46a800338bd84be
parentb74d5640430a4122fe22c816f1790745147c0a22
MINOR: ssl/cli: restrain certificate path when inserting into a directory

When trying to insert a new certificate into a directory with "add ssl
crt-list", no check were done on the path of the new certificate.

To be more consistent with the HAProxy reload, when adding a file to
a crt-list, if this crt-list is a directory, the certificate will need
to have the directory in its path.
src/ssl_sock.c