preauth.h
Go to the documentation of this file.
00001 /*
00002  * wpa_supplicant - WPA2/RSN pre-authentication functions
00003  * Copyright (c) 2003-2009, 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 struct wpa_scan_results;
00019 
00020 #if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA2)
00021 
00022 void pmksa_candidate_free(struct wpa_sm *sm);
00023 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
00024                      struct eap_peer_config *eap_conf);
00025 void rsn_preauth_deinit(struct wpa_sm *sm);
00026 int rsn_preauth_scan_results(struct wpa_sm *sm);
00027 void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
00028                              const u8 *ssid, const u8 *rsn);
00029 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
00030                          int prio, int preauth);
00031 void rsn_preauth_candidate_process(struct wpa_sm *sm);
00032 int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
00033                            int verbose);
00034 int rsn_preauth_in_progress(struct wpa_sm *sm);
00035 
00036 #else /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
00037 
00038 static inline void pmksa_candidate_free(struct wpa_sm *sm)
00039 {
00040 }
00041 
00042 static inline void rsn_preauth_candidate_process(struct wpa_sm *sm)
00043 {
00044 }
00045 
00046 static inline int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
00047                                    struct eap_peer_config *eap_conf)
00048 {
00049         return -1;
00050 }
00051 
00052 static inline void rsn_preauth_deinit(struct wpa_sm *sm)
00053 {
00054 }
00055 
00056 static inline int rsn_preauth_scan_results(struct wpa_sm *sm)
00057 {
00058         return -1;
00059 }
00060 
00061 static inline void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
00062                                            const u8 *ssid, const u8 *rsn)
00063 {
00064 }
00065 
00066 static inline void pmksa_candidate_add(struct wpa_sm *sm,
00067                                        const u8 *bssid,
00068                                        int prio, int preauth)
00069 {
00070 }
00071 
00072 static inline int rsn_preauth_get_status(struct wpa_sm *sm, char *buf,
00073                                          size_t buflen, int verbose)
00074 {
00075         return 0;
00076 }
00077 
00078 static inline int rsn_preauth_in_progress(struct wpa_sm *sm)
00079 {
00080         return 0;
00081 }
00082 
00083 #endif /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
00084 
00085 #endif /* PREAUTH_H */


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