aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-11-16 11:20:51 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-16 11:20:51 (GMT)
commit666497c8e65c3e6981d0c142a442dd7202c5d0b4 (patch)
treee586ec63a69a8ca690f4e82bcad4812fdfd68c4a /wpa_supplicant/config.c
parenteec0cc8da2286133bb2c53fd695bd26aa2689eed (diff)
downloadhostap-666497c8e65c3e6981d0c142a442dd7202c5d0b4.zip
hostap-666497c8e65c3e6981d0c142a442dd7202c5d0b4.tar.gz
hostap-666497c8e65c3e6981d0c142a442dd7202c5d0b4.tar.bz2
Suite B: Add AKM 00-0F-AC:11
This adds definitions for the 128-bit level Suite B AKM 00-0F-AC:11. The functionality itself is not yet complete, i.e., this commit only includes parts to negotiate the new AKM. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/config.c')
-rw-r--r--wpa_supplicant/config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c
index 8d1e1e0..637cdf1 100644
--- a/wpa_supplicant/config.c
+++ b/wpa_supplicant/config.c
@@ -535,6 +535,8 @@ static int wpa_config_parse_key_mgmt(const struct parse_data *data,
else if (os_strcmp(start, "OSEN") == 0)
val |= WPA_KEY_MGMT_OSEN;
#endif /* CONFIG_HS20 */
+ else if (os_strcmp(start, "WPA-EAP-SUITE-B") == 0)
+ val |= WPA_KEY_MGMT_IEEE8021X_SUITE_B;
else {
wpa_printf(MSG_ERROR, "Line %d: invalid key_mgmt '%s'",
line, start);
@@ -711,6 +713,16 @@ static char * wpa_config_write_key_mgmt(const struct parse_data *data,
}
#endif /* CONFIG_HS20 */
+ if (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_SUITE_B) {
+ ret = os_snprintf(pos, end - pos, "%sWPA-EAP-SUITE-B",
+ pos == buf ? "" : " ");
+ if (ret < 0 || ret >= end - pos) {
+ end[-1] = '\0';
+ return buf;
+ }
+ pos += ret;
+ }
+
if (pos == buf) {
os_free(buf);
buf = NULL;