https://github.com/python/cpython/commit/7b96701cccce2797f88527d6a980dbcfdb0af851
commit: 7b96701cccce2797f88527d6a980dbcfdb0af851
branch: main
author: Bénédikt Tran <[email protected]>
committer: picnixz <[email protected]>
date: 2025-05-04T21:55:49+02:00
summary:

gh-133042: disable HACL* HMAC on Emscripten (#133064)

files:
M configure
M configure.ac

diff --git a/configure b/configure
index 397f867df34dc2..65a493af2a3168 100755
--- a/configure
+++ b/configure
@@ -32811,7 +32811,7 @@ printf %s "checking for stdlib extension module 
_hmac... " >&6; }
         if test "$py_cv_module__hmac" != "n/a"
 then :
 
-    if true
+    if test "$ac_sys_system" != "Emscripten"
 then :
   if true
 then :
diff --git a/configure.ac b/configure.ac
index 76042522ae1e54..d53ba20579f658 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8051,7 +8051,10 @@ PY_HACL_CREATE_MODULE([BLAKE2], [_blake2], [test 
"$with_builtin_blake2" = yes])
 dnl HMAC builtin library does not need OpenSSL for now. In the future
 dnl we might want to rely on OpenSSL EVP/NID interface or implement
 dnl our own for algorithm resolution.
-PY_HACL_CREATE_MODULE([HMAC], [_hmac], [])
+dnl
+dnl For Emscripten, we disable HACL* HMAC as it is tricky to make it work.
+dnl See https://github.com/python/cpython/issues/133042.
+PY_HACL_CREATE_MODULE([HMAC], [_hmac], [test "$ac_sys_system" != "Emscripten"])
 ### end(cryptographic primitives)
 
 PY_STDLIB_MOD([_ctypes],

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to