according to the docs you're supposed to set this or else you will be destroyed by lack of mutexes...

SVN revision: 50570
This commit is contained in:
Mike Blumenkrantz 2010-07-28 02:10:44 +00:00
parent 926db95c54
commit 9dec9fa6b5
1 changed files with 7 additions and 1 deletions

View File

@ -62,6 +62,9 @@ void *alloca (size_t);
#ifdef EFL_HAVE_POSIX_THREADS
# include <pthread.h>
# ifdef HAVE_GNUTLS
GCRY_THREAD_OPTION_PTHREAD_IMPL;
# endif
#endif
#include <Eina.h>
@ -738,7 +741,10 @@ eet_init(void)
WRN(
"BIG FAT WARNING: I AM UNABLE TO REQUEST SECMEM, Cryptographic operation are at risk !");
}
#ifdef EFL_HAVE_POSIX_THREADS
if (gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread))
WRN("YOU ARE USING PTHREADS, BUT I CANNOT INITIALIZE THREADSAFE GCRYPT OPERATIONS!");
#endif
if (gnutls_global_init())
goto shutdown_eet;