xref: /third_party/libwebsockets/changelog (revision d4afb5ce)
1d4afb5ceSopenharmony_ciChangelog
2d4afb5ceSopenharmony_ci---------
3d4afb5ceSopenharmony_ci
4d4afb5ceSopenharmony_civ4.3.0
5d4afb5ceSopenharmony_ci======
6d4afb5ceSopenharmony_ci
7d4afb5ceSopenharmony_ci - Add full CBOR stream parsing and writing support, with huge
8d4afb5ceSopenharmony_ci   amount of test vectors and resumable printf type write apis
9d4afb5ceSopenharmony_ci   See ./READMEs/README.cbor-lecp.md
10d4afb5ceSopenharmony_ci - Add COSE key and signing / validation support with huge amount of
11d4afb5ceSopenharmony_ci   test vectors
12d4afb5ceSopenharmony_ci    cose_sign[1] ES256/384/512, RS256/384/512
13d4afb5ceSopenharmony_ci    cose_mac0    HS256/384/512
14d4afb5ceSopenharmony_ci   See ./READMEs/README.cbor-cose.md
15d4afb5ceSopenharmony_ci - JIT Trust: for constrained devices, provides a way to determine the
16d4afb5ceSopenharmony_ci   trusted CA certs the peer requires, and instantiate just those.
17d4afb5ceSopenharmony_ci   This allows generic client browsing without the overhead of ~130
18d4afb5ceSopenharmony_ci   x.509 CA certs in memory permanently.
19d4afb5ceSopenharmony_ci   See ./READMEs/README.jit-trust.md
20d4afb5ceSopenharmony_ci - Add support for client Netscape cookie jar with caching
21d4afb5ceSopenharmony_ci - Secure Streams: issue LWSSSCS_EVENT_WAIT_CANCELLED state() when
22d4afb5ceSopenharmony_ci   lws_cancel_service() called, so cross-thread events can be handled
23d4afb5ceSopenharmony_ci   in SS
24d4afb5ceSopenharmony_ci - Actively assert() on attempt to destroy SS handles still active in
25d4afb5ceSopenharmony_ci   the call stack, use DESTROY_ME returns instead so caller can choose
26d4afb5ceSopenharmony_ci   how to handle it.
27d4afb5ceSopenharmony_ci - Improved Client Connection Error report strings for tls errors
28d4afb5ceSopenharmony_ci - SMP: Use a private fakewsi for PROTOCOL_INIT so pts cannot try to
29d4afb5ceSopenharmony_ci   use the same one concurrently
30d4afb5ceSopenharmony_ci - MbedTLS v3 support for all release changes, as well as retaining
31d4afb5ceSopenharmony_ci   support for v2.x
32d4afb5ceSopenharmony_ci - MQTT client: support QoS2
33d4afb5ceSopenharmony_ci - Event lib ops can now be set at context creation time directly,
34d4afb5ceSopenharmony_ci   bringing full event lib hooking to custom event loops.  See
35d4afb5ceSopenharmony_ci   minimal-http-server-eventlib-custom
36d4afb5ceSopenharmony_ci - Extra APIs to recover AKID and SKID from x.509 in mbedtls and openssl
37d4afb5ceSopenharmony_ci - Improve http redirect to handle h2-> h2 cleanly
38d4afb5ceSopenharmony_ci - IPv4+6 listen sockets on vhosts are now done with two separate
39d4afb5ceSopenharmony_ci   sockets bound individually to AF_INET and AF_INET6 addresses,
40d4afb5ceSopenharmony_ci   handled by the same vhost listen flow.
41d4afb5ceSopenharmony_ci - Improved tls restriction handling
42d4afb5ceSopenharmony_ci - Log contexts: allow objects to log into local logging contexts, by
43d4afb5ceSopenharmony_ci   lws_context, vhost, wsi and ss handle.  Each context has its own
44d4afb5ceSopenharmony_ci   emit function and log level. See ./READMEs/README.logging.md
45d4afb5ceSopenharmony_ci - Upgrade compiler checking to default to -Werror -Wall -Wextra
46d4afb5ceSopenharmony_ci - Fault injection apis now also support pseudo-random number binding
47d4afb5ceSopenharmony_ci   within a specified range, eg,
48d4afb5ceSopenharmony_ci   --fault-injection "f1(10%),f1_delay(123..456)"
49d4afb5ceSopenharmony_ci - Remove LWS_WITH_DEPRECATED_THINGS, remove master branch
50d4afb5ceSopenharmony_ci - Interface binding now uses ipv6 scoring to select bind address
51d4afb5ceSopenharmony_ci
52d4afb5ceSopenharmony_civ4.2.0
53d4afb5ceSopenharmony_ci======
54d4afb5ceSopenharmony_ci
55d4afb5ceSopenharmony_ci - Sai coverage upgrades, 495 builds on 27 platforms, including OSX M1,
56d4afb5ceSopenharmony_ci   Xenial, Bionic and Focal Ubuntu, Debian Sid and Buster on both 32 and
57d4afb5ceSopenharmony_ci   64-bit OS, and NetBSD, Solaris, FreeBSD, Windows, ESP32.
58d4afb5ceSopenharmony_ci   Ctest run on more scenarios including all LWS_WITH_DISTRO_RECOMMENDED.
59d4afb5ceSopenharmony_ci   More tests use valgrind if available on platform.
60d4afb5ceSopenharmony_ci - RFC7231 date and time parsing and retry-after wired up to lws_retry
61d4afb5ceSopenharmony_ci - `LWS_WITH_SUL_DEBUGGING` checks that no sul belonging to Secure Streams
62d4afb5ceSopenharmony_ci   and wsi objects are left registered on destruction
63d4afb5ceSopenharmony_ci - Netlink monitoring on Linux dynamically tracks interface address and
64d4afb5ceSopenharmony_ci   routing changes, and immediately closes connections on invalidated
65d4afb5ceSopenharmony_ci   routes.
66d4afb5ceSopenharmony_ci - RFC6724 DNS results sorting over ipv4 + ipv6 results, according to
67d4afb5ceSopenharmony_ci   available dynamic route information
68d4afb5ceSopenharmony_ci - Support new event library, sdevent (systemd native loop), via
69d4afb5ceSopenharmony_ci   `LWS_WITH_SDEVENT`
70d4afb5ceSopenharmony_ci - Reduce .rodata cost of role structs by making them sparse
71d4afb5ceSopenharmony_ci - Additional Secure Streams QA tests and runtime state transition
72d4afb5ceSopenharmony_ci   validation
73d4afb5ceSopenharmony_ci - SMD-over-ss-proxy documentation and helpers to simplify forwarding
74d4afb5ceSopenharmony_ci - SSPC stream buffering at proxy and client set from policy by streamtype
75d4afb5ceSopenharmony_ci - Trigger Captive Portal Detection if DNS resolution fails
76d4afb5ceSopenharmony_ci - Switch all logs related to wsi and Secure Streams to use unique,
77d4afb5ceSopenharmony_ci   descriptive tags instead of pointers (which may be reallocated)
78d4afb5ceSopenharmony_ci - Use NOITCE logging for Secure Streams and wsi lifecycle logging using
79d4afb5ceSopenharmony_ci   tags
80d4afb5ceSopenharmony_ci - Update SSPC serialization to include versioning on initial handshake,
81d4afb5ceSopenharmony_ci   and pass client pid to proxy so related objects are tagged with it
82d4afb5ceSopenharmony_ci - Enable errors on -Wconversion pedantic type-related build issues
83d4afb5ceSopenharmony_ci   throughout the lws sources and upgrade every affected cast.
84d4afb5ceSopenharmony_ci - Windows remove WSA event implementation and replace with WSAPoll, with
85d4afb5ceSopenharmony_ci   a pair of UDP sockets instead of pipe() for `lws_cancel_service()`
86d4afb5ceSopenharmony_ci - `lws_strcmp_wildcard()` helper that understand "x*", "x*y", "x*y*" etc
87d4afb5ceSopenharmony_ci - `LWS_WITH_PLUGINS_BUILTIN` cmake option just builds plugins into the main
88d4afb5ceSopenharmony_ci library image directly
89d4afb5ceSopenharmony_ci - Secure Streams proxy supports policy for flow control between proxy and
90d4afb5ceSopenharmony_ci clients
91d4afb5ceSopenharmony_ci - libressl also supported along with boringssl, wolfssl
92d4afb5ceSopenharmony_ci - prepared for openssl v3 compatibility, for main function and GENCRYPTO
93d4afb5ceSopenharmony_ci - Fault injection apis can confirm operation of 48 error paths and counting
94d4afb5ceSopenharmony_ci - `LWS_WITH_SYS_METRICS` keeps stats and reports them to user-defined
95d4afb5ceSopenharmony_ci function, compatible with openmetrics
96d4afb5ceSopenharmony_ci - windows platform knows how to prepare openssl with system trust store certs
97d4afb5ceSopenharmony_ci - `LWS_WITH_SYS_CONMON` allows selected client connections to make precise
98d4afb5ceSopenharmony_ci measurements of connection performance and DNS results, and report them in a struct
99d4afb5ceSopenharmony_ci - New native support for uloop event loop (OpenWRT loop)
100d4afb5ceSopenharmony_ci - More options around JWT
101d4afb5ceSopenharmony_ci - Support TLS session caching and reuse by default, on both OpenSSL and
102d4afb5ceSopenharmony_ci mbedtls
103d4afb5ceSopenharmony_ci - Many fixes and improvements...
104d4afb5ceSopenharmony_ci
105d4afb5ceSopenharmony_civ4.1.0
106d4afb5ceSopenharmony_ci======
107d4afb5ceSopenharmony_ci
108d4afb5ceSopenharmony_ci - NEW: travis / appveyor / bintray are replaced by Sai
109d4afb5ceSopenharmony_ci   https://libwebsockets.org/sai/ which for lws currently does 193 builds per
110d4afb5ceSopenharmony_ci   git push on 16 platforms, all self-hosted.  The homebrew bash scripts used
111d4afb5ceSopenharmony_ci   to select Minimal examples are replaced by CTest.  Platforms currently
112d4afb5ceSopenharmony_ci   include Fedora/AMD/GCC, Windows/AMD/mingw32, Windows/AMD/mingw64, Android/
113d4afb5ceSopenharmony_ci   aarch64/LLVM, esp-idf (on WROVER-KIT and HELTEC physical boards), Fedora/
114d4afb5ceSopenharmony_ci   RISCV (on QEMU)/GCC, CentOS8/AMD/GCC, Gentoo/AMD/GCC, Bionic/AMD/GCC,
115d4afb5ceSopenharmony_ci   Linkit 7697, Focal/AMD/GCC, Windows (on QEMU)/AMD/MSVC,
116d4afb5ceSopenharmony_ci   Focal/aarch64-RPI4/GCC, iOS/aarch64/LLVM and OSX/AMD/LLVM.
117d4afb5ceSopenharmony_ci
118d4afb5ceSopenharmony_ci - NEW: The single CMakeLists.txt has been refactored and modernized into smaller
119d4afb5ceSopenharmony_ci CMakeLists.txt in the subdirectory along with the code that is being managed
120d4afb5ceSopenharmony_ci for build by it.  Build options are still listed in the top level as before
121d4afb5ceSopenharmony_ci but the new way is much more maintainable.
122d4afb5ceSopenharmony_ci
123d4afb5ceSopenharmony_ci - NEW: event lib support on Unix is now built into dynamically loaded plugins
124d4afb5ceSopenharmony_ci and brought in at runtime, allowing all of the support to be built in
125d4afb5ceSopenharmony_ci isolation without conflicts, and separately packaged with individual
126d4afb5ceSopenharmony_ci dependencies.  See ./READMEs/event-libs.md for details and how to force
127d4afb5ceSopenharmony_ci the old static build into lws method.
128d4afb5ceSopenharmony_ci
129d4afb5ceSopenharmony_ci - NEW: Captive Portal Detection.  Lws can determine if the active default
130d4afb5ceSopenharmony_ci route is able to connect to the internet, or is in a captive portal type
131d4afb5ceSopenharmony_ci situation, by trying to connect to a remote server that will respond in an
132d4afb5ceSopenharmony_ci unusual way, like provide a 204.
133d4afb5ceSopenharmony_ci
134d4afb5ceSopenharmony_ci - NEW: Secure streams: Support system trust store if it exists
135d4afb5ceSopenharmony_ci                        Build on Windows
136d4afb5ceSopenharmony_ci			Support lws raw socket protocol in SS
137d4afb5ceSopenharmony_ci			Support Unix Domain Socket transport
138d4afb5ceSopenharmony_ci
139d4afb5ceSopenharmony_ci - NEW: Windows: Support Unix Domain Sockets same as other platforms
140d4afb5ceSopenharmony_ci
141d4afb5ceSopenharmony_ci - NEW: Windows: Build using native pthreads, async dns, ipv6 on MSVC
142d4afb5ceSopenharmony_ci
143d4afb5ceSopenharmony_ci - NEW: lws_struct: BLOB support
144d4afb5ceSopenharmony_ci
145d4afb5ceSopenharmony_ci - NEW: lws_sul: Now provides two sorted timer domains, a default one as
146d4afb5ceSopenharmony_ci before, and another whose scheduled events are capable to wake the system from suspend
147d4afb5ceSopenharmony_ci
148d4afb5ceSopenharmony_ci - NEW: System Message Distribution: lws_smd provides a very lightweight way
149d4afb5ceSopenharmony_ci to pass short messages between subsystems both in RTOS type case where the
150d4afb5ceSopenharmony_ci subsystems are all on the lws event loop, and in the case participants are in
151d4afb5ceSopenharmony_ci different processes, using Secure Streams proxying.   Participants register a bitmap
152d4afb5ceSopenharmony_ci of message classes they care about; if no particpant cares about a particular message,
153d4afb5ceSopenharmony_ci it is rejected at allocation time for the sender, making it cheap to provide messages
154d4afb5ceSopenharmony_ci speculatively.  See lib/system/smd/README.md for full details.
155d4afb5ceSopenharmony_ci
156d4afb5ceSopenharmony_ci - NEW: lws_drivers: wrappers for SDK driver abstractions (or actual drivers)
157d4afb5ceSopenharmony_ci		 See lib/drivers/README.md, example implementations
158d4afb5ceSopenharmony_ci		 minimal-examples/embedded/esp32/esp-wrover-kit
159d4afb5ceSopenharmony_ci                     - generic gpio
160d4afb5ceSopenharmony_ci		     - generic LED (by name)    lib/drivers/led/README.md
161d4afb5ceSopenharmony_ci		     - generic PWM, sophisticated interpolated table
162d4afb5ceSopenharmony_ci		                    sequencers with crossfade  
163d4afb5ceSopenharmony_ci		     - generic button (by name), with debounce and press classification
164d4afb5ceSopenharmony_ci		                       emitting rich SMD click, long-click, double-click,
165d4afb5ceSopenharmony_ci				       down, repeat, up JSON messages
166d4afb5ceSopenharmony_ci				       lib/drivers/button/README.md
167d4afb5ceSopenharmony_ci		     - bitbang i2c on generic gpio (hw support can use same
168d4afb5ceSopenharmony_ci		                       abstract API)
169d4afb5ceSopenharmony_ci		     - bitbang spi on generic gpio (hw support can use same
170d4afb5ceSopenharmony_ci		                       abstract API)
171d4afb5ceSopenharmony_ci		     - generic display object, can be wired up to controller
172d4afb5ceSopenharmony_ci		                  drivers that hook up by generic i2c or spi,
173d4afb5ceSopenharmony_ci				  generic backlight PWM sequencing and
174d4afb5ceSopenharmony_ci				  blanking timer support
175d4afb5ceSopenharmony_ci		     - generic settings storage: get and set blobs by name
176d4afb5ceSopenharmony_ci		     - generic network device: netdev abstract class with
177d4afb5ceSopenharmony_ci	                                       WIFI / Ethernet implementations
178d4afb5ceSopenharmony_ci					       using underlying SDK APIs;
179d4afb5ceSopenharmony_ci					       generic 80211 Scan managements
180d4afb5ceSopenharmony_ci					       and credentials handling via
181d4afb5ceSopenharmony_ci					       lws_settings
182d4afb5ceSopenharmony_ci		     This is the new way to provide embedded platform
183d4afb5ceSopenharmony_ci		     functionality that was in the past done like
184d4afb5ceSopenharmony_ci		     esp32-factory.  Unlike the old way, the new way has no
185d4afb5ceSopenharmony_ci		     native apis in it and can be built on other SDK / SoCs
186d4afb5ceSopenharmony_ci		     the same.
187d4afb5ceSopenharmony_ci
188d4afb5ceSopenharmony_ci - NEW: Security-aware JWS JWT (JSON Web Tokens) apis are provided on top of the existing
189d4afb5ceSopenharmony_ci JOSE / JWS apis.  All the common algorithms are available along with some
190d4afb5ceSopenharmony_ci high level apis like lws http cookie -> JWT struct -> lws http cookie.
191d4afb5ceSopenharmony_ci
192d4afb5ceSopenharmony_ci - REMOVED: esp32-helper and friends used by esp32-factory now lws_drivers
193d4afb5ceSopenharmony_ci exists
194d4afb5ceSopenharmony_ci
195d4afb5ceSopenharmony_ci - REMOVED: generic sessions and friends now JWT is provided
196d4afb5ceSopenharmony_ci
197d4afb5ceSopenharmony_civ4.0.0
198d4afb5ceSopenharmony_ci======
199d4afb5ceSopenharmony_ci
200d4afb5ceSopenharmony_ci - NEW: Lws is now under the MIT license, see ./LICENSE for details
201d4afb5ceSopenharmony_ci 
202d4afb5ceSopenharmony_ci - NEW: GLIB native event loop support, lws + gtk example
203d4afb5ceSopenharmony_ci
204d4afb5ceSopenharmony_ci - NEW: native lws MQTT client... supports client stream binding like h2 when
205d4afb5ceSopenharmony_ci   multiple logical connections are going to the same endpoint over MQTT, they
206d4afb5ceSopenharmony_ci   transparently and independently share the one connection + tls tunnel
207d4afb5ceSopenharmony_ci 
208d4afb5ceSopenharmony_ci - NEW: "Secure Streams"... if you are making a device with client connections
209d4afb5ceSopenharmony_ci   to the internet or cloud, this allows separation of the communications
210d4afb5ceSopenharmony_ci   policy (endpoints, tls cert validation, protocols, etc) from the code, with
211d4afb5ceSopenharmony_ci   the goal you can combine streams, change protocols and cloud provision, and
212d4afb5ceSopenharmony_ci   reflect that in the device's JSON policy document without having to change
213d4afb5ceSopenharmony_ci   any code.
214d4afb5ceSopenharmony_ci
215d4afb5ceSopenharmony_ci - NEW: lws_system: New lightweight and efficient Asynchronous DNS resolver
216d4afb5ceSopenharmony_ci   implementation for both A and AAAA records, supports recursive (without
217d4afb5ceSopenharmony_ci   recursion in code) lookups, caching, and getaddrinfo() compatible results
218d4afb5ceSopenharmony_ci   scheme (from cache directly without per-consumer allocation).  Able to
219d4afb5ceSopenharmony_ci   perform DNS lookups without introducing latency in the event loop.
220d4afb5ceSopenharmony_ci
221d4afb5ceSopenharmony_ci - NEW: lws_system: ntpclient implementation with interface for setting system
222d4afb5ceSopenharmony_ci   time via lws_system ops
223d4afb5ceSopenharmony_ci 
224d4afb5ceSopenharmony_ci - NEW: lws_system: dhcpclient implementation
225d4afb5ceSopenharmony_ci 
226d4afb5ceSopenharmony_ci - NEW: Connection validity tracking, autoproduce PING/PONG for protocols that
227d4afb5ceSopenharmony_ci   support it if not informed that the connection has passed data in both
228d4afb5ceSopenharmony_ci   directions recently enough
229d4afb5ceSopenharmony_ci
230d4afb5ceSopenharmony_ci - NEW: lws_retry: standardized exponential backoff and retry timing based
231d4afb5ceSopenharmony_ci   around backoff table and lws_sul
232d4afb5ceSopenharmony_ci
233d4afb5ceSopenharmony_ci - NEW: there are official public helpers for unaligned de/serialization of all
234d4afb5ceSopenharmony_ci   common types, see eh, lws_ser_wu16be() in include/libwebsockets/lws-misc.h
235d4afb5ceSopenharmony_ci
236d4afb5ceSopenharmony_ci - NEW: lws_tls_client_vhost_extra_cert_mem() api allows attaching extra certs
237d4afb5ceSopenharmony_ci   to a client vhost from DER in memory
238d4afb5ceSopenharmony_ci   
239d4afb5ceSopenharmony_ci - NEW: lws_system: generic blobs support passing auth tokens, per-connection
240d4afb5ceSopenharmony_ci   client certs etc from platform into lws
241d4afb5ceSopenharmony_ci
242d4afb5ceSopenharmony_ci - NEW: public helpers to consume and produce ipv4/6 addresses in a clean way,
243d4afb5ceSopenharmony_ci   along with lws_sockaddr46 type now public.  See eg, lws_sockaddr46-based
244d4afb5ceSopenharmony_ci   lws_sa46_parse_numeric_address(), lws_write_numeric_address()
245d4afb5ceSopenharmony_ci   in include/libwebsockets/lws-network-helper.h
246d4afb5ceSopenharmony_ci
247d4afb5ceSopenharmony_ci - Improved client redirect handling, h2 compatibility
248d4afb5ceSopenharmony_ci 
249d4afb5ceSopenharmony_ci - NEW: lwsac: additional features for constant folding support (strings that
250d4afb5ceSopenharmony_ci   already are in the lwsac can be pointed to without copying again), backfill
251d4afb5ceSopenharmony_ci   (look for gaps in previous chunks that could take a new use size), and
252d4afb5ceSopenharmony_ci   lwsac_extend() so last use() can attempt to use more unallocated chunk space
253d4afb5ceSopenharmony_ci
254d4afb5ceSopenharmony_ci - NEW: lws_humanize: apis for reporting scalar quanties like 1234 as "1.234KB"
255d4afb5ceSopenharmony_ci   with the scaled symbol strings passed in by caller
256d4afb5ceSopenharmony_ci
257d4afb5ceSopenharmony_ci - NEW: freertos: support lws_cancel_service() by using UDP pair bound to lo,
258d4afb5ceSopenharmony_ci   since it doesn't have logical pipes
259d4afb5ceSopenharmony_ci
260d4afb5ceSopenharmony_ci - NEW: "esp32" plat, which implemented freertos plat compatibility on esp32, is
261d4afb5ceSopenharmony_ci   renamed to "freertos" plat, targeting esp32 and other freertos platforms
262d4afb5ceSopenharmony_ci
263d4afb5ceSopenharmony_ci - NEW: base64 has an additional api supporting stateful decode, where the input
264d4afb5ceSopenharmony_ci   is not all in the same place at the same time and can be processed
265d4afb5ceSopenharmony_ci   incrementally
266d4afb5ceSopenharmony_ci
267d4afb5ceSopenharmony_ci - NEW: lws ws proxy: support RFC8441
268d4afb5ceSopenharmony_ci   
269d4afb5ceSopenharmony_ci - NEW: lws_spawn_piped apis: generic support for vforking a process with child
270d4afb5ceSopenharmony_ci   wsis attached to its stdin, stdout and stderr via pipes.  When processes are
271d4afb5ceSopenharmony_ci   reaped, a specified callback is triggered.  Currently Linux + OSX.
272d4afb5ceSopenharmony_ci   
273d4afb5ceSopenharmony_ci - NEW: lws_fsmount apis: Linux-only overlayfs mount and unmount management for
274d4afb5ceSopenharmony_ci   aggregating read-only layers with disposable, changeable upper layer fs
275d4afb5ceSopenharmony_ci
276d4afb5ceSopenharmony_ci - Improvements for RTOS / small build case bring the footprint of lws v4 below
277d4afb5ceSopenharmony_ci   that of v3.1 on ARM 
278d4afb5ceSopenharmony_ci   
279d4afb5ceSopenharmony_ci - lws_tokenize: flag specifying # should mark rest of line as comment
280d4afb5ceSopenharmony_ci
281d4afb5ceSopenharmony_ci - NEW: minimal example for integrating libasound / alsa via raw file
282d4afb5ceSopenharmony_ci
283d4afb5ceSopenharmony_ci - lws_struct: sqlite and json / lejp translation now usable
284d4afb5ceSopenharmony_ci
285d4afb5ceSopenharmony_ci
286d4afb5ceSopenharmony_civ3.2.0
287d4afb5ceSopenharmony_ci======
288d4afb5ceSopenharmony_ci
289d4afb5ceSopenharmony_ci - This is the last planned release under LGPLv2+SLE.  It's not planned to be
290d4afb5ceSopenharmony_ci   maintained like previous releases, please switch to master for the latest
291d4afb5ceSopenharmony_ci   stuff or continue to use v3.1-stable until the next release under the
292d4afb5ceSopenharmony_ci   new MIT license.
293d4afb5ceSopenharmony_ci
294d4afb5ceSopenharmony_ci - NEW: completely refactored scheduler with a unified, sorted us-resolution
295d4afb5ceSopenharmony_ci   linked-list implementation.  All polled checks like timeout are migrated
296d4afb5ceSopenharmony_ci   to use the new timers, which also work on the event lib implementations.
297d4afb5ceSopenharmony_ci   Faster operation, us-resolution timeouts and generic scheduled callbacks
298d4afb5ceSopenharmony_ci   from the event loop.
299d4afb5ceSopenharmony_ci
300d4afb5ceSopenharmony_ci - NEW: lws_dsh specialized buffer memory allocator that can borrow space
301d4afb5ceSopenharmony_ci   from other cooperating buffers on the same list.
302d4afb5ceSopenharmony_ci
303d4afb5ceSopenharmony_ci - NEW: lws_sequencer allows managing multi-connection processes and
304d4afb5ceSopenharmony_ci   retries
305d4afb5ceSopenharmony_ci
306d4afb5ceSopenharmony_ci - NEW: memory buffer cert support
307d4afb5ceSopenharmony_ci
308d4afb5ceSopenharmony_ci - NEW: LWS_WITH_NETWORK in CMake... can be configured without any network-
309d4afb5ceSopenharmony_ci   related code at all
310d4afb5ceSopenharmony_ci
311d4afb5ceSopenharmony_ci - NEW: builds on QNX 6.5 and SmartOS
312d4afb5ceSopenharmony_ci
313d4afb5ceSopenharmony_ci - NEW: JOSE / JWK / JWS / JWE support, for all common ciphers and algs,
314d4afb5ceSopenharmony_ci   works on OpenSSL and mbedtls backends
315d4afb5ceSopenharmony_ci
316d4afb5ceSopenharmony_ci - NEW: gencrypto now has genaes and genec in addition to genrsa, works
317d4afb5ceSopenharmony_ci   on OpenSSL and mbedtls backends
318d4afb5ceSopenharmony_ci
319d4afb5ceSopenharmony_ci - NEW: raw_proxy role
320d4afb5ceSopenharmony_ci
321d4afb5ceSopenharmony_ci - NEW: Basic Auth works on ws connections
322d4afb5ceSopenharmony_ci
323d4afb5ceSopenharmony_ci - CHANGE: REMOVED: LWS_WITH_GENRSA, LWS_WITH_GENHASH, LWS_WITH_GENEC,
324d4afb5ceSopenharmony_ci LWS_WITH_GENAES have all been removed and combined into LWS_WITH_GENCRYPTO
325d4afb5ceSopenharmony_ci
326d4afb5ceSopenharmony_ci - CHANGE: REMOVED: LWS_WITH_JWS, LWS_WITH_JWE have been removed and combined
327d4afb5ceSopenharmony_ci into LWS_WITH_JOSE
328d4afb5ceSopenharmony_ci
329d4afb5ceSopenharmony_civ3.1.0
330d4afb5ceSopenharmony_ci======
331d4afb5ceSopenharmony_ci
332d4afb5ceSopenharmony_ci - CHANGE: REMOVED: lws_client_connect() and lws_client_connect_extended()
333d4afb5ceSopenharmony_ci   compatibility apis for lws_client_connect_via_info() have been marked as
334d4afb5ceSopenharmony_ci   deprecated for several versions and are now removed.  Use
335d4afb5ceSopenharmony_ci   lws_client_connect_via_info() directly instead.
336d4afb5ceSopenharmony_ci
337d4afb5ceSopenharmony_ci - CHANGE: CMAKE:
338d4afb5ceSopenharmony_ci     - LWS_WITH_HTTP2:         now defaults ON
339d4afb5ceSopenharmony_ci
340d4afb5ceSopenharmony_ci - CHANGE: Minimal examples updated to use Content Security Policy best
341d4afb5ceSopenharmony_ci   practices, using
342d4afb5ceSopenharmony_ci   `LWS_SERVER_OPTION_HTTP_HEADERS_SECURITY_BEST_PRACTICES_ENFORCE` vhost
343d4afb5ceSopenharmony_ci   option flag and disabling of inline style and scripts.  A side-effect of
344d4afb5ceSopenharmony_ci   this is that buffers used to marshal headers have to be prepared to take
345d4afb5ceSopenharmony_ci   more content than previously... LWS_RECOMMENDED_MIN_HEADER_SPACE (2048
346d4afb5ceSopenharmony_ci   currently) is available for user (and internal) use to logically tie the
347d4afb5ceSopenharmony_ci   buffer size to this usecase (and follow future increases).
348d4afb5ceSopenharmony_ci
349d4afb5ceSopenharmony_ci - NEW: CMAKE
350d4afb5ceSopenharmony_ci     - LWS_FOR_GITOHASHI: sets various cmake options suitable for gitohashi
351d4afb5ceSopenharmony_ci     - LWS_WITH_ASAN: for Linux, enable build with ASAN
352d4afb5ceSopenharmony_ci
353d4afb5ceSopenharmony_ci     Don't forget LWS_WITH_DISTRO_RECOMMENDED, which enables a wide range of lws
354d4afb5ceSopenharmony_ci     options suitable for a distro build of the library.
355d4afb5ceSopenharmony_ci     
356d4afb5ceSopenharmony_ci - NEW: lws threadpool - lightweight pool of pthreads integrated to lws wsi, with
357d4afb5ceSopenharmony_ci   all synchronization to event loop handled internally, queue for excess tasks
358d4afb5ceSopenharmony_ci   [threadpool docs](https://libwebsockets.org/git/libwebsockets/tree/lib/misc/threadpool)
359d4afb5ceSopenharmony_ci   [threadpool minimal example](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/ws-server/minimal-ws-server-threadpool)
360d4afb5ceSopenharmony_ci   Cmake config: `-DLWS_WITH_THREADPOOL=1`
361d4afb5ceSopenharmony_ci
362d4afb5ceSopenharmony_ci - NEW: libdbus support integrated on lws event loop
363d4afb5ceSopenharmony_ci   [lws dbus docs](https://libwebsockets.org/git/libwebsockets/tree/lib/roles/dbus)
364d4afb5ceSopenharmony_ci   [lws dbus client minimal examples](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/dbus-client)
365d4afb5ceSopenharmony_ci   [lws dbus server minimal examples](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/dbus-server)
366d4afb5ceSopenharmony_ci   Cmake config: `-DLWS_ROLE_DBUS=1`
367d4afb5ceSopenharmony_ci
368d4afb5ceSopenharmony_ci - NEW: lws allocated chunks (lwsac) - helpers for optimized mass allocation of small
369d4afb5ceSopenharmony_ci   objects inside a few larger malloc chunks... if you need to allocate a lot of
370d4afb5ceSopenharmony_ci   inter-related structs for a limited time, this removes per-struct allocation
371d4afb5ceSopenharmony_ci   library overhead completely and removes the need for any destruction handling
372d4afb5ceSopenharmony_ci   [lwsac docs](https://libwebsockets.org/git/libwebsockets/tree/lib/misc/lwsac)
373d4afb5ceSopenharmony_ci   [lwsac minimal example](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/api-tests/api-test-lwsac)
374d4afb5ceSopenharmony_ci   Cmake Config: `-DLWS_WITH_LWSAC=1`
375d4afb5ceSopenharmony_ci
376d4afb5ceSopenharmony_ci - NEW: lws tokenizer - helper api for robustly tokenizing your own strings without
377d4afb5ceSopenharmony_ci   allocating or adding complexity.  Configurable by flags for common delimiter
378d4afb5ceSopenharmony_ci   sets and comma-separated-lists in the tokenizer.  Detects and reports syntax
379d4afb5ceSopenharmony_ci   errors.
380d4afb5ceSopenharmony_ci   [lws_tokenize docs](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-tokenize.h)
381d4afb5ceSopenharmony_ci   [lws_tokenize minimal example / api test](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/api-tests/api-test-lws_tokenize)
382d4afb5ceSopenharmony_ci
383d4afb5ceSopenharmony_ci - NEW: lws full-text search - optimized trie generation, serialization,
384d4afb5ceSopenharmony_ci   autocomplete suggestion generation and instant global search support extensible
385d4afb5ceSopenharmony_ci   to huge corpuses of UTF-8 text while remaining super lightweight on resources.
386d4afb5ceSopenharmony_ci   [full-text search docs](https://libwebsockets.org/git/libwebsockets/tree/lib/misc/fts)
387d4afb5ceSopenharmony_ci   [full-text search minimal example / api test](https://libwebsockets.org/git/libwebsockets/tree/minimal-examples/api-tests/api-test-fts)
388d4afb5ceSopenharmony_ci   [demo](https://libwebsockets.org/ftsdemo/)
389d4afb5ceSopenharmony_ci   [demo sources](https://libwebsockets.org/git/libwebsockets/tree/plugins/protocol_fulltext_demo.c)
390d4afb5ceSopenharmony_ci   Cmake config: `-DLWS_WITH_FTS=1 -DLWS_WITH_LWSAC=1`
391d4afb5ceSopenharmony_ci
392d4afb5ceSopenharmony_ci - NEW: gzip + brotli http server-side compression - h1 and h2 automatic advertising
393d4afb5ceSopenharmony_ci   of server compression and application to files with mimetypes "text/*",
394d4afb5ceSopenharmony_ci   "application/javascript" and "image/svg.xml".
395d4afb5ceSopenharmony_ci   Cmake config: `-DLWS_WITH_HTTP_STREAM_COMPRESSION=1`, `-DLWS_WITH_HTTP_BROTLI=1`
396d4afb5ceSopenharmony_ci
397d4afb5ceSopenharmony_ci - NEW: managed disk cache - API for managing a directory containing cached files
398d4afb5ceSopenharmony_ci   with hashed names, and automatic deletion of LRU files once the cache is
399d4afb5ceSopenharmony_ci   above a given limit.
400d4afb5ceSopenharmony_ci   [lws diskcache docs](https://libwebsockets.org/git/libwebsockets/tree/include/libwebsockets/lws-diskcache.h)
401d4afb5ceSopenharmony_ci   Cmake config: `-DLWS_WITH_DISKCACHE=1`
402d4afb5ceSopenharmony_ci
403d4afb5ceSopenharmony_ci - NEW: http reverse proxy - lws mounts support proxying h1 or h2 requests to
404d4afb5ceSopenharmony_ci   a local or remote IP, or unix domain socket over h1.  This allows microservice
405d4afb5ceSopenharmony_ci   type architectures where parts of the common URL space are actually handled
406d4afb5ceSopenharmony_ci   by external processes which may be remote or on the same machine.
407d4afb5ceSopenharmony_ci   [lws gitohashi serving](https://libwebsockets.org/git/) is handled this way.
408d4afb5ceSopenharmony_ci   CMake config: `-DLWS_WITH_HTTP_PROXY=1`
409d4afb5ceSopenharmony_ci   
410d4afb5ceSopenharmony_ci - NEW: lws_buflist - internally several types of ad-hoc malloc'd buffer have
411d4afb5ceSopenharmony_ci   been replaced by a new, exported api `struct lws_buflist`.  This allows
412d4afb5ceSopenharmony_ci   multiple buffers to be chained and drawn down in strict FIFO order.
413d4afb5ceSopenharmony_ci
414d4afb5ceSopenharmony_ci - NEW: In the case of h1 upgrade, the connection header is checked to contain
415d4afb5ceSopenharmony_ci   "upgrade".   The vhost flag LWS_SERVER_OPTION_VHOST_UPG_STRICT_HOST_CHECK
416d4afb5ceSopenharmony_ci   also causes the Host: header to be confirmed to match the vhost name and
417d4afb5ceSopenharmony_ci   listen port.
418d4afb5ceSopenharmony_ci   
419d4afb5ceSopenharmony_ci - NEW: If no 404 redirect for `lws_return_http_status()` is specified for the vhost,
420d4afb5ceSopenharmony_ci   the status page produced will try to bring in a stylesheet `/error.css`.  This allows
421d4afb5ceSopenharmony_ci   you to produce styled 404 or other error pages with logos, graphics etc.  See
422d4afb5ceSopenharmony_ci   https://libwebsockets.org/git/badrepo for an example of what you can do with it.
423d4afb5ceSopenharmony_ci
424d4afb5ceSopenharmony_civ3.0.0
425d4afb5ceSopenharmony_ci======
426d4afb5ceSopenharmony_ci
427d4afb5ceSopenharmony_ci - CHANGE: Clients used to call LWS_CALLBACK_CLOSED same as servers...
428d4afb5ceSopenharmony_ci   LWS_CALLBACK_CLIENT_CLOSED has been introduced and is called for clients
429d4afb5ceSopenharmony_ci   now.
430d4afb5ceSopenharmony_ci   
431d4afb5ceSopenharmony_ci - CHANGE: LWS_CALLBACK_CLIENT_CONNECTION_ERROR used to only be directed at
432d4afb5ceSopenharmony_ci   protocols[0].  However in many cases, the protocol to bind to was provided
433d4afb5ceSopenharmony_ci   at client connection info time and the wsi bound accordingly.  In those
434d4afb5ceSopenharmony_ci   cases, CONNECTION_ERROR is directed at the bound protocol, not protcols[0]
435d4afb5ceSopenharmony_ci   any more.
436d4afb5ceSopenharmony_ci
437d4afb5ceSopenharmony_ci - CHANGE: CMAKE: the following cmake defaults have changed with this version:
438d4afb5ceSopenharmony_ci 
439d4afb5ceSopenharmony_ci     - LWS_WITH_ZIP_FOPS:      now defaults OFF
440d4afb5ceSopenharmony_ci     - LWS_WITH_RANGES:        now defaults OFF
441d4afb5ceSopenharmony_ci     - LWS_WITH_ZLIB:          now defaults OFF
442d4afb5ceSopenharmony_ci     - LWS_WITHOUT_EXTENSIONS: now defaults ON
443d4afb5ceSopenharmony_ci     
444d4afb5ceSopenharmony_ci - CHANGE: REMOVED: lws_alloc_vfs_file() (read a file to malloc buffer)
445d4afb5ceSopenharmony_ci 
446d4afb5ceSopenharmony_ci - CHANGE: REMOVED: lws_read() (no longer useful outside of lws internals)
447d4afb5ceSopenharmony_ci 
448d4afb5ceSopenharmony_ci - CHANGE: REMOVED: ESP8266... ESP32 is now within the same price range and much
449d4afb5ceSopenharmony_ci   more performant
450d4afb5ceSopenharmony_ci   
451d4afb5ceSopenharmony_ci - CHANGE: soname bump... don't forget to `ldconfig`
452d4afb5ceSopenharmony_ci     
453d4afb5ceSopenharmony_ci - NEW: all event libraries support "foreign" loop integration where lws itself
454d4afb5ceSopenharmony_ci   if just a temporary user of the loop unrelated to the actual loop lifecycle.
455d4afb5ceSopenharmony_ci   
456d4afb5ceSopenharmony_ci   See `minimal-http-server-eventlib-foreign` for example code demonstrating
457d4afb5ceSopenharmony_ci   this for all the event libraries.
458d4afb5ceSopenharmony_ci   
459d4afb5ceSopenharmony_ci   Internal loop in lws is also supported and demonstrated by
460d4afb5ceSopenharmony_ci   `minimal-http-server-eventlib`.
461d4afb5ceSopenharmony_ci 
462d4afb5ceSopenharmony_ci - NEW: ws-over-h2 support.  This is a new RFC-on-the-way supported by Chrome
463d4afb5ceSopenharmony_ci   and shortly firefox that allows ws connections to be multiplexed back to the
464d4afb5ceSopenharmony_ci   server on the same tcp + tls wrapper h2 connection that the html and scripts
465d4afb5ceSopenharmony_ci   came in on.  This is hugely faster that discrete connections.
466d4afb5ceSopenharmony_ci 
467d4afb5ceSopenharmony_ci - NEW: UDP socket adoption and related event callbacks
468d4afb5ceSopenharmony_ci 
469d4afb5ceSopenharmony_ci - NEW: Multi-client connection binding, queuing and pipelining support.
470d4afb5ceSopenharmony_ci 
471d4afb5ceSopenharmony_ci   Lws detects multiple client connections to the same server and port, and
472d4afb5ceSopenharmony_ci   optimizes how it handles them according to the server type and provided
473d4afb5ceSopenharmony_ci   flags.  For http/1.0, all occur with individual parallel connections.  For
474d4afb5ceSopenharmony_ci   http/1.1, you can enable keepalive pipelining, so the connections occur
475d4afb5ceSopenharmony_ci   sequentially on a single network connection.  For http/2, they all occur
476d4afb5ceSopenharmony_ci   as parallel streams within a single h2 network connection.
477d4afb5ceSopenharmony_ci   
478d4afb5ceSopenharmony_ci   See minimal-http-client-multi for example code. 
479d4afb5ceSopenharmony_ci   
480d4afb5ceSopenharmony_ci - NEW: High resolution timer API for wsi, get a callback on your wsi with
481d4afb5ceSopenharmony_ci   LWS_CALLBACK_TIMER, set and reset the timer with lws_set_timer_usecs(wsi, us)
482d4afb5ceSopenharmony_ci   Actual resolution depends on event backend.  Works with all backends, poll,
483d4afb5ceSopenharmony_ci   libuv, libevent, and libev.
484d4afb5ceSopenharmony_ci   
485d4afb5ceSopenharmony_ci - NEW: Protocols can arrange vhost-protocol instance specific callbacks with
486d4afb5ceSopenharmony_ci   second resolution using `lws_timed_callback_vh_protocol()`
487d4afb5ceSopenharmony_ci
488d4afb5ceSopenharmony_ci - NEW: ACME client plugin for self-service TLS certificates
489d4afb5ceSopenharmony_ci  
490d4afb5ceSopenharmony_ci - NEW: RFC7517 JSON Web Keys RFC7638 JWK thumbprint, and RFC7515 JSON Web
491d4afb5ceSopenharmony_ci    signatures support
492d4afb5ceSopenharmony_ci  
493d4afb5ceSopenharmony_ci - NEW: lws_cancel_service() now provides a generic way to synchronize events
494d4afb5ceSopenharmony_ci   from other threads, which appear as a LWS_CALLBACK_EVENT_WAIT_CANCELLED
495d4afb5ceSopenharmony_ci   callback on all protocols.  This is compatible with all the event libraries.
496d4afb5ceSopenharmony_ci
497d4afb5ceSopenharmony_ci - NEW: support BSD poll() where changes to the poll wait while waiting are
498d4afb5ceSopenharmony_ci   undone.
499d4afb5ceSopenharmony_ci
500d4afb5ceSopenharmony_ci - NEW: Introduce generic hash, hmac and RSA apis that operate the same
501d4afb5ceSopenharmony_ci   regardless of OpenSSL or mbedTLS tls backend
502d4afb5ceSopenharmony_ci  
503d4afb5ceSopenharmony_ci - NEW: Introduce X509 element query api that works the same regardless of
504d4afb5ceSopenharmony_ci   OpenSSL or mbedTLS tls backend
505d4afb5ceSopenharmony_ci    
506d4afb5ceSopenharmony_ci - NEW: Introduce over 30 "minimal examples" in ./minimal-examples... these
507d4afb5ceSopenharmony_ci   replace most of the old test servers
508d4afb5ceSopenharmony_ci   
509d4afb5ceSopenharmony_ci    - test-echo -> minimal-ws-server-echo and minimal-ws-client-echo
510d4afb5ceSopenharmony_ci
511d4afb5ceSopenharmony_ci    - test-server-libuv / -libevent / -libev ->
512d4afb5ceSopenharmony_ci         minimal-https-server-eventlib / -eventlib-foreign / -eventlib-demos
513d4afb5ceSopenharmony_ci
514d4afb5ceSopenharmony_ci    - test-server-v2.0 -> folded into all the minimal servers
515d4afb5ceSopenharmony_ci
516d4afb5ceSopenharmony_ci    - test-server direct http serving -> minimal-http-server-dynamic
517d4afb5ceSopenharmony_ci    
518d4afb5ceSopenharmony_ci   The minimal examples allow individual standalone build using their own
519d4afb5ceSopenharmony_ci   small CMakeLists.txt.
520d4afb5ceSopenharmony_ci   
521d4afb5ceSopenharmony_ci - NEW: lws now detects any back-to-back writes that did not go through the
522d4afb5ceSopenharmony_ci   event loop inbetween and reports them.  This will flag any possibility of
523d4afb5ceSopenharmony_ci   failure rather than wait until the problem happens.
524d4afb5ceSopenharmony_ci   
525d4afb5ceSopenharmony_ci - NEW: CMake has LWS_WITH_DISTRO_RECOMMENDED to select features that are
526d4afb5ceSopenharmony_ci   appropriate for distros
527d4afb5ceSopenharmony_ci   
528d4afb5ceSopenharmony_ci - NEW: Optional vhost URL `error_document_404` if given causes a redirect there
529d4afb5ceSopenharmony_ci   instead of serve the default 404 page.
530d4afb5ceSopenharmony_ci   
531d4afb5ceSopenharmony_ci - NEW: lws_strncpy() wrapper guarantees NUL in copied string even if it was
532d4afb5ceSopenharmony_ci   truncated to fit.
533d4afb5ceSopenharmony_ci   
534d4afb5ceSopenharmony_ci - NEW: for client connections, local protocol binding name can be separated
535d4afb5ceSopenharmony_ci   from the ws subprotocol name if needed, using .local_protocol_name
536d4afb5ceSopenharmony_ci
537d4afb5ceSopenharmony_ci - NEW: Automatic detection of time discontiguities
538d4afb5ceSopenharmony_ci   
539d4afb5ceSopenharmony_ci - NEW: Applies TCP_USER_TIMEOUT for Linux tcp keepalive where available
540d4afb5ceSopenharmony_ci     
541d4afb5ceSopenharmony_ci - QA: 1600 tests run on each commit in Travis CI, including almost all
542d4afb5ceSopenharmony_ci   Autobahn in client and server mode, various h2load tests, h2spec, attack.sh
543d4afb5ceSopenharmony_ci   the minimal example selftests and others.
544d4afb5ceSopenharmony_ci
545d4afb5ceSopenharmony_ci - QA: fix small warnings introduced on gcc8.x (eg, Fedora 28)
546d4afb5ceSopenharmony_ci 
547d4afb5ceSopenharmony_ci - QA: Add most of -Wextra on gcc (-Wsign-compare, -Wignored-qualifiers,
548d4afb5ceSopenharmony_ci   -Wtype-limits, -Wuninitialized)
549d4afb5ceSopenharmony_ci   
550d4afb5ceSopenharmony_ci - QA: clean out warnings on windows
551d4afb5ceSopenharmony_ci 
552d4afb5ceSopenharmony_ci - QA: pass all 146 h2spec tests now on strict
553d4afb5ceSopenharmony_ci 
554d4afb5ceSopenharmony_ci - QA: introduce 35 selftests that operate different minimal examples against
555d4afb5ceSopenharmony_ci   each other and confirm the results.
556d4afb5ceSopenharmony_ci 
557d4afb5ceSopenharmony_ci - QA: LWS_WITH_MINIMAL_EXAMPLES allows mass build of all relevant minimal-
558d4afb5ceSopenharmony_ci   examples with the LWS build, for CI and to make all the example binaries
559d4afb5ceSopenharmony_ci   available from the lws build dir ./bin
560d4afb5ceSopenharmony_ci 
561d4afb5ceSopenharmony_ci - REFACTOR: the lws source directory layout in ./lib has been radically
562d4afb5ceSopenharmony_ci   improved, and there are now README.md files in selected subdirs with extra
563d4afb5ceSopenharmony_ci   documentation of interest to people working on lws itself.
564d4afb5ceSopenharmony_ci
565d4afb5ceSopenharmony_ci - REFACTOR: pipelined transactions return to the event loop before starting the
566d4afb5ceSopenharmony_ci   next part. 
567d4afb5ceSopenharmony_ci 
568d4afb5ceSopenharmony_ci - REFACTOR: TLS: replace all TLS library constants with generic LWS ones and
569d4afb5ceSopenharmony_ci   adapt all the TLS library code to translate to these common ones.
570d4afb5ceSopenharmony_ci   
571d4afb5ceSopenharmony_ci   Isolated all the tls-related private stuff in `./lib/tls/private.h`, and all
572d4afb5ceSopenharmony_ci   the mbedTLS stuff in `./lib/tls/mbedtls` + openSSL stuff in
573d4afb5ceSopenharmony_ci   `./lib/tls/openssl`
574d4afb5ceSopenharmony_ci   
575d4afb5ceSopenharmony_ci - REFACTOR: the various kinds of wsi possible with lws have been extracted
576d4afb5ceSopenharmony_ci   from the main code and isolated into "roles" in `./lib/roles` which
577d4afb5ceSopenharmony_ci   communicate with the core code via an ops struct.  Everything related to
578d4afb5ceSopenharmony_ci   ah is migrated to the http role.
579d4afb5ceSopenharmony_ci   
580d4afb5ceSopenharmony_ci   wsi modes are eliminated and replaced by the ops pointer for the role the
581d4afb5ceSopenharmony_ci   wsi is performing.  Generic states for wsi are available to control the
582d4afb5ceSopenharmony_ci   lifecycle using core code.
583d4afb5ceSopenharmony_ci   
584d4afb5ceSopenharmony_ci   Adding new "roles" is now much easier with the changes and ops struct to
585d4afb5ceSopenharmony_ci   plug into.
586d4afb5ceSopenharmony_ci
587d4afb5ceSopenharmony_ci - REFACTOR: reduce four different kinds of buffer management in lws into a
588d4afb5ceSopenharmony_ci   generic scatter-gather struct lws_buflist. 
589d4afb5ceSopenharmony_ci
590d4afb5ceSopenharmony_ci - REFACTOR: close notifications go through event loop
591d4afb5ceSopenharmony_ci
592d4afb5ceSopenharmony_ci
593d4afb5ceSopenharmony_civ2.4.0
594d4afb5ceSopenharmony_ci======
595d4afb5ceSopenharmony_ci
596d4afb5ceSopenharmony_ci - HTTP/2 server support is now mature and usable!  LWS_WITH_HTTP2=1 enables it.
597d4afb5ceSopenharmony_ci   Uses ALPN to serve HTTP/2, HTTP/1 and ws[s] connections all from the same
598d4afb5ceSopenharmony_ci   listen port seamlessly.  (Requires ALPN-capable OpenSSL 1.1 or mbedTLS).
599d4afb5ceSopenharmony_ci
600d4afb5ceSopenharmony_ci - LWS_WITH_MBEDTLS=1 at CMake now builds and works against mbedTLS instead of
601d4afb5ceSopenharmony_ci   OpenSSL.  Most things work identically, although on common targets where
602d4afb5ceSopenharmony_ci   OpenSSL has acceleration, mbedTLS is many times slower in operation.  However
603d4afb5ceSopenharmony_ci   it is a lot smaller codewise.
604d4afb5ceSopenharmony_ci   
605d4afb5ceSopenharmony_ci - Generic hash apis introduced that work the same on mbedTLS or OpenSSL backend
606d4afb5ceSopenharmony_ci 
607d4afb5ceSopenharmony_ci - LWS_WITH_PEER_LIMITS tracks IPs across all vhosts and allows restrictions on
608d4afb5ceSopenharmony_ci   both the number of simultaneous connections and wsi in use for any single IP
609d4afb5ceSopenharmony_ci
610d4afb5ceSopenharmony_ci - lws_ring apis provide a generic single- or multi-tail ringbuffer... mirror
611d4afb5ceSopenharmony_ci   protocol now uses this.  Features include ring elements may be sized to fit
612d4afb5ceSopenharmony_ci   structs in the ringbuffer, callback when no tail any longer needs an element
613d4afb5ceSopenharmony_ci   and it can be deleted, and zerocopy options to write new members directly
614d4afb5ceSopenharmony_ci   into the ringbuffer, and use the ringbuffer element by address too.
615d4afb5ceSopenharmony_ci 
616d4afb5ceSopenharmony_ci - abstract ssh 2 server plugin included, with both plugin and standalone
617d4afb5ceSopenharmony_ci   demos provided.  You can bind the plugin to a vhost and also serve full-
618d4afb5ceSopenharmony_ci   strength ssh from the vhost.  IO from the ssh server is controlled by an
619d4afb5ceSopenharmony_ci   "ops" struct of callbacks for tx, rx, auth etc.
620d4afb5ceSopenharmony_ci   
621d4afb5ceSopenharmony_ci - Many fixes, cleanups, source refactors and other improvements.
622d4afb5ceSopenharmony_ci
623d4afb5ceSopenharmony_ci
624d4afb5ceSopenharmony_civ2.3.0
625d4afb5ceSopenharmony_ci======
626d4afb5ceSopenharmony_ci
627d4afb5ceSopenharmony_ci - ESP32 OpenSSL support for client and server
628d4afb5ceSopenharmony_ci
629d4afb5ceSopenharmony_ci - ESP32 4 x WLAN credential slots may be configured
630d4afb5ceSopenharmony_ci
631d4afb5ceSopenharmony_ci - Libevent event loop support
632d4afb5ceSopenharmony_ci
633d4afb5ceSopenharmony_ci - SOCKS5 proxy support
634d4afb5ceSopenharmony_ci
635d4afb5ceSopenharmony_ci - lws_meta protocol for websocket connection multiplexing
636d4afb5ceSopenharmony_ci
637d4afb5ceSopenharmony_ci - lws_vhost_destroy() added... allows dynamic removal of listening
638d4afb5ceSopenharmony_ci   vhosts.  Vhosts with shared listen sockets adopt the listen socket
639d4afb5ceSopenharmony_ci   automatically if the owner is destroyed.
640d4afb5ceSopenharmony_ci
641d4afb5ceSopenharmony_ci - IPv6 on Windows
642d4afb5ceSopenharmony_ci
643d4afb5ceSopenharmony_ci - Improved CGI handling suitable for general CGI scripting, eg, PHP
644d4afb5ceSopenharmony_ci
645d4afb5ceSopenharmony_ci - Convert even the "old style" test servers to use statically included
646d4afb5ceSopenharmony_ci   plugin sources
647d4afb5ceSopenharmony_ci
648d4afb5ceSopenharmony_ci - LWS_WITH_STATS cmake option dumps resource usage and timing information
649d4afb5ceSopenharmony_ci   every few seconds to debug log, including latency information about
650d4afb5ceSopenharmony_ci   delay from asking for writeable callback to getting it
651d4afb5ceSopenharmony_ci
652d4afb5ceSopenharmony_ci - Large (> 2GB) files may be served
653d4afb5ceSopenharmony_ci
654d4afb5ceSopenharmony_ci - LWS_WITH_HTTP_PROXY Cmake option adds proxying mounts
655d4afb5ceSopenharmony_ci
656d4afb5ceSopenharmony_ci - Workaround for libev build by disabling -Werror on the test app
657d4afb5ceSopenharmony_ci
658d4afb5ceSopenharmony_ci - HTTP2 support disabled since no way to serve websockets on it
659d4afb5ceSopenharmony_ci
660d4afb5ceSopenharmony_ci
661d4afb5ceSopenharmony_civ2.2.0
662d4afb5ceSopenharmony_ci======
663d4afb5ceSopenharmony_ci
664d4afb5ceSopenharmony_ciMajor new features
665d4afb5ceSopenharmony_ci
666d4afb5ceSopenharmony_ci - A mount can be protected by Basic Auth... in lwsws it looks like this
667d4afb5ceSopenharmony_ci
668d4afb5ceSopenharmony_ci ```
669d4afb5ceSopenharmony_ci{
670d4afb5ceSopenharmony_ci        "mountpoint": "/basic-auth",
671d4afb5ceSopenharmony_ci        "origin": "file://_lws_ddir_/libwebsockets-test-server/private",
672d4afb5ceSopenharmony_ci        "basic-auth": "/var/www/balogins-private"
673d4afb5ceSopenharmony_ci}
674d4afb5ceSopenharmony_ci```
675d4afb5ceSopenharmony_ci
676d4afb5ceSopenharmony_ciThe text file named in `basic-auth` contains user:password information
677d4afb5ceSopenharmony_cione per line.
678d4afb5ceSopenharmony_ci
679d4afb5ceSopenharmony_ciSee README.lwsws.md for more information.
680d4afb5ceSopenharmony_ci
681d4afb5ceSopenharmony_ci - RFC7233 RANGES support in lws server... both single and multipart.
682d4afb5ceSopenharmony_ci This allows seeking for multimedia file serving and download resume.
683d4afb5ceSopenharmony_ci It's enabled by default but can be disabled by CMake option.
684d4afb5ceSopenharmony_ci
685d4afb5ceSopenharmony_ci - On Linux, lwsws can reload configuration without dropping ongoing
686d4afb5ceSopenharmony_ci connections, when sent a SIGHUP.  The old configuration drops its
687d4afb5ceSopenharmony_ci listen sockets so the new configuration can listen on them.
688d4afb5ceSopenharmony_ci New connections connect to the server instance with the new
689d4afb5ceSopenharmony_ci configuration.  When all old connections eventually close, the old
690d4afb5ceSopenharmony_ci instance automatically exits.  This is equivalent to
691d4afb5ceSopenharmony_ci `systemctl reload apache`
692d4afb5ceSopenharmony_ci
693d4afb5ceSopenharmony_ci - New `adopt` api allow adoption including SSL negotiation and
694d4afb5ceSopenharmony_ci for raw sockets and file descriptors.
695d4afb5ceSopenharmony_ci
696d4afb5ceSopenharmony_ci - Chunked transfer encoding supported for client and server
697d4afb5ceSopenharmony_ci
698d4afb5ceSopenharmony_ci - Adaptations to allow operations inside OPTEE Secure World
699d4afb5ceSopenharmony_ci
700d4afb5ceSopenharmony_ci - ESP32 initial port - able to do all test server functions. See
701d4afb5ceSopenharmony_ci README.build.md
702d4afb5ceSopenharmony_ci
703d4afb5ceSopenharmony_ci - Serving gzipped files from inside a ZIP file is supported... this
704d4afb5ceSopenharmony_ci includes directly serving the gzipped content if the client
705d4afb5ceSopenharmony_ci indicated it could accept it (ie, almost all browsers) saving
706d4afb5ceSopenharmony_ci bandwidth and time.  For clients that can't accept it, lws
707d4afb5ceSopenharmony_ci automatically decompresses and serves the content in memory-
708d4afb5ceSopenharmony_ci efficient chunks. Only a few hundred bytes of heap are needed
709d4afb5ceSopenharmony_ci to serve any size file from inside the zip.  See README.coding.md
710d4afb5ceSopenharmony_ci
711d4afb5ceSopenharmony_ci - RAW file descriptors may now be adopted into the lws event loop,
712d4afb5ceSopenharmony_ci independent of event backend (including poll service).
713d4afb5ceSopenharmony_ci See README.coding.md
714d4afb5ceSopenharmony_ci
715d4afb5ceSopenharmony_ci - RAW server socket descriptors may now be enabled on the vhost if
716d4afb5ceSopenharmony_ci the first thing sent on the connection is not a valid http method.
717d4afb5ceSopenharmony_ci The user code can associate these with a specific protocol per
718d4afb5ceSopenharmony_ci vhost, and RAW-specific callbacks appear there for creation, rx,
719d4afb5ceSopenharmony_ci writable and close.  See libwebsockets-test-server-v2.0 for an example.
720d4afb5ceSopenharmony_ci See README.coding.md
721d4afb5ceSopenharmony_ci
722d4afb5ceSopenharmony_ci - RAW client connections are now possible using the method "RAW".
723d4afb5ceSopenharmony_ci After connection, the socket is associated to the protocol
724d4afb5ceSopenharmony_ci named in the client connection info and RAW-specific callbacks
725d4afb5ceSopenharmony_ci appear there for creation, rx, writable and close.
726d4afb5ceSopenharmony_ci See libwebsockets-test-client (with raw://) for an example.
727d4afb5ceSopenharmony_ci See README.coding.md
728d4afb5ceSopenharmony_ci
729d4afb5ceSopenharmony_ci
730d4afb5ceSopenharmony_ci(for earlier changelogs, see the tagged releases)
731