[Python-checkins] [python/cpython] 66dc33: bpo-29334: Fix ssl.getpeercert for auto-handshake ...

GitHub noreply at github.com
Tue May 23 19:02:03 EDT 2017


 Branch: refs/heads/master
 Home: https://github.com/python/cpython
 Commit: 66dc33b6822be93f85d84d24d3f9159ff568fbbb
 https://github.com/python/cpython/commit/66dc33b6822be93f85d84d24d3f9159ff568fbbb
 Author: Christian Heimes <christian at python.org>
 Date: 2017年05月23日 (2017年5月23日)
 Changed paths:
 M Modules/_ssl.c
 Log Message:
 -----------
 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 at python.org>


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /