diff options
Diffstat (limited to 'src/testcurl/https/test_https_get.c')
-rw-r--r-- | src/testcurl/https/test_https_get.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testcurl/https/test_https_get.c b/src/testcurl/https/test_https_get.c index f076cac4..29e6d0eb 100644 --- a/src/testcurl/https/test_https_get.c +++ b/src/testcurl/https/test_https_get.c | |||
@@ -95,6 +95,9 @@ test_secure_get (FILE * test_fd, | |||
95 | } | 95 | } |
96 | 96 | ||
97 | 97 | ||
98 | GCRY_THREAD_OPTION_PTHREAD_IMPL; | ||
99 | |||
100 | |||
98 | int | 101 | int |
99 | main (int argc, char *const *argv) | 102 | main (int argc, char *const *argv) |
100 | { | 103 | { |
@@ -106,6 +109,11 @@ main (int argc, char *const *argv) | |||
106 | 109 | ||
107 | if (!gcry_check_version (GCRYPT_VERSION)) | 110 | if (!gcry_check_version (GCRYPT_VERSION)) |
108 | abort (); | 111 | abort (); |
112 | gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); | ||
113 | gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread); | ||
114 | #ifdef GCRYCTL_INITIALIZATION_FINISHED | ||
115 | gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); | ||
116 | #endif | ||
109 | if (0 != curl_global_init (CURL_GLOBAL_ALL)) | 117 | if (0 != curl_global_init (CURL_GLOBAL_ALL)) |
110 | { | 118 | { |
111 | fprintf (stderr, "Error: %s\n", strerror (errno)); | 119 | fprintf (stderr, "Error: %s\n", strerror (errno)); |