From a739f75ee2140e85f8ae8b046fe62232ba81ee2b Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 15 Oct 2015 09:00:31 +0800 Subject: [PATCH] ssl set session id context Via Bruce Perens http://ml.libwebsockets.org/pipermail/libwebsockets/2015-June/001833.html Signed-off-by: Andy Green --- lib/ssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ssl.c b/lib/ssl.c index 4fa5c495..1cb8c3d4 100644 --- a/lib/ssl.c +++ b/lib/ssl.c @@ -157,6 +157,9 @@ lws_context_init_server_ssl(struct lws_context_creation_info *info, 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 */