Home
last modified time | relevance | path

Searched refs:pw_id (Results 1 – 25 of 30) sorted by relevance

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dsae.c110 os_free(tmp->pw_id); in sae_clear_temp_data()
1088 if (sae->tmp->pw_id) { in sae_parse_password_identifier()
1091 sae->tmp->pw_id); in sae_parse_password_identifier()
1094 os_free(sae->tmp->pw_id); in sae_parse_password_identifier()
1095 sae->tmp->pw_id = NULL; in sae_parse_password_identifier()
1099 if (sae->tmp->pw_id && in sae_parse_password_identifier()
1100 (pos[1] - 1 != (int) os_strlen(sae->tmp->pw_id) || in sae_parse_password_identifier()
1101 os_memcmp(sae->tmp->pw_id, pos + 3, pos[1] - 1) != 0)) { in sae_parse_password_identifier()
1104 sae->tmp->pw_id); in sae_parse_password_identifier()
1108 os_free(sae->tmp->pw_id); in sae_parse_password_identifier()
[all …]
Dsae.h43 char *pw_id; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Dsae.c114 os_free(tmp->pw_id); in sae_clear_temp_data()
2020 if (sae->tmp->pw_id) { in sae_parse_password_identifier()
2023 sae->tmp->pw_id); in sae_parse_password_identifier()
2026 os_free(sae->tmp->pw_id); in sae_parse_password_identifier()
2027 sae->tmp->pw_id = NULL; in sae_parse_password_identifier()
2039 if (sae->tmp->pw_id && in sae_parse_password_identifier()
2040 (len != os_strlen(sae->tmp->pw_id) || in sae_parse_password_identifier()
2041 os_memcmp(sae->tmp->pw_id, epos, len) != 0)) { in sae_parse_password_identifier()
2044 sae->tmp->pw_id); in sae_parse_password_identifier()
2048 os_free(sae->tmp->pw_id); in sae_parse_password_identifier()
[all …]
Dsae.h60 char *pw_id; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_registrar.c36 u16 pw_id; member
50 static void wps_free_nfc_pw_tokens(struct dl_list *tokens, u16 pw_id) in wps_free_nfc_pw_tokens() argument
55 if (pw_id == 0 || pw_id == token->pw_id) in wps_free_nfc_pw_tokens()
62 u16 pw_id) in wps_get_nfc_pw_token() argument
66 if (pw_id == token->pw_id) in wps_get_nfc_pw_token()
1397 if (wps->nfc_pw_token->pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) in wps_get_dev_password()
1919 wps->nfc_pw_token->pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) { in wps_build_m2()
2244 static int wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) in wps_process_dev_password_id() argument
2246 if (pw_id == NULL) { in wps_process_dev_password_id()
2251 wps->dev_pw_id = WPA_GET_BE16(pw_id); in wps_process_dev_password_id()
[all …]
Dwps.c494 struct wpabuf * wps_build_probe_req_ie(u16 pw_id, struct wps_device_data *dev, in wps_build_probe_req_ie() argument
516 wps_build_dev_password_id(ie, pw_id) || in wps_build_probe_req_ie()
Dwps.h246 struct wpabuf * wps_build_probe_req_ie(u16 pw_id, struct wps_device_data *dev,
873 const u8 *pubkey_hash, u16 pw_id,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_registrar.c35 u16 pw_id; member
49 static void wps_free_nfc_pw_tokens(struct dl_list *tokens, u16 pw_id) in wps_free_nfc_pw_tokens() argument
54 if (pw_id == 0 || pw_id == token->pw_id) in wps_free_nfc_pw_tokens()
61 u16 pw_id) in wps_get_nfc_pw_token() argument
65 if (pw_id == token->pw_id) in wps_get_nfc_pw_token()
1419 if (wps->nfc_pw_token->pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) in wps_get_dev_password()
1928 wps->nfc_pw_token->pw_id == DEV_PW_NFC_CONNECTION_HANDOVER) { in wps_build_m2()
2253 static int wps_process_dev_password_id(struct wps_data *wps, const u8 *pw_id) in wps_process_dev_password_id() argument
2255 if (pw_id == NULL) { in wps_process_dev_password_id()
2260 wps->dev_pw_id = WPA_GET_BE16(pw_id); in wps_process_dev_password_id()
[all …]
Dwps.c494 struct wpabuf * wps_build_probe_req_ie(u16 pw_id, struct wps_device_data *dev, in wps_build_probe_req_ie() argument
516 wps_build_dev_password_id(ie, pw_id) || in wps_build_probe_req_ie()
Dwps.h245 struct wpabuf * wps_build_probe_req_ie(u16 pw_id, struct wps_device_data *dev,
865 const u8 *pubkey_hash, u16 pw_id,
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/
Dp2p_go_neg.c144 u16 pw_id; in p2p_build_go_neg_req() local
192 pw_id = p2p_wps_method_pw_id(peer->wps_method); in p2p_build_go_neg_req()
194 pw_id = peer->oob_pw_id; in p2p_build_go_neg_req()
195 if (p2p_build_wps_ie(p2p, buf, pw_id, 0) < 0) { in p2p_build_go_neg_req()
280 u16 pw_id; in p2p_build_go_neg_resp() local
351 pw_id = p2p_wps_method_pw_id(peer ? peer->wps_method : WPS_NOT_READY); in p2p_build_go_neg_resp()
353 pw_id = peer->oob_pw_id; in p2p_build_go_neg_resp()
354 if (p2p_build_wps_ie(p2p, buf, pw_id, 0) < 0) { in p2p_build_go_neg_resp()
Dp2p_build.c736 int p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id, in p2p_build_wps_ie() argument
759 if (pw_id >= 0) { in p2p_build_wps_ie()
766 pw_id); in p2p_build_wps_ie()
767 wpabuf_put_be16(buf, pw_id); in p2p_build_wps_ie()
Dp2p_i.h784 int p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id,
Dp2p.c1006 u16 pw_id = DEV_PW_DEFAULT; in p2p_search() local
1034 p2p->find_dev_id, pw_id); in p2p_search()
2184 int pw_id = -1; in p2p_build_probe_resp_ies() local
2204 pw_id = p2p_wps_method_pw_id(p2p->go_neg_peer->wps_method); in p2p_build_probe_resp_ies()
2207 if (p2p_build_wps_ie(p2p, buf, pw_id, 1) < 0) { in p2p_build_probe_resp_ies()
Dp2p.h631 const u8 *req_dev_types, const u8 *dev_id, u16 pw_id);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/
Dp2p_go_neg.c144 u16 pw_id; in p2p_build_go_neg_req() local
192 pw_id = p2p_wps_method_pw_id(peer->wps_method); in p2p_build_go_neg_req()
194 pw_id = peer->oob_pw_id; in p2p_build_go_neg_req()
195 if (p2p_build_wps_ie(p2p, buf, pw_id, 0) < 0) { in p2p_build_go_neg_req()
280 u16 pw_id; in p2p_build_go_neg_resp() local
351 pw_id = p2p_wps_method_pw_id(peer ? peer->wps_method : WPS_NOT_READY); in p2p_build_go_neg_resp()
353 pw_id = peer->oob_pw_id; in p2p_build_go_neg_resp()
354 if (p2p_build_wps_ie(p2p, buf, pw_id, 0) < 0) { in p2p_build_go_neg_resp()
Dp2p_build.c736 int p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id, in p2p_build_wps_ie() argument
759 if (pw_id >= 0) { in p2p_build_wps_ie()
766 pw_id); in p2p_build_wps_ie()
767 wpabuf_put_be16(buf, pw_id); in p2p_build_wps_ie()
Dp2p_i.h789 int p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id,
Dp2p.h639 const u8 *req_dev_types, const u8 *dev_id, u16 pw_id,
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dmesh_rsn.c340 if (sta->sae->tmp && !sta->sae->tmp->pw_id && ssid->sae_password_id) { in mesh_rsn_build_sae_commit()
341 sta->sae->tmp->pw_id = os_strdup(ssid->sae_password_id); in mesh_rsn_build_sae_commit()
342 if (!sta->sae->tmp->pw_id) in mesh_rsn_build_sae_commit()
Dap.h75 int wpas_ap_wps_add_nfc_pw(struct wpa_supplicant *wpa_s, u16 pw_id,
Dap.c1453 int wpas_ap_wps_add_nfc_pw(struct wpa_supplicant *wpa_s, u16 pw_id, in wpas_ap_wps_add_nfc_pw() argument
1490 pw_id, in wpas_ap_wps_add_nfc_pw()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dmesh_rsn.c340 if (sta->sae->tmp && !sta->sae->tmp->pw_id && ssid->sae_password_id) { in mesh_rsn_build_sae_commit()
341 sta->sae->tmp->pw_id = os_strdup(ssid->sae_password_id); in mesh_rsn_build_sae_commit()
342 if (!sta->sae->tmp->pw_id) in mesh_rsn_build_sae_commit()
Dap.h75 int wpas_ap_wps_add_nfc_pw(struct wpa_supplicant *wpa_s, u16 pw_id,
Dap.c1686 int wpas_ap_wps_add_nfc_pw(struct wpa_supplicant *wpa_s, u16 pw_id, in wpas_ap_wps_add_nfc_pw() argument
1723 pw_id, in wpas_ap_wps_add_nfc_pw()

12