Some people may have witnessed my struggle of the past few days to
connect claws-mail to my mail server. Long story short : server only
accepts TLS 1.2, claws-mail connects with TLS 1.0.

The culprit here is libetpan v1.6, which calls TLSv1_client_method()
before the TLS handshake. The diff below fixes the issue, claws-mail
happily synchronized my imap folders when applied.

Ok ?

---

$OpenBSD$
--- src/data-types/mailstream_ssl.c.orig        Mon Apr 18 23:45:10 2016
+++ src/data-types/mailstream_ssl.c     Mon Apr 18 23:45:32 2016
@@ -491,7 +491,7 @@ static struct mailstream_ssl_data * ssl_data_new(int f
 static struct mailstream_ssl_data * tls_data_new(int fd, time_t timeout,
   void (* callback)(struct mailstream_ssl_context * ssl_context, void * 
cb_data), void * cb_data)
 {
-  return ssl_data_new_full(fd, timeout, TLSv1_client_method(), callback, 
cb_data);
+  return ssl_data_new_full(fd, timeout, TLS_client_method(), callback, 
cb_data);
 }
 
 #else

Reply via email to