diff options
Diffstat (limited to 'src/testcurl/test_postform.c')
-rw-r--r-- | src/testcurl/test_postform.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testcurl/test_postform.c b/src/testcurl/test_postform.c index 3b63f840..d9bec6c6 100644 --- a/src/testcurl/test_postform.c +++ b/src/testcurl/test_postform.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 <unistd.h> | 37 | #include <unistd.h> |
@@ -468,6 +469,11 @@ main (int argc, char *const *argv) | |||
468 | { | 469 | { |
469 | unsigned int errorCount = 0; | 470 | unsigned int errorCount = 0; |
470 | 471 | ||
472 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | ||
473 | gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); | ||
474 | #ifdef GCRYCTL_INITIALIZATION_FINISHED | ||
475 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); | ||
476 | #endif | ||
471 | oneone = NULL != strstr (argv[0], "11"); | 477 | oneone = NULL != strstr (argv[0], "11"); |
472 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 478 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
473 | return 2; | 479 | return 2; |