From e3e3224a6fcf53b86488e513a4b983c44de0e6f3 Mon Sep 17 00:00:00 2001 From: Eike Friedrich Date: Wed, 7 Aug 2024 09:17:41 +0100 Subject: [PATCH] Update ussl to ssl no ussl library found built-in, but ssl is found. Note that neither actually verifies TLS certificates --- async_urequests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/async_urequests.py b/async_urequests.py index bd2d807..4f1789f 100644 --- a/async_urequests.py +++ b/async_urequests.py @@ -103,8 +103,8 @@ async def open_connection(host, port, ssl): raise er yield core._io_queue.queue_write(s) if ssl: - import ussl - s = ussl.wrap_socket(s, server_hostname=host) # WARNING, this blocks for a long time + import ssl + s = ssl.wrap_socket(s, server_hostname=host) # WARNING, this blocks for a long time yield core._io_queue.queue_write(s) ss = Stream(s) return ss, ss