aboutsummaryrefslogtreecommitdiff
path: root/ports/unix
diff options
context:
space:
mode:
authorChristopher Cooper2017-11-10 21:57:34 +0000
committerPaul Sokolovsky2017-11-12 21:46:23 +0200
commit7413b3ce3e344a6a916cd55508dfda8f009df598 (patch)
tree1cf7a179e0d7f92e10327ba261e6c21d169f74fd /ports/unix
parent0535d0337042e2c33352aa58ef3f685c0124acab (diff)
extmod/moduhashlib: Enable SHA1 hashing when using "mbedtls" library.
The SHA1 hashing functionality is provided via the "axtls" library's implementation, and hence is unavailable when the "axtls" library is not being used. This change provides the same SHA1 hashing functionality when using the "mbedtls" library by using its implementation instead.
Diffstat (limited to 'ports/unix')
-rw-r--r--ports/unix/mpconfigport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/mpconfigport.h b/ports/unix/mpconfigport.h
index db382e0a7..a3d2bb7db 100644
--- a/ports/unix/mpconfigport.h
+++ b/ports/unix/mpconfigport.h
@@ -121,7 +121,7 @@
#define MICROPY_PY_UHEAPQ (1)
#define MICROPY_PY_UTIMEQ (1)
#define MICROPY_PY_UHASHLIB (1)
-#if MICROPY_PY_USSL && MICROPY_SSL_AXTLS
+#if MICROPY_PY_USSL
#define MICROPY_PY_UHASHLIB_SHA1 (1)
#endif
#define MICROPY_PY_UBINASCII (1)