mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-02 02:42:22 +08:00

with gcc 13 libwebsockets fails with -Werror=enum-int-mismatch with both SSL variants. These 2 patches work out that issue. Problem is mentioned as a issue in openwrt/packages#20949 and instead of overriding issue with appropriate CFLAGS, this approach was suggested for me as it's been made as a PR (for openssl) at warmcat/libwebsockets#2824 Second patch for mbedtls, was made by me using same approach as was used of openssl. Eventually these propably will be merged into libwebsockets mainstream. Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com> Co-authored-by: Oskari Rauta <oskari.rauta@gmail.com>
15 lines
313 B
Diff
15 lines
313 B
Diff
--- a/lib/tls/mbedtls/mbedtls-server.c
|
|
+++ b/lib/tls/mbedtls/mbedtls-server.c
|
|
@@ -264,11 +264,7 @@ lws_tls_server_new_nonblocking(struct lw
|
|
return 0;
|
|
}
|
|
|
|
-#if defined(LWS_AMAZON_RTOS)
|
|
enum lws_ssl_capable_status
|
|
-#else
|
|
-int
|
|
-#endif
|
|
lws_tls_server_abort_connection(struct lws *wsi)
|
|
{
|
|
if (wsi->tls.use_ssl)
|