summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bisect.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2017-09-05 20:43:05 (GMT)
committerGitHub <noreply@github.com>2017-09-05 20:43:05 (GMT)
commit63b3f2b19cc96801c3b8619e4cf8aa9028e7a33c (patch)
tree2e27789a66a12671ebdbf2b3c0cd99909ca67a33 /Lib/test/test_bisect.py
parentf201e886fc7aaeb50f5e945578c6aec2a59a5323 (diff)
downloadcpython-63b3f2b19cc96801c3b8619e4cf8aa9028e7a33c.zip
cpython-63b3f2b19cc96801c3b8619e4cf8aa9028e7a33c.tar.gz
cpython-63b3f2b19cc96801c3b8619e4cf8aa9028e7a33c.tar.bz2
[3.6] bpo-29334: Fix ssl.getpeercert for auto-handshake (GH-1769) (#1778)
Drop handshake_done and peer_cert members from PySSLSocket struct. The peer certificate can be acquired from *SSL directly. SSL_get_peer_certificate() does not trigger any network activity. Instead of manually tracking the handshake state, simply use SSL_is_init_finished(). In combination these changes fix auto-handshake for non-blocking MemoryBIO connections. Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 66dc33b6822be93f85d84d24d3f9159ff568fbbb)
Diffstat (limited to 'Lib/test/test_bisect.py')
0 files changed, 0 insertions, 0 deletions