diff options
Diffstat (limited to 'src/testcurl/test_digestauth_with_arguments.c')
-rw-r--r-- | src/testcurl/test_digestauth_with_arguments.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/testcurl/test_digestauth_with_arguments.c b/src/testcurl/test_digestauth_with_arguments.c index 04227823..f7757552 100644 --- a/src/testcurl/test_digestauth_with_arguments.c +++ b/src/testcurl/test_digestauth_with_arguments.c | |||
@@ -23,7 +23,6 @@ | |||
23 | * @brief Testcase for libmicrohttpd Digest Auth with arguments | 23 | * @brief Testcase for libmicrohttpd Digest Auth with arguments |
24 | * @author Amr Ali | 24 | * @author Amr Ali |
25 | */ | 25 | */ |
26 | |||
27 | #include "MHD_config.h" | 26 | #include "MHD_config.h" |
28 | #include "platform.h" | 27 | #include "platform.h" |
29 | #include <curl/curl.h> | 28 | #include <curl/curl.h> |
@@ -31,6 +30,7 @@ | |||
31 | #include <stdlib.h> | 30 | #include <stdlib.h> |
32 | #include <string.h> | 31 | #include <string.h> |
33 | #include <time.h> | 32 | #include <time.h> |
33 | #include <gcrypt.h> | ||
34 | 34 | ||
35 | #ifndef WINDOWS | 35 | #ifndef WINDOWS |
36 | #include <sys/socket.h> | 36 | #include <sys/socket.h> |
@@ -221,11 +221,19 @@ testDigestAuth () | |||
221 | return 0; | 221 | return 0; |
222 | } | 222 | } |
223 | 223 | ||
224 | |||
225 | GCRY_THREAD_OPTION_PTHREAD_IMPL; | ||
226 | |||
227 | |||
224 | int | 228 | int |
225 | main (int argc, char *const *argv) | 229 | main (int argc, char *const *argv) |
226 | { | 230 | { |
227 | unsigned int errorCount = 0; | 231 | unsigned int errorCount = 0; |
228 | 232 | ||
233 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | ||
234 | gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); | ||
235 | #ifdef GCRYCTL_INITIALIZATION_FINISHED | ||
236 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); | ||
229 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 237 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
230 | return 2; | 238 | return 2; |
231 | errorCount += testDigestAuth (); | 239 | errorCount += testDigestAuth (); |