aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-10-25 22:42:14 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-25 22:42:14 (GMT)
commit8f3ea3175f80e75b326720f29b55a6888d8605cf (patch)
tree20fb569f4ada6adee524a2fe75f26ef41dfe6693 /wpa_supplicant
parent1248e58492300ac23e0072a4ca9e14ab8abee13c (diff)
downloadhostap-8f3ea3175f80e75b326720f29b55a6888d8605cf.zip
hostap-8f3ea3175f80e75b326720f29b55a6888d8605cf.tar.gz
hostap-8f3ea3175f80e75b326720f29b55a6888d8605cf.tar.bz2
tests: Fix build without CONFIG_ERP=y
hmac_sha256_kdf() got pulled in only if CONFIG_ERP=y is set. Fix test_sha256() by making the test case conditional on the function being present. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/Android.mk1
-rw-r--r--wpa_supplicant/Makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk
index efdb198..ef698d0 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -1277,6 +1277,7 @@ ifdef NEED_TLS_PRF_SHA256
SHA256OBJS += src/crypto/sha256-tlsprf.c
endif
ifdef NEED_HMAC_SHA256_KDF
+L_CFLAGS += -DCONFIG_HMAC_SHA256_KDF
SHA256OBJS += src/crypto/sha256-kdf.c
endif
OBJS += $(SHA256OBJS)
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index d6bebe3..61f8f18 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1301,6 +1301,7 @@ ifdef NEED_TLS_PRF_SHA256
SHA256OBJS += ../src/crypto/sha256-tlsprf.o
endif
ifdef NEED_HMAC_SHA256_KDF
+CFLAGS += -DCONFIG_HMAC_SHA256_KDF
OBJS += ../src/crypto/sha256-kdf.o
endif
OBJS += $(SHA256OBJS)