esp-idf/components/wpa_supplicant/src/eap_peer
Kapil Gupta 6f9cc06b30 fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements
The previous PEAP client behavior allowed the server to skip Phase 2
authentication with the expectation that the server was authenticated
during Phase 1 through TLS server certificate validation. Various PEAP
specifications are not exactly clear on what the behavior on this front
is supposed to be and as such, this ended up being more flexible than
the TTLS/FAST/TEAP cases. However, this is not really ideal when
unfortunately common misconfiguration of PEAP is used in deployed
devices where the server trust root (ca_cert) is not configured or the
user has an easy option for allowing this validation step to be skipped.

Change the default PEAP client behavior to be to require Phase 2
authentication to be successfully completed for cases where TLS session
resumption is not used and the client certificate has not been
configured. Those two exceptions are the main cases where a deployed
authentication server might skip Phase 2 and as such, where a more
strict default behavior could result in undesired interoperability
issues. Requiring Phase 2 authentication will end up disabling TLS
session resumption automatically to avoid interoperability issues.

Allow Phase 2 authentication behavior to be configured with a new phase1
configuration parameter option:
'phase2_auth' option can be used to control Phase 2 (i.e., within TLS
tunnel) behavior for PEAP:
 * 0 = do not require Phase 2 authentication
 * 1 = require Phase 2 authentication when client certificate
   (private_key/client_cert) is no used and TLS session resumption was
   not used (default)
 * 2 = require Phase 2 authentication in all cases
2024-03-15 13:22:10 +05:30
..
chap.c wpa_supplicant: add support for PAP, MS-CHAP and CHAP as Phase 2 algorithms for TTLS alongside MS-CHAPv2 2020-07-23 11:07:14 +00:00
chap.h wpa_supplicant: add support for PAP, MS-CHAP and CHAP as Phase 2 algorithms for TTLS alongside MS-CHAPv2 2020-07-23 11:07:14 +00:00
eap_common.c supplicant/esp_wifi: move supplicant to idf 2019-06-29 22:46:52 +08:00
eap_common.h supplicant/esp_wifi: move supplicant to idf 2019-06-29 22:46:52 +08:00
eap_config.h esp_wifi: Add support for EAP-FAST authentication method 2021-11-22 17:33:36 +05:30
eap_defs.h wpa_supplicant: Add WPS registrar support for softAP mode 2022-05-24 12:11:53 +05:30
eap_fast_common.c wpa_supplicant: sync eap code with upstream 2022-05-13 12:57:47 +08:00
eap_fast_common.h esp_wifi: Add support for EAP-FAST authentication method 2021-11-22 17:33:36 +05:30
eap_fast_pac.c wpa_supplicant: Fix issues reported by coverity 2022-04-26 21:40:27 +05:30
eap_fast_pac.h esp_wifi: Add support for EAP-FAST authentication method 2021-11-22 17:33:36 +05:30
eap_fast.c wpa_supplicant: sync eap code with upstream 2022-05-13 12:57:47 +08:00
eap_i.h change(esp_wifi): Rename WiFi enterprise connection APIs 2023-09-20 17:06:59 +05:30
eap_methods.h esp_wifi: Add support for EAP-FAST authentication method 2021-11-22 17:33:36 +05:30
eap_mschapv2.c wpa_supplicant:Remove stray \n in supplicant logging 2022-12-23 15:55:06 +05:30
eap_peap_common.c supplicant/esp_wifi: move supplicant to idf 2019-06-29 22:46:52 +08:00
eap_peap_common.h supplicant/esp_wifi: move supplicant to idf 2019-06-29 22:46:52 +08:00
eap_peap.c fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements 2024-03-15 13:22:10 +05:30
eap_tls_common.c fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements 2024-03-15 13:22:10 +05:30
eap_tls_common.h fix(wpa_supplicant): (PEAP client) Update Phase 2 auth requirements 2024-03-15 13:22:10 +05:30
eap_tls.c wpa_supplicant: sync eap code with upstream 2022-05-13 12:57:47 +08:00
eap_tls.h Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
eap_tlv_common.h supplicant/esp_wifi: move supplicant to idf 2019-06-29 22:46:52 +08:00
eap_ttls.c wpa_supplicant:Remove stray \n in supplicant logging 2022-12-23 15:55:06 +05:30
eap_ttls.h supplicant/esp_wifi: move supplicant to idf 2019-06-29 22:46:52 +08:00
eap.c wpa_supplicant : Add deinitialization of Enterprise config_methods. 2023-02-17 17:21:41 +05:30
eap.h wpa_supplicant: Add CA certification bundle support 2022-04-05 10:57:09 +05:30
mschapv2.c esp_wifi: Add support for EAP-FAST authentication method 2021-11-22 17:33:36 +05:30
mschapv2.h supplicant/esp_wifi: move supplicant to idf 2019-06-29 22:46:52 +08:00