aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-12-14 13:58:13 (GMT)
committerJouni Malinen <j@w1.fi>2018-12-15 16:01:38 (GMT)
commit7bd8c76a4f8cf6b0b01ae986859481659931c793 (patch)
treea769504c7b9d2d63b2f39d8d8029b6da7d6c856e /hostapd/config_file.c
parent79fec6a92d69654af8b90715e7fd41e49238bbfa (diff)
downloadhostap-7bd8c76a4f8cf6b0b01ae986859481659931c793.zip
hostap-7bd8c76a4f8cf6b0b01ae986859481659931c793.tar.gz
hostap-7bd8c76a4f8cf6b0b01ae986859481659931c793.tar.bz2
HS 2.0 server: RADIUS server support for SIM provisioning
This adds support for hostapd-as-RADIUS-authentication-server to request subscription remediation for SIM-based credentials. The new hostapd.conf parameter hs20_sim_provisioning_url is used to set the URL prefix for the remediation server for SIM provisioning. The random hotspot2dot0-mobile-identifier-hash value will be added to the end of this URL prefix and the same value is stored in a new SQLite database table sim_provisioning for the subscription server implementation to use. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 0452b78..fd2f4e9 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -3817,6 +3817,9 @@ static int hostapd_config_fill(struct hostapd_config *conf,
} else if (os_strcmp(buf, "hs20_t_c_server_url") == 0) {
os_free(bss->t_c_server_url);
bss->t_c_server_url = os_strdup(pos);
+ } else if (os_strcmp(buf, "hs20_sim_provisioning_url") == 0) {
+ os_free(bss->hs20_sim_provisioning_url);
+ bss->hs20_sim_provisioning_url = os_strdup(pos);
#endif /* CONFIG_HS20 */
#ifdef CONFIG_MBO
} else if (os_strcmp(buf, "mbo") == 0) {