aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorFrederic Leroy <frederic.leroy@b-com.com>2015-06-10 11:15:24 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-31 14:28:16 (GMT)
commit7b0f5500b023deed1acce88cacf3c4606907363f (patch)
tree18b999ebc773d4fc941998f6aa445fd920ffdbeb /hostapd
parenta6cc1e57474cbc542fda1d47fca859939d28832c (diff)
downloadhostap-7b0f5500b023deed1acce88cacf3c4606907363f.zip
hostap-7b0f5500b023deed1acce88cacf3c4606907363f.tar.gz
hostap-7b0f5500b023deed1acce88cacf3c4606907363f.tar.bz2
eap_sim_db: Implement eap_sim_db_expire_pending()
Expire pending DB request for EAP-SIM/AKA/AKA'. Timeout defaults to 1 second and is user configurable in hostapd.conf (eap_sim_db_timeout). Signed-off-by: Frederic Leroy <frederic.leroy@b-com.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
-rw-r--r--hostapd/hostapd.conf5
2 files changed, 7 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 2ee4620..bf42466 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2187,6 +2187,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
} else if (os_strcmp(buf, "eap_sim_db") == 0) {
os_free(bss->eap_sim_db);
bss->eap_sim_db = os_strdup(pos);
+ } else if (os_strcmp(buf, "eap_sim_db_timeout") == 0) {
+ bss->eap_sim_db_timeout = atoi(pos);
} else if (os_strcmp(buf, "eap_sim_aka_result_ind") == 0) {
bss->eap_sim_aka_result_ind = atoi(pos);
#endif /* EAP_SERVER_SIM */
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index c85681c..4f51140 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -832,6 +832,11 @@ eap_server=0
#eap_sim_db=unix:/tmp/hlr_auc_gw.sock
#eap_sim_db=unix:/tmp/hlr_auc_gw.sock db=/tmp/hostapd.db
+# EAP-SIM DB request timeout
+# This parameter sets the maximum time to wait for a database request response.
+# The parameter value is in seconds.
+#eap_sim_db_timeout=1
+
# Encryption key for EAP-FAST PAC-Opaque values. This key must be a secret,
# random value. It is configured as a 16-octet value in hex format. It can be
# generated, e.g., with the following command: