summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-02-23 17:18:59 +0100
committerThomas Deutschmann <whissi@gentoo.org>2019-02-23 17:22:10 +0100
commita0929ecb1f22149df7aba7e00b5ea707ba7ca665 (patch)
tree36e177a0133ac77e5b54b0e722629cf16b6d947a /net-ftp/pure-ftpd/files
parentapp-admin/abrt: Use proper PATHs for non /usr merge systems (diff)
downloadgentoo-a0929ecb1f22149df7aba7e00b5ea707ba7ca665.tar.gz
gentoo-a0929ecb1f22149df7aba7e00b5ea707ba7ca665.tar.bz2
gentoo-a0929ecb1f22149df7aba7e00b5ea707ba7ca665.zip
net-ftp/pure-ftpd: temporarily disable TLSv1.3 support
Bug: https://github.com/jedisct1/pure-ftpd/issues/102 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'net-ftp/pure-ftpd/files')
-rw-r--r--net-ftp/pure-ftpd/files/pure-ftpd-1.0.47-disable-TLSv1.3.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-ftp/pure-ftpd/files/pure-ftpd-1.0.47-disable-TLSv1.3.patch b/net-ftp/pure-ftpd/files/pure-ftpd-1.0.47-disable-TLSv1.3.patch
new file mode 100644
index 000000000000..cbe9c8bdcb8f
--- /dev/null
+++ b/net-ftp/pure-ftpd/files/pure-ftpd-1.0.47-disable-TLSv1.3.patch
@@ -0,0 +1,21 @@
+Temporarily disable TLSv1.3 support
+
+Disable TLSv1.3 until support for it is fixed in pure-ftpd. This is a
+workaround for the following issue:
+https://github.com/jedisct1/pure-ftpd/issues/102
+
+--- a/src/tls.c
++++ b/src/tls.c
+@@ -301,6 +301,10 @@ int tls_init_library(void)
+ # endif
+ # ifdef SSL_OP_NO_TLSv1_2
+ SSL_CTX_clear_options(tls_ctx, SSL_OP_NO_TLSv1_2);
++# endif
++ /* Disable TLSv1.3 support until it works properly in pure-ftpd */
++# ifdef SSL_OP_NO_TLSv1_3
++ SSL_CTX_set_options(tls_ctx, SSL_OP_NO_TLSv1_3);
+ # endif
+ if (tlsciphersuite != NULL) {
+ if (SSL_CTX_set_cipher_list(tls_ctx, tlsciphersuite) != 1) {
+--
+2.20.1