mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
HS 2.0: Reject OSU connection for Single SSID case without OSU_NAI
The Single SSID case can only use OSEN, so reject the case where OSU_NAI is not set and open OSU connection would be used since that connection cannot succeed. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
6bf62f7fc4
commit
2fd8984b05
@ -2193,6 +2193,10 @@ static int osu_connect(struct hs20_osu_client *ctx, const char *bssid,
|
|||||||
set_network_quoted(ifname, id, "identity", osu_nai) < 0 ||
|
set_network_quoted(ifname, id, "identity", osu_nai) < 0 ||
|
||||||
set_network_quoted(ifname, id, "ca_cert", fname) < 0)
|
set_network_quoted(ifname, id, "ca_cert", fname) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
} else if (ssid2) {
|
||||||
|
wpa_printf(MSG_INFO, "No OSU_NAI set for RSN[OSEN]");
|
||||||
|
write_summary(ctx, "No OSU_NAI set for RSN[OSEN]");
|
||||||
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
if (set_network(ifname, id, "key_mgmt", "NONE") < 0)
|
if (set_network(ifname, id, "key_mgmt", "NONE") < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user