Skip to content

Commit 49083aa

Browse files
committed
unconditionally build _hmac extension module
1 parent 5ae6b6d commit 49083aa

File tree

2 files changed

+7
-53
lines changed

2 files changed

+7
-53
lines changed

configure

Lines changed: 6 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7460,15 +7460,6 @@ for builtin_hash in $with_builtin_hashlib_hashes; do
74607460
done
74617461
IFS=$as_save_IFS
74627462

7463-
# builtin HACL* HMAC module
7464-
AC_MSG_CHECKING([for --with-builtin-hashlib-hmac=yes,no])
7465-
AC_ARG_WITH([builtin-hashlib-hmac],
7466-
[AS_HELP_STRING([--with-builtin-hashlib-hmac],
7467-
[use builtin HACL* HMAC when possible @<:@default is yes@:>@])],
7468-
[with_builtin_hashlib_hmac=$with_val],
7469-
[with_builtin_hashlib_hmac=yes])
7470-
AC_MSG_RESULT([$with_builtin_hashlib_hmac])
7471-
74727463
# Check whether to disable test modules. Once set, setup.py will not build
74737464
# test extension modules and "make install" will not install test suites.
74747465
AC_MSG_CHECKING([for --disable-test-modules])
@@ -7810,9 +7801,7 @@ PY_STDLIB_MOD([_sha2], [test "$with_builtin_sha2" = yes])
78107801
PY_STDLIB_MOD([_sha3], [test "$with_builtin_sha3" = yes])
78117802
PY_STDLIB_MOD([_blake2], [test "$with_builtin_blake2" = yes])
78127803

7813-
dnl We always build the '_hmac' extension module but falls back
7814-
dnl to the Python implementation if needs arise.
7815-
PY_STDLIB_MOD([_hmac], [test "$with_builtin_hashlib_hmac" = yes])
7804+
PY_STDLIB_MOD_SIMPLE([_hmac])
78167805

78177806
LIBHACL_CFLAGS='-I$(srcdir)/Modules/_hacl -I$(srcdir)/Modules/_hacl/include -D_BSD_SOURCE -D_DEFAULT_SOURCE $(PY_STDMODULE_CFLAGS) $(CCSHARED)'
78187807
case "$ac_sys_system" in

0 commit comments

Comments
 (0)