FT: Add key management value FT-EAP-SHA384 for wpa_supplicant
This allows wpa_supplicant to be configuted to use the SHA384-based FT AKM. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c6f2eceb8b
commit
d8e8c992cd
2 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* WPA Supplicant / Configuration parser and common functions
|
* WPA Supplicant / Configuration parser and common functions
|
||||||
* Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi>
|
* Copyright (c) 2003-2018, Jouni Malinen <j@w1.fi>
|
||||||
*
|
*
|
||||||
* This software may be distributed under the terms of the BSD license.
|
* This software may be distributed under the terms of the BSD license.
|
||||||
* See README for more details.
|
* See README for more details.
|
||||||
|
@ -735,6 +735,10 @@ static int wpa_config_parse_key_mgmt(const struct parse_data *data,
|
||||||
val |= WPA_KEY_MGMT_FT_PSK;
|
val |= WPA_KEY_MGMT_FT_PSK;
|
||||||
else if (os_strcmp(start, "FT-EAP") == 0)
|
else if (os_strcmp(start, "FT-EAP") == 0)
|
||||||
val |= WPA_KEY_MGMT_FT_IEEE8021X;
|
val |= WPA_KEY_MGMT_FT_IEEE8021X;
|
||||||
|
#ifdef CONFIG_SHA384
|
||||||
|
else if (os_strcmp(start, "FT-EAP-SHA384") == 0)
|
||||||
|
val |= WPA_KEY_MGMT_FT_IEEE8021X_SHA384;
|
||||||
|
#endif /* CONFIG_SHA384 */
|
||||||
#endif /* CONFIG_IEEE80211R */
|
#endif /* CONFIG_IEEE80211R */
|
||||||
#ifdef CONFIG_IEEE80211W
|
#ifdef CONFIG_IEEE80211W
|
||||||
else if (os_strcmp(start, "WPA-PSK-SHA256") == 0)
|
else if (os_strcmp(start, "WPA-PSK-SHA256") == 0)
|
||||||
|
@ -892,6 +896,18 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data,
|
||||||
}
|
}
|
||||||
pos += ret;
|
pos += ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_SHA384
|
||||||
|
if (ssid->key_mgmt & WPA_KEY_MGMT_FT_IEEE8021X_SHA384) {
|
||||||
|
ret = os_snprintf(pos, end - pos, "%sFT-EAP-SHA384",
|
||||||
|
pos == buf ? "" : " ");
|
||||||
|
if (os_snprintf_error(end - pos, ret)) {
|
||||||
|
end[-1] = '\0';
|
||||||
|
return buf;
|
||||||
|
}
|
||||||
|
pos += ret;
|
||||||
|
}
|
||||||
|
#endif /* CONFIG_SHA384 */
|
||||||
#endif /* CONFIG_IEEE80211R */
|
#endif /* CONFIG_IEEE80211R */
|
||||||
|
|
||||||
#ifdef CONFIG_IEEE80211W
|
#ifdef CONFIG_IEEE80211W
|
||||||
|
|
|
@ -877,6 +877,8 @@ fast_reauth=1
|
||||||
# instead)
|
# instead)
|
||||||
# FT-PSK = Fast BSS Transition (IEEE 802.11r) with pre-shared key
|
# FT-PSK = Fast BSS Transition (IEEE 802.11r) with pre-shared key
|
||||||
# FT-EAP = Fast BSS Transition (IEEE 802.11r) with EAP authentication
|
# FT-EAP = Fast BSS Transition (IEEE 802.11r) with EAP authentication
|
||||||
|
# FT-EAP-SHA384 = Fast BSS Transition (IEEE 802.11r) with EAP authentication
|
||||||
|
# and using SHA384
|
||||||
# WPA-PSK-SHA256 = Like WPA-PSK but using stronger SHA256-based algorithms
|
# WPA-PSK-SHA256 = Like WPA-PSK but using stronger SHA256-based algorithms
|
||||||
# WPA-EAP-SHA256 = Like WPA-EAP but using stronger SHA256-based algorithms
|
# WPA-EAP-SHA256 = Like WPA-EAP but using stronger SHA256-based algorithms
|
||||||
# SAE = Simultaneous authentication of equals; pre-shared key/password -based
|
# SAE = Simultaneous authentication of equals; pre-shared key/password -based
|
||||||
|
|
Loading…
Reference in a new issue