mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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.
This commit is contained in:
parent
71b00a945d
commit
5322bd3785
1 changed files with 1 additions and 1 deletions
|
|
@ -4462,7 +4462,7 @@ static void ssl_set_shctx(SSL_CTX *ctx)
|
|||
static void SSL_CTX_keylog(const SSL *ssl, const char *line)
|
||||
{
|
||||
struct ssl_keylog *keylog;
|
||||
char *lastarg = NULL;
|
||||
const char *lastarg = NULL;
|
||||
char *dst = NULL;
|
||||
|
||||
#ifdef USE_QUIC_OPENSSL_COMPAT
|
||||
|
|
|
|||
Loading…
Reference in a new issue