aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_tls_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_tls_options.c')
-rw-r--r--src/testcurl/https/test_tls_options.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testcurl/https/test_tls_options.c b/src/testcurl/https/test_tls_options.c
index 1c604daf..0b065769 100644
--- a/src/testcurl/https/test_tls_options.c
+++ b/src/testcurl/https/test_tls_options.c
@@ -75,6 +75,8 @@ test_unmatching_ssl_version (void * cls, const char *cipher_suite,
75 return 0; 75 return 0;
76} 76}
77 77
78GCRY_THREAD_OPTION_PTHREAD_IMPL;
79
78/* setup a temporary transfer test file */ 80/* setup a temporary transfer test file */
79int 81int
80main (int argc, char *const *argv) 82main (int argc, char *const *argv)
@@ -85,7 +87,11 @@ main (int argc, char *const *argv)
85 MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG; 87 MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG;
86 gcry_control (GCRYCTL_DISABLE_SECMEM, 0); 88 gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
87 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); 89 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
88 if (curl_check_version (MHD_REQ_CURL_VERSION)) 90 gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
91#ifdef GCRYCTL_INITIALIZATION_FINISHED
92 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
93#endif
94 if (curl_check_version (MHD_REQ_CURL_VERSION))
89 { 95 {
90 return 0; 96 return 0;
91 } 97 }