aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ieee802_1x.h
diff options
context:
space:
mode:
authorTerry Burton <tez@terryburton.co.uk>2019-07-21 12:05:56 (GMT)
committerJouni Malinen <j@w1.fi>2019-07-30 16:58:09 (GMT)
commitf4111ff3d1f19d219f3818f72cbfab80da10754a (patch)
tree722314a9f298cbe01473ab34c1d86847bd1e0dfd /src/ap/ieee802_1x.h
parent74707def8f1b8cdb1755f4f5698bb52b9c8a5442 (diff)
downloadhostap-f4111ff3d1f19d219f3818f72cbfab80da10754a.zip
hostap-f4111ff3d1f19d219f3818f72cbfab80da10754a.tar.gz
hostap-f4111ff3d1f19d219f3818f72cbfab80da10754a.tar.bz2
Extra RADIUS request attributes from SQLite
Add an SQLite table for defining per station MAC address version of radius_auth_req_attr/radius_acct_req_attr information. Create the necessary table and index where this doesn't exist. Select attributes from the table keyed by station MAC address and request type (auth or acct), parse and apply to a RADIUS message. Add radius_req_attr_sqlite hostapd config option for SQLite database file. Open/close RADIUS attribute database for a lifetime of a BSS and invoke functions to add extra attributes during RADIUS auth and accounting request generation. Signed-off-by: Terry Burton <tez@terryburton.co.uk>
Diffstat (limited to 'src/ap/ieee802_1x.h')
-rw-r--r--src/ap/ieee802_1x.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ap/ieee802_1x.h b/src/ap/ieee802_1x.h
index d771ba5..bb85b93 100644
--- a/src/ap/ieee802_1x.h
+++ b/src/ap/ieee802_1x.h
@@ -59,6 +59,8 @@ int add_common_radius_attr(struct hostapd_data *hapd,
struct hostapd_radius_attr *req_attr,
struct sta_info *sta,
struct radius_msg *msg);
+int add_sqlite_radius_attr(struct hostapd_data *hapd, struct sta_info *sta,
+ struct radius_msg *msg, int acct);
void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd,
struct sta_info *sta,
const u8 *eap, size_t len);