]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: openssl-compat: fix build failure with OPENSSL=0 and KTLS=1
authorWilly Tarreau <w@1wt.eu>
Fri, 24 Oct 2025 08:42:06 +0000 (10:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Oct 2025 08:45:02 +0000 (10:45 +0200)
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.

include/haproxy/openssl-compat.h

index ffced37cdbbcb9760b1c0e6923815deb84cd906c..8ff7872cebf5f1711e78145e2160c7b560258102 100644 (file)
@@ -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 */