Home
last modified time | relevance | path

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

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
350 sa = pmksa_cache_add(sm->pmksa, in wpa_supplicant_get_pmk()
378 sa = pmksa_cache_add(sm->pmksa, in wpa_supplicant_get_pmk()
387 pmksa_cache_get(sm->pmksa, src_addr, pmkid, NULL, in wpa_supplicant_get_pmk()
1583 sa = pmksa_cache_add(sm->pmksa, sm->pmk, sm->pmk_len, NULL, in wpa_supplicant_process_3_of_4()
2656 sm->pmksa = pmksa_cache_init(wpa_sm_pmksa_free_cb, sm, sm); in wpa_sm_init()
2657 if (sm->pmksa == NULL) { in wpa_sm_init()
2676 pmksa_cache_deinit(sm->pmksa); in wpa_sm_deinit()
2849 pmksa_cache_add(sm->pmksa, pmk, pmk_len, pmkid, NULL, 0, in wpa_sm_set_pmk()
3332 return pmksa_cache_list(sm->pmksa, buf, len); in wpa_sm_pmksa_cache_list()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/
Dpmksa_cache.c23 struct rsn_pmksa_cache_entry *pmksa; /* PMKSA cache */ member
35 static void pmksa_cache_set_expiration(struct rsn_pmksa_cache *pmksa);
44 static void pmksa_cache_free_entry(struct rsn_pmksa_cache *pmksa, in pmksa_cache_free_entry() argument
48 wpa_sm_remove_pmkid(pmksa->sm, entry->network_ctx, entry->aa, in pmksa_cache_free_entry()
52 pmksa->pmksa_count--; in pmksa_cache_free_entry()
53 pmksa->free_cb(entry, pmksa->ctx, reason); in pmksa_cache_free_entry()
60 struct rsn_pmksa_cache *pmksa = eloop_ctx; in pmksa_cache_expire() local
63 struct rsn_pmksa_cache_entry *entry = pmksa->pmksa; in pmksa_cache_expire()
68 pmksa->is_current_cb(entry, pmksa->ctx)) { in pmksa_cache_expire()
87 pmksa->pmksa = entry->next; in pmksa_cache_expire()
[all …]
Dpmksa_cache.h65 void pmksa_cache_deinit(struct rsn_pmksa_cache *pmksa);
66 struct rsn_pmksa_cache_entry * pmksa_cache_get(struct rsn_pmksa_cache *pmksa,
70 int pmksa_cache_list(struct rsn_pmksa_cache *pmksa, char *buf, size_t len);
71 struct rsn_pmksa_cache_entry * pmksa_cache_head(struct rsn_pmksa_cache *pmksa);
73 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
78 pmksa_cache_add_entry(struct rsn_pmksa_cache *pmksa,
87 pmksa_cache_get_opportunistic(struct rsn_pmksa_cache *pmksa,
89 void pmksa_cache_flush(struct rsn_pmksa_cache *pmksa, void *network_ctx,
91 void pmksa_cache_reconfig(struct rsn_pmksa_cache *pmksa);
105 static inline void pmksa_cache_deinit(struct rsn_pmksa_cache *pmksa) in pmksa_cache_deinit() argument
[all …]
Dpreauth.c105 pmksa_cache_add(sm->pmksa, pmk, pmk_len, NULL, in rsn_preauth_eapol_cb()
339 p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL, NULL, 0); in rsn_preauth_candidate_process()
395 pmksa_cache_get_opportunistic(sm->pmksa, sm->network_ctx, in pmksa_candidate_add()
497 struct rsn_pmksa_cache_entry *pmksa; in rsn_preauth_scan_result() local
509 pmksa = pmksa_cache_get(sm->pmksa, bssid, NULL, NULL, 0); in rsn_preauth_scan_result()
510 if (pmksa && (!pmksa->opportunistic || in rsn_preauth_scan_result()
Dwpa.c287 sm->cur_pmksa = pmksa_cache_get(sm->pmksa, src_addr, pmkid, in wpa_supplicant_get_pmk()
365 sa = pmksa_cache_add(sm->pmksa, in wpa_supplicant_get_pmk()
393 sa = pmksa_cache_add(sm->pmksa, in wpa_supplicant_get_pmk()
402 pmksa_cache_get(sm->pmksa, src_addr, pmkid, NULL, in wpa_supplicant_get_pmk()
1870 sa = pmksa_cache_add(sm->pmksa, sm->pmk, sm->pmk_len, NULL, in wpa_supplicant_process_3_of_4()
2986 sm->pmksa = pmksa_cache_init(wpa_sm_pmksa_free_cb, in wpa_sm_init()
2988 if (sm->pmksa == NULL) { in wpa_sm_init()
3007 pmksa_cache_deinit(sm->pmksa); in wpa_sm_deinit()
3183 sm->cur_pmksa = pmksa_cache_add(sm->pmksa, pmk, pmk_len, in wpa_sm_set_pmk()
3849 return pmksa_cache_list(sm->pmksa, buf, len); in wpa_sm_pmksa_cache_list()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/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.c344 if (sm->pmksa == ctx) in wpa_auth_pmksa_clear_cb()
345 sm->pmksa = NULL; in wpa_auth_pmksa_clear_cb()
476 wpa_auth->pmksa = pmksa_cache_auth_init(wpa_auth_pmksa_free_cb, in wpa_init()
478 if (wpa_auth->pmksa == NULL) { in wpa_init()
492 pmksa_cache_auth_deinit(wpa_auth->pmksa); in wpa_init()
549 pmksa_cache_auth_deinit(wpa_auth->pmksa); in wpa_deinit()
2013 if (sm->pmksa) { in SM_STATE()
2015 os_memcpy(sm->PMK, sm->pmksa->pmk, sm->pmksa->pmk_len); in SM_STATE()
2016 sm->pmk_len = sm->pmksa->pmk_len; in SM_STATE()
2093 if (wpa_auth_uses_sae(sm) && sm->pmksa) { in SM_STATE()
[all …]
Dwpa_auth_i.h113 struct rsn_pmksa_cache_entry *pmksa; member
229 struct rsn_pmksa_cache *pmksa; member
Dieee802_11.c62 struct rsn_pmksa_cache_entry *pmksa,
1443 struct rsn_pmksa_cache_entry *pmksa = NULL; in handle_auth_fils() local
1583 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1585 if (pmksa) in handle_auth_fils()
1587 pmksa = wpa_auth_pmksa_get_fils_cache_id(hapd->wpa_auth, in handle_auth_fils()
1590 if (pmksa) in handle_auth_fils()
1596 if (pmksa && wpa_auth_sta_key_mgmt(sta->wpa_sm) != pmksa->akmp) { in handle_auth_fils()
1599 wpa_auth_sta_key_mgmt(sta->wpa_sm), pmksa->akmp); in handle_auth_fils()
1600 pmksa = NULL; in handle_auth_fils()
1602 if (pmksa) in handle_auth_fils()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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.c567 struct rsn_pmksa_cache_entry *pmksa; member
577 data->pmksa = pmksa_cache_get_okc(a->pmksa, data->aa, data->spa, in wpa_auth_okc_iter()
579 if (data->pmksa) in wpa_auth_okc_iter()
937 sm->pmksa = NULL; in wpa_validate_wpa_ie()
941 sm->pmksa = pmksa_cache_auth_get(wpa_auth->pmksa, sm->addr, in wpa_validate_wpa_ie()
943 if (sm->pmksa) { in wpa_validate_wpa_ie()
944 pmkid = sm->pmksa->pmkid; in wpa_validate_wpa_ie()
948 for (i = 0; sm->pmksa == NULL && wpa_auth->conf.okc && in wpa_validate_wpa_ie()
951 idata.pmksa = NULL; in wpa_validate_wpa_ie()
956 if (idata.pmksa) { in wpa_validate_wpa_ie()
[all …]
Dwpa_auth.c392 if (sm->pmksa == ctx) in wpa_auth_pmksa_clear_cb()
393 sm->pmksa = NULL; in wpa_auth_pmksa_clear_cb()
523 wpa_auth->pmksa = pmksa_cache_auth_init(wpa_auth_pmksa_free_cb, in wpa_init()
525 if (!wpa_auth->pmksa) { in wpa_init()
539 pmksa_cache_auth_deinit(wpa_auth->pmksa); in wpa_init()
596 pmksa_cache_auth_deinit(wpa_auth->pmksa); in wpa_deinit()
2102 if (sm->pmksa) { in SM_STATE()
2104 os_memcpy(sm->PMK, sm->pmksa->pmk, sm->pmksa->pmk_len); in SM_STATE()
2105 sm->pmk_len = sm->pmksa->pmk_len; in SM_STATE()
2182 if (wpa_auth_uses_sae(sm) && sm->pmksa) { in SM_STATE()
[all …]
Dwpa_auth_i.h118 struct rsn_pmksa_cache_entry *pmksa; member
234 struct rsn_pmksa_cache *pmksa; member
Dieee802_11.c64 struct rsn_pmksa_cache_entry *pmksa,
74 struct rsn_pmksa_cache_entry *pmksa,
1784 struct rsn_pmksa_cache_entry *pmksa = NULL; in handle_auth_fils() local
1926 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1928 if (pmksa) in handle_auth_fils()
1930 pmksa = wpa_auth_pmksa_get_fils_cache_id(hapd->wpa_auth, in handle_auth_fils()
1933 if (pmksa) in handle_auth_fils()
1939 if (pmksa && wpa_auth_sta_key_mgmt(sta->wpa_sm) != pmksa->akmp) { in handle_auth_fils()
1942 wpa_auth_sta_key_mgmt(sta->wpa_sm), pmksa->akmp); in handle_auth_fils()
1943 pmksa = NULL; in handle_auth_fils()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dpasn_supplicant.c711 struct rsn_pmksa_cache_entry *pmksa; in wpas_pasn_build_auth_1() local
713 pmksa = wpa_sm_pmksa_cache_get(wpa_s->wpa, pasn->bssid, in wpas_pasn_build_auth_1()
715 if (pmksa) in wpas_pasn_build_auth_1()
716 pmkid = pmksa->pmkid; in wpas_pasn_build_auth_1()
935 struct rsn_pmksa_cache_entry *pmksa; in wpas_pasn_set_pmk() local
937 pmksa = wpa_sm_pmksa_cache_get(wpa_s->wpa, pasn->bssid, in wpas_pasn_set_pmk()
940 if (pmksa) { in wpas_pasn_set_pmk()
943 pasn->pmk_len = pmksa->pmk_len; in wpas_pasn_set_pmk()
944 os_memcpy(pasn->pmk, pmksa->pmk, pmksa->pmk_len); in wpas_pasn_set_pmk()
Dmesh_rsn.c357 struct rsn_pmksa_cache_entry *pmksa; in mesh_rsn_auth_sae_sta() local
373 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, NULL); in mesh_rsn_auth_sae_sta()
374 if (pmksa) { in mesh_rsn_auth_sae_sta()
388 wpa_auth_pmksa_set_to_sm(pmksa, sta->wpa_sm, hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Ddriver_wext.c2315 struct iw_pmksa pmksa; in wpa_driver_wext_pmksa() local
2320 os_memset(&pmksa, 0, sizeof(pmksa)); in wpa_driver_wext_pmksa()
2321 pmksa.cmd = cmd; in wpa_driver_wext_pmksa()
2322 pmksa.bssid.sa_family = ARPHRD_ETHER; in wpa_driver_wext_pmksa()
2324 os_memcpy(pmksa.bssid.sa_data, bssid, ETH_ALEN); in wpa_driver_wext_pmksa()
2326 os_memcpy(pmksa.pmkid, pmkid, IW_PMKID_LEN); in wpa_driver_wext_pmksa()
2327 iwr.u.data.pointer = (caddr_t) &pmksa; in wpa_driver_wext_pmksa()
2328 iwr.u.data.length = sizeof(pmksa); in wpa_driver_wext_pmksa()

12