fix %3d handling in path part and add attack.sh
[platform/upstream/libwebsockets.git] / test-server / test-server-libev.c
index c2c4fd1..323c40d 100644 (file)
@@ -30,6 +30,16 @@ struct lws_plat_file_ops fops_plat;
 #define LOCAL_RESOURCE_PATH INSTALL_DATADIR"/libwebsockets-test-server"
 char *resource_path = LOCAL_RESOURCE_PATH;
 
+#if defined(LWS_USE_POLARSSL)
+#else
+#if defined(LWS_USE_MBEDTLS)
+#else
+#if defined(LWS_OPENSSL_SUPPORT) && defined(LWS_HAVE_SSL_CTX_set1_param)
+char crl_path[1024] = "";
+#endif
+#endif
+#endif
+
 /*
  * libev dumps their hygiene problems on their users blaming compiler
  * http://lists.schmorp.de/pipermail/libev/2008q4/000442.html
@@ -328,6 +338,8 @@ int main(int argc, char **argv)
 
                info.ssl_cert_filepath = cert_path;
                info.ssl_private_key_filepath = key_path;
+
+               opts |= LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT;
        }
        info.gid = -1;
        info.uid = -1;