[New-bugs-announce] [issue25114] asynico: add ssl_object extra info

STINNER Victor report at bugs.python.org
Tue Sep 15 00:00:47 CEST 2015


New submission from STINNER Victor:

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.

----------
components: asyncio
files: ssl_object.patch
keywords: patch
messages: 250705
nosy: gvanrossum, haypo, mathieui, yselivanov
priority: normal
severity: normal
status: open
title: asynico: add ssl_object extra info
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40468/ssl_object.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25114>
_______________________________________


More information about the New-bugs-announce mailing list