]>
git.ipfire.org Git - thirdparty/hostap.git/blob - src/rsn_supp/preauth.h
2 * wpa_supplicant - WPA2/RSN pre-authentication functions
3 * Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
12 struct wpa_scan_results
;
14 #if defined(IEEE8021X_EAPOL) && !defined(CONFIG_NO_WPA2)
16 void pmksa_candidate_free(struct wpa_sm
*sm
);
17 int rsn_preauth_init(struct wpa_sm
*sm
, const u8
*dst
,
18 struct eap_peer_config
*eap_conf
);
19 void rsn_preauth_deinit(struct wpa_sm
*sm
);
20 int rsn_preauth_scan_results(struct wpa_sm
*sm
);
21 void rsn_preauth_scan_result(struct wpa_sm
*sm
, const u8
*bssid
,
22 const u8
*ssid
, const u8
*rsn
);
23 void pmksa_candidate_add(struct wpa_sm
*sm
, const u8
*bssid
,
24 int prio
, int preauth
);
25 void rsn_preauth_candidate_process(struct wpa_sm
*sm
);
26 int rsn_preauth_get_status(struct wpa_sm
*sm
, char *buf
, size_t buflen
,
28 int rsn_preauth_in_progress(struct wpa_sm
*sm
);
30 #else /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
32 static inline void pmksa_candidate_free(struct wpa_sm
*sm
)
36 static inline void rsn_preauth_candidate_process(struct wpa_sm
*sm
)
40 static inline int rsn_preauth_init(struct wpa_sm
*sm
, const u8
*dst
,
41 struct eap_peer_config
*eap_conf
)
46 static inline void rsn_preauth_deinit(struct wpa_sm
*sm
)
50 static inline int rsn_preauth_scan_results(struct wpa_sm
*sm
)
55 static inline void rsn_preauth_scan_result(struct wpa_sm
*sm
, const u8
*bssid
,
56 const u8
*ssid
, const u8
*rsn
)
60 static inline void pmksa_candidate_add(struct wpa_sm
*sm
,
62 int prio
, int preauth
)
66 static inline int rsn_preauth_get_status(struct wpa_sm
*sm
, char *buf
,
67 size_t buflen
, int verbose
)
72 static inline int rsn_preauth_in_progress(struct wpa_sm
*sm
)
77 #endif /* IEEE8021X_EAPOL and !CONFIG_NO_WPA2 */
79 #endif /* PREAUTH_H */