1 |
commit: a0929ecb1f22149df7aba7e00b5ea707ba7ca665 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 23 16:18:59 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 23 16:22:10 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0929ecb |
7 |
|
8 |
net-ftp/pure-ftpd: temporarily disable TLSv1.3 support |
9 |
|
10 |
Bug: https://github.com/jedisct1/pure-ftpd/issues/102 |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
.../files/pure-ftpd-1.0.47-disable-TLSv1.3.patch | 21 +++++++++++++++++++++ |
15 |
...-1.0.47-r3.ebuild => pure-ftpd-1.0.47-r4.ebuild} | 1 + |
16 |
2 files changed, 22 insertions(+) |
17 |
|
18 |
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 |
19 |
new file mode 100644 |
20 |
index 00000000000..cbe9c8bdcb8 |
21 |
--- /dev/null |
22 |
+++ b/net-ftp/pure-ftpd/files/pure-ftpd-1.0.47-disable-TLSv1.3.patch |
23 |
@@ -0,0 +1,21 @@ |
24 |
+Temporarily disable TLSv1.3 support |
25 |
+ |
26 |
+Disable TLSv1.3 until support for it is fixed in pure-ftpd. This is a |
27 |
+workaround for the following issue: |
28 |
+https://github.com/jedisct1/pure-ftpd/issues/102 |
29 |
+ |
30 |
+--- a/src/tls.c |
31 |
++++ b/src/tls.c |
32 |
+@@ -301,6 +301,10 @@ int tls_init_library(void) |
33 |
+ # endif |
34 |
+ # ifdef SSL_OP_NO_TLSv1_2 |
35 |
+ SSL_CTX_clear_options(tls_ctx, SSL_OP_NO_TLSv1_2); |
36 |
++# endif |
37 |
++ /* Disable TLSv1.3 support until it works properly in pure-ftpd */ |
38 |
++# ifdef SSL_OP_NO_TLSv1_3 |
39 |
++ SSL_CTX_set_options(tls_ctx, SSL_OP_NO_TLSv1_3); |
40 |
+ # endif |
41 |
+ if (tlsciphersuite != NULL) { |
42 |
+ if (SSL_CTX_set_cipher_list(tls_ctx, tlsciphersuite) != 1) { |
43 |
+-- |
44 |
+2.20.1 |
45 |
|
46 |
diff --git a/net-ftp/pure-ftpd/pure-ftpd-1.0.47-r3.ebuild b/net-ftp/pure-ftpd/pure-ftpd-1.0.47-r4.ebuild |
47 |
similarity index 98% |
48 |
rename from net-ftp/pure-ftpd/pure-ftpd-1.0.47-r3.ebuild |
49 |
rename to net-ftp/pure-ftpd/pure-ftpd-1.0.47-r4.ebuild |
50 |
index 58e90f89ddc..48506572446 100644 |
51 |
--- a/net-ftp/pure-ftpd/pure-ftpd-1.0.47-r3.ebuild |
52 |
+++ b/net-ftp/pure-ftpd/pure-ftpd-1.0.47-r4.ebuild |
53 |
@@ -44,6 +44,7 @@ PATCHES=( |
54 |
"${FILESDIR}/${PN}-1.0.28-pam.patch" |
55 |
"${FILESDIR}/${PN}-1.0.47-MAX_DATA_SIZE.patch" |
56 |
"${FILESDIR}/${PN}-1.0.47-TLSv1.3.patch" |
57 |
+ "${FILESDIR}/${PN}-1.0.47-disable-TLSv1.3.patch" |
58 |
) |
59 |
|
60 |
src_configure() { |