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>
This commit is contained in:
parent
e38b8505b7
commit
a739f75ee2
1 changed files with 3 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue