CLEANUP: ssl: make ssl_sock_load_ckchs() return a set of ERR_*
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2019 15:06:25 +0000 (17:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Oct 2019 13:18:52 +0000 (15:18 +0200)
commit8c5414a546c2191deeda475aa58e9b50961c8e06
treeed03d1df8902c7a12a4efa07c3e4a972e878854c
parentbbc91965bf4bc7e08c5a9b93fdfa28a64c0949d3
CLEANUP: ssl: make ssl_sock_load_ckchs() return a set of ERR_*

ssl_sock_load_ckchs() used to return 0 or >0 to indicate success or
failure even though this was not documented. 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,
this is the only code returned for now. And a comment was added.
src/ssl_sock.c