aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-08-16 19:24:11 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-16 19:24:11 (GMT)
commitab637dcb37057f433932ecc8d45e129cd2d14170 (patch)
tree07871af0f9ccfd32fb46e1383d5fda3297ab73ff /wpa_supplicant
parent0b5e98557ecacf7a27d053f42fd60f8b7f5dbdfd (diff)
downloadhostap-ab637dcb37057f433932ecc8d45e129cd2d14170.zip
hostap-ab637dcb37057f433932ecc8d45e129cd2d14170.tar.gz
hostap-ab637dcb37057f433932ecc8d45e129cd2d14170.tar.bz2
Move SHA256-based PRF function into a separate C file
This makes it easier to conditionally build in SHA256 functions based on which TLS/crypto library is used. Signed-hostap: 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 9b51f07..d0254ab 100644
--- a/wpa_supplicant/Android.mk
+++ b/wpa_supplicant/Android.mk
@@ -1123,6 +1123,7 @@ SHA256OBJS = # none by default
ifdef NEED_SHA256
L_CFLAGS += -DCONFIG_SHA256
SHA256OBJS += src/crypto/sha256.c
+SHA256OBJS += src/crypto/sha256-prf.c
ifdef CONFIG_INTERNAL_SHA256
SHA256OBJS += src/crypto/sha256-internal.c
endif
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 70c5788..2f42ea1 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1154,6 +1154,7 @@ SHA256OBJS = # none by default
ifdef NEED_SHA256
CFLAGS += -DCONFIG_SHA256
SHA256OBJS += ../src/crypto/sha256.o
+SHA256OBJS += ../src/crypto/sha256-prf.o
ifdef CONFIG_INTERNAL_SHA256
SHA256OBJS += ../src/crypto/sha256-internal.o
endif