Add build option to remove all internal RC4 uses
The new CONFIG_NO_RC4=y build option can be used to remove all internal hostapd and wpa_supplicant uses of RC4. It should be noted that external uses (e.g., within a TLS library) do not get disabled when doing this. This removes capability of supporting WPA/TKIP, dynamic WEP keys with IEEE 802.1X, WEP shared key authentication, and MSCHAPv2 password changes. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
a1eabc74b8
commit
7cb53ded11
12 changed files with 82 additions and 0 deletions
|
@ -511,6 +511,11 @@ static struct wpabuf * eap_mschapv2_change_password(
|
|||
struct eap_sm *sm, struct eap_mschapv2_data *data,
|
||||
struct eap_method_ret *ret, const struct eap_mschapv2_hdr *req, u8 id)
|
||||
{
|
||||
#ifdef CONFIG_NO_RC4
|
||||
wpa_printf(MSG_ERROR,
|
||||
"EAP-MSCHAPV2: RC4 not support in the build - cannot change password");
|
||||
return NULL;
|
||||
#else /* CONFIG_NO_RC4 */
|
||||
struct wpabuf *resp;
|
||||
int ms_len;
|
||||
const u8 *username, *password, *new_password;
|
||||
|
@ -628,6 +633,7 @@ static struct wpabuf * eap_mschapv2_change_password(
|
|||
fail:
|
||||
wpabuf_free(resp);
|
||||
return NULL;
|
||||
#endif /* CONFIG_NO_RC4 */
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue