aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-01-27 11:26:01 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-28 11:09:31 (GMT)
commit983c6a606bc839248ea0c69090e60c095a655bc6 (patch)
tree3001e9ddb8dfdca7cb05c316b7cd2aec3a8826e6 /hostapd/Makefile
parent3f56a2b7460a57a2b68b48b936be134bf04aa36d (diff)
downloadhostap-983c6a606bc839248ea0c69090e60c095a655bc6.zip
hostap-983c6a606bc839248ea0c69090e60c095a655bc6.tar.gz
hostap-983c6a606bc839248ea0c69090e60c095a655bc6.tar.bz2
OpenSSL: Replace internal HMAC-MD5 implementation
Use OpenSSL HMAC_* functions to implement HMAC-MD5 instead of depending on the src/crypto/md5.c implementation. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 894b652..513eb95 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -170,8 +170,6 @@ OBJS += ctrl_iface.o
OBJS += ../src/ap/ctrl_iface_ap.o
endif
-OBJS += ../src/crypto/md5.o
-
CFLAGS += -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX
ifdef CONFIG_IAPP
@@ -728,6 +726,10 @@ ifdef NEED_SHA1
OBJS += $(SHA1OBJS)
endif
+ifneq ($(CONFIG_TLS), openssl)
+OBJS += ../src/crypto/md5.o
+endif
+
ifdef NEED_MD5
ifdef CONFIG_INTERNAL_MD5
OBJS += ../src/crypto/md5-internal.o
@@ -954,7 +956,7 @@ hostapd_cli: $(OBJS_c)
$(Q)$(CC) $(LDFLAGS) -o hostapd_cli $(OBJS_c) $(LIBS_c)
@$(E) " LD " $@
-NOBJS = nt_password_hash.o ../src/crypto/ms_funcs.o $(SHA1OBJS) ../src/crypto/md5.o
+NOBJS = nt_password_hash.o ../src/crypto/ms_funcs.o $(SHA1OBJS)
NOBJS += ../src/utils/common.o
ifdef NEED_RC4
ifdef CONFIG_INTERNAL_RC4