libwebsockets: Fix -Werror=enum-int-mismatch in lws_tls_server_abort_connection()
authorOskari Rauta <oskari.rauta@gmail.com>
Sun, 28 May 2023 06:33:08 +0000 (09:33 +0300)
committerRosen Penev <rosenp@gmail.com>
Sat, 1 Jul 2023 11:48:25 +0000 (04:48 -0700)
commit6a897e22b0cd6d06fe99f9e651b6dc4347eb8caf
treeeb9b5a4df27e7a7e7ae9c93ceb373992e6629075
parentec4370cda518cb53ea3c074feea70326407c0e4d
libwebsockets: Fix -Werror=enum-int-mismatch in lws_tls_server_abort_connection()

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>
libs/libwebsockets/Makefile
libs/libwebsockets/patches/010-fix-enum-int-mismatch-openssl.patch [new file with mode: 0644]
libs/libwebsockets/patches/011-fix-enum-int-mismatch-mbedtls.patch [new file with mode: 0644]