From 45ead11f965ddad664b8efe380d83155859e653b Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 28 Mar 2024 17:41:01 +1100 Subject: [PATCH] ssl: Use "from tls import *" to be compatible with axtls. axtls doesn't define all the CERT_xxx constants, nor the MBEDTLS_VERSION constant. This change means that `tls.SSLContext` is imported into the module, but that's subsequently overridden by the class definition in this module. Signed-off-by: Damien George --- python-stdlib/ssl/manifest.py | 2 +- python-stdlib/ssl/ssl.py | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/python-stdlib/ssl/manifest.py b/python-stdlib/ssl/manifest.py index 5dd0417..a995230 100644 --- a/python-stdlib/ssl/manifest.py +++ b/python-stdlib/ssl/manifest.py @@ -1,3 +1,3 @@ -metadata(version="0.2.0") +metadata(version="0.2.1") module("ssl.py", opt=3) diff --git a/python-stdlib/ssl/ssl.py b/python-stdlib/ssl/ssl.py index 19847d6..c61904b 100644 --- a/python-stdlib/ssl/ssl.py +++ b/python-stdlib/ssl/ssl.py @@ -1,12 +1,5 @@ import tls -from tls import ( - CERT_NONE, - CERT_OPTIONAL, - CERT_REQUIRED, - MBEDTLS_VERSION, - PROTOCOL_TLS_CLIENT, - PROTOCOL_TLS_SERVER, -) +from tls import * class SSLContext: