bpo-23749: Implement loop.start_tls() (#5039)

This commit is contained in:
Yury Selivanov 2017-12-30 00:35:36 -05:00 committed by GitHub
parent bbdb17d19b
commit f111b3dcb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 580 additions and 54 deletions

View file

@ -305,6 +305,17 @@ class AbstractEventLoop:
"""
raise NotImplementedError
async def start_tls(self, transport, protocol, sslcontext, *,
server_side=False,
server_hostname=None,
ssl_handshake_timeout=None):
"""Upgrade a transport to TLS.
Return a new transport that *protocol* should start using
immediately.
"""
raise NotImplementedError
async def create_unix_connection(
self, protocol_factory, path=None, *,
ssl=None, sock=None,