mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-19 10:33:05 -05:00
wpa_gui-qt4: Set EAP-FAST provisioning parameters
This commit is contained in:
parent
be8b1f2eb0
commit
4edd453933
@ -305,14 +305,25 @@ void NetworkConfig::addNetwork()
|
|||||||
snprintf(phase2, sizeof(phase2), "auth=%s",
|
snprintf(phase2, sizeof(phase2), "auth=%s",
|
||||||
inner.toAscii().constData());
|
inner.toAscii().constData());
|
||||||
} else if (eap.compare("FAST") == 0) {
|
} else if (eap.compare("FAST") == 0) {
|
||||||
if (inner.startsWith("EAP-"))
|
char *provisioning = NULL;
|
||||||
|
if (inner.startsWith("EAP-")) {
|
||||||
snprintf(phase2, sizeof(phase2), "auth=%s",
|
snprintf(phase2, sizeof(phase2), "auth=%s",
|
||||||
inner.right(inner.size() - 4).
|
inner.right(inner.size() - 4).
|
||||||
toAscii().constData());
|
toAscii().constData());
|
||||||
else if (inner.compare("GTC(auth) + MSCHAPv2(prov)") ==
|
provisioning = "fast_provisioning=2";
|
||||||
0) {
|
} else if (inner.compare("GTC(auth) + MSCHAPv2(prov)")
|
||||||
|
== 0) {
|
||||||
snprintf(phase2, sizeof(phase2),
|
snprintf(phase2, sizeof(phase2),
|
||||||
"auth=GTC MSCHAPV2");
|
"auth=GTC MSCHAPV2");
|
||||||
|
provisioning = "fast_provisioning=1";
|
||||||
|
}
|
||||||
|
if (provisioning) {
|
||||||
|
char blob[32];
|
||||||
|
setNetworkParam(id, "phase1", provisioning,
|
||||||
|
true);
|
||||||
|
snprintf(blob, sizeof(blob),
|
||||||
|
"blob://fast-pac-%d", id);
|
||||||
|
setNetworkParam(id, "pac_file", blob, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (phase2[0])
|
if (phase2[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user