Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python:misc
python-xmpppy
python-xmpppy-fix-issuer-problem.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-xmpppy-fix-issuer-problem.patch of Package python-xmpppy
diff -Naur a/xmpp/transports.py b/xmpp/transports.py --- a/xmpp/transports.py 2007-09-15 19:34:28.000000000 +0800 +++ b/xmpp/transports.py 2016-12-24 22:35:56.920451763 +0800 @@ -27,7 +27,7 @@ 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 * @@ -304,9 +304,9 @@ """ 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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor