]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: ssl: strchr definition changed in C23
authorWilliam Lallemand <wlallemand@irq6.net>
Wed, 7 Jan 2026 13:31:30 +0000 (14:31 +0100)
committerWilliam Lallemand <wlallemand@irq6.net>
Wed, 7 Jan 2026 13:51:26 +0000 (14:51 +0100)
commit5322bd3785353194afb384c18e1f92cffd52f613
tree557a4d9690884ef6690d877f584b6e254b84689f
parent71b00a945d95b92f1abf315403c29cf1fbff9e59
BUILD: ssl: strchr definition changed in C23

New gcc and clang versions from fedora rawhide seems to use the C23
standard by default. This version changes the definition of some
string.h functions, which now return a const char * instead of a char *.

src/ssl_sock.c: In function ‘SSL_CTX_keylog’:
src/ssl_sock.c:4475:17: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
 4475 |         lastarg = strrchr(line, ' ');

Strangely, -Wdiscarded-qualifiers does not seem to catch all the
strrchr.

Should fix issue #3228.

This could be backported in previous versions.
src/ssl_sock.c