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 <[email protected]>
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

+1-1
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

+1-8
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)