kopia lustrzana https://github.com/micropython/micropython-lib
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>pull/836/head
rodzic
661efa48f0
commit
45ead11f96
|
@ -1,3 +1,3 @@
|
||||||
metadata(version="0.2.0")
|
metadata(version="0.2.1")
|
||||||
|
|
||||||
module("ssl.py", opt=3)
|
module("ssl.py", opt=3)
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
import tls
|
import tls
|
||||||
from tls import (
|
from tls import *
|
||||||
CERT_NONE,
|
|
||||||
CERT_OPTIONAL,
|
|
||||||
CERT_REQUIRED,
|
|
||||||
MBEDTLS_VERSION,
|
|
||||||
PROTOCOL_TLS_CLIENT,
|
|
||||||
PROTOCOL_TLS_SERVER,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class SSLContext:
|
class SSLContext:
|
||||||
|
|
Ładowanie…
Reference in New Issue