git: a30e8044aa47 - main - wpa: Fix WITHOUT_CRYPT build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Oct 2021 02:39:29 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=a30e8044aa4753858c189f3384dae2b2f25a150b
commit a30e8044aa4753858c189f3384dae2b2f25a150b
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-10-28 23:55:48 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-10-29 02:38:12 +0000
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
---
usr.sbin/wpa/Makefile.inc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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