1 |
commit: 55f5d8938ea10bd15797d263d9dd132c74c5cc4d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 11 13:16:02 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 11 13:16:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55f5d893 |
7 |
|
8 |
net-im/pidgin: Revbump to fix gnutls plugin |
9 |
|
10 |
Thanks-to: Phil Stracchino (Unix Ronin) <phils <AT> caerllewys.net> |
11 |
Closes: https://bugs.gentoo.org/708226 |
12 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
13 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
14 |
|
15 |
.../files/pidgin-2.13.0-gnutls_sni_support.patch | 33 ++++++++++++++++++++++ |
16 |
...in-2.13.0-r5.ebuild => pidgin-2.13.0-r6.ebuild} | 1 + |
17 |
2 files changed, 34 insertions(+) |
18 |
|
19 |
diff --git a/net-im/pidgin/files/pidgin-2.13.0-gnutls_sni_support.patch b/net-im/pidgin/files/pidgin-2.13.0-gnutls_sni_support.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..df6b8e5cd03 |
22 |
--- /dev/null |
23 |
+++ b/net-im/pidgin/files/pidgin-2.13.0-gnutls_sni_support.patch |
24 |
@@ -0,0 +1,33 @@ |
25 |
+# HG changeset patch |
26 |
+# User Mihai Moldovan <ionic@×××××.de> |
27 |
+# Date 1576498301 -3600 |
28 |
+# Branch release-2.x.y |
29 |
+# Node ID 6dba8046e1b120c506e1d911c6aa8757d7774c57 |
30 |
+# Parent 7a975763d3b64bdd8dd5371d711a4add647ed726 |
31 |
+Implement SNI support for the gnutls SSL plugin. |
32 |
+ |
33 |
+Note that gnutls is picky in regard to what it accepts as the server name - it |
34 |
+MUST be a domain name. IP addresses are not supported according to the |
35 |
+documentation. |
36 |
+ |
37 |
+Hence, filter out IP addresses and hope that whatever is not recognized as |
38 |
+such an address is actually a domain name. This will probably fail for more |
39 |
+exotic addresses (especially in IPv6 realm), but wiring up a full-blown parser |
40 |
+is too much effort and SSL plugins are not part of purple-3 anyway. |
41 |
+ |
42 |
+Fixes #17300 |
43 |
+ |
44 |
+diff --git a/libpurple/plugins/ssl/ssl-gnutls.c b/libpurple/plugins/ssl/ssl-gnutls.c |
45 |
+--- a/libpurple/plugins/ssl/ssl-gnutls.c |
46 |
++++ b/libpurple/plugins/ssl/ssl-gnutls.c |
47 |
+@@ -403,6 +403,10 @@ |
48 |
+ |
49 |
+ gnutls_transport_set_ptr(gnutls_data->session, GINT_TO_POINTER(gsc->fd)); |
50 |
+ |
51 |
++ /* SNI support. */ |
52 |
++ if (gsc->host && !g_hostname_is_ip_address(gsc->host)) |
53 |
++ gnutls_server_name_set(gnutls_data->session, GNUTLS_NAME_DNS, gsc->host, strlen(gsc->host)); |
54 |
++ |
55 |
+ gnutls_data->handshake_handler = purple_input_add(gsc->fd, |
56 |
+ PURPLE_INPUT_READ, ssl_gnutls_handshake_cb, gsc); |
57 |
+ |
58 |
|
59 |
diff --git a/net-im/pidgin/pidgin-2.13.0-r5.ebuild b/net-im/pidgin/pidgin-2.13.0-r6.ebuild |
60 |
similarity index 99% |
61 |
rename from net-im/pidgin/pidgin-2.13.0-r5.ebuild |
62 |
rename to net-im/pidgin/pidgin-2.13.0-r6.ebuild |
63 |
index b6fa6ecd077..aee1ccb0a4b 100644 |
64 |
--- a/net-im/pidgin/pidgin-2.13.0-r5.ebuild |
65 |
+++ b/net-im/pidgin/pidgin-2.13.0-r6.ebuild |
66 |
@@ -144,6 +144,7 @@ PATCHES=( |
67 |
"${DISTDIR}/${PN}-2.10.9-irc_join_sleep.patch" # 577286 |
68 |
"${FILESDIR}/${PN}-2.13.0-disable-one-jid-test.patch" # 593338 |
69 |
"${FILESDIR}/${PN}-2.13.0-python3_support.patch" #459996 |
70 |
+ "${FILESDIR}/${PN}-2.13.0-gnutls_sni_support.patch" #708226 |
71 |
) |
72 |
|
73 |
pkg_pretend() { |