mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-10-26 06:01:20 +01:00
BUILD: openssl-compat: fix build failure with OPENSSL=0 and KTLS=1
The USE_KTLS test is currently being done outside of the USE_OPENSSL guard so disabling USE_OPENSSL still results in build failures on libcs built with support for kernels before 4.17, because we enable KTLS by default on linux. Let's move the KTLS block inside the USE_OPENSSL guard instead. No backport is needed since KTLS is only in 3.3.
This commit is contained in:
parent
1824079fca
commit
2ec6df59bf
@ -553,8 +553,6 @@ static inline unsigned long ERR_peek_error_func(const char **func)
|
||||
*(cb) = (void (*) (void))ctx->tlsext_status_cb
|
||||
#endif
|
||||
|
||||
#endif /* USE_OPENSSL */
|
||||
|
||||
#ifdef USE_KTLS
|
||||
|
||||
#ifdef __linux__
|
||||
@ -585,4 +583,6 @@ static inline unsigned long ERR_peek_error_func(const char **func)
|
||||
|
||||
#endif /* USE_KTLS */
|
||||
|
||||
#endif /* USE_OPENSSL */
|
||||
|
||||
#endif /* _HAPROXY_OPENSSL_COMPAT_H */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user