PyDocs

Nav

Networking and Interprocess Communication

SSLContext.wrap_bio

ssl

method of SSLContext (source) not WASI
  • SSLContext.wrap_bio(incoming, outgoing, server_side=False, server_hostname=None, session=None)
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.
Changed in 3.6, 3.7, 3.15
  • 3.6: session argument was added.
  • 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.
0 Examples
No examples for ssl/SSLContext.wrap_bio.
See Also
No see-alsos for ssl/SSLContext.wrap_bio
0 Notes
No notes for SSLContext.wrap_bio