Mercurial > hg > batmud > maputils
changeset 1806:5dadfde159dd
SSL/TLS support working.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 29 Oct 2017 23:17:34 +0200 |
parents | 3964d87a2f8a |
children | d419124e284a |
files | mapsearch.c |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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");