diff --git a/Lib/ssl.py b/Lib/ssl.py index 43c91a2..f405e8d 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -977,8 +977,7 @@ def sslwrap_simple(sock, keyfile=None, certfile=None): if hasattr(sock, "_sock"): sock = sock._sock - ssl_sock = _ssl.sslwrap(sock, 0, keyfile, certfile, CERT_NONE, - PROTOCOL_SSLv23, None) + ssl_sock = wrap_socket(sock, keyfile=keyfile, certfile=certfile) try: sock.getpeername() except socket_error: