Wrap the BIO objects incoming and outgoing and return an instance of SSLContext.sslobject_class (default SSLObject). The SSL routines will read input data from the incoming BIO and write data to the outgoing BIO.
3.7: The method returns an instance of SSLContext.sslobject_class instead of hard-coded SSLObject.
3.15: The server_side, server_hostname and session parameters are now validated as SSLContext.wrap_socket() validates them. Previously a context with check_hostname enabled and no server_hostname was accepted, and verified the certificate chain but never the peer’s identity.