wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
preauth.h
Go to the documentation of this file.
1 
5 #ifndef PREAUTH_H
6 #define PREAUTH_H
7 
8 struct wpa_scan_results;
9 
10 #ifdef IEEE8021X_EAPOL
11 
12 void pmksa_candidate_free(struct wpa_sm *sm);
13 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
14  struct eap_peer_config *eap_conf);
15 void rsn_preauth_deinit(struct wpa_sm *sm);
16 int rsn_preauth_scan_results(struct wpa_sm *sm);
17 void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
18  const u8 *ssid, const u8 *rsn);
19 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
20  int prio, int preauth);
21 void rsn_preauth_candidate_process(struct wpa_sm *sm);
22 int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
23  int verbose);
24 int rsn_preauth_in_progress(struct wpa_sm *sm);
25 
26 #else /* IEEE8021X_EAPOL */
27 
28 static inline void pmksa_candidate_free(struct wpa_sm *sm)
29 {
30 }
31 
32 static inline void rsn_preauth_candidate_process(struct wpa_sm *sm)
33 {
34 }
35 
36 static inline int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
37  struct eap_peer_config *eap_conf)
38 {
39  return -1;
40 }
41 
42 static inline void rsn_preauth_deinit(struct wpa_sm *sm)
43 {
44 }
45 
46 static inline int rsn_preauth_scan_results(struct wpa_sm *sm)
47 {
48  return -1;
49 }
50 
51 static inline void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
52  const u8 *ssid, const u8 *rsn)
53 {
54 }
55 
56 static inline void pmksa_candidate_add(struct wpa_sm *sm,
57  const u8 *bssid,
58  int prio, int preauth)
59 {
60 }
61 
62 static inline int rsn_preauth_get_status(struct wpa_sm *sm, char *buf,
63  size_t buflen, int verbose)
64 {
65  return 0;
66 }
67 
68 static inline int rsn_preauth_in_progress(struct wpa_sm *sm)
69 {
70  return 0;
71 }
72 
73 #endif /* IEEE8021X_EAPOL */
74 
75 #endif /* PREAUTH_H */
void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, int prio, int preauth)
Add a new PMKSA candidate.
Definition: preauth.c:363
int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose)
Get pre-authentication status.
Definition: preauth.c:505
int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst, struct eap_peer_config *eap_conf)
Start new RSN pre-authentication.
Definition: preauth.c:166
void pmksa_candidate_free(struct wpa_sm *sm)
Free all entries in PMKSA candidate list.
Definition: preauth.c:33
void rsn_preauth_candidate_process(struct wpa_sm *sm)
Process PMKSA candidates.
Definition: preauth.c:296
Scan results.
Definition: driver.h:277
void rsn_preauth_deinit(struct wpa_sm *sm)
Abort RSN pre-authentication.
Definition: preauth.c:269
int rsn_preauth_scan_results(struct wpa_sm *sm)
Start processing scan results for canditates.
Definition: preauth.c:443
Internal WPA state machine data.
Definition: wpa_i.h:18
int rsn_preauth_in_progress(struct wpa_sm *sm)
Verify whether pre-authentication is in progress.
Definition: preauth.c:532
void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid, const u8 *ssid, const u8 *rsn)
Processing scan result for PMKSA canditates.
Definition: preauth.c:465
EAP peer configuration/credentials.
Definition: eap_config.h:12