diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index fc293a1f..bb9daa52 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -55,9 +55,9 @@ | |||
55 | 55 | ||
56 | #ifdef HTTPS_SUPPORT | 56 | #ifdef HTTPS_SUPPORT |
57 | #include "connection_https.h" | 57 | #include "connection_https.h" |
58 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | 58 | #ifdef MHD_HTTPS_REQUIRE_GCRYPT |
59 | #include <gcrypt.h> | 59 | #include <gcrypt.h> |
60 | #endif /* MHD_HTTPS_REQUIRE_GRYPT */ | 60 | #endif /* MHD_HTTPS_REQUIRE_GCRYPT */ |
61 | #endif /* HTTPS_SUPPORT */ | 61 | #endif /* HTTPS_SUPPORT */ |
62 | 62 | ||
63 | #if defined(_WIN32) && ! defined(__CYGWIN__) | 63 | #if defined(_WIN32) && ! defined(__CYGWIN__) |
@@ -8473,7 +8473,7 @@ MHD_is_feature_supported (enum MHD_FEATURE feature) | |||
8473 | } | 8473 | } |
8474 | 8474 | ||
8475 | 8475 | ||
8476 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | 8476 | #ifdef MHD_HTTPS_REQUIRE_GCRYPT |
8477 | #if defined(HTTPS_SUPPORT) && GCRYPT_VERSION_NUMBER < 0x010600 | 8477 | #if defined(HTTPS_SUPPORT) && GCRYPT_VERSION_NUMBER < 0x010600 |
8478 | #if defined(MHD_USE_POSIX_THREADS) | 8478 | #if defined(MHD_USE_POSIX_THREADS) |
8479 | GCRY_THREAD_OPTION_PTHREAD_IMPL; | 8479 | GCRY_THREAD_OPTION_PTHREAD_IMPL; |
@@ -8529,7 +8529,7 @@ static struct gcry_thread_cbs gcry_threads_w32 = { | |||
8529 | 8529 | ||
8530 | #endif /* defined(MHD_W32_MUTEX_) */ | 8530 | #endif /* defined(MHD_W32_MUTEX_) */ |
8531 | #endif /* HTTPS_SUPPORT && GCRYPT_VERSION_NUMBER < 0x010600 */ | 8531 | #endif /* HTTPS_SUPPORT && GCRYPT_VERSION_NUMBER < 0x010600 */ |
8532 | #endif /* MHD_HTTPS_REQUIRE_GRYPT */ | 8532 | #endif /* MHD_HTTPS_REQUIRE_GCRYPT */ |
8533 | 8533 | ||
8534 | /** | 8534 | /** |
8535 | * Initialize do setup work. | 8535 | * Initialize do setup work. |
@@ -8551,8 +8551,9 @@ MHD_init (void) | |||
8551 | MHD_PANIC (_ ("Winsock version 2.2 is not available.\n")); | 8551 | MHD_PANIC (_ ("Winsock version 2.2 is not available.\n")); |
8552 | #endif /* MHD_WINSOCK_SOCKETS */ | 8552 | #endif /* MHD_WINSOCK_SOCKETS */ |
8553 | #ifdef HTTPS_SUPPORT | 8553 | #ifdef HTTPS_SUPPORT |
8554 | #ifdef MHD_HTTPS_REQUIRE_GRYPT | 8554 | #ifdef MHD_HTTPS_REQUIRE_GCRYPT |
8555 | #if GCRYPT_VERSION_NUMBER < 0x010600 | 8555 | #if GCRYPT_VERSION_NUMBER < 0x010600 |
8556 | #if GNUTLS_VERSION_NUMBER <= 0x020b00 | ||
8556 | #if defined(MHD_USE_POSIX_THREADS) | 8557 | #if defined(MHD_USE_POSIX_THREADS) |
8557 | if (0 != gcry_control (GCRYCTL_SET_THREAD_CBS, | 8558 | if (0 != gcry_control (GCRYCTL_SET_THREAD_CBS, |
8558 | &gcry_threads_pthread)) | 8559 | &gcry_threads_pthread)) |
@@ -8562,13 +8563,14 @@ MHD_init (void) | |||
8562 | &gcry_threads_w32)) | 8563 | &gcry_threads_w32)) |
8563 | MHD_PANIC (_ ("Failed to initialise multithreading in libgcrypt.\n")); | 8564 | MHD_PANIC (_ ("Failed to initialise multithreading in libgcrypt.\n")); |
8564 | #endif /* defined(MHD_W32_MUTEX_) */ | 8565 | #endif /* defined(MHD_W32_MUTEX_) */ |
8566 | #endif /* GNUTLS_VERSION_NUMBER <= 0x020b00 */ | ||
8565 | gcry_check_version (NULL); | 8567 | gcry_check_version (NULL); |
8566 | #else | 8568 | #else |
8567 | if (NULL == gcry_check_version ("1.6.0")) | 8569 | if (NULL == gcry_check_version ("1.6.0")) |
8568 | MHD_PANIC (_ ( | 8570 | MHD_PANIC (_ ( |
8569 | "libgcrypt is too old. MHD was compiled for libgcrypt 1.6.0 or newer.\n")); | 8571 | "libgcrypt is too old. MHD was compiled for libgcrypt 1.6.0 or newer.\n")); |
8570 | #endif | 8572 | #endif |
8571 | #endif /* MHD_HTTPS_REQUIRE_GRYPT */ | 8573 | #endif /* MHD_HTTPS_REQUIRE_GCRYPT */ |
8572 | gnutls_global_init (); | 8574 | gnutls_global_init (); |
8573 | #endif /* HTTPS_SUPPORT */ | 8575 | #endif /* HTTPS_SUPPORT */ |
8574 | MHD_monotonic_sec_counter_init (); | 8576 | MHD_monotonic_sec_counter_init (); |