You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attached patch adds the "ssl_object" extra information to SSL sockets. For the legacy SSL implementation, it's a ssl.SSLSocket instance. For the new SSL implementation, it's a ssl.SSLObject instance.
ssl.SSLObject and ssl.SSLSocket have a similar but different API. Both classes provide important methods like getpeercert().
This issue fixes a regressions of Python 3.5 compared to Python 3.4 in asyncio SSL sockets: it's no more possible to get the peer certificate as a binary object (only as text). See the issue bpo-22768.
My patch adds also unit tests on SSL extra info. We only had poor unit tests on these info.
I pushed my change to Python 3.4, 3.6 and 3.6 and Github.
The strange thing is the put a different "versionchanged" tag in the doc: version 3.4.4 in the 3.4 branch, version 3.5.1 in the 3.5 and default branches.
Activity
vstinner commentedon Sep 14, 2015
Attached patch adds the "ssl_object" extra information to SSL sockets. For the legacy SSL implementation, it's a ssl.SSLSocket instance. For the new SSL implementation, it's a ssl.SSLObject instance.
ssl.SSLObject and ssl.SSLSocket have a similar but different API. Both classes provide important methods like getpeercert().
This issue fixes a regressions of Python 3.5 compared to Python 3.4 in asyncio SSL sockets: it's no more possible to get the peer certificate as a binary object (only as text). See the issue bpo-22768.
My patch adds also unit tests on SSL extra info. We only had poor unit tests on these info.
vstinner commentedon Sep 14, 2015
Workaround for Python 3.5.0: force the legacy SSL implementation. For example, monkey patch the asyncio module with:
vstinner commentedon Sep 18, 2015
Guido? Yury? Can you please review attached patch? It looks like a Python 3.5 regression.
1st1 commentedon Sep 21, 2015
the patch lgtm
python-dev commentedon Sep 21, 2015
New changeset d7859e7e7071 by Victor Stinner in branch '3.4':
Issue bpo-25114, asyncio: add ssl_object extra info to SSL transports
https://hg.python.org/cpython/rev/d7859e7e7071
[-]asynico: add ssl_object extra info[/-][+]asyncio: add ssl_object extra info[/+]python-dev commentedon Sep 21, 2015
New changeset 2f451651038c by Victor Stinner in branch '3.5':
Issue bpo-25114: Adjust versionchanged in the doc
https://hg.python.org/cpython/rev/2f451651038c
vstinner commentedon Sep 21, 2015
I pushed my change to Python 3.4, 3.6 and 3.6 and Github.
The strange thing is the put a different "versionchanged" tag in the doc: version 3.4.4 in the 3.4 branch, version 3.5.1 in the 3.5 and default branches.
python-dev commentedon Sep 21, 2015
New changeset 32e3a9e46f70 by Victor Stinner in branch '3.4':
Issue bpo-25114: Fix test_asyncio
https://hg.python.org/cpython/rev/32e3a9e46f70