micropython / micropython-lib

Core Python libraries ported to MicroPython
Other
2.3k stars 980 forks source link

ssl: Use "from tls import *" to be compatible with axtls. #836

Closed dpgeorge closed 3 months ago

dpgeorge commented 3 months ago

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.