MINOR: cli/ssl: handle trailing slashes in crt-list commands
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 25 Jun 2020 13:19:51 +0000 (15:19 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 25 Jun 2020 13:40:10 +0000 (15:40 +0200)
commit99cc21851fbdcc3331250e14f17c0df860518c54
tree6809d2b32ec27dc7b0f6c033655bf7612e15ce5f
parentc54e5ad9cc60bc81ffdcd31e7d4d007d4bd592e1
MINOR: cli/ssl: handle trailing slashes in crt-list commands

Trailing slashes were not handled in crt-list commands on CLI which can
be useful when you use the commands with a directory.

Strip the slashes before looking for the crtlist in the tree.
reg-tests/ssl/add_ssl_crt-list.vtc
src/ssl_crtlist.c