# HG changeset patch # User Matti Hamalainen # Date 1509311854 -7200 # Node ID 5dadfde159dd4fc239d0945272f5a8b2b2c64356 # Parent 3964d87a2f8a62f3e3c4599feda51b57186e94b7 SSL/TLS support working. diff -r 3964d87a2f8a -r 5dadfde159dd mapsearch.c --- a/mapsearch.c Sun Oct 29 23:03:48 2017 +0200 +++ b/mapsearch.c Sun Oct 29 23:17:34 2017 +0200 @@ -992,9 +992,9 @@ info.max_http_header_pool = 16; info.options = LWS_SERVER_OPTION_EXPLICIT_VHOSTS | - LWS_SERVER_OPTION_VALIDATE_UTF8 | - LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT | - LWS_SERVER_OPTION_LIBUV; // do we need this? + LWS_SERVER_OPTION_VALIDATE_UTF8 | + LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT | + LWS_SERVER_OPTION_LIBUV; // do we need this? info.protocols = mapLWSProtocols; info.extensions = mapLWSExtensions; @@ -1026,6 +1026,10 @@ info.port = ctx->port; info.iface = ctx->interface; + info.ssl_cert_filepath = ctx->sslCertFile; + info.ssl_private_key_filepath = ctx->sslKeyFile; + info.ssl_ca_filepath = ctx->sslCAFile[0] ? ctx->sslCAFile : NULL; + if ((ctx->vhost = lws_create_vhost(setLWSContext, &info)) == NULL) { THERR("LWS vhost creation failed!\n");