1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/minimal-examples/secure-streams
Andy Green 546c151555 ss: add set_metadata that takes a heap copy and make ss-h1 use it
Until now we set metadata value pointers into the onward wsi ah data
area... that's OK until we get a situation the wsi has gone away before we
have a chance to deliver the metadata over the proxy link.

Add a variant lws_ss_alloc_set_metadata() that allocates space on the heap
and takes a copy of the input metadata.  Change ss-h1 to alloc copies of
its metadata so we no longer race the wsi ah lifetime.
2021-03-14 15:05:18 +00:00
..
minimal-secure-streams ss: force check all set_metadata returns 2021-03-14 08:58:26 +00:00
minimal-secure-streams-alexa lws_metrics 2021-03-08 21:47:28 +00:00
minimal-secure-streams-avs lws_metrics 2021-03-08 21:47:28 +00:00
minimal-secure-streams-client-tx minimal-ss-client-tx: add -c flag for count of rx to get 2021-02-26 08:23:12 +00:00
minimal-secure-streams-cpp wip: ss c++ classes 2020-12-02 10:15:50 +00:00
minimal-secure-streams-hugeurl ss: force check all set_metadata returns 2021-03-14 08:58:26 +00:00
minimal-secure-streams-metadata ss: force check all set_metadata returns 2021-03-14 08:58:26 +00:00
minimal-secure-streams-metrics-proxy lws_metrics 2021-03-08 21:47:28 +00:00
minimal-secure-streams-policy2c ip tos support 2021-02-04 10:28:02 +00:00
minimal-secure-streams-post ss: force check all set_metadata returns 2021-03-14 08:58:26 +00:00
minimal-secure-streams-proxy lws_metrics 2021-03-08 21:47:28 +00:00
minimal-secure-streams-seq LE-root-cert-update 2021-01-13 04:32:13 +00:00
minimal-secure-streams-server ss: force check all set_metadata returns 2021-03-14 08:58:26 +00:00
minimal-secure-streams-server-raw type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-secure-streams-sigv4 ss: add set_metadata that takes a heap copy and make ss-h1 use it 2021-03-14 15:05:18 +00:00
minimal-secure-streams-smd lws_metrics 2021-03-08 21:47:28 +00:00
minimal-secure-streams-staticpolicy lws_metrics 2021-03-08 21:47:28 +00:00
minimal-secure-streams-testsfail ss: force check all set_metadata returns 2021-03-14 08:58:26 +00:00
README.md client: secure streams 2020-03-04 12:17:49 +00:00

Secure Streams

Secure Streams is a client API that strictly decouples the policy for connections from the payloads. The user code only deals with the stream type name and payloads, a policy database set at lws_context creation time decides all policy about the connection, including the endpoint, tls CA, and even the wire protocol.

name demonstrates
minimal-secure-streams Minimal secure streams client / proxy example
minimal-secure-streams-tx Proxy used for client-tx test below
minimal-secure-streams-client-tx Secure streams client showing tx and rx