From 0885c4b2663481ebea94e158b17289a7a39a91ca Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 31 Dec 2024 09:45:06 +1100 Subject: [PATCH] configure: Make PEAP depend on microsoft extensions (#540) Since our only PEAP mechanism is MS-CHAP v2, the compile fails if we enable PEAP without MS extensions. Therefore, for now make PEAP depend on MS extensions, so if MS extensions are disabled, PEAP is automatically disabled. Signed-off-by: Paul Mackerras --- configure.ac | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index f8f88623..0ae420f2 100644 --- a/configure.ac +++ b/configure.ac @@ -130,9 +130,9 @@ AM_COND_IF([PPP_WITH_CBCP], AC_DEFINE([PPP_WITH_CBCP], 1, [Have Callback Protocol support])) # -# Disable Microsoft extensions will remove CHAP and MPPE support +# Disable Microsoft extensions will remove CHAP, MPPE and PEAP support AC_ARG_ENABLE([microsoft-extensions], - AS_HELP_STRING([--disable-microsoft-extensions], [Disable Microsoft CHAP / MPPE extensions])) + AS_HELP_STRING([--disable-microsoft-extensions], [Disable Microsoft CHAP / MPPE / PEAP extensions])) AM_CONDITIONAL(PPP_WITH_CHAPMS, test "x${enable_microsoft_extensions}" != "xno") AM_COND_IF([PPP_WITH_CHAPMS], @@ -193,9 +193,9 @@ AM_CONDITIONAL(PPP_WITH_EAPTLS, test "x${enable_eaptls}" != "xno") # Disable PEAP support AC_ARG_ENABLE([peap], AS_HELP_STRING([--disable-peap], [Disable PEAP authentication support])) -AS_IF([test "x${enable_peap}" != "xno"], +AS_IF([test "x${enable_peap}" != "xno" && test "x${enable_microsoft_extensions}" != "xno"], AC_DEFINE([PPP_WITH_PEAP], 1, [Have PEAP authentication support])) -AM_CONDITIONAL([PPP_WITH_PEAP], test "x${enable_peap}" != "xno") +AM_CONDITIONAL([PPP_WITH_PEAP], test "x${enable_peap}" != "xno" && test "x${enable_microsoft_extensions}" != "xno") # # Disable OpenSSL engine support @@ -359,6 +359,5 @@ Features enabled CBCP.................: ${enable_cbcp:-no} IPV6CP...............: ${enable_ipv6cp:-yes} EAP-TLS..............: ${enable_eaptls:-yes} - PEAP.................: ${enable_peap:-yes} systemd notifications: ${enable_systemd:-no} "