pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/fdm fdm: Backport patch to use SNI extension



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8ce091d72761
branches:  trunk
changeset: 326207:8ce091d72761
user:      leot <leot%pkgsrc.org@localhost>
date:      Sun Dec 02 00:48:46 2018 +0000

description:
fdm: Backport patch to use SNI extension

When TLS 1.3 is used at least imap.gmail.com requires SNI extension
otherwise fails as follow:

 certificate verification failed: self signed certificate

(This can happen with OpenSSL 1.1.1.)

Bump PKGREVISION

diffstat:

 mail/fdm/Makefile                |   4 ++--
 mail/fdm/distinfo                |   3 ++-
 mail/fdm/patches/patch-connect.c |  20 ++++++++++++++++++++
 3 files changed, 24 insertions(+), 3 deletions(-)

diffs (52 lines):

diff -r c8570e36c417 -r 8ce091d72761 mail/fdm/Makefile
--- a/mail/fdm/Makefile Sat Dec 01 23:36:15 2018 +0000
+++ b/mail/fdm/Makefile Sun Dec 02 00:48:46 2018 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2018/05/04 15:33:22 leot Exp $
+# $NetBSD: Makefile,v 1.11 2018/12/02 00:48:46 leot Exp $
 
 DISTNAME=      fdm-1.9
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    mail
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=nicm/}
 
diff -r c8570e36c417 -r 8ce091d72761 mail/fdm/distinfo
--- a/mail/fdm/distinfo Sat Dec 01 23:36:15 2018 +0000
+++ b/mail/fdm/distinfo Sun Dec 02 00:48:46 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2018/05/04 15:33:22 leot Exp $
+$NetBSD: distinfo,v 1.10 2018/12/02 00:48:46 leot Exp $
 
 SHA1 (fdm-1.9.tar.gz) = 818bf39418ae4b170b4c3aa7c852015bf4802d7a
 RMD160 (fdm-1.9.tar.gz) = f44d009ac29cdf244509ce032270758be7f4be32
@@ -6,4 +6,5 @@
 Size (fdm-1.9.tar.gz) = 175815 bytes
 SHA1 (patch-Makefile.am) = 864d905906a0bd78a6beb95093300fba0f52f10c
 SHA1 (patch-configure.ac) = 745810f7b1fe7cf4295cf8b68a9c4757c6ce4386
+SHA1 (patch-connect.c) = ee95c91b2bbf37539a3c94e006e135c5c6c49f86
 SHA1 (patch-fdm.h) = 98d01387d0e17d782950571c1b25e8faf841649b
diff -r c8570e36c417 -r 8ce091d72761 mail/fdm/patches/patch-connect.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/fdm/patches/patch-connect.c  Sun Dec 02 00:48:46 2018 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-connect.c,v 1.1 2018/12/02 00:48:46 leot Exp $
+
+Use SNI extension, from Tomasz Miasko in GitHub issue 50.
+
+From upstream commit dde4c369359dc12bfe93329f3df9c9dfd2e3837d.
+
+--- connect.c.orig     2018-12-02 00:37:55.540662771 +0000
++++ connect.c
+@@ -584,6 +584,11 @@ makessl(struct server *srv, int fd, int 
+               goto error;
+       }
+ 
++      if (SSL_set_tlsext_host_name(ssl, srv->host) != 1) {
++              *cause = sslerror("SSL_set_tlsext_host_name");
++              goto error;
++      }
++
+       if (SSL_set_fd(ssl, fd) != 1) {
+               *cause = sslerror("SSL_set_fd");
+               goto error;



Home | Main Index | Thread Index | Old Index