From 8655bf0b1f2df0d02e85abfaee53a431ac1a72bd Mon Sep 17 00:00:00 2001 From: Akinori Hattori Date: Tue, 11 Aug 2020 22:33:33 +0900 Subject: mail-client/sylpheed: enable SNI for TLS 1.3 Closes: https://bugs.gentoo.org/697460 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Akinori Hattori --- mail-client/sylpheed/files/sylpheed-tls-1.3.patch | 17 +++++++++++++++++ mail-client/sylpheed/sylpheed-3.7.0-r1.ebuild | 1 + 2 files changed, 18 insertions(+) create mode 100644 mail-client/sylpheed/files/sylpheed-tls-1.3.patch (limited to 'mail-client') diff --git a/mail-client/sylpheed/files/sylpheed-tls-1.3.patch b/mail-client/sylpheed/files/sylpheed-tls-1.3.patch new file mode 100644 index 000000000000..a8215dd2a0d1 --- /dev/null +++ b/mail-client/sylpheed/files/sylpheed-tls-1.3.patch @@ -0,0 +1,17 @@ +https://sylpheed.sraoss.jp/redmine/issues/306 + +Author: Antonio Ospite + +--- a/libsylph/ssl.c ++++ b/libsylph/ssl.c +@@ -262,6 +262,10 @@ gboolean ssl_init_socket_with_method(SockInfo *sockinfo, SSLMethod method) + return FALSE; + } + ++#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME ++ SSL_set_tlsext_host_name(sockinfo->ssl, sockinfo->hostname); ++#endif ++ + SSL_set_fd(sockinfo->ssl, sockinfo->sock); + while ((ret = SSL_connect(sockinfo->ssl)) != 1) { + err = SSL_get_error(sockinfo->ssl, ret); diff --git a/mail-client/sylpheed/sylpheed-3.7.0-r1.ebuild b/mail-client/sylpheed/sylpheed-3.7.0-r1.ebuild index aa5835e622df..86628b8d25bf 100644 --- a/mail-client/sylpheed/sylpheed-3.7.0-r1.ebuild +++ b/mail-client/sylpheed/sylpheed-3.7.0-r1.ebuild @@ -35,6 +35,7 @@ DEPEND="${CDEPEND} xface? ( media-libs/compface )" BDEPEND="virtual/pkgconfig" +PATCHES=( "${FILESDIR}"/${PN}-tls-1.3.patch ) DOCS="AUTHORS ChangeLog* NEW* PLUGIN* README* TODO*" src_configure() { -- cgit v1.2.3-65-gdbad