Skip to content

Commit

Permalink
tls: Type cast explicitly for OpenSSL
Browse files Browse the repository at this point in the history
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 <florian.ruechel@inexplicity.de>
  • Loading branch information
Javex authored and edsiper committed Jun 6, 2024
1 parent 0b75c90 commit 1f8a672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 1f8a672

Please sign in to comment.