diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-22 20:07:52 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-04-22 20:07:52 +0300 |
commit | 70a4aff15b995f0e7c99a9935bef0a24362614eb (patch) | |
tree | ee8c30d50718a8c95717d21e65a0700f67a0f606 /src/microhttpd/daemon.c | |
parent | a55b52f02761005a9fedfacaffb0f2c22557a724 (diff) | |
download | libmicrohttpd-70a4aff15b995f0e7c99a9935bef0a24362614eb.tar.gz libmicrohttpd-70a4aff15b995f0e7c99a9935bef0a24362614eb.zip |
daemon: fixed build without HTTPS
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index ad3bd7a7..1e5b7f1a 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -6079,8 +6079,12 @@ parse_options_va (struct MHD_Daemon *daemon, | |||
6079 | } | 6079 | } |
6080 | break; | 6080 | break; |
6081 | case MHD_OPTION_TLS_NO_ALPN: | 6081 | case MHD_OPTION_TLS_NO_ALPN: |
6082 | #ifdef HTTPS_SUPPORT | ||
6082 | daemon->disable_alpn = (va_arg (ap, | 6083 | daemon->disable_alpn = (va_arg (ap, |
6083 | int) != 0); | 6084 | int) != 0); |
6085 | #else /* ! HTTPS_SUPPORT */ | ||
6086 | (void) va_arg (ap, int); | ||
6087 | #endif /* ! HTTPS_SUPPORT */ | ||
6084 | #ifdef HAVE_MESSAGES | 6088 | #ifdef HAVE_MESSAGES |
6085 | if (0 == (daemon->options & MHD_USE_TLS)) | 6089 | if (0 == (daemon->options & MHD_USE_TLS)) |
6086 | MHD_DLOG (daemon, | 6090 | MHD_DLOG (daemon, |