diff options
Diffstat (limited to 'src/testcurl/test_digestauth_concurrent.c')
-rw-r--r-- | src/testcurl/test_digestauth_concurrent.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/testcurl/test_digestauth_concurrent.c b/src/testcurl/test_digestauth_concurrent.c index d2bcfd47..792d15de 100644 --- a/src/testcurl/test_digestauth_concurrent.c +++ b/src/testcurl/test_digestauth_concurrent.c | |||
@@ -26,18 +26,18 @@ | |||
26 | * @author Karlson2k (Evgeny Grin) | 26 | * @author Karlson2k (Evgeny Grin) |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "MHD_config.h" | 29 | #include "mhd_options.h" |
30 | #include "platform.h" | 30 | #include "platform.h" |
31 | #include <curl/curl.h> | 31 | #include <curl/curl.h> |
32 | #include <microhttpd.h> | 32 | #include <microhttpd.h> |
33 | #include <stdlib.h> | 33 | #include <stdlib.h> |
34 | #include <string.h> | 34 | #include <string.h> |
35 | #include <time.h> | 35 | #include <time.h> |
36 | #ifdef MHD_HTTPS_REQUIRE_GCRYPT | 36 | #if defined(MHD_HTTPS_REQUIRE_GCRYPT) && \ |
37 | #ifdef HAVE_GCRYPT_H | 37 | (defined(MHD_SHA256_TLSLIB) || defined(MHD_MD5_TLSLIB)) |
38 | #define NEED_GCRYP_INIT 1 | ||
38 | #include <gcrypt.h> | 39 | #include <gcrypt.h> |
39 | #endif | 40 | #endif /* MHD_HTTPS_REQUIRE_GCRYPT && (MHD_SHA256_TLSLIB || MHD_MD5_TLSLIB) */ |
40 | #endif /* MHD_HTTPS_REQUIRE_GCRYPT */ | ||
41 | 41 | ||
42 | #ifndef WINDOWS | 42 | #ifndef WINDOWS |
43 | #include <sys/socket.h> | 43 | #include <sys/socket.h> |
@@ -669,14 +669,12 @@ main (int argc, char *const *argv) | |||
669 | has_param (argc, argv, "-s") || | 669 | has_param (argc, argv, "-s") || |
670 | has_param (argc, argv, "--silent")); | 670 | has_param (argc, argv, "--silent")); |
671 | 671 | ||
672 | #ifdef MHD_HTTPS_REQUIRE_GCRYPT | 672 | #ifdef NEED_GCRYP_INIT |
673 | #ifdef HAVE_GCRYPT_H | ||
674 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | 673 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); |
675 | #ifdef GCRYCTL_INITIALIZATION_FINISHED | 674 | #ifdef GCRYCTL_INITIALIZATION_FINISHED |
676 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); | 675 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); |
677 | #endif | 676 | #endif /* GCRYCTL_INITIALIZATION_FINISHED */ |
678 | #endif | 677 | #endif /* NEED_GCRYP_INIT */ |
679 | #endif /* MHD_HTTPS_REQUIRE_GCRYPT */ | ||
680 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 678 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
681 | return 2; | 679 | return 2; |
682 | errorCount += testDigestAuth (); | 680 | errorCount += testDigestAuth (); |