2008-02-27 20:34:43 -05:00
|
|
|
/*
|
|
|
|
* wpa_supplicant - WPA2/RSN pre-authentication functions
|
2009-11-29 10:06:03 -05:00
|
|
|
* Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
|
2008-02-27 20:34:43 -05:00
|
|
|
*
|
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 PREAUTH_H
|
|
|
|
#define PREAUTH_H
|
|
|
|
|
|
|
|
struct wpa_scan_results;
|
|
|
|
|
2013-06-07 13:13:25 -04:00
|
|
|
#ifdef IEEE8021X_EAPOL
|
2008-02-27 20:34:43 -05:00
|
|
|
|
|
|
|
void pmksa_candidate_free(struct wpa_sm *sm);
|
|
|
|
int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
|
|
|
|
struct eap_peer_config *eap_conf);
|
|
|
|
void rsn_preauth_deinit(struct wpa_sm *sm);
|
2009-11-29 10:06:03 -05:00
|
|
|
int rsn_preauth_scan_results(struct wpa_sm *sm);
|
|
|
|
void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
|
|
|
|
const u8 *ssid, const u8 *rsn);
|
2008-02-27 20:34:43 -05:00
|
|
|
void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
|
|
|
|
int prio, int preauth);
|
|
|
|
void rsn_preauth_candidate_process(struct wpa_sm *sm);
|
|
|
|
int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
|
|
|
|
int verbose);
|
|
|
|
int rsn_preauth_in_progress(struct wpa_sm *sm);
|
|
|
|
|
2013-06-07 13:13:25 -04:00
|
|
|
#else /* IEEE8021X_EAPOL */
|
2008-02-27 20:34:43 -05:00
|
|
|
|
|
|
|
static inline void pmksa_candidate_free(struct wpa_sm *sm)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void rsn_preauth_candidate_process(struct wpa_sm *sm)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
|
|
|
|
struct eap_peer_config *eap_conf)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void rsn_preauth_deinit(struct wpa_sm *sm)
|
|
|
|
{
|
|
|
|
}
|
2009-11-29 10:06:03 -05:00
|
|
|
|
|
|
|
static inline int rsn_preauth_scan_results(struct wpa_sm *sm)
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2009-12-06 07:29:12 -05:00
|
|
|
static inline void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
|
|
|
|
const u8 *ssid, const u8 *rsn)
|
2008-02-27 20:34:43 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void pmksa_candidate_add(struct wpa_sm *sm,
|
|
|
|
const u8 *bssid,
|
|
|
|
int prio, int preauth)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int rsn_preauth_get_status(struct wpa_sm *sm, char *buf,
|
|
|
|
size_t buflen, int verbose)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int rsn_preauth_in_progress(struct wpa_sm *sm)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2013-06-07 13:13:25 -04:00
|
|
|
#endif /* IEEE8021X_EAPOL */
|
2008-02-27 20:34:43 -05:00
|
|
|
|
|
|
|
#endif /* PREAUTH_H */
|