From 427b925d1972d98fe615e3b60125126b4843853e Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 29 Oct 2020 17:12:15 +0000 Subject: [PATCH] ss: fix without server --- .sai.json | 2 +- lib/secure-streams/secure-streams.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.sai.json b/.sai.json index 4686c4f7b..2d21e3806 100644 --- a/.sai.json +++ b/.sai.json @@ -159,7 +159,7 @@ "platforms": "not linux-centos-8/x86_64-amd/gcc" }, "noserver": { - "cmake": "-DLWS_WITHOUT_SERVER=ON -DLWS_WITH_MINIMAL_EXAMPLES=1" + "cmake": "-DLWS_WITHOUT_SERVER=ON -DLWS_WITH_MINIMAL_EXAMPLES=1 -DLWS_WITH_SECURE_STREAMS=1" }, "noclient": { "cmake": "-DLWS_WITHOUT_CLIENT=ON -DLWS_WITH_MINIMAL_EXAMPLES=1" diff --git a/lib/secure-streams/secure-streams.c b/lib/secure-streams/secure-streams.c index 06e1cf96c..2ef30979b 100644 --- a/lib/secure-streams/secure-streams.c +++ b/lib/secure-streams/secure-streams.c @@ -879,12 +879,14 @@ lws_ss_destroy(lws_ss_handle_t **ppss) lws_free_set_NULL(h); } +#if defined(LWS_WITH_SERVER) void lws_ss_server_ack(struct lws_ss_handle *h, int nack) { h->txn_resp = nack; h->txn_resp_set = 1; } +#endif lws_ss_state_return_t lws_ss_request_tx(lws_ss_handle_t *h)