commit 6fcf545d8fa388ec8c85b35f15d41a5ef8e5944e
parent 5518c48aa5c51b8f9b2c0d111eb4d38d0e53c2c2
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Mon, 13 Nov 2017 19:23:00 +0300
https_fileserver_example: removed unused headers, fixed build with
libgnutls in non-default path.
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c
@@ -35,10 +35,6 @@
#include "platform.h"
#include <microhttpd.h>
#include <sys/stat.h>
-#include <gnutls/gnutls.h>
-#ifdef MHD_HTTPS_REQUIRE_GRYPT
-#include <gcrypt.h>
-#endif
#define BUF_SIZE 1024
#define MAX_URL_LEN 255
@@ -207,8 +203,6 @@ main (int argc, char *const *argv)
return 1;
}
- /* TODO check if this is truly necessary - disallow usage of the blocking /dev/random */
- /* gcry_control(GCRYCTL_ENABLE_QUICK_RANDOM, 0); */
TLS_daemon =
MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG |
MHD_USE_TLS,