diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2010-07-28 02:10:44 +0000 |
---|---|---|
committer | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2010-07-28 02:10:44 +0000 |
commit | 7e9f35b5c8f9611bdc6ce67c0ba8543cca4efec0 (patch) | |
tree | fdab285e7fd1ee22f91129d0f6d9eb73c14423c5 | |
parent | 1878ba534731f37a66536b2a05baa6a4043e0d36 (diff) | |
download | eet-7e9f35b5c8f9611bdc6ce67c0ba8543cca4efec0.tar.gz |
according to the docs you're supposed to set this or else you will be destroyed by lack of mutexes...
SVN revision: 50570
-rw-r--r-- | src/lib/eet_lib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/eet_lib.c b/src/lib/eet_lib.c index 15501ac..ec57287 100644 --- a/src/lib/eet_lib.c +++ b/src/lib/eet_lib.c @@ -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; |