1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
Bing Zhao ff1b8ed0c9 tls: fix inbalanced tls restrict borrow/return calls
lws_tls_restrict_borrow() returns error when tls restriction limit is
reached. However lws_ssl_close() still calls lws_tls_restrict_return()
to decrease simultaneous_ssl. Thus LWS accepts more than allowed ssl
links, making simultaneous_ssl_restriction useless.

Fix it by tracking lws_tls_restrict_borrow() return value and only
calling lws_tls_restrict_return() if lws_tls_restrict_borrow() is
successful.
2021-07-07 08:47:37 +01:00
..
abstract license: fix two old headers from pre-MIT change 2021-05-04 18:35:00 +01:00
core gcc: gcc8 only recognizes fallthu 2021-06-27 09:04:16 +01:00
core-net tls: fix inbalanced tls restrict borrow/return calls 2021-07-07 08:47:37 +01:00
drivers drivers: spi: avoid leaking uninitialized bits 2021-04-15 17:41:53 +01:00
event-libs uloop 2021-03-17 12:23:34 +00:00
jose jwt: sign via info 2021-03-25 08:40:52 +00:00
misc getifaddrs: casts for android 2021-06-20 08:43:22 +01:00
plat freertos: check for forcing each time around service loop 2021-06-17 14:21:28 +01:00
roles raw-proxy: fix role bind flag 2021-07-07 08:46:14 +01:00
secure-streams dns: handle EAI_NONAME as fatal 2021-07-07 08:43:56 +01:00
system ss: proxy: fix conn deref on onward 2021-04-21 19:31:45 +01:00
tls tls: fix inbalanced tls restrict borrow/return calls 2021-07-07 08:47:37 +01:00
CMakeLists.txt cmake: enable user cmake to use FetchContent on lws 2021-04-15 17:41:34 +01:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries