preauth_auth.h
Go to the documentation of this file.
00001 /*
00002  * hostapd - Authenticator for IEEE 802.11i RSN pre-authentication
00003  * Copyright (c) 2004-2005, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef PREAUTH_H
00016 #define PREAUTH_H
00017 
00018 #ifdef CONFIG_RSN_PREAUTH
00019 
00020 int rsn_preauth_iface_init(struct hostapd_data *hapd);
00021 void rsn_preauth_iface_deinit(struct hostapd_data *hapd);
00022 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta,
00023                           int success);
00024 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta,
00025                       u8 *buf, size_t len);
00026 void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta);
00027 
00028 #else /* CONFIG_RSN_PREAUTH */
00029 
00030 static inline int rsn_preauth_iface_init(struct hostapd_data *hapd)
00031 {
00032         return 0;
00033 }
00034 
00035 static inline void rsn_preauth_iface_deinit(struct hostapd_data *hapd)
00036 {
00037 }
00038 
00039 static inline void rsn_preauth_finished(struct hostapd_data *hapd,
00040                                         struct sta_info *sta,
00041                                         int success)
00042 {
00043 }
00044 
00045 static inline void rsn_preauth_send(struct hostapd_data *hapd,
00046                                     struct sta_info *sta,
00047                                     u8 *buf, size_t len)
00048 {
00049 }
00050 
00051 static inline void rsn_preauth_free_station(struct hostapd_data *hapd,
00052                                             struct sta_info *sta)
00053 {
00054 }
00055 
00056 #endif /* CONFIG_RSN_PREAUTH */
00057 
00058 #endif /* PREAUTH_H */


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:35