Browse Source
bpo-31386: Custom wrap_bio and wrap_socket type (#3426)
bpo-31386: Custom wrap_bio and wrap_socket type (#3426)
SSLSocket.wrap_bio() and SSLSocket.wrap_socket() hard-code SSLObject and SSLSocket as return types. In the light of future deprecation of ssl.wrap_socket() module function and direct instantiation of SSLSocket, it is desirable to make the return type of SSLSocket.wrap_bio() and SSLSocket.wrap_socket() customizable. Signed-off-by: Christian Heimes <christian@python.org>pull/3547/merge
committed by
GitHub
4 changed files with 67 additions and 13 deletions
-
36Doc/library/ssl.rst
-
26Lib/ssl.py
-
16Lib/test/test_ssl.py
-
2Misc/NEWS.d/next/Library/2017-09-07-12-15-56.bpo-27629.7xJXEy.rst
@ -0,0 +1,2 @@ |
|||
Make return types of SSLContext.wrap_bio() and SSLContext.wrap_socket() |
|||
customizable. |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue