1d4afb5ceSopenharmony_ci# lws minimal secure streams proxy
2d4afb5ceSopenharmony_ci
3d4afb5ceSopenharmony_ciOperates as a secure streams proxy, by default on a listening unix domain socket
4d4afb5ceSopenharmony_ci"proxy.ss.lws" in the Linux abstract namespace.
5d4afb5ceSopenharmony_ci
6d4afb5ceSopenharmony_ciGive -p <port> to have it listen on a specific tcp port instead.
7d4afb5ceSopenharmony_ci
8d4afb5ceSopenharmony_ci## build
9d4afb5ceSopenharmony_ci
10d4afb5ceSopenharmony_ci```
11d4afb5ceSopenharmony_ci $ cmake . && make
12d4afb5ceSopenharmony_ci```
13d4afb5ceSopenharmony_ci
14d4afb5ceSopenharmony_ci## usage
15d4afb5ceSopenharmony_ci
16d4afb5ceSopenharmony_ciCommandline option|Meaning
17d4afb5ceSopenharmony_ci---|---
18d4afb5ceSopenharmony_ci-d <loglevel>|Debug verbosity in decimal, eg, -d15
19d4afb5ceSopenharmony_ci-f| Force connecting to the wrong endpoint to check backoff retry flow
20d4afb5ceSopenharmony_ci-p <port>|If not given, proxy listens on a Unix Domain Socket, if given listen on specified tcp port
21d4afb5ceSopenharmony_ci-i <iface>|Optionally specify the UDS path (no -p) or network interface to bind to (if -p also given)
22d4afb5ceSopenharmony_ci
23d4afb5ceSopenharmony_ci```
24d4afb5ceSopenharmony_ci[2020/02/26 15:41:27:5768] U: LWS secure streams Proxy [-d<verb>]
25d4afb5ceSopenharmony_ci[2020/02/26 15:41:27:5770] N: lws_ss_policy_set:     2.064KiB, pad 70%: hardcoded
26d4afb5ceSopenharmony_ci[2020/02/26 15:41:27:5771] N: lws_tls_client_create_vhost_context: using mem client CA cert 1391
27d4afb5ceSopenharmony_ci[2020/02/26 15:41:27:8681] N: lws_ss_policy_set:     4.512KiB, pad 15%: updated
28d4afb5ceSopenharmony_ci[2020/02/26 15:41:27:8682] N: lws_tls_client_create_vhost_context: using mem client CA cert 837
29d4afb5ceSopenharmony_ci[2020/02/26 15:41:27:8683] N: lws_tls_client_create_vhost_context: using mem client CA cert 1043
30d4afb5ceSopenharmony_ci[2020/02/26 15:41:27:8684] N: lws_tls_client_create_vhost_context: using mem client CA cert 1167
31d4afb5ceSopenharmony_ci[2020/02/26 15:41:27:8684] N: lws_tls_client_create_vhost_context: using mem client CA cert 1391
32d4afb5ceSopenharmony_ci[2020/02/26 15:41:28:4226] N: ss_api_amazon_auth_rx: acquired 567-byte api.amazon.com auth token, exp 3600s
33d4afb5ceSopenharmony_ci```
34