commit | bbc91965bf4bc7e08c5a9b93fdfa28a64c0949d3 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Oct 16 16:42:19 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Oct 18 15:18:52 2019 +0200 |
tree | 72aa8e8a5fab779d52b62c28c1ee2e58bade9526 | |
parent | cd4827746940fb0d55b5e7d027747d98bb2c5f8a [diff] |
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.