diff options
Diffstat (limited to 'src/testcurl/test_digestauth2.c')
-rw-r--r-- | src/testcurl/test_digestauth2.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/testcurl/test_digestauth2.c b/src/testcurl/test_digestauth2.c index 81a93b5e..ab8d2b07 100644 --- a/src/testcurl/test_digestauth2.c +++ b/src/testcurl/test_digestauth2.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * @author Karlson2k (Evgeny Grin) | 25 | * @author Karlson2k (Evgeny Grin) |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include "MHD_config.h" | 28 | #include "mhd_options.h" |
29 | #include "platform.h" | 29 | #include "platform.h" |
30 | #include <curl/curl.h> | 30 | #include <curl/curl.h> |
31 | #include <microhttpd.h> | 31 | #include <microhttpd.h> |
@@ -33,6 +33,12 @@ | |||
33 | #include <string.h> | 33 | #include <string.h> |
34 | #include <time.h> | 34 | #include <time.h> |
35 | 35 | ||
36 | #if defined(MHD_HTTPS_REQUIRE_GCRYPT) && \ | ||
37 | (defined(MHD_SHA256_TLSLIB) || defined(MHD_MD5_TLSLIB)) | ||
38 | #define NEED_GCRYP_INIT 1 | ||
39 | #include <gcrypt.h> | ||
40 | #endif /* MHD_HTTPS_REQUIRE_GCRYPT && (MHD_SHA256_TLSLIB || MHD_MD5_TLSLIB) */ | ||
41 | |||
36 | #ifndef _WIN32 | 42 | #ifndef _WIN32 |
37 | #include <sys/socket.h> | 43 | #include <sys/socket.h> |
38 | #include <unistd.h> | 44 | #include <unistd.h> |
@@ -1464,6 +1470,12 @@ main (int argc, char *const *argv) | |||
1464 | int curl_sspi; | 1470 | int curl_sspi; |
1465 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ | 1471 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ |
1466 | 1472 | ||
1473 | #ifdef NEED_GCRYP_INIT | ||
1474 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | ||
1475 | #ifdef GCRYCTL_INITIALIZATION_FINISHED | ||
1476 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); | ||
1477 | #endif /* GCRYCTL_INITIALIZATION_FINISHED */ | ||
1478 | #endif /* NEED_GCRYP_INIT */ | ||
1467 | /* Test type and test parameters */ | 1479 | /* Test type and test parameters */ |
1468 | verbose = ! (has_param (argc, argv, "-q") || | 1480 | verbose = ! (has_param (argc, argv, "-q") || |
1469 | has_param (argc, argv, "--quiet") || | 1481 | has_param (argc, argv, "--quiet") || |