Skip to content

Commit

Permalink
Add a knob to forcefully disable sha256/512 support (needed for
Browse files Browse the repository at this point in the history
cross-builds).
  • Loading branch information
sobomax committed Feb 24, 2023
1 parent ed471b5 commit 49cecf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/digest_auth/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ SHA_512_256_SUPPORT:= $(shell printf '\#define EVP_sha512_256(x) \
_TEST_P_A_S_S_E_D_()\n\#include <openssl/evp.h>\n' \
| $(CPP_CMD) $(DEFS) 2>/dev/null | grep -q _TEST_P_A_S_S_E_D_ && echo yes)

ifeq ($(SHA_256_SUPPORT),yes)
ifeq ($(SHA_256_SUPPORT)$(SHA_256_SUPPORT_DISABLE),yes)
DEFS+=-DSHA_256_ENABLE
else
exclude_files+=$(wildcard *sha256.c)
endif

ifeq ($(SHA_512_256_SUPPORT),yes)
ifeq ($(SHA_512_256_SUPPORT)$(SHA_512_256_SUPPORT_DISABLE),yes)
DEFS+=-DSHA_512_256_ENABLE
else
exclude_files+=$(wildcard *sha512t256.c)
Expand Down

0 comments on commit 49cecf7

Please sign in to comment.