]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl: make ssl_sock_load_cert*() return real error codes
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2019 14:42:19 +0000 (16:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Oct 2019 13:18:52 +0000 (15:18 +0200)
commitbbc91965bf4bc7e08c5a9b93fdfa28a64c0949d3
tree72aa8e8a5fab779d52b62c28c1ee2e58bade9526
parentcd4827746940fb0d55b5e7d027747d98bb2c5f8a
CLEANUP: ssl: make ssl_sock_load_cert*() return real error codes

These functions were returning only 0 or 1 to mention success or error,
and made it impossible to return a warning. Let's make them return error
codes from ERR_* and map all errors to ERR_ALERT|ERR_FATAL for now since
this is the only code that was set on non-zero return value.

In addition some missing comments were added or adjusted around the
functions' return values.
src/ssl_sock.c