commit | a739f75ee2140e85f8ae8b046fe62232ba81ee2b | [log] [tgz] |
---|---|---|
author | Andy Green <andy.green@linaro.org> | Thu Oct 15 09:00:31 2015 +0800 |
committer | Andy Green <andy.green@linaro.org> | Thu Oct 15 09:00:31 2015 +0800 |
tree | ddad37676893bd80983321e5dcb680dbfc2e5d96 | |
parent | e38b8505b76160970663fa555ca3d64c3bbdfa36 [diff] [blame] |
ssl set session id context Via Bruce Perens http://ml.libwebsockets.org/pipermail/libwebsockets/2015-June/001833.html Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/ssl.c b/lib/ssl.c index 4fa5c49..1cb8c3d 100644 --- a/lib/ssl.c +++ b/lib/ssl.c
@@ -157,6 +157,9 @@ if (info->options & LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT) { + + SSL_CTX_set_session_id_context(context->ssl_ctx, + (unsigned char *)context, sizeof(void *)); /* absolutely require the client cert */