libwebsockets: bump to 3.1.0
authorKarl Palsson <redacted>
Mon, 10 Dec 2018 14:53:15 +0000 (14:53 +0000)
committerKarl Palsson <redacted>
Mon, 10 Dec 2018 15:33:50 +0000 (15:33 +0000)
Drops an openssl deprecation patch applied upstream.

Changes since 3.0.0, the following list of websocket related features:
* gzip+brotli compression in the webserver
* threadpools
* string tokenizers
* http reverse proxies
* managed disk cache

Full changes at https://libwebsockets.org/git/libwebsockets/tree/changelog?id=89eedcaa94e1c8a97ea3af10642fd224bcea068f#n4

Tested on ath79, and classic usage of libwebsockets to provide
websockets support to a C application.

Signed-off-by: Karl Palsson <redacted>
libs/libwebsockets/Makefile
libs/libwebsockets/patches/010-openssl-deprecated.patch [deleted file]
libs/libwebsockets/patches/020-fix-travis.patch

index b9fe6dc904c6c7dacd48ee35cb97b669aff2c379..50fc1d5e8df7b087e1c0c5321f5a1ec30c82da83 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libwebsockets
-PKG_VERSION:=3.0.1
-PKG_RELEASE:=2
+PKG_VERSION:=3.1.0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE_URL:=https://codeload.github.com/warmcat/libwebsockets/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=cb0cdd8d0954fcfd97a689077568f286cdbb44111883e0a85d29860449c47cbf
+PKG_HASH:=db948be74c78fc13f1f1a55e76707d7baae3a1c8f62b625f639e8f2736298324
 
 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
 
diff --git a/libs/libwebsockets/patches/010-openssl-deprecated.patch b/libs/libwebsockets/patches/010-openssl-deprecated.patch
deleted file mode 100644 (file)
index 6d43ece..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/lib/tls/private.h
-+++ b/lib/tls/private.h
-@@ -64,6 +64,8 @@
-    #include <openssl/err.h>
-    #include <openssl/md5.h>
-    #include <openssl/sha.h>
-+   #include <openssl/rsa.h>
-+   #include <openssl/bn.h>
-    #ifdef LWS_HAVE_OPENSSL_ECDH_H
-     #include <openssl/ecdh.h>
-    #endif
index 9631e6e1ef1b1e27dfabc477dccfee9f582dc37f..85b165f755720d1a2801a7d2a502d1eef9871742 100644 (file)
@@ -1,13 +1,11 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index b260969..ece281d 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -1055,9 +1055,9 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID
+@@ -1233,9 +1233,9 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COM
      endif()
  
      if (UNIX AND NOT LWS_WITH_ESP32)
--          set(CMAKE_C_FLAGS "-Wall -Wsign-compare -Wignored-qualifiers -Wtype-limits -Wuninitialized -Werror ${VISIBILITY_FLAG} -Wundef ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
-+          set(CMAKE_C_FLAGS "-Wall -Wsign-compare -Wignored-qualifiers -Wtype-limits -Wuninitialized ${VISIBILITY_FLAG} -Wundef ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
+-          set(CMAKE_C_FLAGS "-Wall -Wsign-compare -Wignored-qualifiers -Wtype-limits -Wuninitialized -Werror ${VISIBILITY_FLAG} -Wundef ${GCOV_FLAGS} ${CMAKE_C_FLAGS} ${ASAN_FLAGS}" )
++          set(CMAKE_C_FLAGS "-Wall -Wsign-compare -Wignored-qualifiers -Wtype-limits -Wuninitialized ${VISIBILITY_FLAG} -Wundef ${GCOV_FLAGS} ${CMAKE_C_FLAGS} ${ASAN_FLAGS}" )
      else()
 -          set(CMAKE_C_FLAGS "-Wall -Wsign-compare -Wignored-qualifiers -Wtype-limits -Wuninitialized -Werror ${VISIBILITY_FLAG} ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
 +          set(CMAKE_C_FLAGS "-Wall -Wsign-compare -Wignored-qualifiers -Wtype-limits -Wuninitialized ${VISIBILITY_FLAG} ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
git clone https://git.99rst.org/PROJECT