Skip to content

Commit

Permalink
ssl: Use "from tls import *" to be compatible with axtls.
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dpgeorge committed Mar 28, 2024
1 parent 661efa4 commit 45ead11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion python-stdlib/ssl/manifest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
metadata(version="0.2.0")
metadata(version="0.2.1")

module("ssl.py", opt=3)
9 changes: 1 addition & 8 deletions python-stdlib/ssl/ssl.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 45ead11

Please sign in to comment.