aboutsummaryrefslogtreecommitdiffstats
path: root/eap_example
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-28 18:36:13 (GMT)
committerJouni Malinen <j@w1.fi>2009-07-28 18:36:13 (GMT)
commitad01a5315e6b23c8bc31d65a3f192f41d7a8595b (patch)
tree0b3322b351f19c5141d6cb816da6205da0fd3a15 /eap_example
parentbd4e28950d8141a8dd82da26e5ea6336437bd09c (diff)
downloadhostap-ad01a5315e6b23c8bc31d65a3f192f41d7a8595b.zip
hostap-ad01a5315e6b23c8bc31d65a3f192f41d7a8595b.tar.gz
hostap-ad01a5315e6b23c8bc31d65a3f192f41d7a8595b.tar.bz2
Crypto build cleanup: remove INTERNAL_MD5
Instead of using a define and conditional building of md5.c parts, move the internal-MD5 into a separate file.
Diffstat (limited to 'eap_example')
-rw-r--r--eap_example/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/eap_example/Makefile b/eap_example/Makefile
index 80cd003..86ea9e1 100644
--- a/eap_example/Makefile
+++ b/eap_example/Makefile
@@ -31,7 +31,6 @@ OBJS_both += ../src/utils/os_unix.o
OBJS_both += ../src/utils/wpa_debug.o
OBJS_both += ../src/utils/base64.o
OBJS_both += ../src/utils/wpabuf.o
-OBJS_both += ../src/crypto/md5.o
OBJS_both += ../src/crypto/rc4.o
OBJS_both += ../src/crypto/md4-internal.o
OBJS_both += ../src/crypto/sha1.o
@@ -45,6 +44,7 @@ OBJS_both += ../src/crypto/aes-internal.o
endif
SHA256OBJS = ../src/crypto/sha256.o
+MD5OBJS = ../src/crypto/md5.o
OBJS_both += ../src/eap_common/eap_peap_common.o
OBJS_both += ../src/eap_common/eap_psk_common.o
@@ -125,7 +125,7 @@ CFLAGS += -DCONFIG_TLS_INTERNAL
CFLAGS += -DCONFIG_CRYPTO_INTERNAL
CFLAGS += -DCONFIG_INTERNAL_X509
CONFIG_INTERNAL_SHA256=y
-CFLAGS += -DINTERNAL_MD5
+MD5OBJS += ../src/crypto/md5-internal.o
ifdef CONFIG_INTERNAL_LIBTOMMATH
CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
else
@@ -138,7 +138,7 @@ ifdef CONFIG_INTERNAL_SHA256
SHA256OBJS += ../src/crypto/sha256-internal.o
endif
-OBJS_both += $(SHA256OBJS)
+OBJS_both += $(SHA256OBJS) $(MD5OBJS)
# Optional components to add EAP server support