aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-10-28 23:55:48 +0000
committerCy Schubert <cy@FreeBSD.org>2021-11-22 18:19:31 +0000
commitd8b607c5a9a36fbac6ee4e97314869a7f5306832 (patch)
treeb59d5cc5b1dd80988fbf550aae959e4f5c1f8d2f
parent354f82a53a68c0383a49abdbef01a047b371a2e6 (diff)
downloadsrc-d8b607c5a9a36fbac6ee4e97314869a7f5306832.tar.gz
src-d8b607c5a9a36fbac6ee4e97314869a7f5306832.zip
wpa: Fix WITHOUT_CRYPT build
PASN requires CRYPT and when built WITHOUT_CRYPT buildworld fails. Only enable PASN when MK_CRYPT is enabled (default). PR: 259517 Reported by: emaste Fixes: c1d255d3ffdbe447de3ab875bf4e7d7accc5bfc5 (cherry picked from commit a30e8044aa4753858c189f3384dae2b2f25a150b)
-rw-r--r--usr.sbin/wpa/Makefile.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/wpa/Makefile.inc b/usr.sbin/wpa/Makefile.inc
index e9a2053c6095..013973dde14e 100644
--- a/usr.sbin/wpa/Makefile.inc
+++ b/usr.sbin/wpa/Makefile.inc
@@ -54,7 +54,6 @@ CFLAGS+=-DCONFIG_TDLS
CFLAGS+=-DCONFIG_TERMINATE_ONLASTIF
CFLAGS+=-DCONFIG_TLS=openssl
CFLAGS+=-DCONFIG_MATCH_IFACE
-CFLAGS+=-DCONFIG_PASN
CFLAGS+=-DCONFIG_PTKSA_CACHE
CFLAGS+=-DEAP_SERVER
CFLAGS+=-DEAP_SERVER_GTC
@@ -89,6 +88,10 @@ NEED_AES_ENCBLOCK=y
NEED_AES_OMAC1=y
.endif
+.if ${MK_CRYPT} != "no"
+CFLAGS+=-DCONFIG_PASN
+.endif
+
.if !empty(CFLAGS:M*-DEAP_AKA)
NEED_SIM_COMMON=y
NEED_AES_CBC=y