summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wpa
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2007-11-10 20:26:08 +0000
committersam <sam@FreeBSD.org>2007-11-10 20:26:08 +0000
commit016f03a8232813999a2be3f948bbf75e5d579191 (patch)
tree1c0d6ff5317fc35b73dce1f437cc1cfa05776f34 /usr.sbin/wpa
parent8cb25b93ad1a1f2149c7d1ef9992d075bdbcd71c (diff)
downloadFreeBSD-src-016f03a8232813999a2be3f948bbf75e5d579191.zip
FreeBSD-src-016f03a8232813999a2be3f948bbf75e5d579191.tar.gz
fix building w/ WITHOUT_WPA_SUPPLICANT_EAPOL
MFC after: 1 week
Diffstat (limited to 'usr.sbin/wpa')
-rw-r--r--usr.sbin/wpa/wpa_supplicant/Makefile27
1 files changed, 19 insertions, 8 deletions
diff --git a/usr.sbin/wpa/wpa_supplicant/Makefile b/usr.sbin/wpa/wpa_supplicant/Makefile
index f6b18d5..9dd9536 100644
--- a/usr.sbin/wpa/wpa_supplicant/Makefile
+++ b/usr.sbin/wpa/wpa_supplicant/Makefile
@@ -102,25 +102,36 @@ SRCS+= eap_pax.c eap_pax_common.c
SRCS+= eap_sake.c eap_sake_common.c
.endif
-.if defined(NEED_SHA256)
-CFLAGS+=-DINTERNAL_SHA256
-SRCS+= sha256.c
-.endif
-
# NB: requires patch to openssl
#CFLAGS+= -DEAP_FAST
#SRCS+= eap_fast.c
-DPADD+= ${LIBSSL} ${LIBCRYPTO}
-LDADD+= -lssl -lcrypto
+NEED_LIBSSL= true
.else
CFLAGS+= -DEAP_TLS_NONE
+SRCS+= tls_none.c
+.endif
+
+.endif
+
+#
+# Configure crypto/cipher support.
+#
+# EAPOL support requires openssl in which case we use their
+# cipher code. Otherwise we use our internal versions.
+#
+.if !defined(NEED_LIBSSL)
CFLAGS+= -DINTERNAL_AES
CFLAGS+= -DINTERNAL_SHA1
CFLAGS+= -DINTERNAL_MD5
-SRCS+= tls_none.c
+.else
+DPADD+= ${LIBSSL} ${LIBCRYPTO}
+LDADD+= -lssl -lcrypto
.endif
+.if defined(NEED_SHA256)
+CFLAGS+=-DINTERNAL_SHA256
+SRCS+= sha256.c
.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud