21 os_time_t reauth_time;
39 enum pmksa_free_reason {
45 #ifdef IEEE8021X_EAPOL
49 void *ctx,
enum pmksa_free_reason reason),
50 void *ctx,
struct wpa_sm *sm);
53 const u8 *aa,
const u8 *pmkid,
58 const u8 *kck,
size_t kck_len,
59 const u8 *aa,
const u8 *spa,
void *
network_ctx,
int akmp);
64 int try_opportunistic);
69 const u8 *pmk,
size_t pmk_len);
75 void *ctx,
enum pmksa_free_reason reason),
76 void *ctx,
struct wpa_sm *sm)
106 const u8 *kck,
size_t kck_len,
107 const u8 *aa,
const u8 *spa,
void *
network_ctx,
int akmp)
119 int try_opportunistic)
126 const u8 *pmk,
size_t pmk_len)
void pmksa_cache_flush(struct rsn_pmksa_cache *pmksa, void *network_ctx, const u8 *pmk, size_t pmk_len)
Flush PMKSA cache entries for a specific network.
Definition: pmksa_cache.c:254
struct rsn_pmksa_cache_entry * pmksa_cache_get(struct rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *pmkid, const void *network_ctx)
Fetch a PMKSA cache entry.
Definition: pmksa_cache.c:318
int pmksa_cache_list(struct rsn_pmksa_cache *pmksa, char *buf, size_t len)
Dump text list of entries in PMKSA cache.
Definition: pmksa_cache.c:472
struct rsn_pmksa_cache * pmksa_cache_init(void(*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx, enum pmksa_free_reason reason), void *ctx, struct wpa_sm *sm)
Initialize PMKSA cache.
Definition: pmksa_cache.c:517
int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, const u8 *bssid, void *network_ctx, int try_opportunistic)
Set the current PMKSA entry selection.
Definition: pmksa_cache.c:427
void pmksa_cache_clear_current(struct wpa_sm *sm)
Clear the current PMKSA entry selection.
Definition: pmksa_cache.c:410
Definition: pmksa_cache_auth.c:20
struct rsn_pmksa_cache_entry * pmksa_cache_get_opportunistic(struct rsn_pmksa_cache *pmksa, void *network_ctx, const u8 *aa)
Try to get an opportunistic PMKSA entry.
Definition: pmksa_cache.c:369
void pmksa_cache_deinit(struct rsn_pmksa_cache *pmksa)
Free all entries in PMKSA cache.
Definition: pmksa_cache.c:291
struct rsn_pmksa_cache_entry * pmksa_cache_get_current(struct wpa_sm *sm)
Get the current used PMKSA entry.
Definition: pmksa_cache.c:398
void * network_ctx
Network configuration context.
Definition: pmksa_cache.h:33
struct rsn_pmksa_cache_entry * pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, const u8 *kck, size_t kck_len, const u8 *aa, const u8 *spa, void *network_ctx, int akmp)
Add a PMKSA cache entry.
Definition: pmksa_cache.c:122
PMKSA cache entry.
Definition: pmksa_cache_auth.h:14
Internal WPA state machine data.
Definition: wpa_i.h:18