diff options
Diffstat (limited to 'src/testcurl/test_digestauth.c')
-rw-r--r-- | src/testcurl/test_digestauth.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c index 878ae653..d6c145f1 100644 --- a/src/testcurl/test_digestauth.c +++ b/src/testcurl/test_digestauth.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include <string.h> | 32 | #include <string.h> |
33 | #include <time.h> | 33 | #include <time.h> |
34 | #include <gcrypt.h> | ||
34 | 35 | ||
35 | #ifndef WINDOWS | 36 | #ifndef WINDOWS |
36 | #include <sys/socket.h> | 37 | #include <sys/socket.h> |
@@ -221,12 +222,20 @@ testDigestAuth () | |||
221 | return 0; | 222 | return 0; |
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 | ||
229 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 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); | ||
237 | #endif | ||
238 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | ||
230 | return 2; | 239 | return 2; |
231 | errorCount += testDigestAuth (); | 240 | errorCount += testDigestAuth (); |
232 | if (errorCount != 0) | 241 | if (errorCount != 0) |