aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_https_get.c')
-rw-r--r--src/testcurl/https/test_https_get.c8
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
98GCRY_THREAD_OPTION_PTHREAD_IMPL;
99
100
98int 101int
99main (int argc, char *const *argv) 102main (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));