]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ssl: report FIPS mode in -vv for OpenSSL >= 3.0 too
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Aug 2026 13:51:11 +0000 (13:51 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 13 Aug 2026 14:08:06 +0000 (16:08 +0200)
commit3914af44e0bbc529d431f65bf9e4809f2944d4bf
treec51edf4c22c17e34dfe2de4139ddae10fd052179
parent3a853db582eefdb09941da24cf1acd09e2dd512e
MINOR: ssl: report FIPS mode in -vv for OpenSSL >= 3.0 too

The "SSL library FIPS mode" line in "haproxy -vv" was only computed
for SSL libraries implementing the legacy FIPS_mode() API (OpenSSL
1.0.x/1.1.x and compatible libraries such as AWS-LC), and silently
omitted for OpenSSL 3.0 and above.

Use the openssl_fips_mode() helper introduced for the fips_mode()
config condition predicate instead of calling FIPS_mode() directly:
it also covers OpenSSL >= 3.0 via
EVP_default_properties_is_fips_enabled(), and reports "no" rather
than omitting the line entirely for any SSL library supporting
neither API. The line is now unconditionally printed.
src/ssl_sock.c