projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a28da1
)
BUILD: ssl: silence a warning when building without NPN nor ALPN support
author
Willy Tarreau
<w@1wt.eu>
Thu, 4 Jan 2018 17:55:19 +0000
(18:55 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 4 Jan 2018 18:04:08 +0000
(19:04 +0100)
When building with a library not offering any of these, ssl_conf_cur
is not used.
Can be backported to 1.8.
src/ssl_sock.c
patch
|
blob
|
history
diff --git
a/src/ssl_sock.c
b/src/ssl_sock.c
index
f9d5f25
..
163b6a1
100644
(file)
--- a/
src/ssl_sock.c
+++ b/
src/ssl_sock.c
@@
-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;