2008-11-26 [colin] 3.6.1cvs44
[claws.git] / src / common / ssl.c
index e87a532fbee3faf7e843d8de1119ef979cf5a86b..85600a55f6562e5f6ca63becd4e042aba7273c98 100644 (file)
 
 #include <glib.h>
 #include <glib/gi18n.h>
+#include <errno.h>
+#include <pthread.h>
+#include <gcrypt.h>
+GCRY_THREAD_OPTION_PTHREAD_IMPL;
 
 #include "claws.h"
 #include "utils.h"
@@ -148,6 +152,7 @@ const gchar *claws_ssl_get_cert_dir(void)
 
 void ssl_init(void)
 {
+       gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
 #ifdef HAVE_LIBETPAN
        mailstream_gnutls_init_not_required();
 #endif