Fix CONFIG_NO_WPA build with TLS
authorJouni Malinen <j@w1.fi>
Tue, 18 Dec 2012 13:16:00 +0000 (15:16 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 18 Dec 2012 13:16:00 +0000 (15:16 +0200)
The SHA1 and MD5 functions need to be included in builds that use TLS
even if WPA support is removed.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/Android.mk
wpa_supplicant/Makefile

index 7fdeb04..5ff908a 100644 (file)
@@ -846,7 +846,11 @@ NEED_DES=y
 # Shared TLS functions (needed for EAP_TLS, EAP_PEAP, EAP_TTLS, and EAP_FAST)
 OBJS += src/eap_peer/eap_tls_common.c
 OBJS_h += src/eap_server/eap_server_tls_common.c
+ifndef CONFIG_FIPS
 NEED_TLS_PRF=y
+NEED_SHA1=y
+NEED_MD5=y
+endif
 endif
 
 ifndef CONFIG_TLS
index 52962d1..65fef41 100644 (file)
@@ -859,6 +859,8 @@ OBJS += ../src/eap_peer/eap_tls_common.o
 OBJS_h += ../src/eap_server/eap_server_tls_common.o
 ifndef CONFIG_FIPS
 NEED_TLS_PRF=y
+NEED_SHA1=y
+NEED_MD5=y
 endif
 endif