فهرست منبع

Fix to allow building with NO_SSL

Drew Wells 5 سال پیش
والد
کامیت
ae904be014
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -20078,6 +20078,7 @@ mg_start_domain2(struct mg_context *ctx,
 	new_dom->shared_lua_websockets = NULL;
 	new_dom->shared_lua_websockets = NULL;
 #endif
 #endif
 
 
+#if !defined(NO_SSL)
 	if (!init_ssl_ctx(ctx, new_dom)) {
 	if (!init_ssl_ctx(ctx, new_dom)) {
 		/* Init SSL failed */
 		/* Init SSL failed */
 		if ((error != NULL) && (error->text_buffer_size > 0)) {
 		if ((error != NULL) && (error->text_buffer_size > 0)) {
@@ -20091,6 +20092,7 @@ mg_start_domain2(struct mg_context *ctx,
 		mg_free(new_dom);
 		mg_free(new_dom);
 		return -3;
 		return -3;
 	}
 	}
+#endif
 
 
 	/* Add element to linked list. */
 	/* Add element to linked list. */
 	mg_lock_context(ctx);
 	mg_lock_context(ctx);