]> git.kaiwu.me - haproxy.git/commit
BUILD: ssl: disable the TLS1.3 session timeout clamp on wolfSSL
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 18 Aug 2026 12:01:55 +0000 (12:01 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 18 Aug 2026 12:06:17 +0000 (14:06 +0200)
commit379a07153a80d0c276e5956f5fe18b530b03fbe2
tree0b19f294002b5df92a8f2f37dfad6c7f847b5654
parent819b73ce0a8a93f10d0b283e3c9343ebdc429601
BUILD: ssl: disable the TLS1.3 session timeout clamp on wolfSSL

wolfSSL's OpenSSL compat layer declares wolfSSL_get_SSL_CTX() (aka
SSL_get_SSL_CTX()) taking a non-const WOLFSSL*, unlike OpenSSL's
const-correct SSL_get_SSL_CTX(const SSL *ssl). Calling it from
ssl_sock_infocbk(), which only has a const SSL *, fails the build:

  src/ssl_sock.c:1772:60: error: passing 'const SSL *' (aka 'const
  struct WOLFSSL *') to parameter of type 'WOLFSSL *' (aka 'struct
  WOLFSSL *') discards qualifiers
  [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

Beyond the build failure, the clamp itself doesn't appear to behave
correctly against wolfSSL's TLS1.3 session/ticket handling, so skip
the whole thing on wolfSSL builds instead of only working around the
compile error.

Must be backported in every stable branches along with 9f1d590
("BUG/MEDIUM: ssl: enforce tune.ssl.lifetime across TLS1.3 session
renewals")
src/ssl_sock.c