On Sun, 26 Jan 2020 20:43:16 -0600
Amit Kulkarni <amit.o...@gmail.com> wrote:

> Got the same problem you describe now. Please go ahead George!
> 
> thanks

I have added tb's error check.  I will commit it tommorrow.  --George

Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/sylpheed/Makefile,v
retrieving revision 1.125
diff -u -p -r1.125 Makefile
--- Makefile    12 Jul 2019 20:47:38 -0000      1.125
+++ Makefile    27 Jan 2020 03:53:47 -0000
@@ -3,7 +3,7 @@
 COMMENT =              lightweight and user-friendly e-mail client
 
 DISTNAME =             sylpheed-3.7.0
-REVISION =             4
+REVISION =             5
 
 SHARED_LIBS +=                 sylph-0                   4.1 # 4.0
 SHARED_LIBS +=                 sylpheed-plugin-0         4.0 # 4.0
Index: patches/patch-libsylph_ssl_c
===================================================================
RCS file: patches/patch-libsylph_ssl_c
diff -N patches/patch-libsylph_ssl_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-libsylph_ssl_c        27 Jan 2020 03:53:47 -0000
@@ -0,0 +1,24 @@
+$OpenBSD$
+
+Use SNI; fixes TLSv1.3 to imap.gmail.com.
+Patch from Antonio Ospite,
+https://sylpheed.sraoss.jp/redmine/issues/306#note-3
+but with the addition of an error check.
+
+Index: libsylph/ssl.c
+--- libsylph/ssl.c.orig
++++ libsylph/ssl.c
+@@ -258,6 +258,13 @@ gboolean ssl_init_socket_with_method(SockInfo *sockinf
+               return FALSE;
+       }
+ 
++#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
++      if (!SSL_set_tlsext_host_name(sockinfo->ssl, sockinfo->hostname)) {
++              g_warning("Error setting servername extension\n");
++              return FALSE;
++      }
++#endif
++
+       SSL_set_fd(sockinfo->ssl, sockinfo->sock);
+       while ((ret = SSL_connect(sockinfo->ssl)) != 1) {
+               err = SSL_get_error(sockinfo->ssl, ret);

Reply via email to