MINOR: ssl/cli: rework the 'set ssl cert' IO handler
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 28 Oct 2019 13:30:47 +0000 (14:30 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 28 Oct 2019 13:57:37 +0000 (14:57 +0100)
commit430413e2854a128df4e043e626eda83520b76762
tree219b57effe098c8682e2751acba2b7de5840ffda
parent1212db417b198820ab14c754dc847a46a48698a0
MINOR: ssl/cli: rework the 'set ssl cert' IO handler

Rework the 'set ssl cert' IO handler so it is clearer.
Use its own SETCERT_ST_* states insted of the STAT_ST ones.

Use an inner loop in SETCERT_ST_GEN and SETCERT_ST_INSERT to do the work
for both the certificate and the bundle.

The io_release() is now called only when the CKCH spinlock is taken so
we can unlock during a release without any condition.
src/ssl_sock.c