diff options
author | gdt <gdt@pkgsrc.org> | 2020-12-19 19:16:22 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2020-12-19 19:16:22 +0000 |
commit | 5b2f72b6d21e7285228159090162e10c6dc65c01 (patch) | |
tree | df8257c851059dc3349bf6e653d8f235c5e81d4c /chat/py-xmpppy/patches/patch-xmpp_transports.py | |
parent | efdb29ffbdb4457c868329fcb9e6aac20699a3cb (diff) | |
download | pkgsrc-5b2f72b6d21e7285228159090162e10c6dc65c01.tar.gz |
py-xmpppy: Update to 0.6.2
Upstream lacks NEWS, but reading the commit logs this is bugfixes,
minor improvements and work towards python3
This does not work for me with python 3.8, so I'm leaving it as 2.7
only.
Diffstat (limited to 'chat/py-xmpppy/patches/patch-xmpp_transports.py')
-rw-r--r-- | chat/py-xmpppy/patches/patch-xmpp_transports.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/chat/py-xmpppy/patches/patch-xmpp_transports.py b/chat/py-xmpppy/patches/patch-xmpp_transports.py deleted file mode 100644 index c3040b6da9c..00000000000 --- a/chat/py-xmpppy/patches/patch-xmpp_transports.py +++ /dev/null @@ -1,33 +0,0 @@ -$NetBSD: patch-xmpp_transports.py,v 1.1 2015/11/08 22:02:57 schnoebe Exp $ - -Play better with python's after 2.6. - -Change how we're creating the SSL object/socket. -Change how we're getting information about the SSL/TLS connection. - -Changes taken from debian patch for the same purpose. - ---- xmpp/transports.py.orig 2009-04-07 08:34:09.000000000 +0000 -+++ xmpp/transports.py -@@ -27,7 +27,7 @@ Transports are stackable so you - f.e. T - Also exception 'error' is defined to allow capture of this module specific exceptions. - """ - --import socket,select,base64,dispatcher,sys -+import socket,ssl,select,base64,dispatcher,sys - from simplexml import ustr - from client import PlugIn - from protocol import * -@@ -312,9 +312,9 @@ class TLS(PlugIn): - """ Immidiatedly switch socket to TLS mode. Used internally.""" - """ Here we should switch pending_data to hint mode.""" - tcpsock=self._owner.Connection -- tcpsock._sslObj = socket.ssl(tcpsock._sock, None, None) -- tcpsock._sslIssuer = tcpsock._sslObj.issuer() -- tcpsock._sslServer = tcpsock._sslObj.server() -+ tcpsock._sslObj = ssl.wrap_socket(tcpsock._sock, None, None) -+ tcpsock._sslIssuer = tcpsock._sslObj.getpeercert().get('issuer') -+ tcpsock._sslServer = tcpsock._sslObj.getpeercert().get('server') - tcpsock._recv = tcpsock._sslObj.read - tcpsock._send = tcpsock._sslObj.write - |