diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-13 19:23:00 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-11-13 19:23:00 +0300 |
commit | 6fcf545d8fa388ec8c85b35f15d41a5ef8e5944e (patch) | |
tree | 45359ddee1c4096a65dacc63604129b8d85d8258 /src/examples | |
parent | 5518c48aa5c51b8f9b2c0d111eb4d38d0e53c2c2 (diff) | |
download | libmicrohttpd-6fcf545d8fa388ec8c85b35f15d41a5ef8e5944e.tar.gz libmicrohttpd-6fcf545d8fa388ec8c85b35f15d41a5ef8e5944e.zip |
https_fileserver_example: removed unused headers, fixed build with
libgnutls in non-default path.
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/https_fileserver_example.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c index 09938fcf..e48a1502 100644 --- a/src/examples/https_fileserver_example.c +++ b/src/examples/https_fileserver_example.c | |||
@@ -35,10 +35,6 @@ | |||
35 | #include "platform.h" | 35 | #include "platform.h" |
36 | #include <microhttpd.h> | 36 | #include <microhttpd.h> |
37 | #include <sys/stat.h> | 37 | #include <sys/stat.h> |
38 | #include <gnutls/gnutls.h> | ||
39 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | ||
40 | #include <gcrypt.h> | ||
41 | #endif | ||
42 | 38 | ||
43 | #define BUF_SIZE 1024 | 39 | #define BUF_SIZE 1024 |
44 | #define MAX_URL_LEN 255 | 40 | #define MAX_URL_LEN 255 |
@@ -207,8 +203,6 @@ main (int argc, char *const *argv) | |||
207 | return 1; | 203 | return 1; |
208 | } | 204 | } |
209 | 205 | ||
210 | /* TODO check if this is truly necessary - disallow usage of the blocking /dev/random */ | ||
211 | /* gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); */ | ||
212 | TLS_daemon = | 206 | TLS_daemon = |
213 | MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | | 207 | MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | |
214 | MHD_USE_TLS, | 208 | MHD_USE_TLS, |