From 45ac3be5506000bf53813ba4e5d12761e2f105bc Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 3 Apr 2020 09:50:30 +0100 Subject: [PATCH] ssl/ssl_verify -> tls/tls_verify --- examples/sasl.py | 2 +- ircrobots/params.py | 4 ++-- ircrobots/server.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/sasl.py b/examples/sasl.py index 5c22cb3..0354064 100644 --- a/examples/sasl.py +++ b/examples/sasl.py @@ -19,7 +19,7 @@ async def main(): "MyNickname", host = "chat.freenode.invalid", port = 6697, - ssl = True, + tls = True, sasl = sasl_params) await bot.add_server("freenode", params) diff --git a/ircrobots/params.py b/ircrobots/params.py index b522773..ef22693 100644 --- a/ircrobots/params.py +++ b/ircrobots/params.py @@ -25,11 +25,11 @@ class ConnectionParams(object): nickname: str host: str port: int - ssl: bool + tls: bool username: Optional[str] = None realname: Optional[str] = None bindhost: Optional[str] = None - ssl_verify: bool = True + tls_verify: bool = True sasl: Optional[SASLParams] = None diff --git a/ircrobots/server.py b/ircrobots/server.py index f68f068..e374ec7 100644 --- a/ircrobots/server.py +++ b/ircrobots/server.py @@ -47,8 +47,8 @@ class Server(IServer): async def connect(self, params: ConnectionParams): cur_ssl: Optional[SSLContext] = None - if params.ssl: - cur_ssl = ssl_context(params.ssl_verify) + if params.tls: + cur_ssl = ssl_context(params.tls_verify) reader, writer = await asyncio.open_connection( params.host,