From 1f8a672dbd8121ff5fbbd955dfbdda7cf4357fd7 Mon Sep 17 00:00:00 2001 From: javex Date: Fri, 31 May 2024 21:25:38 +0930 Subject: [PATCH] tls: Type cast explicitly for OpenSSL With the release of GCC 14.1, some previous warnings are now errors, including the SSL_select_next_proto call in tls_context_server_alpn_select_callback. To fix the build, add explicitly type cast. Signed-off-by: javex --- src/tls/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls/openssl.c b/src/tls/openssl.c index 14b77e09c6a..03aeb9610b7 100644 --- a/src/tls/openssl.c +++ b/src/tls/openssl.c @@ -217,7 +217,7 @@ static int tls_context_server_alpn_select_callback(SSL *ssl, result = SSL_TLSEXT_ERR_NOACK; if (ctx->alpn != NULL) { - result = SSL_select_next_proto(out, + result = SSL_select_next_proto((unsigned char **) out, outlen, &ctx->alpn[1], (unsigned int) ctx->alpn[0],