18d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/*
28d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * hostapd / IEEE 802.11 authentication (ACL)
38d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
48d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * This software may be distributed under the terms of the BSD license.
6c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * See README for more details.
78d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
88d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
98d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#ifndef IEEE802_11_AUTH_H
108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define IEEE802_11_AUTH_H
118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtenum {
138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	HOSTAPD_ACL_REJECT = 0,
148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	HOSTAPD_ACL_ACCEPT = 1,
158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	HOSTAPD_ACL_PENDING = 2,
168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	HOSTAPD_ACL_ACCEPT_TIMEOUT = 3
178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt};
188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr,
208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt			    const u8 *msg, size_t len, u32 *session_timeout,
211f69aa52ea2e0a73ac502565df8c666ee49cab6aDmitry Shmidt			    u32 *acct_interim_interval, int *vlan_id,
2261d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt			    u8 *psk, int *has_psk, char **identity,
2361d9df3e62aaa0e87ad05452fcb95142159a17b6Dmitry Shmidt			    char **radius_cui);
248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint hostapd_acl_init(struct hostapd_data *hapd);
258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid hostapd_acl_deinit(struct hostapd_data *hapd);
268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* IEEE802_11_AUTH_H */
28