summaryrefslogtreecommitdiffstatshomepage
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rw-r--r--unix/mpconfigport.h2
-rw-r--r--unix/mpconfigport.mk1
2 files changed, 2 insertions, 1 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 06c4edc1e2..30441c9fd2 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -111,7 +111,7 @@
#define MICROPY_PY_URE (1)
#define MICROPY_PY_UHEAPQ (1)
#define MICROPY_PY_UHASHLIB (1)
-#if MICROPY_PY_USSL
+#if MICROPY_PY_USSL && MICROPY_SSL_AXTLS
#define MICROPY_PY_UHASHLIB_SHA1 (1)
#endif
#define MICROPY_PY_UBINASCII (1)
diff --git a/unix/mpconfigport.mk b/unix/mpconfigport.mk
index 9f826661a9..f7912141af 100644
--- a/unix/mpconfigport.mk
+++ b/unix/mpconfigport.mk
@@ -28,6 +28,7 @@ MICROPY_PY_FFI = 1
# ussl module requires axtls
MICROPY_PY_USSL = 1
+MICROPY_SSL_AXTLS = 1
# jni module requires JVM/JNI
MICROPY_PY_JNI = 0