]>
Commit | Line | Data |
---|---|---|
6fc6879b JM |
1 | /* |
2 | * hostapd / IEEE 802.11 authentication (ACL) | |
3 | * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> | |
4 | * | |
0f3d578e JM |
5 | * This software may be distributed under the terms of the BSD license. |
6 | * See README for more details. | |
6fc6879b JM |
7 | */ |
8 | ||
9 | #ifndef IEEE802_11_AUTH_H | |
10 | #define IEEE802_11_AUTH_H | |
11 | ||
12 | enum { | |
13 | HOSTAPD_ACL_REJECT = 0, | |
14 | HOSTAPD_ACL_ACCEPT = 1, | |
15 | HOSTAPD_ACL_PENDING = 2, | |
16 | HOSTAPD_ACL_ACCEPT_TIMEOUT = 3 | |
17 | }; | |
18 | ||
29024efd MB |
19 | struct radius_sta { |
20 | u32 session_timeout; | |
21 | u32 acct_interim_interval; | |
22 | struct vlan_description vlan_id; | |
23 | struct hostapd_sta_wpa_psk_short *psk; | |
24 | char *identity; | |
25 | char *radius_cui; | |
26 | }; | |
27 | ||
1889af2e MB |
28 | int hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr, |
29 | struct vlan_description *vlan_id); | |
6fc6879b | 30 | int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, |
29024efd | 31 | const u8 *msg, size_t len, struct radius_sta *out, |
92eb00ae | 32 | int is_probe_req); |
6fc6879b JM |
33 | int hostapd_acl_init(struct hostapd_data *hapd); |
34 | void hostapd_acl_deinit(struct hostapd_data *hapd); | |
f2a14be7 | 35 | void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk); |
22fd2822 | 36 | void hostapd_acl_expire(struct hostapd_data *hapd); |
d4ceaafc MB |
37 | void hostapd_copy_psk_list(struct hostapd_sta_wpa_psk_short **psk, |
38 | struct hostapd_sta_wpa_psk_short *src); | |
6fc6879b JM |
39 | |
40 | #endif /* IEEE802_11_AUTH_H */ |