Home
last modified time | relevance | path

Searched refs:pmksa (Results 1 – 17 of 17) sorted by relevance

/external/wpa_supplicant_8/src/rsn_supp/
Dpmksa_cache.c23 struct rsn_pmksa_cache_entry *pmksa; /* PMKSA cache */ member
33 static void pmksa_cache_set_expiration(struct rsn_pmksa_cache *pmksa);
42 static void pmksa_cache_free_entry(struct rsn_pmksa_cache *pmksa, in pmksa_cache_free_entry() argument
46 wpa_sm_remove_pmkid(pmksa->sm, entry->network_ctx, entry->aa, in pmksa_cache_free_entry()
50 pmksa->pmksa_count--; in pmksa_cache_free_entry()
51 pmksa->free_cb(entry, pmksa->ctx, reason); in pmksa_cache_free_entry()
58 struct rsn_pmksa_cache *pmksa = eloop_ctx; in pmksa_cache_expire() local
62 while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) { in pmksa_cache_expire()
63 struct rsn_pmksa_cache_entry *entry = pmksa->pmksa; in pmksa_cache_expire()
64 pmksa->pmksa = entry->next; in pmksa_cache_expire()
[all …]
Dpmksa_cache.h61 void pmksa_cache_deinit(struct rsn_pmksa_cache *pmksa);
62 struct rsn_pmksa_cache_entry * pmksa_cache_get(struct rsn_pmksa_cache *pmksa,
66 int pmksa_cache_list(struct rsn_pmksa_cache *pmksa, char *buf, size_t len);
67 struct rsn_pmksa_cache_entry * pmksa_cache_head(struct rsn_pmksa_cache *pmksa);
69 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
74 pmksa_cache_add_entry(struct rsn_pmksa_cache *pmksa,
83 pmksa_cache_get_opportunistic(struct rsn_pmksa_cache *pmksa,
85 void pmksa_cache_flush(struct rsn_pmksa_cache *pmksa, void *network_ctx,
98 static inline void pmksa_cache_deinit(struct rsn_pmksa_cache *pmksa) in pmksa_cache_deinit() argument
103 pmksa_cache_get(struct rsn_pmksa_cache *pmksa, const u8 *aa, const u8 *pmkid, in pmksa_cache_get() argument
[all …]
Dpreauth.c96 pmksa_cache_add(sm->pmksa, pmk, pmk_len, NULL, in rsn_preauth_eapol_cb()
326 p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL, NULL, 0); in rsn_preauth_candidate_process()
374 pmksa_cache_get_opportunistic(sm->pmksa, sm->network_ctx, in pmksa_candidate_add()
474 struct rsn_pmksa_cache_entry *pmksa; in rsn_preauth_scan_result() local
486 pmksa = pmksa_cache_get(sm->pmksa, bssid, NULL, NULL, 0); in rsn_preauth_scan_result()
487 if (pmksa && (!pmksa->opportunistic || in rsn_preauth_scan_result()
Dwpa.c272 sm->cur_pmksa = pmksa_cache_get(sm->pmksa, src_addr, pmkid, in wpa_supplicant_get_pmk()
357 sa = pmksa_cache_add(sm->pmksa, in wpa_supplicant_get_pmk()
366 pmksa_cache_get(sm->pmksa, src_addr, pmkid, NULL, in wpa_supplicant_get_pmk()
1557 sa = pmksa_cache_add(sm->pmksa, sm->pmk, sm->pmk_len, NULL, in wpa_supplicant_process_3_of_4()
2630 sm->pmksa = pmksa_cache_init(wpa_sm_pmksa_free_cb, sm, sm); in wpa_sm_init()
2631 if (sm->pmksa == NULL) { in wpa_sm_init()
2650 pmksa_cache_deinit(sm->pmksa); in wpa_sm_deinit()
2819 pmksa_cache_add(sm->pmksa, pmk, pmk_len, pmkid, NULL, 0, in wpa_sm_set_pmk()
3302 return pmksa_cache_list(sm->pmksa, buf, len); in wpa_sm_pmksa_cache_list()
3308 return pmksa_cache_head(sm->pmksa); in wpa_sm_pmksa_cache_head()
[all …]
Dwpa_i.h41 struct rsn_pmksa_cache *pmksa; /* PMKSA cache */ member
/external/wpa_supplicant_8/src/ap/
Dpmksa_cache_auth.c28 struct rsn_pmksa_cache_entry *pmksa; member
36 static void pmksa_cache_set_expiration(struct rsn_pmksa_cache *pmksa);
51 void pmksa_cache_free_entry(struct rsn_pmksa_cache *pmksa, in pmksa_cache_free_entry() argument
57 pmksa->pmksa_count--; in pmksa_cache_free_entry()
58 pmksa->free_cb(entry, pmksa->ctx); in pmksa_cache_free_entry()
62 pos = pmksa->pmkid[hash]; in pmksa_cache_free_entry()
69 pmksa->pmkid[hash] = entry->hnext; in pmksa_cache_free_entry()
77 pos = pmksa->pmksa; in pmksa_cache_free_entry()
84 pmksa->pmksa = entry->next; in pmksa_cache_free_entry()
99 void pmksa_cache_auth_flush(struct rsn_pmksa_cache *pmksa) in pmksa_cache_auth_flush() argument
[all …]
Dpmksa_cache_auth.h43 void pmksa_cache_auth_deinit(struct rsn_pmksa_cache *pmksa);
45 pmksa_cache_auth_get(struct rsn_pmksa_cache *pmksa,
48 struct rsn_pmksa_cache *pmksa, const u8 *spa, const u8 *aa,
51 pmksa_cache_auth_add(struct rsn_pmksa_cache *pmksa,
61 int pmksa_cache_auth_add_entry(struct rsn_pmksa_cache *pmksa,
64 pmksa_cache_add_okc(struct rsn_pmksa_cache *pmksa,
70 void pmksa_cache_free_entry(struct rsn_pmksa_cache *pmksa,
72 int pmksa_cache_auth_radius_das_disconnect(struct rsn_pmksa_cache *pmksa,
74 int pmksa_cache_auth_list(struct rsn_pmksa_cache *pmksa, char *buf, size_t len);
75 void pmksa_cache_auth_flush(struct rsn_pmksa_cache *pmksa);
[all …]
Dwpa_auth_ie.c514 struct rsn_pmksa_cache_entry *pmksa; member
524 data->pmksa = pmksa_cache_get_okc(a->pmksa, data->aa, data->spa, in wpa_auth_okc_iter()
526 if (data->pmksa) in wpa_auth_okc_iter()
876 sm->pmksa = NULL; in wpa_validate_wpa_ie()
880 sm->pmksa = pmksa_cache_auth_get(wpa_auth->pmksa, sm->addr, in wpa_validate_wpa_ie()
882 if (sm->pmksa) { in wpa_validate_wpa_ie()
883 pmkid = sm->pmksa->pmkid; in wpa_validate_wpa_ie()
887 for (i = 0; sm->pmksa == NULL && wpa_auth->conf.okc && in wpa_validate_wpa_ie()
890 idata.pmksa = NULL; in wpa_validate_wpa_ie()
895 if (idata.pmksa) { in wpa_validate_wpa_ie()
[all …]
Dwpa_auth.c325 if (sm->pmksa == ctx) in wpa_auth_pmksa_clear_cb()
326 sm->pmksa = NULL; in wpa_auth_pmksa_clear_cb()
457 wpa_auth->pmksa = pmksa_cache_auth_init(wpa_auth_pmksa_free_cb, in wpa_init()
459 if (wpa_auth->pmksa == NULL) { in wpa_init()
473 pmksa_cache_auth_deinit(wpa_auth->pmksa); in wpa_init()
530 pmksa_cache_auth_deinit(wpa_auth->pmksa); in wpa_deinit()
1985 if (sm->pmksa) { in SM_STATE()
1987 os_memcpy(sm->PMK, sm->pmksa->pmk, sm->pmksa->pmk_len); in SM_STATE()
1988 sm->pmk_len = sm->pmksa->pmk_len; in SM_STATE()
2065 if (wpa_auth_uses_sae(sm) && sm->pmksa) { in SM_STATE()
[all …]
Dwpa_auth_i.h113 struct rsn_pmksa_cache_entry *pmksa; member
227 struct rsn_pmksa_cache *pmksa; member
Dieee802_11.c61 struct rsn_pmksa_cache_entry *pmksa,
1440 struct rsn_pmksa_cache_entry *pmksa = NULL; in handle_auth_fils() local
1580 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1582 if (pmksa) in handle_auth_fils()
1584 pmksa = wpa_auth_pmksa_get_fils_cache_id(hapd->wpa_auth, in handle_auth_fils()
1587 if (pmksa) in handle_auth_fils()
1593 if (pmksa && wpa_auth_sta_key_mgmt(sta->wpa_sm) != pmksa->akmp) { in handle_auth_fils()
1596 wpa_auth_sta_key_mgmt(sta->wpa_sm), pmksa->akmp); in handle_auth_fils()
1597 pmksa = NULL; in handle_auth_fils()
1599 if (pmksa) in handle_auth_fils()
[all …]
Dieee802_1x.c943 struct rsn_pmksa_cache_entry *pmksa; in ieee802_1x_receive() local
1067 pmksa = wpa_auth_sta_get_pmksa(sta->wpa_sm); in ieee802_1x_receive()
1068 if (pmksa) { in ieee802_1x_receive()
1073 wpa_auth_sta_clear_pmksa(sta->wpa_sm, pmksa); in ieee802_1x_receive()
1127 struct rsn_pmksa_cache_entry *pmksa; in ieee802_1x_new_station() local
1243 pmksa = wpa_auth_sta_get_pmksa(sta->wpa_sm); in ieee802_1x_new_station()
1244 if (pmksa) { in ieee802_1x_new_station()
1258 pmksa_cache_to_eapol_data(hapd, pmksa, sta->eapol_sm); in ieee802_1x_new_station()
Dwpa_auth.h397 void wpa_auth_pmksa_set_to_sm(struct rsn_pmksa_cache_entry *pmksa,
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_rsn.c358 struct rsn_pmksa_cache_entry *pmksa; in mesh_rsn_auth_sae_sta() local
374 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, NULL); in mesh_rsn_auth_sae_sta()
375 if (pmksa) { in mesh_rsn_auth_sae_sta()
389 wpa_auth_pmksa_set_to_sm(pmksa, sta->wpa_sm, hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
DREADME757 pmksa = show PMKSA cache
/external/wpa_supplicant_8/src/drivers/
Ddriver_wext.c2322 struct iw_pmksa pmksa; in wpa_driver_wext_pmksa() local
2327 os_memset(&pmksa, 0, sizeof(pmksa)); in wpa_driver_wext_pmksa()
2328 pmksa.cmd = cmd; in wpa_driver_wext_pmksa()
2329 pmksa.bssid.sa_family = ARPHRD_ETHER; in wpa_driver_wext_pmksa()
2331 os_memcpy(pmksa.bssid.sa_data, bssid, ETH_ALEN); in wpa_driver_wext_pmksa()
2333 os_memcpy(pmksa.pmkid, pmkid, IW_PMKID_LEN); in wpa_driver_wext_pmksa()
2334 iwr.u.data.pointer = (caddr_t) &pmksa; in wpa_driver_wext_pmksa()
2335 iwr.u.data.length = sizeof(pmksa); in wpa_driver_wext_pmksa()
/external/wpa_supplicant_8/wpa_supplicant/doc/docbook/
Dwpa_cli.sgml257 <term>pmksa</term>