Skip to content

Commit

Permalink
configure: Make PEAP depend on microsoft extensions (#540)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
paulusmack authored Dec 30, 2024
1 parent 5efd40c commit 0885c4b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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}
"

0 comments on commit 0885c4b

Please sign in to comment.