]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-TEAP: Don't complain about missing PAC when teap_provisioning=0
authorAlan T. DeKok <aland@freeradius.org>
Sat, 21 Dec 2024 11:49:54 +0000 (06:49 -0500)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 10:31:12 +0000 (12:31 +0200)
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 <aland@freeradius.org>
src/eap_peer/eap_teap.c

index ced7b164292cb4809fb2c958b3f8b28039c9260c..9a6c2dff429f14c445718690e6288553ab206202 100644 (file)
@@ -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);