mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
BUILD: ssl: more cleaner approach to WolfSSL without renegotiation
Patch discussed in https://github.com/wolfSSL/wolfssl/issues/6834 When building Wolfssl without renegotiation options, WolfSSL still defines the macros about it, which warns during the build. This patch completes the previous one by undefining the macros so haproxy could build without any warning.
This commit is contained in:
parent
c6a8279cdf
commit
b43e5d8c16
@ -418,8 +418,11 @@ static inline unsigned long ERR_peek_error_func(const char **func)
|
||||
#endif
|
||||
|
||||
/* needs OpenSSL >= 0.9.7 and renegotation options on WolfSSL */
|
||||
#if !defined(SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION) && !defined(HAVE_SECURE_RENEGOTIATION) && !defined(HAVE_SERVER_RENEGOTIATION_INFO)
|
||||
#if !defined(SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION) || \
|
||||
(defined(USE_OPENSSL_WOLFSSL) && !defined(HAVE_SECURE_RENEGOTIATION) && !defined(HAVE_SERVER_RENEGOTIATION_INFO))
|
||||
#undef SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION
|
||||
#define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION 0
|
||||
#undef SSL_renegotiate_pending
|
||||
#define SSL_renegotiate_pending(arg) 0
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user