aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
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/Makefile
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/Makefile')
-rw-r--r--hostapd/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 6575034..58213bb 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -761,11 +761,17 @@ OBJS += ../src/crypto/des-internal.o
endif
endif
+ifdef CONFIG_NO_RC4
+CFLAGS += -DCONFIG_NO_RC4
+endif
+
ifdef NEED_RC4
ifdef CONFIG_INTERNAL_RC4
+ifndef CONFIG_NO_RC4
OBJS += ../src/crypto/rc4.o
endif
endif
+endif
ifdef NEED_SHA256
CFLAGS += -DCONFIG_SHA256
@@ -989,9 +995,11 @@ NOBJS = nt_password_hash.o ../src/crypto/ms_funcs.o $(SHA1OBJS)
NOBJS += ../src/utils/common.o
ifdef NEED_RC4
ifdef CONFIG_INTERNAL_RC4
+ifndef CONFIG_NO_RC4
NOBJS += ../src/crypto/rc4.o
endif
endif
+endif
ifdef CONFIG_INTERNAL_MD5
NOBJS += ../src/crypto/md5-internal.o
endif