]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: ssl: kill a build warning introduced by BoringSSL compatibility
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Jan 2017 16:25:20 +0000 (17:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jan 2017 16:56:20 +0000 (17:56 +0100)
commite3e326d9f048a001bc848ca0638faf3d806e8b04
treec848c0ef495aff57e8e72e82a5196252754537f7
parent77d88da7e1be29ff1ba5cd4634e2997060d30b2b
BUILD: ssl: kill a build warning introduced by BoringSSL compatibility

A recent patch to support BoringSSL caused this warning to appear on
OpenSSL 1.1.0 :
   src/ssl_sock.c:3062:4: warning: statement with no effect [-Wunused-value]

It's caused by SSL_CTX_set_ecdh_auto() which is now only a macro testing
that the last argument is zero, and the result is not used here. Let's
just kill it for both versions.

Tested with 0.9.8, 1.0.0, 1.0.1, 1.0.2, 1.1.0. This fix may be backported
to 1.7 if the boringssl fix is as well.
include/proto/openssl-compat.h
src/ssl_sock.c