summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-10-06 12:28:28 +1100
committerDamien George <damien.p.george@gmail.com>2016-10-06 12:28:28 +1100
commit056da75a8a034e3b91c9b52ca812394914342059 (patch)
tree734e243e56165d62573ca1b6160955358880cfc7 /esp8266
parent0bb3c7d3b7b8e670fd92c114b07fed1235c0d1ab (diff)
downloadmicropython-056da75a8a034e3b91c9b52ca812394914342059.tar.gz
micropython-056da75a8a034e3b91c9b52ca812394914342059.zip
esp8266: Make PY_UHASHLIB_SHA1 config depend on PY_USSL and SSL_AXTLS.
SHA1 can only be supported if ussl module is compiled in, and it uses axtls.
Diffstat (limited to 'esp8266')
-rw-r--r--esp8266/mpconfigport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h
index 4fc8d856b6..b59d6ef88b 100644
--- a/esp8266/mpconfigport.h
+++ b/esp8266/mpconfigport.h
@@ -53,7 +53,7 @@
#define MICROPY_PY_UBINASCII (1)
#define MICROPY_PY_UCTYPES (1)
#define MICROPY_PY_UHASHLIB (1)
-#define MICROPY_PY_UHASHLIB_SHA1 (1)
+#define MICROPY_PY_UHASHLIB_SHA1 (MICROPY_PY_USSL && MICROPY_SSL_AXTLS)
#define MICROPY_PY_UHEAPQ (1)
#define MICROPY_PY_UJSON (1)
#define MICROPY_PY_URANDOM (1)