]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: ssl: make ssl_sock_load_dh_params handle errcode/warn
authorEmeric Brun <ebrun@haproxy.com>
Thu, 17 Oct 2019 11:27:40 +0000 (13:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Oct 2019 13:18:52 +0000 (15:18 +0200)
commit7a88336cf83cd1592fb8e7bc456d72c00c2934e4
tree130526c4aee01ca5cb24ee6c0015f3cbc90c9698
parenta96b582d0eaf1a7a9b21c71b8eda2965f74699d4
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.
src/ssl_sock.c