fully initialze modern gcrypt in MHD_init, only use thread initialization with legacy libgcrypt, update tests accordingly

This commit is contained in:
Christian Grothoff
2013-09-23 12:09:46 +00:00
parent 902291420f
commit c8ddb867ee
15 changed files with 9 additions and 56 deletions
@@ -206,16 +206,12 @@ testExternalGet (int flags)
return 0;
}
GCRY_THREAD_OPTION_PTHREAD_IMPL;
int
main (int argc, char *const *argv)
{
unsigned int errorCount = 0;
gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
if (!gcry_check_version (GCRYPT_VERSION))
abort ();
if (0 != curl_global_init (CURL_GLOBAL_ALL))
{
fprintf (stderr, "Error: %s\n", strerror (errno));