Skip to content

Commit e6a7dc1

Browse files
committed
rp2/mpconfigport: Enable MD5, SHA1 and cryptolib on all boards.
This fixes a regression introduced by PR micropython#17926 / commit b5fcb33 which accidentally disabled `hashlib.sha1` and the `cryptolib` module on rp2 boards that don't have networking enabled, eg RPI_PICO. `hashlib.md5` is enabled to keep the configuration the same as boards that do have networking enabled. Signed-off-by: Damien George <[email protected]>
1 parent 2db2f53 commit e6a7dc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/rp2/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@
151151
#define MICROPY_PY_OS_URANDOM (1)
152152
#define MICROPY_PY_RE_MATCH_GROUPS (1)
153153
#define MICROPY_PY_RE_MATCH_SPAN_START_END (1)
154+
#define MICROPY_PY_HASHLIB_MD5 (1)
155+
#define MICROPY_PY_HASHLIB_SHA1 (1)
156+
#define MICROPY_PY_CRYPTOLIB (1)
154157
#define MICROPY_PY_TIME_GMTIME_LOCALTIME_MKTIME (1)
155158
#define MICROPY_PY_TIME_TIME_TIME_NS (1)
156159
#define MICROPY_PY_TIME_INCLUDEFILE "ports/rp2/modtime.c"

0 commit comments

Comments
 (0)