pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/isync Support SNI with upstream patch



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2e15786c2a2c
branches:  trunk
changeset: 330930:2e15786c2a2c
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Fri Mar 08 18:14:45 2019 +0000

description:
Support SNI with upstream patch

* Support SNI. for example Google GMail IMAP4 server
* Bump PKGREVISION

diffstat:

 mail/isync/Makefile                   |   3 ++-
 mail/isync/distinfo                   |   4 ++--
 mail/isync/patches/patch-src_socket.c |  15 +++++++++++++--
 3 files changed, 17 insertions(+), 5 deletions(-)

diffs (54 lines):

diff -r 264a1187f09b -r 2e15786c2a2c mail/isync/Makefile
--- a/mail/isync/Makefile       Fri Mar 08 15:11:30 2019 +0000
+++ b/mail/isync/Makefile       Fri Mar 08 18:14:45 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.41 2018/09/19 13:08:14 schmonz Exp $
+# $NetBSD: Makefile,v 1.42 2019/03/08 18:14:45 ryoon Exp $
 
 DISTNAME=      isync-1.3.0
+PKGRESISION=   1
 CATEGORIES=    mail net
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=isync/}
 
diff -r 264a1187f09b -r 2e15786c2a2c mail/isync/distinfo
--- a/mail/isync/distinfo       Fri Mar 08 15:11:30 2019 +0000
+++ b/mail/isync/distinfo       Fri Mar 08 18:14:45 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2018/09/19 13:08:14 schmonz Exp $
+$NetBSD: distinfo,v 1.18 2019/03/08 18:14:45 ryoon Exp $
 
 SHA1 (isync-1.3.0.tar.gz) = 07f6d7cfc39ed2678791f625de70cdeff3d3bfba
 RMD160 (isync-1.3.0.tar.gz) = 01d7b028fc61e7ad3b51b529a082637fbc4a6816
@@ -8,4 +8,4 @@
 SHA1 (patch-af) = 14e50c12d34af78b379ea9b8bacbf835b6a009ce
 SHA1 (patch-src_Makefile.in) = b989a7627dbb7c989dd26c3e20beeceb000a7a47
 SHA1 (patch-src_compat_Makefile.in) = ffaba182c6b6b5c50fe82104d508438a3b62ecfd
-SHA1 (patch-src_socket.c) = a2dc6ed4a03f265456d73a01dee23e219ece75da
+SHA1 (patch-src_socket.c) = 33706f994ccd5f2f1263174bfe9d357bd8afe7c1
diff -r 264a1187f09b -r 2e15786c2a2c mail/isync/patches/patch-src_socket.c
--- a/mail/isync/patches/patch-src_socket.c     Fri Mar 08 15:11:30 2019 +0000
+++ b/mail/isync/patches/patch-src_socket.c     Fri Mar 08 18:14:45 2019 +0000
@@ -1,10 +1,21 @@
-$NetBSD: patch-src_socket.c,v 1.5 2018/09/19 13:08:14 schmonz Exp $
+$NetBSD: patch-src_socket.c,v 1.6 2019/03/08 18:14:45 ryoon Exp $
+
+Support SNI, from https://sourceforge.net/p/isync/isync/ci/17babc1695e82ca80d032b79e920fcb86ede2347/tree/src/socket.c?diff=f698f16967ae8341ff4b506f96b8cd5790c05d27
 
 Prevent mbsync from crashing, PR pkg/49784.
 
 --- src/socket.c.orig  2017-10-01 08:42:35.000000000 +0000
 +++ src/socket.c
-@@ -542,8 +542,10 @@ static void
+@@ -270,6 +270,8 @@ socket_start_tls( conn_t *conn, void (*c
+ 
+       init_wakeup( &conn->ssl_fake, ssl_fake_cb, conn );
+       conn->ssl = SSL_new( ((server_conf_t *)conn->conf)->SSLContext );
++      if (ssl_return( "set server name", conn, SSL_set_tlsext_host_name( conn->ssl, conn->conf->host ) ) < 0)
++              return;
+       SSL_set_fd( conn->ssl, conn->fd );
+       SSL_set_mode( conn->ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER );
+       socket_expect_read( conn, 1 );
+@@ -542,8 +544,10 @@ static void
  socket_connected( conn_t *conn )
  {
  #ifdef HAVE_IPV6



Home | Main Index | Thread Index | Old Index