This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gvanrossum, mathieui, vstinner, yselivanov
Date 2015-09-14.22:00:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442268047.01.0.688232314675.issue25114@psf.upfronthosting.co.za>
In-reply-to
Content
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 #22768.

My patch adds also unit tests on SSL extra info. We only had poor unit tests on these info.
History
Date User Action Args
2015-09-14 22:00:47vstinnersetrecipients: + vstinner, gvanrossum, mathieui, yselivanov
2015-09-14 22:00:47vstinnersetmessageid: <1442268047.01.0.688232314675.issue25114@psf.upfronthosting.co.za>
2015-09-14 22:00:46vstinnerlinkissue25114 messages
2015-09-14 22:00:46vstinnercreate