summaryrefslogtreecommitdiff
path: root/unix
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-13 01:49:38 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-07-13 01:49:38 +0300
commit20283aec107d60f4339268f56fdf451d8867b49a (patch)
tree3b5b18862e780ff4703ec712407eca03eb0c069d /unix
parente32d1e17bb7c17b5474c4be696e5428ece973301 (diff)
extmod/modussl_axtls: Further changes to allow alternative SSL modules.
Make variable MICROPY_SSL_AXTLS=1 should be defined to activate modussl_axtls and link with -laxtls.
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 06c4edc1e..30441c9fd 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 9f826661a..f7912141a 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