This commit is contained in:
Vitezslav Crhonek 2018-08-08 09:26:05 +02:00
parent fda31588f0
commit 670b05672b
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up fetchmail-6.3.26/socket.c.orig fetchmail-6.3.26/socket.c
--- fetchmail-6.3.26/socket.c.orig 2018-08-06 13:01:04.859681651 +0200
+++ fetchmail-6.3.26/socket.c 2018-08-06 13:00:55.005670522 +0200
@@ -1050,6 +1050,8 @@ int SSLOpen(int sock, char *mycert, char
SSL_use_RSAPrivateKey_file(_ssl_context[sock], mykey, SSL_FILETYPE_PEM);
}
+ SSL_set_tlsext_host_name(_ssl_context[sock], servercname);
+
if (SSL_set_fd(_ssl_context[sock], sock) == 0
|| SSL_connect(_ssl_context[sock]) < 1) {
ERR_print_errors_fp(stderr);

View File

@ -1,7 +1,7 @@
Summary: A remote mail retrieval and forwarding utility
Name: fetchmail
Version: 6.3.26
Release: 20%{?dist}
Release: 21%{?dist}
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
Source1: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz.asc
# systemd service file
@ -13,6 +13,8 @@ Patch0: fetchmail-6.3.26-ssl-backport.patch
# Minor fixes of inacurracies in options, usage message and man page (accepted upstream)
Patch1: fetchmail-6.3.26-options-usage-manpage.patch
Patch2: fetchmail-6.3.24-sslv3-in-ssllib-check.patch
# Set SNI, see bz#1611815
Patch3: fetchmail-6.3.26-ssl-set-sni.patch
URL: http://www.fetchmail.info/
# For a breakdown of the licensing, see COPYING
License: GPL+ and Public Domain
@ -34,6 +36,7 @@ connections.
%patch0 -p1 -b .ssl-backport
%patch1 -p1 -b .options-usage-manpage
%patch2 -p1 -b .sslv3-in-ssllib-check
%patch3 -p1 -b .ssl-set-sni
%build
%configure --enable-POP3 --enable-IMAP --with-ssl --with-hesiod \
@ -67,6 +70,10 @@ rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1*
%config(noreplace) %attr(0600, mail, mail) %{_sysconfdir}/fetchmailrc.example
%changelog
* Wed Aug 08 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.3.26-21
- Set SNI
Resolves: #1611815
* Mon Jul 23 2018 Vitezslav Crhonek <vcrhonek@redhat.com> - 6.3.26-20
- Remove unnecessary python-devel dependency
(disables build of fetchmailconf, but we don't pack it into rpm anyway)