From 79e15d44e838e41f345de29761dbd18ad8f37dd8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 6 Dec 2013 11:17:37 +0100 Subject: Reenable ssl. --- src/muniad.cc | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/muniad.cc b/src/muniad.cc index 995bb67..b478484 100644 --- a/src/muniad.cc +++ b/src/muniad.cc @@ -128,13 +128,15 @@ int main(int argc, char **argv) info.protocols = protocols; info.extensions = libwebsocket_get_internal_extensions(); - //if (!use_ssl) { - info.ssl_cert_filepath = cert_path; - info.ssl_private_key_filepath = NULL; - //} else { - // info.ssl_cert_filepath = LOCAL_RESOURCE_PATH"/libwebsockets-test-server.pem"; - // info.ssl_private_key_filepath = LOCAL_RESOURCE_PATH"/libwebsockets-test-server.key.pem"; -//} + if (!use_ssl) { + info.ssl_cert_filepath = cert_path; + info.ssl_private_key_filepath = NULL; + } else { + info.ssl_cert_filepath = + LOCAL_RESOURCE_PATH"/libwebsockets-test-server.pem"; + info.ssl_private_key_filepath = + LOCAL_RESOURCE_PATH"/libwebsockets-test-server.key.pem"; + } info.gid = -1; info.uid = -1; -- cgit v1.2.3