1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/minimal-examples/secure-streams
Andy Green 2cfa260e62 sspc: refactor to allow different transports
This is a NOP for existing usecases.

At the moment the only implemented transport for serialized SS is wsi, it's
typically used with Unix Domain Sockets, but it also works over tcp the
same.

It generalizes the interface between serialized chunks and the
transport, separately for client and proxy.  The wsi transport is migrated
to use the new transport ops structs.

It will then be possible to "bring your own transport", so long as it is
reliable, and in-order, both for proxy and client / sspc.

We also adapt minimal-secure-streams-binance to build the -client variant
via SS proxy as well.

LWS_ONLY_SSPC is added so libwebsockets can be produced with just sspc
client support even for tiny targets.

A new embedded minimal example for rpi pico is also provided that
demonstrates using Serialized SS over a UART to an SS proxy, to implement
the SS Binance example on the pico, even though it has no networking itself.
2021-10-08 09:48:41 +01:00
..
minimal-secure-streams ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-alexa lws_metrics 2021-03-08 21:47:28 +00:00
minimal-secure-streams-avs cpd: pass up lws_ss_request_tx ret 2021-08-16 08:07:32 +01:00
minimal-secure-streams-binance sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
minimal-secure-streams-blob sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
minimal-secure-streams-client-tx cmake: unbreak LWS_WITH_SYS_STATE disabled build 2021-10-05 07:40:17 +01:00
minimal-secure-streams-cpp wip: ss c++ classes 2020-12-02 10:15:50 +00:00
minimal-secure-streams-custom-client-transport sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
minimal-secure-streams-custom-proxy-transport sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
minimal-secure-streams-hugeurl ctest: ss: minimal-hugeurl: run correct test 2021-04-05 11:06:54 +01:00
minimal-secure-streams-metadata ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-metrics-proxy ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-perf ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-policy2c sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
minimal-secure-streams-post ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-proxy ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-seq ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-server ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-server-raw cpd: pass up lws_ss_request_tx ret 2021-08-16 08:07:32 +01:00
minimal-secure-streams-sigv4 ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-smd ctest: increase timeouts on tests using warmcat 2021-09-09 15:27:41 +01:00
minimal-secure-streams-staticpolicy ss: static policy for sigv4 2021-06-11 14:25:12 +01:00
minimal-secure-streams-stress sspc: refactor to allow different transports 2021-10-08 09:48:41 +01:00
minimal-secure-streams-testsfail ss: mass update LE root to isrg part 2 2021-10-05 06:48:03 +01:00
minimal-secure-streams-threads service: assert on thread shenanigans 2021-08-13 05:25:01 +01: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