static int _init_con_ssl_init_count = 0;
#ifdef HAVE_GNUTLS
-# ifdef EINA_HAVE_THREADS
GCRY_THREAD_OPTION_PTHREAD_IMPL;
-# endif
static int _client_connected = 0;
static Ecore_Con_Ssl_Error
_ecore_con_ssl_init_gnutls(void)
{
-#ifdef EINA_HAVE_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())
return ECORE_CON_SSL_ERROR_INIT_FAILED;
# include <openssl/evp.h>
#endif /* ifdef HAVE_OPENSSL */
-#ifdef EINA_HAVE_THREADS
-# ifdef HAVE_GNUTLS
+#ifdef HAVE_GNUTLS
GCRY_THREAD_OPTION_PTHREAD_IMPL;
-# endif /* ifdef HAVE_GNUTLS */
-#endif /* ifdef EINA_HAVE_THREADS */
+#endif /* ifdef HAVE_GNUTLS */
#include "Eet.h"
#include "Eet_private.h"
"BIG FAT WARNING: I AM UNABLE TO REQUEST SECMEM, Cryptographic operation are at risk !");
}
-# ifdef EINA_HAVE_THREADS
if (gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread))
WRN(
"YOU ARE USING PTHREADS, BUT I CANNOT INITIALIZE THREADSAFE GCRYPT OPERATIONS!");
-# endif /* ifdef EINA_HAVE_THREADS */
if (gnutls_global_init())
goto shutdown_eet;