BUILD: ssl: silence a warning when building without NPN nor ALPN support

When building with a library not offering any of these, ssl_conf_cur
is not used.

Can be backported to 1.8.
This commit is contained in:
Willy Tarreau 2018-01-04 18:55:19 +01:00
parent 4a28da1e9d
commit 5d4cafb610

View File

@ -4044,7 +4044,7 @@ int ssl_sock_prepare_ctx(struct bind_conf *bind_conf, struct ssl_bind_conf *ssl_
struct proxy *curproxy = bind_conf->frontend;
int cfgerr = 0;
int verify = SSL_VERIFY_NONE;
struct ssl_bind_conf *ssl_conf_cur;
struct ssl_bind_conf __maybe_unused *ssl_conf_cur;
const char *conf_ciphers;
const char *conf_curves = NULL;