Home
last modified time | relevance | path

Searched refs:cred (Results 1 – 25 of 119) sorted by relevance

12345

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dwps_attr_process.c84 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->encr_type = WPA_GET_BE16(encr_type); in wps_process_cred_encr_type()
[all …]
Dwps_registrar.c1525 const struct wps_credential *cred) in wps_build_cred_network_idx() argument
1536 const struct wps_credential *cred) in wps_build_cred_ssid() argument
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() argument
1552 cred->auth_type); in wps_build_cred_auth_type()
1555 wpabuf_put_be16(msg, cred->auth_type); in wps_build_cred_auth_type()
1561 const struct wps_credential *cred) in wps_build_cred_encr_type() argument
1564 cred->encr_type); in wps_build_cred_encr_type()
[all …]
Dwps_enrollee.c704 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.encr_type); in wps_process_cred_e()
755 wps->cred.cred_attr = cred - 4; in wps_process_cred_e()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dwps_attr_process.c83 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->encr_type = WPA_GET_BE16(encr_type); in wps_process_cred_encr_type()
[all …]
Dwps_registrar.c1547 const struct wps_credential *cred) in wps_build_cred_network_idx() argument
1558 const struct wps_credential *cred) in wps_build_cred_ssid() argument
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() argument
1574 cred->auth_type); in wps_build_cred_auth_type()
1577 wpabuf_put_be16(msg, cred->auth_type); in wps_build_cred_auth_type()
1583 const struct wps_credential *cred) in wps_build_cred_encr_type() argument
1586 cred->encr_type); in wps_build_cred_encr_type()
[all …]
Dwps_enrollee.c704 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.encr_type); in wps_process_cred_e()
755 wps->cred.cred_attr = cred - 4; in wps_process_cred_e()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dinterworking.c144 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
162 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_3gpp()
163 if (cred->pcsc || cred->imsi) in cred_with_3gpp()
172 struct wpa_cred *cred; in cred_with_nai_realm() local
174 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_nai_realm()
[all …]
Dconfig_file.c193 struct wpa_cred *cred; in wpa_config_read_cred() local
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()
228 if (wpa_config_set_cred(cred, pos, pos2, *line) < 0) in wpa_config_read_cred()
239 wpa_config_free_cred(cred); in wpa_config_read_cred()
240 cred = NULL; in wpa_config_read_cred()
243 return cred; in wpa_config_read_cred()
336 struct wpa_cred *cred, *cred_tail, *cred_head; in wpa_config_read() local
[all …]
Dconfig.c2974 void wpa_config_free_cred(struct wpa_cred *cred) in wpa_config_free_cred() argument
2978 os_free(cred->realm); in wpa_config_free_cred()
2979 str_clear_free(cred->username); in wpa_config_free_cred()
2980 str_clear_free(cred->password); in wpa_config_free_cred()
2981 os_free(cred->ca_cert); in wpa_config_free_cred()
2982 os_free(cred->client_cert); in wpa_config_free_cred()
2983 os_free(cred->private_key); in wpa_config_free_cred()
2984 str_clear_free(cred->private_key_passwd); in wpa_config_free_cred()
2985 os_free(cred->engine_id); in wpa_config_free_cred()
2986 os_free(cred->ca_cert_id); in wpa_config_free_cred()
[all …]
Dwps_supplicant.c184 const struct wps_credential *cred) in wpas_wps_security_workaround() argument
206 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
367 const struct wps_credential *cred) in wpa_supplicant_wps_cred() argument
378 wpa_s->conf->wps_cred_processing == 2) && cred->cred_attr) { in wpa_supplicant_wps_cred()
379 size_t blen = cred->cred_attr_len * 2 + 1; in wpa_supplicant_wps_cred()
383 cred->cred_attr, cred->cred_attr_len); in wpa_supplicant_wps_cred()
389 wpas_notify_wps_credential(wpa_s, cred); in wpa_supplicant_wps_cred()
394 cred->cred_attr, cred->cred_attr_len); in wpa_supplicant_wps_cred()
399 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
401 cred->auth_type); in wpa_supplicant_wps_cred()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dinterworking.c144 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
162 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_3gpp()
163 if (cred->pcsc || cred->imsi) in cred_with_3gpp()
172 struct wpa_cred *cred; in cred_with_nai_realm() local
174 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_nai_realm()
[all …]
Dconfig_file.c239 struct wpa_cred *cred; in wpa_config_read_cred() local
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()
274 if (wpa_config_set_cred(cred, pos, pos2, *line) < 0) in wpa_config_read_cred()
285 wpa_config_free_cred(cred); in wpa_config_read_cred()
286 cred = NULL; in wpa_config_read_cred()
289 return cred; in wpa_config_read_cred()
382 struct wpa_cred *cred, *cred_tail, *cred_head; in wpa_config_read() local
[all …]
Dconfig.c2616 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->milenage); in wpa_config_free_cred()
[all …]
Dwps_supplicant.c184 const struct wps_credential *cred) in wpas_wps_security_workaround() argument
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() argument
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->cred_attr_len); in wpa_supplicant_wps_cred()
394 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
396 cred->auth_type); in wpa_supplicant_wps_cred()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dtlsv1_cred.c23 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->dh_p); in tlsv1_cred_free()
38 os_free(cred->dh_g); in tlsv1_cred_free()
[all …]
Dtlsv1_cred.h34 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/
Dtlsv1_cred.c23 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->dh_p); in tlsv1_cred_free()
38 os_free(cred->dh_g); in tlsv1_cred_free()
[all …]
Dtlsv1_cred.h34 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/ap/
Dwps_hostapd.c314 const struct wps_credential *cred) in hapd_wps_reconfig_in_memory() argument
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->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA)) in hapd_wps_reconfig_in_memory()
340 if (cred->auth_type & (WPS_AUTH_WPA2PSK | WPS_AUTH_WPAPSK)) in hapd_wps_reconfig_in_memory()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dwps_hostapd.c354 const struct wps_credential *cred) in hapd_wps_reconfig_in_memory() argument
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->auth_type & (WPS_AUTH_WPA | WPS_AUTH_WPAPSK)) in hapd_wps_reconfig_in_memory()
386 if (cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA)) in hapd_wps_reconfig_in_memory()
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Djdmrg565.c23 register int y, cred, cgreen, cblue; in LOCAL() local
48 cred = Crrtab[cr]; in LOCAL()
54 r = range_limit[y + cred]; in LOCAL()
60 r = range_limit[y + cred]; in LOCAL()
73 cred = Crrtab[cr]; in LOCAL()
77 r = range_limit[y + cred]; in LOCAL()
94 register int y, cred, cgreen, cblue; in LOCAL() local
120 cred = Crrtab[cr]; in LOCAL()
126 r = range_limit[DITHER_565_R(y + cred, d0)]; in LOCAL()
133 r = range_limit[DITHER_565_R(y + cred, d0)]; in LOCAL()
[all …]
Djdmrgext.c29 register int y, cred, cgreen, cblue; in LOCAL() local
51 cred = Crrtab[cr]; in LOCAL()
56 outptr[RGB_RED] = range_limit[y + cred]; in LOCAL()
64 outptr[RGB_RED] = range_limit[y + cred]; in LOCAL()
76 cred = Crrtab[cr]; in LOCAL()
80 outptr[RGB_RED] = range_limit[y + cred]; in LOCAL()
101 register int y, cred, cgreen, cblue; in LOCAL() local
125 cred = Crrtab[cr]; in LOCAL()
130 outptr0[RGB_RED] = range_limit[y + cred]; in LOCAL()
138 outptr0[RGB_RED] = range_limit[y + cred]; in LOCAL()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dtls_internal.c206 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, params->ca_cert, in tls_connection_set_params()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dtls_internal.c206 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, params->ca_cert, in tls_connection_set_params()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap_wsc.c58 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->encr_type = WPS_ENCR_NONE; in eap_wsc_new_ap_settings()
107 cred->encr_type = WPS_ENCR_WEP; in eap_wsc_new_ap_settings()
[all …]

12345