CLEANUP: ssl: make ckch_inst_new_load_(multi_)store handle errcode/warn
authorEmeric Brun <ebrun@haproxy.com>
Thu, 17 Oct 2019 11:16:58 +0000 (13:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Oct 2019 13:18:52 +0000 (15:18 +0200)
commit054563de13836ca9926db1ea8dac8e251ac43d7b
tree0818a3f8f2bd3e7bd33e78e95de23df5bccf52e0
parentf69ed1d21c9f65b4b87303267a8a4d88ab5101d8
CLEANUP: ssl: make ckch_inst_new_load_(multi_)store handle errcode/warn

ckch_inst_new_load_store() and ckch_inst_new_load_multi_store used to
return 0 or >0 to indicate success or failure. Make it return a set of
ERR_* instead so that its callers can transparently report its status.
Given that its callers only used to know about ERR_ALERT | ERR_FATAL,
his is the only code returned for now. And the comment was updated.
src/ssl_sock.c