mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
Comment out RADIUS configuration parsing if RADIUS client support is
disabled in the build.
This commit is contained in:
parent
10656fc23a
commit
27750f29d6
@ -768,6 +768,7 @@ static int hostapd_config_read_eap_user(const char *fname,
|
|||||||
#endif /* EAP_SERVER */
|
#endif /* EAP_SERVER */
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef CONFIG_NO_RADIUS
|
||||||
static int
|
static int
|
||||||
hostapd_config_read_radius_addr(struct hostapd_radius_server **server,
|
hostapd_config_read_radius_addr(struct hostapd_radius_server **server,
|
||||||
int *num_server, const char *val, int def_port,
|
int *num_server, const char *val, int def_port,
|
||||||
@ -793,6 +794,7 @@ hostapd_config_read_radius_addr(struct hostapd_radius_server **server,
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif /* CONFIG_NO_RADIUS */
|
||||||
|
|
||||||
|
|
||||||
static int hostapd_config_parse_key_mgmt(int line, const char *value)
|
static int hostapd_config_parse_key_mgmt(int line, const char *value)
|
||||||
@ -1697,6 +1699,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
|
|||||||
}
|
}
|
||||||
} else if (os_strcmp(buf, "nas_identifier") == 0) {
|
} else if (os_strcmp(buf, "nas_identifier") == 0) {
|
||||||
bss->nas_identifier = os_strdup(pos);
|
bss->nas_identifier = os_strdup(pos);
|
||||||
|
#ifndef CONFIG_NO_RADIUS
|
||||||
} else if (os_strcmp(buf, "auth_server_addr") == 0) {
|
} else if (os_strcmp(buf, "auth_server_addr") == 0) {
|
||||||
if (hostapd_config_read_radius_addr(
|
if (hostapd_config_read_radius_addr(
|
||||||
&bss->radius->auth_servers,
|
&bss->radius->auth_servers,
|
||||||
@ -1751,6 +1754,7 @@ struct hostapd_config * hostapd_config_read(const char *fname)
|
|||||||
} else if (os_strcmp(buf, "radius_acct_interim_interval") == 0)
|
} else if (os_strcmp(buf, "radius_acct_interim_interval") == 0)
|
||||||
{
|
{
|
||||||
bss->radius->acct_interim_interval = atoi(pos);
|
bss->radius->acct_interim_interval = atoi(pos);
|
||||||
|
#endif /* CONFIG_NO_RADIUS */
|
||||||
} else if (os_strcmp(buf, "auth_algs") == 0) {
|
} else if (os_strcmp(buf, "auth_algs") == 0) {
|
||||||
bss->auth_algs = atoi(pos);
|
bss->auth_algs = atoi(pos);
|
||||||
if (bss->auth_algs == 0) {
|
if (bss->auth_algs == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user