]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133042: disable HACL* HMAC on Emscripten (#133064)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sun, 4 May 2025 19:55:49 +0000 (21:55 +0200)
committerGitHub <noreply@github.com>
Sun, 4 May 2025 19:55:49 +0000 (21:55 +0200)
configure
configure.ac

index 397f867df34dc285dd8d57398f959662ed5c2343..65a493af2a3168c081b88a3ed9ec3b169f79cb1c 100755 (executable)
--- 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 :
index 76042522ae1e54f4ac0e46a609f72a910b1a0090..d53ba20579f6586215d3881f154d0fb298e8211a 100644 (file)
@@ -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],