/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A D | wps_attr_process.c | 83 static int wps_process_cred_network_idx(struct wps_credential *cred, in wps_process_cred_network_idx() argument 98 static int wps_process_cred_ssid(struct wps_credential *cred, const u8 *ssid, in wps_process_cred_ssid() argument 112 if (ssid_len <= sizeof(cred->ssid)) { in wps_process_cred_ssid() 113 os_memcpy(cred->ssid, ssid, ssid_len); in wps_process_cred_ssid() 114 cred->ssid_len = ssid_len; in wps_process_cred_ssid() 121 static int wps_process_cred_auth_type(struct wps_credential *cred, in wps_process_cred_auth_type() argument 130 cred->auth_type = WPA_GET_BE16(auth_type); in wps_process_cred_auth_type() 132 cred->auth_type); in wps_process_cred_auth_type() 138 static int wps_process_cred_encr_type(struct wps_credential *cred, in wps_process_cred_encr_type() argument 147 cred in wps_process_cred_encr_type() 155 wps_process_cred_network_key_idx(struct wps_credential *cred, const u8 *key_idx) wps_process_cred_network_key_idx() argument 168 wps_process_cred_network_key(struct wps_credential *cred, const u8 *key, size_t key_len) wps_process_cred_network_key() argument 194 wps_process_cred_mac_addr(struct wps_credential *cred, const u8 *mac_addr) wps_process_cred_mac_addr() argument 210 wps_workaround_cred_key(struct wps_credential *cred) wps_workaround_cred_key() argument 246 wps_process_cred(struct wps_parse_attr *attr, struct wps_credential *cred) wps_process_cred() argument 266 wps_process_ap_settings(struct wps_parse_attr *attr, struct wps_credential *cred) wps_process_ap_settings() argument [all...] |
H A D | wps_registrar.c | 1547 const struct wps_credential *cred) in wps_build_cred_network_idx() 1558 const struct wps_credential *cred) in wps_build_cred_ssid() 1562 cred->ssid, cred->ssid_len); in wps_build_cred_ssid() 1564 wpabuf_put_be16(msg, cred->ssid_len); in wps_build_cred_ssid() 1565 wpabuf_put_data(msg, cred->ssid, cred->ssid_len); in wps_build_cred_ssid() 1571 const struct wps_credential *cred) in wps_build_cred_auth_type() 1574 cred->auth_type); in wps_build_cred_auth_type() 1577 wpabuf_put_be16(msg, cred in wps_build_cred_auth_type() 1546 wps_build_cred_network_idx(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_network_idx() argument 1557 wps_build_cred_ssid(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_ssid() argument 1570 wps_build_cred_auth_type(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_auth_type() argument 1582 wps_build_cred_encr_type(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_encr_type() argument 1594 wps_build_cred_network_key(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_network_key() argument 1608 wps_build_credential(struct wpabuf *msg, const struct wps_credential *cred) wps_build_credential() argument 1622 wps_build_credential_wrap(struct wpabuf *msg, const struct wps_credential *cred) wps_build_credential_wrap() argument 1643 struct wpabuf *cred; wps_build_cred() local 3328 struct wps_credential cred; wps_process_wsc_done() local 3632 wps_registrar_config_ap(struct wps_registrar *reg, struct wps_credential *cred) wps_registrar_config_ap() argument [all...] |
H A D | wps_enrollee.c | 704 static int wps_process_cred_e(struct wps_data *wps, const u8 *cred, in wps_process_cred_e() argument 712 os_memset(&wps->cred, 0, sizeof(wps->cred)); in wps_process_cred_e() 713 wpabuf_set(&msg, cred, cred_len); in wps_process_cred_e() 715 wps_process_cred(&attr, &wps->cred)) in wps_process_cred_e() 718 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e() 722 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e() 740 if (!(wps->cred.encr_type & in wps_process_cred_e() 742 if (wps->cred.encr_type & WPS_ENCR_WEP) { in wps_process_cred_e() 750 "invalid encr_type 0x%x", wps->cred in wps_process_cred_e() 766 wps_process_creds(struct wps_data *wps, const u8 *cred[], u16 cred_len[], unsigned int num_cred, int wps2) wps_process_creds() argument 806 struct wps_credential cred; wps_process_ap_settings_e() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
H A D | wps_attr_process.c | 84 static int wps_process_cred_network_idx(struct wps_credential *cred, in wps_process_cred_network_idx() argument 99 static int wps_process_cred_ssid(struct wps_credential *cred, const u8 *ssid, in wps_process_cred_ssid() argument 113 if (ssid_len <= sizeof(cred->ssid)) { in wps_process_cred_ssid() 114 os_memcpy(cred->ssid, ssid, ssid_len); in wps_process_cred_ssid() 115 cred->ssid_len = ssid_len; in wps_process_cred_ssid() 122 static int wps_process_cred_auth_type(struct wps_credential *cred, in wps_process_cred_auth_type() argument 131 cred->auth_type = WPA_GET_BE16(auth_type); in wps_process_cred_auth_type() 133 cred->auth_type); in wps_process_cred_auth_type() 139 static int wps_process_cred_encr_type(struct wps_credential *cred, in wps_process_cred_encr_type() argument 148 cred in wps_process_cred_encr_type() 156 wps_process_cred_network_key_idx(struct wps_credential *cred, const u8 *key_idx) wps_process_cred_network_key_idx() argument 169 wps_process_cred_network_key(struct wps_credential *cred, const u8 *key, size_t key_len) wps_process_cred_network_key() argument 195 wps_process_cred_mac_addr(struct wps_credential *cred, const u8 *mac_addr) wps_process_cred_mac_addr() argument 211 wps_workaround_cred_key(struct wps_credential *cred) wps_workaround_cred_key() argument 247 wps_process_cred(struct wps_parse_attr *attr, struct wps_credential *cred) wps_process_cred() argument 267 wps_process_ap_settings(struct wps_parse_attr *attr, struct wps_credential *cred) wps_process_ap_settings() argument [all...] |
H A D | wps_registrar.c | 1525 const struct wps_credential *cred) in wps_build_cred_network_idx() 1536 const struct wps_credential *cred) in wps_build_cred_ssid() 1540 cred->ssid, cred->ssid_len); in wps_build_cred_ssid() 1542 wpabuf_put_be16(msg, cred->ssid_len); in wps_build_cred_ssid() 1543 wpabuf_put_data(msg, cred->ssid, cred->ssid_len); in wps_build_cred_ssid() 1549 const struct wps_credential *cred) in wps_build_cred_auth_type() 1552 cred->auth_type); in wps_build_cred_auth_type() 1555 wpabuf_put_be16(msg, cred in wps_build_cred_auth_type() 1524 wps_build_cred_network_idx(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_network_idx() argument 1535 wps_build_cred_ssid(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_ssid() argument 1548 wps_build_cred_auth_type(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_auth_type() argument 1560 wps_build_cred_encr_type(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_encr_type() argument 1572 wps_build_cred_network_key(struct wpabuf *msg, const struct wps_credential *cred) wps_build_cred_network_key() argument 1586 wps_build_credential(struct wpabuf *msg, const struct wps_credential *cred) wps_build_credential() argument 1600 wps_build_credential_wrap(struct wpabuf *msg, const struct wps_credential *cred) wps_build_credential_wrap() argument 1621 struct wpabuf *cred; wps_build_cred() local 3319 struct wps_credential cred; wps_process_wsc_done() local 3624 wps_registrar_config_ap(struct wps_registrar *reg, struct wps_credential *cred) wps_registrar_config_ap() argument [all...] |
H A D | wps_enrollee.c | 704 static int wps_process_cred_e(struct wps_data *wps, const u8 *cred, in wps_process_cred_e() argument 712 os_memset(&wps->cred, 0, sizeof(wps->cred)); in wps_process_cred_e() 713 wpabuf_set(&msg, cred, cred_len); in wps_process_cred_e() 715 wps_process_cred(&attr, &wps->cred)) in wps_process_cred_e() 718 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e() 722 ")", MAC2STR_SEC(wps->cred.mac_addr), in wps_process_cred_e() 740 if (!(wps->cred.encr_type & in wps_process_cred_e() 742 if (wps->cred.encr_type & WPS_ENCR_WEP) { in wps_process_cred_e() 750 "invalid encr_type 0x%x", wps->cred in wps_process_cred_e() 766 wps_process_creds(struct wps_data *wps, const u8 *cred[], u16 cred_len[], unsigned int num_cred, int wps2) wps_process_creds() argument 806 struct wps_credential cred; wps_process_ap_settings_e() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | interworking.c | 144 struct wpa_cred *cred; in cred_with_roaming_consortium() local 146 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_roaming_consortium() 147 if (cred->roaming_consortium_len) in cred_with_roaming_consortium() 149 if (cred->required_roaming_consortium_len) in cred_with_roaming_consortium() 151 if (cred->num_roaming_consortiums) in cred_with_roaming_consortium() 160 struct wpa_cred *cred; in cred_with_3gpp() local 172 struct wpa_cred *cred; cred_with_nai_realm() local 188 struct wpa_cred *cred; cred_with_domain() local 203 struct wpa_cred *cred; cred_with_min_backhaul() local 218 struct wpa_cred *cred; cred_with_conn_capab() local 694 nai_realm_find_eap(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct nai_realm *realm) nai_realm_find_eap() argument 880 already_connected(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) already_connected() argument 906 remove_duplicate_network(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) remove_duplicate_network() argument 968 interworking_connect_3gpp(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss, int only_add) interworking_connect_3gpp() argument 1153 cred_roaming_consortiums_match(const u8 *ie, const struct wpabuf *anqp, const struct wpa_cred *cred) cred_roaming_consortiums_match() argument 1170 cred_no_required_oi_match(struct wpa_cred *cred, struct wpa_bss *bss) cred_no_required_oi_match() argument 1191 cred_excluded_ssid(struct wpa_cred *cred, struct wpa_bss *bss) cred_excluded_ssid() argument 1209 cred_below_min_backhaul(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) cred_below_min_backhaul() argument 1270 cred_over_max_bss_load(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) cred_over_max_bss_load() argument 1322 cred_conn_capab_missing(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) cred_conn_capab_missing() argument 1372 struct wpa_cred *cred, *selected = NULL; interworking_credentials_available_roaming_consortium() local 1432 interworking_set_eap_params(struct wpa_ssid *ssid, struct wpa_cred *cred, int ttls) interworking_set_eap_params() argument 1559 interworking_connect_roaming_consortium( struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss, int only_add) interworking_connect_roaming_consortium() argument 1645 struct wpa_cred *cred, *cred_rc, *cred_3gpp; interworking_connect() local 1933 struct wpa_cred *cred; interworking_credentials_available_3gpp() local 2056 struct wpa_cred *cred, *selected = NULL; interworking_credentials_available_realm() local 2132 struct wpa_cred *cred, *cred2; interworking_credentials_available_helper() local 2177 struct wpa_cred *cred; interworking_credentials_available() local 2227 interworking_home_sp_cred(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpabuf *domain_names) interworking_home_sp_cred() argument 2288 struct wpa_cred *cred; interworking_home_sp() local 2347 roaming_prio(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) roaming_prio() argument 2377 pick_best_roaming_partner(struct wpa_supplicant *wpa_s, struct wpa_bss *selected, struct wpa_cred *cred) pick_best_roaming_partner() argument 2436 struct wpa_cred *cred, *selected_cred = NULL; interworking_select_network() local [all...] |
H A D | config_file.c | 239 struct wpa_cred *cred; in wpa_config_read_cred() local 243 wpa_printf(MSG_MSGDUMP, "Line: %d - start of a new cred block", *line); in wpa_config_read_cred() 244 cred = os_zalloc(sizeof(*cred)); in wpa_config_read_cred() 245 if (cred == NULL) in wpa_config_read_cred() 247 cred->id = id; in wpa_config_read_cred() 248 cred->sim_num = DEFAULT_USER_SELECTED_SIM; in wpa_config_read_cred() 258 wpa_printf(MSG_ERROR, "Line %d: Invalid cred line " in wpa_config_read_cred() 274 if (wpa_config_set_cred(cred, pos, pos2, *line) < 0) in wpa_config_read_cred() 279 wpa_printf(MSG_ERROR, "Line %d: cred bloc in wpa_config_read_cred() 382 struct wpa_cred *cred, *cred_tail, *cred_head; wpa_config_read() local 939 wpa_config_write_cred(FILE *f, struct wpa_cred *cred) wpa_config_write_cred() argument 1560 struct wpa_cred *cred; wpa_config_write() local [all...] |
H A D | config.c | 2616 void wpa_config_free_cred(struct wpa_cred *cred) in wpa_config_free_cred() argument 2620 os_free(cred->realm); in wpa_config_free_cred() 2621 str_clear_free(cred->username); in wpa_config_free_cred() 2622 str_clear_free(cred->password); in wpa_config_free_cred() 2623 os_free(cred->ca_cert); in wpa_config_free_cred() 2624 os_free(cred->client_cert); in wpa_config_free_cred() 2625 os_free(cred->private_key); in wpa_config_free_cred() 2626 str_clear_free(cred->private_key_passwd); in wpa_config_free_cred() 2627 os_free(cred->imsi); in wpa_config_free_cred() 2628 str_clear_free(cred in wpa_config_free_cred() 2673 struct wpa_cred *cred, *cprev; wpa_config_free() local 3159 wpa_config_set_cred_req_conn_capab(struct wpa_cred *cred, const char *value) wpa_config_set_cred_req_conn_capab() argument 3222 wpa_config_set_cred_roaming_consortiums(struct wpa_cred *cred, const char *value) wpa_config_set_cred_roaming_consortiums() argument 3274 wpa_config_set_cred(struct wpa_cred *cred, const char *var, const char *value, int line) wpa_config_set_cred() argument 3640 wpa_config_get_cred_no_key(struct wpa_cred *cred, const char *var) wpa_config_get_cred_no_key() argument 3916 struct wpa_cred *cred; wpa_config_get_cred() local 3932 struct wpa_cred *cred, *last = NULL; wpa_config_add_cred() local 3960 struct wpa_cred *cred, *prev = NULL; wpa_config_remove_cred() local [all...] |
H A D | wps_supplicant.c | 184 const struct wps_credential *cred) in wpas_wps_security_workaround() 205 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround() 363 const struct wps_credential *cred) in wpa_supplicant_wps_cred() 373 wpa_s->conf->wps_cred_processing == 2) && cred->cred_attr) { in wpa_supplicant_wps_cred() 374 size_t blen = cred->cred_attr_len * 2 + 1; in wpa_supplicant_wps_cred() 378 cred->cred_attr, cred->cred_attr_len); in wpa_supplicant_wps_cred() 384 wpas_notify_wps_credential(wpa_s, cred); in wpa_supplicant_wps_cred() 389 cred->cred_attr, cred in wpa_supplicant_wps_cred() 182 wpas_wps_security_workaround(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, const struct wps_credential *cred) wpas_wps_security_workaround() argument 362 wpa_supplicant_wps_cred(void *ctx, const struct wps_credential *cred) wpa_supplicant_wps_cred() argument 810 const struct wps_credential *cred = ap_settings->cred; wpa_supplicant_wps_event_er_ap_settings() local 2008 wpas_wps_network_to_cred(struct wpa_ssid *ssid, struct wps_credential *cred) wpas_wps_network_to_cred() argument 2048 struct wps_credential cred; wpas_wps_er_set_config() local 2074 struct wps_credential cred; wpas_wps_er_config() local 2246 struct wps_credential cred; wpas_wps_network_config_token() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | interworking.c | 144 struct wpa_cred *cred; in cred_with_roaming_consortium() local 146 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_roaming_consortium() 147 if (cred->roaming_consortium_len) in cred_with_roaming_consortium() 149 if (cred->required_roaming_consortium_len) in cred_with_roaming_consortium() 151 if (cred->num_roaming_consortiums) in cred_with_roaming_consortium() 160 struct wpa_cred *cred; in cred_with_3gpp() local 172 struct wpa_cred *cred; cred_with_nai_realm() local 188 struct wpa_cred *cred; cred_with_domain() local 203 struct wpa_cred *cred; cred_with_min_backhaul() local 218 struct wpa_cred *cred; cred_with_conn_capab() local 697 nai_realm_find_eap(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct nai_realm *realm) nai_realm_find_eap() argument 886 already_connected(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) already_connected() argument 912 remove_duplicate_network(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) remove_duplicate_network() argument 977 interworking_connect_3gpp(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss, int only_add) interworking_connect_3gpp() argument 1164 cred_roaming_consortiums_match(const u8 *ie, const struct wpabuf *anqp, const struct wpa_cred *cred) cred_roaming_consortiums_match() argument 1181 cred_no_required_oi_match(struct wpa_cred *cred, struct wpa_bss *bss) cred_no_required_oi_match() argument 1202 cred_excluded_ssid(struct wpa_cred *cred, struct wpa_bss *bss) cred_excluded_ssid() argument 1220 cred_below_min_backhaul(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) cred_below_min_backhaul() argument 1281 cred_over_max_bss_load(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) cred_over_max_bss_load() argument 1333 cred_conn_capab_missing(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) cred_conn_capab_missing() argument 1383 struct wpa_cred *cred, *selected = NULL; interworking_credentials_available_roaming_consortium() local 1447 interworking_set_eap_params(struct wpa_ssid *ssid, struct wpa_cred *cred, int ttls) interworking_set_eap_params() argument 1592 interworking_connect_roaming_consortium( struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss, int only_add) interworking_connect_roaming_consortium() argument 1678 struct wpa_cred *cred, *cred_rc, *cred_3gpp; interworking_connect() local 1976 struct wpa_cred *cred; interworking_credentials_available_3gpp() local 2099 struct wpa_cred *cred, *selected = NULL; interworking_credentials_available_realm() local 2179 struct wpa_cred *cred, *cred2; interworking_credentials_available_helper() local 2224 struct wpa_cred *cred; interworking_credentials_available() local 2274 interworking_home_sp_cred(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpabuf *domain_names) interworking_home_sp_cred() argument 2335 struct wpa_cred *cred; interworking_home_sp() local 2394 roaming_prio(struct wpa_supplicant *wpa_s, struct wpa_cred *cred, struct wpa_bss *bss) roaming_prio() argument 2424 pick_best_roaming_partner(struct wpa_supplicant *wpa_s, struct wpa_bss *selected, struct wpa_cred *cred) pick_best_roaming_partner() argument 2483 struct wpa_cred *cred, *selected_cred = NULL; interworking_select_network() local [all...] |
H A D | config_file.c | 193 struct wpa_cred *cred; in wpa_config_read_cred() local 197 wpa_printf(MSG_MSGDUMP, "Line: %d - start of a new cred block", *line); in wpa_config_read_cred() 198 cred = os_zalloc(sizeof(*cred)); in wpa_config_read_cred() 199 if (cred == NULL) in wpa_config_read_cred() 201 cred->id = id; in wpa_config_read_cred() 202 cred->sim_num = DEFAULT_USER_SELECTED_SIM; in wpa_config_read_cred() 212 wpa_printf(MSG_ERROR, "Line %d: Invalid cred line " in wpa_config_read_cred() 228 if (wpa_config_set_cred(cred, pos, pos2, *line) < 0) in wpa_config_read_cred() 233 wpa_printf(MSG_ERROR, "Line %d: cred bloc in wpa_config_read_cred() 336 struct wpa_cred *cred, *cred_tail, *cred_head; wpa_config_read() local 942 wpa_config_write_cred(FILE *f, struct wpa_cred *cred) wpa_config_write_cred() argument 1628 struct wpa_cred *cred; wpa_config_write() local [all...] |
H A D | config.c | 2987 void wpa_config_free_cred(struct wpa_cred *cred) in wpa_config_free_cred() argument 2991 os_free(cred->realm); in wpa_config_free_cred() 2992 str_clear_free(cred->username); in wpa_config_free_cred() 2993 str_clear_free(cred->password); in wpa_config_free_cred() 2994 os_free(cred->ca_cert); in wpa_config_free_cred() 2995 os_free(cred->client_cert); in wpa_config_free_cred() 2996 os_free(cred->private_key); in wpa_config_free_cred() 2997 str_clear_free(cred->private_key_passwd); in wpa_config_free_cred() 2998 os_free(cred->engine_id); in wpa_config_free_cred() 2999 os_free(cred in wpa_config_free_cred() 3048 struct wpa_cred *cred, *cprev; wpa_config_free() local 3583 wpa_config_set_cred_req_conn_capab(struct wpa_cred *cred, const char *value) wpa_config_set_cred_req_conn_capab() argument 3646 wpa_config_set_cred_roaming_consortiums(struct wpa_cred *cred, const char *value) wpa_config_set_cred_roaming_consortiums() argument 3698 wpa_config_set_cred(struct wpa_cred *cred, const char *var, const char *value, int line) wpa_config_set_cred() argument 4093 wpa_config_get_cred_no_key(struct wpa_cred *cred, const char *var) wpa_config_get_cred_no_key() argument 4369 struct wpa_cred *cred; wpa_config_get_cred() local 4385 struct wpa_cred *cred, *last = NULL; wpa_config_add_cred() local 4413 struct wpa_cred *cred, *prev = NULL; wpa_config_remove_cred() local [all...] |
H A D | wps_supplicant.c | 190 const struct wps_credential *cred) in wpas_wps_security_workaround() 212 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround() 373 const struct wps_credential *cred) in wpa_supplicant_wps_cred() 384 wpa_s->conf->wps_cred_processing == 2) && cred->cred_attr) { in wpa_supplicant_wps_cred() 385 size_t blen = cred->cred_attr_len * 2 + 1; in wpa_supplicant_wps_cred() 389 cred->cred_attr, cred->cred_attr_len); in wpa_supplicant_wps_cred() 395 wpas_notify_wps_credential(wpa_s, cred); in wpa_supplicant_wps_cred() 400 cred->cred_attr, cred in wpa_supplicant_wps_cred() 188 wpas_wps_security_workaround(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, const struct wps_credential *cred) wpas_wps_security_workaround() argument 372 wpa_supplicant_wps_cred(void *ctx, const struct wps_credential *cred) wpa_supplicant_wps_cred() argument 833 const struct wps_credential *cred = ap_settings->cred; wpa_supplicant_wps_event_er_ap_settings() local 2067 wpas_wps_network_to_cred(struct wpa_ssid *ssid, struct wps_credential *cred) wpas_wps_network_to_cred() argument 2107 struct wps_credential cred; wpas_wps_er_set_config() local 2133 struct wps_credential cred; wpas_wps_er_config() local 2315 struct wps_credential cred; wpas_wps_network_config_token() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A D | tlsv1_cred.c | 23 struct tlsv1_credentials *cred; in tlsv1_cred_alloc() local 24 cred = os_zalloc(sizeof(*cred)); in tlsv1_cred_alloc() 25 return cred; in tlsv1_cred_alloc() 29 void tlsv1_cred_free(struct tlsv1_credentials *cred) in tlsv1_cred_free() argument 31 if (cred == NULL) in tlsv1_cred_free() 34 x509_certificate_chain_free(cred->trusted_certs); in tlsv1_cred_free() 35 x509_certificate_chain_free(cred->cert); in tlsv1_cred_free() 36 crypto_private_key_free(cred->key); in tlsv1_cred_free() 37 os_free(cred in tlsv1_cred_free() 194 tlsv1_set_ca_cert(struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len, const char *path) tlsv1_set_ca_cert() argument 258 tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len) tlsv1_set_cert() argument 415 pkcs12_keybag(struct tlsv1_credentials *cred, const u8 *buf, size_t len) pkcs12_keybag() argument 423 pkcs12_pkcs8_keybag(struct tlsv1_credentials *cred, const u8 *buf, size_t len, const char *passwd) pkcs12_pkcs8_keybag() argument 443 pkcs12_certbag(struct tlsv1_credentials *cred, const u8 *buf, size_t len) pkcs12_certbag() argument 606 pkcs12_safebag(struct tlsv1_credentials *cred, const u8 *buf, size_t len, const char *passwd) pkcs12_safebag() argument 678 pkcs12_safecontents(struct tlsv1_credentials *cred, const u8 *buf, size_t len, const char *passwd) pkcs12_safecontents() argument 718 pkcs12_parse_content_data(struct tlsv1_credentials *cred, const u8 *pos, const u8 *end, const char *passwd) pkcs12_parse_content_data() argument 737 pkcs12_parse_content_enc_data(struct tlsv1_credentials *cred, const u8 *pos, const u8 *end, const char *passwd) pkcs12_parse_content_enc_data() argument 843 pkcs12_parse_content(struct tlsv1_credentials *cred, const u8 *buf, size_t len, const char *passwd) pkcs12_parse_content() argument 884 pkcs12_parse(struct tlsv1_credentials *cred, const u8 *key, size_t len, const char *passwd) pkcs12_parse() argument 1006 tlsv1_set_key(struct tlsv1_credentials *cred, const u8 *key, size_t len, const char *passwd) tlsv1_set_key() argument 1036 tlsv1_set_private_key(struct tlsv1_credentials *cred, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len) tlsv1_set_private_key() argument 1071 tlsv1_set_dhparams_der(struct tlsv1_credentials *cred, const u8 *dh, size_t len) tlsv1_set_dhparams_der() argument 1136 tlsv1_set_dhparams_blob(struct tlsv1_credentials *cred, const u8 *buf, size_t len) tlsv1_set_dhparams_blob() argument 1188 tlsv1_set_dhparams(struct tlsv1_credentials *cred, const char *dh_file, const u8 *dh_blob, size_t dh_blob_len) tlsv1_set_dhparams() argument [all...] |
H A D | tlsv1_cred.h | 34 void tlsv1_cred_free(struct tlsv1_credentials *cred); 35 int tlsv1_set_ca_cert(struct tlsv1_credentials *cred, const char *cert, 38 int tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert, 40 int tlsv1_set_private_key(struct tlsv1_credentials *cred, 45 int tlsv1_set_dhparams(struct tlsv1_credentials *cred, const char *dh_file,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A D | tlsv1_cred.c | 23 struct tlsv1_credentials *cred; in tlsv1_cred_alloc() local 24 cred = os_zalloc(sizeof(*cred)); in tlsv1_cred_alloc() 25 return cred; in tlsv1_cred_alloc() 29 void tlsv1_cred_free(struct tlsv1_credentials *cred) in tlsv1_cred_free() argument 31 if (cred == NULL) in tlsv1_cred_free() 34 x509_certificate_chain_free(cred->trusted_certs); in tlsv1_cred_free() 35 x509_certificate_chain_free(cred->cert); in tlsv1_cred_free() 36 crypto_private_key_free(cred->key); in tlsv1_cred_free() 37 os_free(cred in tlsv1_cred_free() 194 tlsv1_set_ca_cert(struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len, const char *path) tlsv1_set_ca_cert() argument 258 tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert, const u8 *cert_blob, size_t cert_blob_len) tlsv1_set_cert() argument 415 pkcs12_keybag(struct tlsv1_credentials *cred, const u8 *buf, size_t len) pkcs12_keybag() argument 423 pkcs12_pkcs8_keybag(struct tlsv1_credentials *cred, const u8 *buf, size_t len, const char *passwd) pkcs12_pkcs8_keybag() argument 443 pkcs12_certbag(struct tlsv1_credentials *cred, const u8 *buf, size_t len) pkcs12_certbag() argument 622 pkcs12_safebag(struct tlsv1_credentials *cred, const u8 *buf, size_t len, const char *passwd) pkcs12_safebag() argument 700 pkcs12_safecontents(struct tlsv1_credentials *cred, const u8 *buf, size_t len, const char *passwd) pkcs12_safecontents() argument 745 pkcs12_parse_content_data(struct tlsv1_credentials *cred, const u8 *pos, const u8 *end, const char *passwd) pkcs12_parse_content_data() argument 767 pkcs12_parse_content_enc_data(struct tlsv1_credentials *cred, const u8 *pos, const u8 *end, const char *passwd) pkcs12_parse_content_enc_data() argument 882 pkcs12_parse_content(struct tlsv1_credentials *cred, const u8 *buf, size_t len, const char *passwd) pkcs12_parse_content() argument 925 pkcs12_parse(struct tlsv1_credentials *cred, const u8 *key, size_t len, const char *passwd) pkcs12_parse() argument 1062 tlsv1_set_key(struct tlsv1_credentials *cred, const u8 *key, size_t len, const char *passwd) tlsv1_set_key() argument 1092 tlsv1_set_private_key(struct tlsv1_credentials *cred, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t private_key_blob_len) tlsv1_set_private_key() argument 1127 tlsv1_set_dhparams_der(struct tlsv1_credentials *cred, const u8 *dh, size_t len) tlsv1_set_dhparams_der() argument 1203 tlsv1_set_dhparams_blob(struct tlsv1_credentials *cred, const u8 *buf, size_t len) tlsv1_set_dhparams_blob() argument 1255 tlsv1_set_dhparams(struct tlsv1_credentials *cred, const char *dh_file, const u8 *dh_blob, size_t dh_blob_len) tlsv1_set_dhparams() argument [all...] |
H A D | tlsv1_cred.h | 34 void tlsv1_cred_free(struct tlsv1_credentials *cred); 35 int tlsv1_set_ca_cert(struct tlsv1_credentials *cred, const char *cert, 38 int tlsv1_set_cert(struct tlsv1_credentials *cred, const char *cert, 40 int tlsv1_set_private_key(struct tlsv1_credentials *cred, 45 int tlsv1_set_dhparams(struct tlsv1_credentials *cred, const char *dh_file,
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
H A D | wps_hostapd.c | 354 const struct wps_credential *cred) in hapd_wps_reconfig_in_memory() 361 if (cred->ssid_len <= SSID_MAX_LEN) { in hapd_wps_reconfig_in_memory() 362 os_memcpy(bss->ssid.ssid, cred->ssid, cred->ssid_len); in hapd_wps_reconfig_in_memory() 363 bss->ssid.ssid_len = cred->ssid_len; in hapd_wps_reconfig_in_memory() 368 if (cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA2PSK | in hapd_wps_reconfig_in_memory() 374 if ((cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA2PSK)) && in hapd_wps_reconfig_in_memory() 375 (cred->auth_type & (WPS_AUTH_WPA | WPS_AUTH_WPAPSK))) in hapd_wps_reconfig_in_memory() 377 else if (cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA2PSK)) in hapd_wps_reconfig_in_memory() 379 else if (cred in hapd_wps_reconfig_in_memory() 353 hapd_wps_reconfig_in_memory(struct hostapd_data *hapd, const struct wps_credential *cred) hapd_wps_reconfig_in_memory() argument 457 const struct wps_credential *cred = ctx; hapd_wps_cred_cb() local 715 hostapd_wps_cred_cb(void *ctx, const struct wps_credential *cred) hostapd_wps_cred_cb() argument 1923 struct wps_credential cred; hostapd_wps_config_ap() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | wps_hostapd.c | 314 const struct wps_credential *cred) in hapd_wps_reconfig_in_memory() 321 if (cred->ssid_len <= SSID_MAX_LEN) { in hapd_wps_reconfig_in_memory() 322 os_memcpy(bss->ssid.ssid, cred->ssid, cred->ssid_len); in hapd_wps_reconfig_in_memory() 323 bss->ssid.ssid_len = cred->ssid_len; in hapd_wps_reconfig_in_memory() 327 if ((cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA2PSK)) && in hapd_wps_reconfig_in_memory() 328 (cred->auth_type & (WPS_AUTH_WPA | WPS_AUTH_WPAPSK))) in hapd_wps_reconfig_in_memory() 330 else if (cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA2PSK)) in hapd_wps_reconfig_in_memory() 332 else if (cred->auth_type & (WPS_AUTH_WPA | WPS_AUTH_WPAPSK)) in hapd_wps_reconfig_in_memory() 338 if (cred in hapd_wps_reconfig_in_memory() 313 hapd_wps_reconfig_in_memory(struct hostapd_data *hapd, const struct wps_credential *cred) hapd_wps_reconfig_in_memory() argument 409 const struct wps_credential *cred = ctx; hapd_wps_cred_cb() local 661 hostapd_wps_cred_cb(void *ctx, const struct wps_credential *cred) hostapd_wps_cred_cb() argument 1738 struct wps_credential cred; hostapd_wps_config_ap() local [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jdmrg565.c | 23 register int y, cred, cgreen, cblue; in h2v1_merged_upsample_565_internal() local 48 cred = Crrtab[cr]; in h2v1_merged_upsample_565_internal() 54 r = range_limit[y + cred]; in h2v1_merged_upsample_565_internal() 60 r = range_limit[y + cred]; in h2v1_merged_upsample_565_internal() 73 cred = Crrtab[cr]; in h2v1_merged_upsample_565_internal() 77 r = range_limit[y + cred]; in h2v1_merged_upsample_565_internal() 94 register int y, cred, cgreen, cblue; in h2v1_merged_upsample_565D_internal() local 120 cred = Crrtab[cr]; in h2v1_merged_upsample_565D_internal() 126 r = range_limit[DITHER_565_R(y + cred, d0)]; in h2v1_merged_upsample_565D_internal() 133 r = range_limit[DITHER_565_R(y + cred, d in h2v1_merged_upsample_565D_internal() 167 register int y, cred, cgreen, cblue; h2v2_merged_upsample_565_internal() local 263 register int y, cred, cgreen, cblue; h2v2_merged_upsample_565D_internal() local [all...] |
H A D | jdmrgext.c | 29 register int y, cred, cgreen, cblue; in h2v1_merged_upsample_internal() local 51 cred = Crrtab[cr]; in h2v1_merged_upsample_internal() 56 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample_internal() 64 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample_internal() 76 cred = Crrtab[cr]; in h2v1_merged_upsample_internal() 80 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample_internal() 101 register int y, cred, cgreen, cblue; in h2v2_merged_upsample_internal() local 125 cred = Crrtab[cr]; in h2v2_merged_upsample_internal() 130 outptr0[RGB_RED] = range_limit[y + cred]; in h2v2_merged_upsample_internal() 138 outptr0[RGB_RED] = range_limit[y + cred]; in h2v2_merged_upsample_internal() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
H A D | tls_internal.c | 206 struct tlsv1_credentials *cred; in tls_connection_set_params() local 217 cred = tlsv1_cred_alloc(); in tls_connection_set_params() 218 if (cred == NULL) in tls_connection_set_params() 223 tlsv1_cred_free(cred); in tls_connection_set_params() 229 tlsv1_cred_free(cred); in tls_connection_set_params() 235 tlsv1_cred_free(cred); in tls_connection_set_params() 241 tlsv1_cred_free(cred); in tls_connection_set_params() 247 tlsv1_cred_free(cred); in tls_connection_set_params() 253 tlsv1_cred_free(cred); in tls_connection_set_params() 257 if (tlsv1_set_ca_cert(cred, param in tls_connection_set_params() 310 struct tlsv1_credentials *cred; tls_global_set_params() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
H A D | tls_internal.c | 206 struct tlsv1_credentials *cred; in tls_connection_set_params() local 217 cred = tlsv1_cred_alloc(); in tls_connection_set_params() 218 if (cred == NULL) in tls_connection_set_params() 223 tlsv1_cred_free(cred); in tls_connection_set_params() 229 tlsv1_cred_free(cred); in tls_connection_set_params() 235 tlsv1_cred_free(cred); in tls_connection_set_params() 241 tlsv1_cred_free(cred); in tls_connection_set_params() 247 tlsv1_cred_free(cred); in tls_connection_set_params() 253 tlsv1_cred_free(cred); in tls_connection_set_params() 257 if (tlsv1_set_ca_cert(cred, param in tls_connection_set_params() 310 struct tlsv1_credentials *cred; tls_global_set_params() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_wsc.c | 58 static int eap_wsc_new_ap_settings(struct wps_credential *cred, in eap_wsc_new_ap_settings() argument 64 os_memset(cred, 0, sizeof(*cred)); in eap_wsc_new_ap_settings() 75 if ((len & 1) || len > 2 * sizeof(cred->ssid) || in eap_wsc_new_ap_settings() 76 hexstr2bin(pos, cred->ssid, len / 2)) { in eap_wsc_new_ap_settings() 80 cred->ssid_len = len / 2; in eap_wsc_new_ap_settings() 88 cred->auth_type = WPS_AUTH_OPEN; in eap_wsc_new_ap_settings() 90 cred->auth_type = WPS_AUTH_WPAPSK; in eap_wsc_new_ap_settings() 92 cred->auth_type = WPS_AUTH_WPA2PSK; in eap_wsc_new_ap_settings() 104 cred in eap_wsc_new_ap_settings() [all...] |