aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-10-28 23:55:48 +0000
committerCy Schubert <cy@FreeBSD.org>2021-10-29 02:38:12 +0000
commita30e8044aa4753858c189f3384dae2b2f25a150b (patch)
treed986d5612417c5a0b4d96dcb1fcf3bef754f309c /usr.sbin
parent3bfc837685b8128067b946b31dfe2120dae0d003 (diff)
downloadsrc-a30e8044aa4753858c189f3384dae2b2f25a150b.tar.gz
src-a30e8044aa4753858c189f3384dae2b2f25a150b.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 MFC after: 1 week
Diffstat (limited to 'usr.sbin')
-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 915b5312f02f..e43a6f539d92 100644
--- a/usr.sbin/wpa/Makefile.inc
+++ b/usr.sbin/wpa/Makefile.inc
@@ -56,7 +56,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
@@ -91,6 +90,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