2008-02-27 20:34:43 -05:00
|
|
|
/*
|
|
|
|
* hostapd / IEEE 802.11 authentication (ACL)
|
|
|
|
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 09:46:35 -05:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-27 20:34:43 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef IEEE802_11_AUTH_H
|
|
|
|
#define IEEE802_11_AUTH_H
|
|
|
|
|
|
|
|
enum {
|
|
|
|
HOSTAPD_ACL_REJECT = 0,
|
|
|
|
HOSTAPD_ACL_ACCEPT = 1,
|
|
|
|
HOSTAPD_ACL_PENDING = 2,
|
|
|
|
HOSTAPD_ACL_ACCEPT_TIMEOUT = 3
|
|
|
|
};
|
|
|
|
|
|
|
|
int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr,
|
|
|
|
const u8 *msg, size_t len, u32 *session_timeout,
|
2011-12-11 06:01:57 -05:00
|
|
|
u32 *acct_interim_interval, int *vlan_id,
|
2012-08-19 07:20:10 -04:00
|
|
|
u8 *psk, int *has_psk, char **identity,
|
|
|
|
char **radius_cui);
|
2008-02-27 20:34:43 -05:00
|
|
|
int hostapd_acl_init(struct hostapd_data *hapd);
|
|
|
|
void hostapd_acl_deinit(struct hostapd_data *hapd);
|
|
|
|
|
|
|
|
#endif /* IEEE802_11_AUTH_H */
|