mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
SAE-PK: Allow SAE-PK password to be set using the psk parameter
Only the sae_password parameter was previously accepted for SAE-PK use. That is not sufficient for covering mixed SAE+PSK cases. Extend this by allowing the psk parameter to be used as well just like it can be used for SAE without SAE-PK. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
7ca81190a8
commit
2a58968d39
@ -151,7 +151,10 @@ static struct wpabuf * sme_auth_build_sae_commit(struct wpa_supplicant *wpa_s,
|
||||
#ifdef CONFIG_SAE_PK
|
||||
if ((rsnxe_capa & BIT(WLAN_RSNX_CAPAB_SAE_PK)) &&
|
||||
ssid->sae_pk != SAE_PK_MODE_DISABLED &&
|
||||
ssid->sae_password && sae_pk_valid_password(ssid->sae_password)) {
|
||||
((ssid->sae_password &&
|
||||
sae_pk_valid_password(ssid->sae_password)) ||
|
||||
(!ssid->sae_password && ssid->passphrase &&
|
||||
sae_pk_valid_password(ssid->passphrase)))) {
|
||||
use_pt = 1;
|
||||
use_pk = true;
|
||||
}
|
||||
|
@ -1643,8 +1643,10 @@ int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
|
||||
wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_SAE_PK,
|
||||
wpa_key_mgmt_sae(ssid->key_mgmt) &&
|
||||
ssid->sae_pk != SAE_PK_MODE_DISABLED &&
|
||||
ssid->sae_password &&
|
||||
sae_pk_valid_password(ssid->sae_password));
|
||||
((ssid->sae_password &&
|
||||
sae_pk_valid_password(ssid->sae_password)) ||
|
||||
(!ssid->sae_password && ssid->passphrase &&
|
||||
sae_pk_valid_password(ssid->passphrase))));
|
||||
#endif /* CONFIG_SAE_PK */
|
||||
#ifdef CONFIG_TESTING_OPTIONS
|
||||
wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_FT_RSNXE_USED,
|
||||
|
Loading…
Reference in New Issue
Block a user