]> granicus.if.org Git - python/commit
[3.6] bpo-29781: Fix SSLObject.version before handshake (GH-3364) (#3381)
authorChristian Heimes <christian@python.org>
Wed, 6 Sep 2017 13:42:30 +0000 (06:42 -0700)
committerGitHub <noreply@github.com>
Wed, 6 Sep 2017 13:42:30 +0000 (06:42 -0700)
commit6da379bde345926e1f7318ead973767f4d791d3e
tree4083b467312562d9085d53098bf78ea932c48012
parentc3c3062169fad11e0e74aa85ff1f3d69c0170d42
[3.6] bpo-29781: Fix SSLObject.version before handshake (GH-3364) (#3381)

SSLObject.version() now correctly returns None when handshake over BIO has
not been performed yet.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 6877111)
Lib/test/test_ssl.py
Misc/NEWS.d/next/Security/2017-09-05-15-26-30.bpo-29781.LwYtBP.rst [new file with mode: 0644]
Modules/_ssl.c