summaryrefslogtreecommitdiffstats
path: root/Modules/makesetup
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2017-05-23 23:02:02 (GMT)
committerGitHub <noreply@github.com>2017-05-23 23:02:02 (GMT)
commit66dc33b6822be93f85d84d24d3f9159ff568fbbb (patch)
tree90f66c29ee79e83355a5794f5f106ee2aac84fef /Modules/makesetup
parente0918ecf93a458d4e005650f816d64654e73fc2a (diff)
downloadcpython-66dc33b6822be93f85d84d24d3f9159ff568fbbb.zip
cpython-66dc33b6822be93f85d84d24d3f9159ff568fbbb.tar.gz
cpython-66dc33b6822be93f85d84d24d3f9159ff568fbbb.tar.bz2
bpo-29334: Fix ssl.getpeercert for auto-handshake (#1769)
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>
Diffstat (limited to 'Modules/makesetup')
0 files changed, 0 insertions, 0 deletions