commit 41886bcf92e8e6b943c9f0697a75f4a380952f52
parent cafcdb1b08e18530b9a184a22c7655b3661701bb
Author: lv-426 <oxcafebaby@yahoo.com>
Date: Sat, 9 Aug 2008 16:53:01 +0000
build issue fix
Diffstat:
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
@@ -57,6 +57,7 @@
*/
#define DEBUG_CONNECT MHD_NO
+#if HTTPS_SUPPORT
/* TODO unite with code in gnutls_priority.c */
static int
MHD_init_daemon_certificate (struct MHD_Daemon *daemon)
@@ -166,6 +167,7 @@ _set_priority (priority_st * st, const int *list)
return 0;
}
+#endif
/**
* Obtain the select sets for this daemon.
@@ -1203,7 +1205,7 @@ MHD_start_daemon (unsigned int options,
}
}
va_end (ap);
-
+#if HTTPS_SUPPORT
/* initialize HTTPS daemon certificate aspects & send / recv functions */
if (options & MHD_USE_SSL && MHD_TLS_init (retVal) != 0)
{
@@ -1213,7 +1215,7 @@ MHD_start_daemon (unsigned int options,
free (retVal);
return NULL;
}
-
+#endif
if (((0 != (options & MHD_USE_THREAD_PER_CONNECTION)) || (0 != (options
&
MHD_USE_SELECT_INTERNALLY)))
@@ -1245,9 +1247,6 @@ MHD_start_daemon_ip (unsigned int options,
void *apc_cls,
MHD_AccessHandlerCallback dh, void *dh_cls, ...)
{
-
- gnutls_global_set_log_level (5);
-
struct MHD_Daemon *ret;
va_list ap;
va_start (ap, dh_cls);