MINOR: ssl/cli: support filters and options in add ssl crt-list
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 1 Apr 2020 15:32:46 +0000 (17:32 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 1 Apr 2020 18:10:53 +0000 (20:10 +0200)
commitc7c7a6b39f8e35be0bd215a251c0a22fd58c257d
tree0266a4aa9de8099872be197cccadc5c601dca573
parent97b0810f4c4034ea160d2c4f636c780f552570c0
MINOR: ssl/cli: support filters and options in add ssl crt-list

Add the support for filters and SSL options in the CLI command
"add ssl crt-list".

The feature was implemented by applying the same parser as the crt-list
file to the payload.

The new options are passed to the command as a payload with the same
format that is suppported by the crt-list file itself, so you can easily
copy a line from a file and push it via the CLI.

Example:
  printf "add ssl crt-list localhost.crt-list <<\necdsa.pem [verify none allow-0rtt] localhost !www.test1.com\n\n" | socat /tmp/sock1 -
src/ssl_sock.c