Issue 20419: it's not possible to set ECDH curve name via ssl.wrap_socket (original) (raw)
ssl.wrap_socket is pretty much a legacy API. It has too many parameters already, and I don't really want to make it worse. The SSLContext API is designed to be more palatable, even though it's a bit less compact.
(also, ssl.wrap_socket will implicitly create a new context each time, which is wasteful - especially when context initialization implies loading certificates, etc.)