From: Alan T. DeKok Date: Sat, 21 Dec 2024 11:49:54 +0000 (-0500) Subject: EAP-TEAP: Don't complain about missing PAC when teap_provisioning=0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b529aad973bef69611924788e36b85f8b844290;p=thirdparty%2Fhostap.git EAP-TEAP: Don't complain about missing PAC when teap_provisioning=0 If we're not provisioning, then we don't need the PAC. RFC 7170bis officially deprecates the PAC, and it doesn't appear that other TEAP implementations use it. Signed-off-by: Alan DeKok --- diff --git a/src/eap_peer/eap_teap.c b/src/eap_peer/eap_teap.c index ced7b1642..9a6c2dff4 100644 --- a/src/eap_peer/eap_teap.c +++ b/src/eap_peer/eap_teap.c @@ -205,6 +205,9 @@ static void * eap_teap_init(struct eap_sm *sm) return NULL; } + if (!data->provisioning_allowed && !config->pac_file) + return data; + if (!config->pac_file) { wpa_printf(MSG_INFO, "EAP-TEAP: No PAC file configured"); eap_teap_deinit(sm, data);