PEAPv0: Added crypto_binding configuration option (part of phase1)
crypto_binding=# in phase1 network parameter can now be used to change the PEAPv0 cryptobinding behavior (0 = do not use, 1 = optional (default), 2 = required).
This commit is contained in:
parent
eaaab2bd98
commit
d6888f9e37
3 changed files with 22 additions and 0 deletions
|
@ -101,6 +101,17 @@ static int eap_peap_parse_phase1(struct eap_peap_data *data,
|
|||
"receiving tunneled EAP-Success");
|
||||
}
|
||||
|
||||
if (os_strstr(phase1, "crypto_binding=0")) {
|
||||
data->crypto_binding = NO_BINDING;
|
||||
wpa_printf(MSG_DEBUG, "EAP-PEAP: Do not use cryptobinding");
|
||||
} else if (os_strstr(phase1, "crypto_binding=1")) {
|
||||
data->crypto_binding = OPTIONAL_BINDING;
|
||||
wpa_printf(MSG_DEBUG, "EAP-PEAP: Optional cryptobinding");
|
||||
} else if (os_strstr(phase1, "crypto_binding=2")) {
|
||||
data->crypto_binding = REQUIRE_BINDING;
|
||||
wpa_printf(MSG_DEBUG, "EAP-PEAP: Require cryptobinding");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue