summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2017-12-30 05:35:36 (GMT)
committerGitHub <noreply@github.com>2017-12-30 05:35:36 (GMT)
commitf111b3dcb414093a4efb9d74b69925e535ddc470 (patch)
tree9905a970a809f7f14cb378b5b90f1f9d06aebbeb /Lib/asyncio/events.py
parentbbdb17d19bb1d5443ca4417254e014ad64c04540 (diff)
downloadcpython-f111b3dcb414093a4efb9d74b69925e535ddc470.zip
cpython-f111b3dcb414093a4efb9d74b69925e535ddc470.tar.gz
cpython-f111b3dcb414093a4efb9d74b69925e535ddc470.tar.bz2
bpo-23749: Implement loop.start_tls() (#5039)
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 3a5dbad..9496d5c 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -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,