[packages/python-pyxmpp] Rel 6; allow more moderns TLS versions

arekm arekm at pld-linux.org
Thu May 26 10:13:57 CEST 2022


commit 69359fce2fe6c8b140d91f3299e8a784691da4b7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 26 10:13:44 2022 +0200

    Rel 6; allow more moderns TLS versions

 python-pyxmpp.spec |  4 +++-
 tls.patch          | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/python-pyxmpp.spec b/python-pyxmpp.spec
index b806918..cfb16be 100644
--- a/python-pyxmpp.spec
+++ b/python-pyxmpp.spec
@@ -2,13 +2,14 @@ Summary:	Jabber/XMPP package for Python
 Summary(pl.UTF-8):	Biblioteka Jabber/XMPP dla Pythona
 Name:		python-pyxmpp
 Version:	1.1.2
-Release:	5
+Release:	6
 License:	LGPL
 Group:		Libraries/Python
 Source0:	http://cloud.github.com/downloads/Jajcus/pyxmpp/pyxmpp-%{version}.tar.gz
 # Source0-md5:	a38abf032aca0408b6055cd94296eb75
 Patch0:		%{name}-openfire_bug.patch
 Patch1:		%{name}-xep-0203.patch
+Patch2:		tls.patch
 URL:		http://pyxmpp.jajcus.net/
 BuildRequires:	rpmbuild(macros) >= 1.710
 BuildRequires:	libxml2-devel >= 2.6.19
@@ -30,6 +31,7 @@ Ten pakiet udostępnia interfejs Pythona do protokołów XMPP i Jabber.
 %setup -qn pyxmpp-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %py_build
diff --git a/tls.patch b/tls.patch
new file mode 100644
index 0000000..54ad066
--- /dev/null
+++ b/tls.patch
@@ -0,0 +1,11 @@
+--- pyxmpp-1.1.2/pyxmpp/streamtls.py~	2011-05-08 12:59:58.000000000 +0200
++++ pyxmpp-1.1.2/pyxmpp/streamtls.py	2022-05-26 10:12:46.669970986 +0200
+@@ -310,7 +310,7 @@ class StreamTLSMixIn:
+                     certfile = self.tls_settings.cert_file,
+                     server_side = not self.initiator,
+                     cert_reqs = cert_reqs,
+-                    ssl_version = ssl.PROTOCOL_TLSv1,
++                    ssl_version = ssl.PROTOCOL_TLS,
+                     ca_certs = self.tls_settings.cacert_file,
+                     do_handshake_on_connect = False,
+                     )
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pyxmpp.git/commitdiff/69359fce2fe6c8b140d91f3299e8a784691da4b7



More information about the pld-cvs-commit mailing list