commit 70a4aff15b995f0e7c99a9935bef0a24362614eb
parent a55b52f02761005a9fedfacaffb0f2c22557a724
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 22 Apr 2021 20:07:52 +0300
daemon: fixed build without HTTPS
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -6079,8 +6079,12 @@ parse_options_va (struct MHD_Daemon *daemon,
}
break;
case MHD_OPTION_TLS_NO_ALPN:
+#ifdef HTTPS_SUPPORT
daemon->disable_alpn = (va_arg (ap,
int) != 0);
+#else /* ! HTTPS_SUPPORT */
+ (void) va_arg (ap, int);
+#endif /* ! HTTPS_SUPPORT */
#ifdef HAVE_MESSAGES
if (0 == (daemon->options & MHD_USE_TLS))
MHD_DLOG (daemon,