Skip to content

Commit 45ead11

Browse files
committed
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 <damien@micropython.org>
1 parent 661efa4 commit 45ead11

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

python-stdlib/ssl/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
metadata(version="0.2.0")
1+
metadata(version="0.2.1")
22

33
module("ssl.py", opt=3)

python-stdlib/ssl/ssl.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import tls
2-
from tls import (
3-
CERT_NONE,
4-
CERT_OPTIONAL,
5-
CERT_REQUIRED,
6-
MBEDTLS_VERSION,
7-
PROTOCOL_TLS_CLIENT,
8-
PROTOCOL_TLS_SERVER,
9-
)
2+
from tls import *
103

114

125
class SSLContext:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy