Andy Green
98df6722ea
LWS_WITH_PEER_LIMITS
...
Introduces an optional, settable restriction on the number of
simultaneous wsi connections and ah that a single peer IP can
obtain.
The default is disabled for build, and if enabled, unlimited.
However when enabled at CMake, setting info.ip_limit_ah and / or
info.ip_limit_wsi at context creation time will enforce the limits.
Connections past the info.ip_limit_wsi limit are dropped, and
connections needing an ah are forced to stay in the ah waiting list
even when ah are available, while the peer is at the number of
ah in info.ip_limit_ah.
2017-09-19 12:09:17 +08:00
Andy Green
dee2d68b9c
cmake: add confirm_command macro and use for genromfs + xxd on ESP32 build
...
Solves the exact issue in
https://github.com/warmcat/libwebsockets/issues/1021
2017-09-19 12:09:17 +08:00
Andy Green
ca3013ca38
enable -Wundef for UNIX to catch dependencies on preprocessor defines that do not actually exist in the build
2017-09-19 12:08:31 +08:00
Andy Green
0186490fad
lws-genhash
...
This gives you a thin api on top of your TLS library digest functions
which abstracts away whether you are using mbedtls apis or openssl
ones. Using lws_genhash... apis the same code works either way and
the dependencies on which TLS lib is hidden.
2017-09-10 14:44:12 +08:00
Andy Green
37b994cc69
mbedtls: find LWS_HAVE_X509_VERIFY_PARAM_set1_host in CMake
2017-09-09 08:54:58 +08:00
Andy Green
8cb341314a
esp32: unbreak cert gen from mbedtls integration
2017-09-08 20:56:04 +08:00
Andy Green
6d25763d10
esp32: fixes for mbedtls breakout
2017-08-29 08:45:36 +08:00
Andy Green
c0c217bd5a
mbedtls: isgnore ECDH_H existence and try to find mbedtls libs + includes by default
2017-08-29 08:45:36 +08:00
Juraj Vijtiuk
41909eac97
mbedtls: Add mbedTLS backend support
2017-08-28 20:22:20 +08:00
Juraj Vijtiuk
77a71e94d1
mbedtls: Add mbedTLS wrapper
...
This wrapper has come from Espressif's esp-idf
https://github.com/espressif/esp-idf/tree/master/components/openssl
under Apache 2.0, at or around commit
3e4627479b6fff6b652de6d2f0302101e51ee5c2
2017-08-28 20:13:58 +08:00
Juraj Vijtiuk
ea5638cb2c
mbedtls: Force mbedTLS usage when built for ESP32
2017-08-28 20:13:48 +08:00
Juraj Vijtiuk
3aaf38d3d8
mbedtls: Add mbedTLS support to CMakeLists.txt
2017-08-28 20:12:32 +08:00
Andy Green
e6bd6296bd
v2.3.0
2017-07-28 14:27:25 +08:00
Andy Green
19a320a578
http2: remove cmake option leave code in for now
...
https://github.com/warmcat/libwebsockets/issues/979
2017-07-25 17:36:31 +08:00
Andy Green
6f11c1361a
lws-meta
2017-07-19 08:59:42 +08:00
Andy Green
7262e14dc1
lws_intptr_t
2017-07-07 08:32:04 +08:00
Andy Green
0b629d4037
test-server-libev: disable Werror just on server-libev.c to workaround libev dirt
2017-06-28 11:37:15 +08:00
Andy Green
5939d3a961
test servers: convert to static inclusion of plugins
...
This eliminates the duplicated implementations of the test protocols,
except dumb-increment (which requires libuv).
This has various advantages, including bringing all the test servers
up to the same set of protocols support.
Triggered by finding a bug in server status protocol that was long
ago fixed in the plugins version.
2017-06-28 11:16:48 +08:00
Andy Green
12a9592426
cmake: fix logic for individual test client build disable
2017-06-28 09:50:54 +08:00
Andy Green
3ff720ff66
support openssl info callback
...
https://github.com/warmcat/libwebsockets/issues/936
2017-06-20 11:46:49 +08:00
Andy Green
1725332d47
pkgconfig
...
https://github.com/warmcat/libwebsockets/issues/933
2017-06-19 12:29:48 +08:00
Andy Green
581b86efd0
HTTP_PROXY: make usable
2017-06-14 09:53:09 +08:00
WebsocketUser
0be9e98aae
win32: enable 64-bit file lengths
...
https://github.com/warmcat/libwebsockets/issues/916
AG added more appveyor warning cleaning and stitched in cmake tests
2017-06-09 20:20:42 +08:00
Andy Green
156363f3de
capabilities support
2017-06-07 06:49:20 +08:00
Leonardo Maccari Rufino
2ce39fe26c
Subject: Support to IPv6 on Windows
2017-06-01 06:55:50 +08:00
Sergey Kovalevich
989ff82ca0
Subject: Fixed value of LIBWEBSOCKETS_LIBRARIES_STATIC
2017-05-30 08:59:15 +08:00
Sergey Kovalevich
5d1d756106
Subject: Fixed build in scope of a project (add_subdirectory)
2017-05-30 08:58:37 +08:00
Andy Ning
ed92b6dfe7
client: added socks5 proxy support
...
AG:
- move creation info members to end of struct
- add LWS_WITH_SOCKS5 CMake var, defaults to OFF
- cast away some warnings about signed / unsigned in strncpy
Signed-off-by: Andy Ning <andy.ning@windriver.com>
2017-05-17 06:18:45 +08:00
Andy Green
54236bd437
esp32: multi ap slots plus PEM certs and parallel build fixes
2017-05-11 15:02:01 +08:00
Andy Green
a7def3ce44
LWS_WITH_STATS
2017-05-09 14:19:43 +08:00
Andy Green
8a74348839
esp32: workaround cant find TLS_client_method
2017-04-07 11:29:57 +08:00
Martin Milata
d7d8c081aa
Subject: ssl: fix OpenSSL client method detection
2017-04-06 22:51:42 +08:00
Andy Green
00081a2b1f
ssl: OpenSSL v1.1 deprecated TLSv1_2_client_method
2017-04-06 08:32:03 +08:00
Andy Green
00ae90978b
esp32: separate factory setup
2017-03-31 20:05:10 +08:00
Aditya Tirumala
ec50ebac12
Subject: Libevent: Initial Support
...
* Added libevent support functionality into lib/libevent.c
* Added test-server-libevent for testing
2017-03-22 05:36:25 +08:00
Andy Green
c35661c45c
CMake: add option to avoid GISPIPE IGN for Android 7+
2017-03-21 11:34:49 +08:00
Andy Green
102d40e6b6
esp32: openssl
2017-03-11 11:51:06 +08:00
Andy Green
e0572d3bef
esp32: move helper code into lws
2017-03-10 14:31:43 +08:00
Silas Parker
c1b5c8cabd
fops_zip: require libz
2017-03-09 19:21:40 +08:00
Andy Green
6be573f2c9
v2.2.0
2017-03-08 14:15:01 +08:00
Andy Green
3a09c3b7d6
esp32: align fops member name defines
2017-03-08 11:11:41 +08:00
Andy Green
19cc7acb24
fops-zip
2017-03-05 15:32:55 +08:00
Andy Green
753f1d642c
junzip: style and migrate header into private-libwebsockets.h
...
Also introduce CMake LWS_WITH_ZIP_FOPS defaulting to ON that builds junzip.c and
make sure this is exported in lws_config.h (included by libwebsockets.h)
Improve lws handling of stdint.h import or simulate it.
2017-03-03 09:19:14 +08:00
Andy Green
be8d791b5e
adoption: make union for socket and file fds
...
This lets lws support adopting raw file FDs and raw socket fds.
A test plugin creates a FIFO and prints data sent on it, using
the lws event loop.
2017-03-01 10:01:53 +08:00
Andy Green
4ca114fbcf
cmake: create build/include
2017-02-28 07:51:56 +08:00
Andy Green
a5488f9c27
mbedtls: remove abortive attempt to avoid confusing people
...
Basically we support openssl api compatibles only.
If we ever try something different we need a shim making it openssl api or a proper abstraction layer added first.
2017-02-22 09:54:47 +08:00
Andy Green
0aed7a06d5
mbed3: sayonara
...
The port was technically worthwhile and laid the groundwork for ESP support.
But now it is just useless cruft like mbed3 itself...
2017-02-22 09:50:11 +08:00
Andy Green
c7c4ae0aa4
ESP32 platform
...
This is enough for all the test app features to work on ESP32 without
SSL.
2017-02-18 17:27:22 +08:00
Yuchen Xie
936bf08a0f
Fix typo
2017-02-18 17:27:22 +08:00
Joel Winarske
238766be6b
windows: changes to build with VS2015
2017-02-18 17:27:22 +08:00