]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl: exclude wolfSSL from custom extension support
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 18 Nov 2026 10:33:35 +0000 (10:33 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 18 Nov 2026 10:34:44 +0000 (10:34 +0000)
commitb6daef35e5d9f52e556a767975b7930ab37b9aa7
tree87021fcbbd144129d6a69fec0893704f0eaf957f
parent1b54817a7c15faac3c981adba2bbb8a7a308d477
BUG/MINOR: ssl: exclude wolfSSL from custom extension support

wolfSSL provides SSL_CTX_add_server_custom_ext() as a stub which always
returns zero. Do not advertise HAVE_SSL_CTX_ADD_SERVER_CUSTOM_EXT when
building with wolfSSL.

Since 8957622353 ("BUG/MEDIUM: ssl: fix an out-of-bounds read on SSL_CTX
switch with a .sctl file"), the extension is registered on every frontend
context. Calling the stub therefore makes certificate loading fail even
when no .sctl file is present.

Exclude wolfSSL from the capability guard while keeping the OpenSSL
registration unchanged.

Verified an ERR=1 build against wolfSSL 5.7.0, the verifyhost_san VTest,
and live TLS requests using all three certificates from that test.

This must be backported to all supported versions.
include/haproxy/openssl-compat.h