Home
last modified time | relevance | path

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

1234

/external/wpa_supplicant_8/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.c1497 const struct wps_credential *cred) in wps_build_cred_network_idx() argument
1508 const struct wps_credential *cred) in wps_build_cred_ssid() argument
1512 cred->ssid, cred->ssid_len); in wps_build_cred_ssid()
1514 wpabuf_put_be16(msg, cred->ssid_len); in wps_build_cred_ssid()
1515 wpabuf_put_data(msg, cred->ssid, cred->ssid_len); in wps_build_cred_ssid()
1521 const struct wps_credential *cred) in wps_build_cred_auth_type() argument
1524 cred->auth_type); in wps_build_cred_auth_type()
1527 wpabuf_put_be16(msg, cred->auth_type); in wps_build_cred_auth_type()
1533 const struct wps_credential *cred) in wps_build_cred_encr_type() argument
1536 cred->encr_type); in wps_build_cred_encr_type()
[all …]
Dwps_enrollee.c699 static int wps_process_cred_e(struct wps_data *wps, const u8 *cred, in wps_process_cred_e() argument
707 os_memset(&wps->cred, 0, sizeof(wps->cred)); in wps_process_cred_e()
708 wpabuf_set(&msg, cred, cred_len); in wps_process_cred_e()
710 wps_process_cred(&attr, &wps->cred)) in wps_process_cred_e()
713 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e()
717 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e()
735 if (!(wps->cred.encr_type & in wps_process_cred_e()
737 if (wps->cred.encr_type & WPS_ENCR_WEP) { in wps_process_cred_e()
745 "invalid encr_type 0x%x", wps->cred.encr_type); in wps_process_cred_e()
750 wps->cred.cred_attr = cred - 4; in wps_process_cred_e()
[all …]
Dwps_er.c86 os_free(sta->cred); in wps_er_sta_free()
1054 os_free(sta->cred); in wps_er_sta_start()
1055 sta->cred = os_malloc(sizeof(*sta->cred)); in wps_er_sta_start()
1056 if (sta->cred) { in wps_er_sta_start()
1057 os_memcpy(sta->cred, sta->ap->ap_settings, in wps_er_sta_start()
1058 sizeof(*sta->cred)); in wps_er_sta_start()
1059 sta->cred->cred_attr = NULL; in wps_er_sta_start()
1060 os_memcpy(sta->cred->mac_addr, sta->addr, ETH_ALEN); in wps_er_sta_start()
1061 sta->wps->use_cred = sta->cred; in wps_er_sta_start()
1607 static void wps_er_ap_settings_cb(void *ctx, const struct wps_credential *cred) in wps_er_ap_settings_cb() argument
[all …]
Dwps_common.c382 struct wps_credential cred; in wps_get_oob_cred() local
387 os_memset(&cred, 0, sizeof(cred)); in wps_get_oob_cred()
388 os_memcpy(cred.ssid, wps->ssid, wps->ssid_len); in wps_get_oob_cred()
389 cred.ssid_len = wps->ssid_len; in wps_get_oob_cred()
390 cred.auth_type = WPS_AUTH_WPAPSK | WPS_AUTH_WPA2PSK; in wps_get_oob_cred()
391 cred.encr_type = WPS_ENCR_TKIP | WPS_ENCR_AES; in wps_get_oob_cred()
392 os_memcpy(cred.key, data.new_psk, data.new_psk_len); in wps_get_oob_cred()
393 cred.key_len = data.new_psk_len; in wps_get_oob_cred()
400 wps->cred_cb(wps->cb_ctx, &cred); in wps_get_oob_cred()
442 wpabuf_set(&msg, attr->cred[i], attr->cred_len[i]); in wps_oob_use_cred()
Dwps_i.h100 struct wps_credential cred; member
117 void (*ap_settings_cb)(void *ctx, const struct wps_credential *cred);
188 struct wps_credential *cred);
190 struct wps_credential *cred);
/external/wpa_supplicant_8/wpa_supplicant/
Dinterworking.c142 struct wpa_cred *cred; in cred_with_roaming_consortium() local
144 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_roaming_consortium()
145 if (cred->roaming_consortium_len) in cred_with_roaming_consortium()
147 if (cred->required_roaming_consortium_len) in cred_with_roaming_consortium()
156 struct wpa_cred *cred; in cred_with_3gpp() local
158 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_3gpp()
159 if (cred->pcsc || cred->imsi) in cred_with_3gpp()
168 struct wpa_cred *cred; in cred_with_nai_realm() local
170 for (cred = wpa_s->conf->cred; cred; cred = cred->next) { in cred_with_nai_realm()
171 if (cred->pcsc || cred->imsi) in cred_with_nai_realm()
[all …]
Dconfig_file.c225 struct wpa_cred *cred; in wpa_config_read_cred() local
230 cred = os_zalloc(sizeof(*cred)); in wpa_config_read_cred()
231 if (cred == NULL) in wpa_config_read_cred()
233 cred->id = id; in wpa_config_read_cred()
234 cred->sim_num = DEFAULT_USER_SELECTED_SIM; in wpa_config_read_cred()
260 if (wpa_config_set_cred(cred, pos, pos2, *line) < 0) in wpa_config_read_cred()
271 wpa_config_free_cred(cred); in wpa_config_read_cred()
272 cred = NULL; in wpa_config_read_cred()
275 return cred; in wpa_config_read_cred()
368 struct wpa_cred *cred, *cred_tail, *cred_head; in wpa_config_read() local
[all …]
Dconfig.c2246 void wpa_config_free_cred(struct wpa_cred *cred) in wpa_config_free_cred() argument
2250 os_free(cred->realm); in wpa_config_free_cred()
2251 str_clear_free(cred->username); in wpa_config_free_cred()
2252 str_clear_free(cred->password); in wpa_config_free_cred()
2253 os_free(cred->ca_cert); in wpa_config_free_cred()
2254 os_free(cred->client_cert); in wpa_config_free_cred()
2255 os_free(cred->private_key); in wpa_config_free_cred()
2256 str_clear_free(cred->private_key_passwd); in wpa_config_free_cred()
2257 os_free(cred->imsi); in wpa_config_free_cred()
2258 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()
360 const struct wps_credential *cred) in wpa_supplicant_wps_cred() argument
370 wpa_s->conf->wps_cred_processing == 2) && cred->cred_attr) { in wpa_supplicant_wps_cred()
371 size_t blen = cred->cred_attr_len * 2 + 1; in wpa_supplicant_wps_cred()
375 cred->cred_attr, cred->cred_attr_len); in wpa_supplicant_wps_cred()
381 wpas_notify_wps_credential(wpa_s, cred); in wpa_supplicant_wps_cred()
386 cred->cred_attr, cred->cred_attr_len); in wpa_supplicant_wps_cred()
391 wpa_hexdump_ascii(MSG_DEBUG, "WPS: SSID", cred->ssid, cred->ssid_len); in wpa_supplicant_wps_cred()
393 cred->auth_type); in wpa_supplicant_wps_cred()
[all …]
/external/wpa_supplicant_8/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,
Dtlsv1_server_write.c29 cert = conn->cred->cert; in tls_server_cert_chain_der_len()
34 cert = x509_certificate_get_subject(conn->cred->trusted_certs, in tls_server_cert_chain_der_len()
225 cert = conn->cred->cert; in tls_write_server_certificate()
243 cert = x509_certificate_get_subject(conn->cred->trusted_certs, in tls_write_server_certificate()
246 if (cert == conn->cred->cert || cert == NULL) { in tls_write_server_certificate()
394 if (conn->cred == NULL || conn->cred->dh_p == NULL || in tls_write_server_key_exchange()
395 conn->cred->dh_g == NULL) { in tls_write_server_key_exchange()
447 if (crypto_mod_exp(conn->cred->dh_g, conn->cred->dh_g_len, in tls_write_server_key_exchange()
511 if (2 + conn->cred->dh_g_len > (size_t) (end - pos)) { in tls_write_server_key_exchange()
519 WPA_PUT_BE16(pos, conn->cred->dh_g_len); in tls_write_server_key_exchange()
[all …]
Dtlsv1_client_write.c29 if (conn->cred == NULL) in tls_client_cert_chain_der_len()
32 cert = conn->cred->cert; in tls_client_cert_chain_der_len()
37 cert = x509_certificate_get_subject(conn->cred->trusted_certs, in tls_client_cert_chain_der_len()
292 cert = conn->cred ? conn->cred->cert : NULL; in tls_write_client_certificate()
310 cert = x509_certificate_get_subject(conn->cred->trusted_certs, in tls_write_client_certificate()
313 if (conn->cred == NULL || cert == conn->cred->cert || cert == NULL) { in tls_write_client_certificate()
713 if (conn->cred == NULL || in tls_write_client_certificate_verify()
714 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen, in tls_write_client_certificate_verify()
896 (conn->certificate_requested && conn->cred && conn->cred->key && in tls_send_client_key_exchange()
/external/libvncserver/libvncclient/
Dtls_gnutls.c274 FreeX509Credential(rfbCredential *cred) in FreeX509Credential() argument
276 if (cred->x509Credential.x509CACertFile) free(cred->x509Credential.x509CACertFile); in FreeX509Credential()
277 if (cred->x509Credential.x509CACrlFile) free(cred->x509Credential.x509CACrlFile); in FreeX509Credential()
278 if (cred->x509Credential.x509ClientCertFile) free(cred->x509Credential.x509ClientCertFile); in FreeX509Credential()
279 if (cred->x509Credential.x509ClientKeyFile) free(cred->x509Credential.x509ClientKeyFile); in FreeX509Credential()
280 free(cred); in FreeX509Credential()
284 CreateX509CertCredential(rfbCredential *cred) in CreateX509CertCredential() argument
289 if (!cred->x509Credential.x509CACertFile) in CreateX509CertCredential()
301 cred->x509Credential.x509CACertFile, GNUTLS_X509_FMT_PEM)) < 0) in CreateX509CertCredential()
307 if (cred->x509Credential.x509ClientCertFile && cred->x509Credential.x509ClientKeyFile) in CreateX509CertCredential()
[all …]
Drfbproto.c678 FreeUserCredential(rfbCredential *cred) in FreeUserCredential() argument
680 if (cred->userCredential.username) free(cred->userCredential.username); in FreeUserCredential()
681 if (cred->userCredential.password) free(cred->userCredential.password); in FreeUserCredential()
682 free(cred); in FreeUserCredential()
690 rfbCredential *cred; in HandlePlainAuth() local
697 cred = client->GetCredential(client, rfbCredentialTypeUser); in HandlePlainAuth()
698 if (!cred) in HandlePlainAuth()
704 ulen = (cred->userCredential.username ? strlen(cred->userCredential.username) : 0); in HandlePlainAuth()
706 plen = (cred->userCredential.password ? strlen(cred->userCredential.password) : 0); in HandlePlainAuth()
711 FreeUserCredential(cred); in HandlePlainAuth()
[all …]
/external/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()
102 register int y, cred, cgreen, cblue; in LOCAL() local
126 cred = Crrtab[cr]; in LOCAL()
131 outptr0[RGB_RED] = range_limit[y + cred]; in LOCAL()
139 outptr0[RGB_RED] = range_limit[y + cred]; in LOCAL()
[all …]
/external/wpa_supplicant_8/src/ap/
Dwps_hostapd.c320 const struct wps_credential *cred) in hapd_wps_reconfig_in_memory() argument
327 if (cred->ssid_len <= SSID_MAX_LEN) { in hapd_wps_reconfig_in_memory()
328 os_memcpy(bss->ssid.ssid, cred->ssid, cred->ssid_len); in hapd_wps_reconfig_in_memory()
329 bss->ssid.ssid_len = cred->ssid_len; in hapd_wps_reconfig_in_memory()
333 if ((cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA2PSK)) && in hapd_wps_reconfig_in_memory()
334 (cred->auth_type & (WPS_AUTH_WPA | WPS_AUTH_WPAPSK))) in hapd_wps_reconfig_in_memory()
336 else if (cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA2PSK)) in hapd_wps_reconfig_in_memory()
338 else if (cred->auth_type & (WPS_AUTH_WPA | WPS_AUTH_WPAPSK)) in hapd_wps_reconfig_in_memory()
344 if (cred->auth_type & (WPS_AUTH_WPA2 | WPS_AUTH_WPA)) in hapd_wps_reconfig_in_memory()
346 if (cred->auth_type & (WPS_AUTH_WPA2PSK | WPS_AUTH_WPAPSK)) in hapd_wps_reconfig_in_memory()
[all …]
/external/wpa_supplicant_8/src/crypto/
Dtls_internal.c198 struct tlsv1_credentials *cred; in tls_connection_set_params() local
209 cred = tlsv1_cred_alloc(); in tls_connection_set_params()
210 if (cred == NULL) in tls_connection_set_params()
215 tlsv1_cred_free(cred); in tls_connection_set_params()
221 tlsv1_cred_free(cred); in tls_connection_set_params()
227 tlsv1_cred_free(cred); in tls_connection_set_params()
233 tlsv1_cred_free(cred); in tls_connection_set_params()
239 tlsv1_cred_free(cred); in tls_connection_set_params()
243 if (tlsv1_set_ca_cert(cred, params->ca_cert, in tls_connection_set_params()
248 tlsv1_cred_free(cred); in tls_connection_set_params()
[all …]
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jdmerge.c234 register int y, cred, cgreen, cblue; in h2v1_merged_upsample() local
256 cred = Crrtab[cr]; in h2v1_merged_upsample()
261 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample()
266 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample()
275 cred = Crrtab[cr]; in h2v1_merged_upsample()
279 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample()
296 register int y, cred, cgreen, cblue; in h2v2_merged_upsample() local
320 cred = Crrtab[cr]; in h2v2_merged_upsample()
325 outptr0[RGB_RED] = range_limit[y + cred]; in h2v2_merged_upsample()
330 outptr0[RGB_RED] = range_limit[y + cred]; in h2v2_merged_upsample()
[all …]
/external/opencv3/3rdparty/libjpeg/
Djdmerge.c231 register int y, cred, cgreen, cblue; in h2v1_merged_upsample() local
253 cred = Crrtab[cr]; in h2v1_merged_upsample()
258 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample()
263 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample()
272 cred = Crrtab[cr]; in h2v1_merged_upsample()
276 outptr[RGB_RED] = range_limit[y + cred]; in h2v1_merged_upsample()
293 register int y, cred, cgreen, cblue; in h2v2_merged_upsample() local
317 cred = Crrtab[cr]; in h2v2_merged_upsample()
322 outptr0[RGB_RED] = range_limit[y + cred]; in h2v2_merged_upsample()
327 outptr0[RGB_RED] = range_limit[y + cred]; in h2v2_merged_upsample()
[all …]
/external/curl/lib/vtls/
Dschannel.c115 connssl->cred = old_cred; in schannel_connect_step1()
176 connssl->cred = (struct curl_schannel_cred *) in schannel_connect_step1()
178 if(!connssl->cred) { in schannel_connect_step1()
182 memset(connssl->cred, 0, sizeof(struct curl_schannel_cred)); in schannel_connect_step1()
189 &connssl->cred->cred_handle, in schannel_connect_step1()
190 &connssl->cred->time_stamp); in schannel_connect_step1()
199 Curl_safefree(connssl->cred); in schannel_connect_step1()
238 &connssl->cred->cred_handle, NULL, host_name, in schannel_connect_step1()
304 if(!connssl->cred || !connssl->ctxt) in schannel_connect_step2()
405 &connssl->cred->cred_handle, &connssl->ctxt->ctxt_handle, in schannel_connect_step2()
[all …]
/external/wpa_supplicant_8/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 …]
/external/wpa_supplicant_8/hs20/server/
Dspp_server.c535 static int add_username_password(struct hs20_svc *ctx, xml_node_t *cred, in add_username_password() argument
540 node = build_username_password(ctx, cred, user, pw); in add_username_password()
552 static void add_creation_date(struct hs20_svc *ctx, xml_node_t *cred) in add_creation_date() argument
563 xml_node_create_text(ctx->xml, cred, NULL, "CreationDate", str); in add_creation_date()
571 xml_node_t *cred; in build_credential_pw() local
573 cred = xml_node_create_root(ctx->xml, NULL, NULL, NULL, "Credential"); in build_credential_pw()
574 if (cred == NULL) { in build_credential_pw()
578 add_creation_date(ctx, cred); in build_credential_pw()
579 if (add_username_password(ctx, cred, user, pw) < 0) { in build_credential_pw()
580 xml_node_free(ctx->xml, cred); in build_credential_pw()
[all …]

1234