aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Android.mk
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-08-01 20:37:07 (GMT)
committerJouni Malinen <j@w1.fi>2015-08-02 13:52:56 (GMT)
commit7cb53ded11a8e8f8436ceeb312a9ec643e3e3916 (patch)
treef42be500a97d7fcd772fb55ff8ecf2cd80931546 /hostapd/Android.mk
parenta1eabc74b8b799a80b615cfcc068862d94b827da (diff)
downloadhostap-7cb53ded11a8e8f8436ceeb312a9ec643e3e3916.zip
hostap-7cb53ded11a8e8f8436ceeb312a9ec643e3e3916.tar.gz
hostap-7cb53ded11a8e8f8436ceeb312a9ec643e3e3916.tar.bz2
Add build option to remove all internal RC4 uses
The new CONFIG_NO_RC4=y build option can be used to remove all internal hostapd and wpa_supplicant uses of RC4. It should be noted that external uses (e.g., within a TLS library) do not get disabled when doing this. This removes capability of supporting WPA/TKIP, dynamic WEP keys with IEEE 802.1X, WEP shared key authentication, and MSCHAPv2 password changes. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/Android.mk')
-rw-r--r--hostapd/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/hostapd/Android.mk b/hostapd/Android.mk
index 4cc55f2..28f443c 100644
--- a/hostapd/Android.mk
+++ b/hostapd/Android.mk
@@ -779,11 +779,17 @@ OBJS += src/crypto/des-internal.c
endif
endif
+ifdef CONFIG_NO_RC4
+L_CFLAGS += -DCONFIG_NO_RC4
+endif
+
ifdef NEED_RC4
ifdef CONFIG_INTERNAL_RC4
+ifndef CONFIG_NO_RC4
OBJS += src/crypto/rc4.c
endif
endif
+endif
ifdef NEED_SHA256
L_CFLAGS += -DCONFIG_SHA256