CLEANUP: ssl: make ssl_sock_load_dh_params handle errcode/warn

ssl_sock_load_dh_params used to return >0 or -1 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, this is the only code returned
for now. An error message was added in the case of failure and the
comment was updated.

(cherry picked from commit 7a88336cf83cd1592fb8e7bc456d72c00c2934e4)
Signed-off-by: Emeric Brun <ebrun@haproxy.com>
1 file changed