aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_empty_response.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-23 12:09:46 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-23 12:09:46 +0000
commitc8ddb867ee13ea0cbe2f43c63f3aa1062565630c (patch)
tree65a205a36b7b0a479d967547ca3ed63591d453ac /src/testcurl/https/test_empty_response.c
parent902291420f08bee4813edcc2cf096072ddbf444c (diff)
downloadlibmicrohttpd-c8ddb867ee13ea0cbe2f43c63f3aa1062565630c.tar.gz
libmicrohttpd-c8ddb867ee13ea0cbe2f43c63f3aa1062565630c.zip
fully initialze modern gcrypt in MHD_init, only use thread initialization with legacy libgcrypt, update tests accordingly
Diffstat (limited to 'src/testcurl/https/test_empty_response.c')
-rw-r--r--src/testcurl/https/test_empty_response.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/testcurl/https/test_empty_response.c b/src/testcurl/https/test_empty_response.c
index abc2b30a..570febdd 100644
--- a/src/testcurl/https/test_empty_response.c
+++ b/src/testcurl/https/test_empty_response.c
@@ -183,16 +183,12 @@ testInternalSelectGet ()
183 return 0; 183 return 0;
184} 184}
185 185
186GCRY_THREAD_OPTION_PTHREAD_IMPL;
187 186
188int 187int
189main (int argc, char *const *argv) 188main (int argc, char *const *argv)
190{ 189{
191 unsigned int errorCount = 0; 190 unsigned int errorCount = 0;
192 191
193 gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
194 if (!gcry_check_version (GCRYPT_VERSION))
195 abort ();
196 if (0 != curl_global_init (CURL_GLOBAL_ALL)) 192 if (0 != curl_global_init (CURL_GLOBAL_ALL))
197 { 193 {
198 fprintf (stderr, "Error: %s\n", strerror (errno)); 194 fprintf (stderr, "Error: %s\n", strerror (errno));