/hostap-latest/src/utils/ |
D | wpabuf.h | 36 void * wpabuf_put(struct wpabuf *buf, size_t len); 120 u8 *pos = (u8 *) wpabuf_put(buf, 1); in wpabuf_put_u8() 126 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_le16() 132 u8 *pos = (u8 *) wpabuf_put(buf, 3); in wpabuf_put_le24() 138 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_le32() 144 u8 *pos = (u8 *) wpabuf_put(buf, 8); in wpabuf_put_le64() 150 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_be16() 156 u8 *pos = (u8 *) wpabuf_put(buf, 3); in wpabuf_put_be24() 162 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_be32() 168 u8 *pos = (u8 *) wpabuf_put(buf, 8); in wpabuf_put_be64() [all …]
|
D | wpabuf.c | 217 void * wpabuf_put(struct wpabuf *buf, size_t len) in wpabuf_put() function 289 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad() 334 if (hexstr2bin(buf, wpabuf_put(ret, len), len)) { in wpabuf_parse_bin()
|
/hostap-latest/src/eap_peer/ |
D | ikev2.c | 830 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 852 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sar1() 856 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sar1() 861 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 870 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sar1() 873 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 879 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 885 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1() 890 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sar1() 893 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sar1() [all …]
|
D | eap_eke.c | 451 rpos = wpabuf_put(resp, data->sess.dhcomp_len); in eap_eke_process_commit() 473 wpabuf_put(resp, 0), &prot_len) < 0) { in eap_eke_process_commit() 479 wpabuf_put(resp, 0), prot_len); in eap_eke_process_commit() 480 wpabuf_put(resp, prot_len); in eap_eke_process_commit() 589 wpabuf_put(resp, 0), &prot_len) < 0) { in eap_eke_process_confirm() 594 wpabuf_put(resp, prot_len); in eap_eke_process_confirm() 596 auth = wpabuf_put(resp, data->sess.prf_len); in eap_eke_process_confirm()
|
D | tncc.c | 1188 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh() 1191 tlv_len2 = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh() 1195 outer_len = wpabuf_put(buf, 2); in tncc_build_soh() 1198 inner_len = wpabuf_put(buf, 2); in tncc_build_soh() 1219 ssoh_len = wpabuf_put(buf, 2); in tncc_build_soh() 1266 end = wpabuf_put(buf, 0); in tncc_build_soh() 1272 end = wpabuf_put(buf, 0); in tncc_build_soh()
|
D | eap_pax.c | 104 pax = wpabuf_put(resp, sizeof(*pax)); in eap_pax_alloc_resp() 206 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); in eap_pax_process_std_1() 216 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_1() 314 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); in eap_pax_process_std_3()
|
D | eap_gpsk.c | 335 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2() 360 csuite = wpabuf_put(resp, sizeof(*csuite)); in eap_gpsk_send_gpsk_2() 396 rpos = wpabuf_put(resp, miclen); in eap_gpsk_send_gpsk_2() 644 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_4() 649 rpos = wpabuf_put(resp, mlen); in eap_gpsk_send_gpsk_4()
|
/hostap-latest/src/eap_server/ |
D | ikev2.c | 892 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr() 914 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sai() 919 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sai() 924 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 933 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sai() 936 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 942 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 948 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sai() 953 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sai() 956 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_sai() [all …]
|
D | eap_server_mschapv2.c | 128 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_challenge() 137 wpabuf_put(req, CHALLENGE_LEN); in eap_mschapv2_build_challenge() 166 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_success_req() 175 wpabuf_put(req, sizeof(data->auth_response) * 2), in eap_mschapv2_build_success_req() 209 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_failure_req()
|
D | eap_server_pax.c | 97 pax = wpabuf_put(req, sizeof(*pax)); in eap_pax_build_std_1() 109 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); in eap_pax_build_std_1() 143 pax = wpabuf_put(req, sizeof(*pax)); in eap_pax_build_std_3() 151 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); in eap_pax_build_std_3() 165 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); in eap_pax_build_std_3()
|
/hostap-latest/src/common/ |
D | gas.c | 122 wpabuf_put(buf, 2); /* Query Request Length to be filled */ in gas_anqp_build_initial_req() 140 wpabuf_put(buf, 2); /* Query Response Length to be filled */ in gas_anqp_build_initial_resp() 181 wpabuf_put(buf, 2); /* Query Response Length to be filled */ in gas_anqp_build_comeback_resp() 245 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in gas_anqp_set_len() 258 return wpabuf_put(buf, 2); /* Length to be filled */ in gas_anqp_add_element() 272 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(buf, 0) - len_pos - 2); in gas_anqp_set_element_len()
|
D | sae_pk.c | 477 if (!pk->m || hexstr2bin(val, wpabuf_put(pk->m, len), len)) { in sae_parse_pk() 560 pos = wpabuf_put(sig_data, 2 * tmp->prime_len); in sae_pk_hash_sig_data() 565 pos = wpabuf_put(sig_data, 2 * tmp->prime_len); in sae_pk_hash_sig_data() 572 wpabuf_put(sig_data, tmp->prime_len), in sae_pk_hash_sig_data() 576 wpabuf_put(sig_data, tmp->prime_len), in sae_pk_hash_sig_data() 687 encr_mod = wpabuf_put(buf, encr_mod_len); in sae_write_confirm_pk()
|
D | dpp_reconfig.c | 369 attr_start = wpabuf_put(msg, 0); in dpp_reconfig_build_resp() 396 attr_end = wpabuf_put(msg, 0); in dpp_reconfig_build_resp() 411 wrapped = wpabuf_put(msg, wpabuf_len(clear) + AES_BLOCK_SIZE); in dpp_reconfig_build_resp() 621 attr_start = wpabuf_put(msg, 0); in dpp_reconfig_build_conf() 626 attr_end = wpabuf_put(msg, 0); in dpp_reconfig_build_conf() 641 wrapped = wpabuf_put(msg, wpabuf_len(clear) + AES_BLOCK_SIZE); in dpp_reconfig_build_conf()
|
/hostap-latest/wpa_supplicant/ |
D | p2p_supplicant_sd.c | 192 len_pos = wpabuf_put(resp, 2); in wpas_sd_add_empty() 198 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_add_empty() 244 len_pos = wpabuf_put(resp, 2); in wpas_sd_all_bonjour() 255 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_all_bonjour() 322 len_pos = wpabuf_put(resp, 2); in wpas_sd_req_bonjour() 336 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_req_bonjour() 346 len_pos = wpabuf_put(resp, 2); in wpas_sd_req_bonjour() 353 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_req_bonjour() 378 len_pos = wpabuf_put(resp, 2); in wpas_sd_all_upnp() 389 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_all_upnp() [all …]
|
D | robust_av.c | 30 len = wpabuf_put(buf, 1); in wpas_populate_mscs_descriptor_ie() 40 len1 = wpabuf_put(buf, 1); in wpas_populate_mscs_descriptor_ie() 46 *len1 = (u8 *) wpabuf_put(buf, 0) - len1 - 1; in wpas_populate_mscs_descriptor_ie() 49 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in wpas_populate_mscs_descriptor_ie() 124 len = wpabuf_put(buf, 1); in wpas_populate_scs_descriptor_ie() 149 len1 = wpabuf_put(buf, 1); in wpas_populate_scs_descriptor_ie() 175 *len1 = (u8 *) wpabuf_put(buf, 0) - len1 - 1; in wpas_populate_scs_descriptor_ie() 190 len1 = wpabuf_put(buf, 1); in wpas_populate_scs_descriptor_ie() 257 *len1 = (u8 *) wpabuf_put(buf, 0) - len1 - 1; in wpas_populate_scs_descriptor_ie() 261 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in wpas_populate_scs_descriptor_ie()
|
/hostap-latest/src/p2p/ |
D | p2p_build.c | 49 len = wpabuf_put(buf, 1); /* IE length to be filled */ in p2p_buf_add_ie_hdr() 59 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in p2p_buf_update_ie_hdr() 162 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_channel_list() 176 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list() 178 len + 2, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list() 201 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_device_info() 246 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_device_info() 592 *pos = wpabuf_put(buf, 0); in p2p_buf_add_service_info() 632 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance() 635 pos = wpabuf_put(tmp_buf, 0); in p2p_buf_add_service_instance() [all …]
|
/hostap-latest/src/crypto/ |
D | dh_groups.c | 1221 wpabuf_put(*priv, dh->prime_len); in dh_init() 1222 wpabuf_put(pv, dh->prime_len); in dh_init() 1262 wpabuf_put(shared, shared_len); in dh_derive_shared()
|
D | crypto_openssl.c | 1006 BN_bn2bin(dh->pub_key, wpabuf_put(pubkey, publen)); in dh5_init() 1007 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init() 1051 wpabuf_put(pubkey, pub_len), in dh5_init() 1060 BN_bn2bin(priv_bn, wpabuf_put(privkey, priv_len)); in dh5_init() 1107 BN_bn2bin(pub_key, wpabuf_put(pubkey, publen)); in dh5_init() 1108 BN_bn2bin(priv_key, wpabuf_put(privkey, privlen)); in dh5_init() 1257 wpabuf_put(res, len); in dh5_derive_shared() 1286 wpabuf_put(res, keylen); in dh5_derive_shared() 2826 wpabuf_put(buf, len), len, len); in crypto_ecdh_get_pubkey() 2832 wpabuf_put(buf, len), len, len); in crypto_ecdh_get_pubkey() [all …]
|
/hostap-latest/src/wps/ |
D | wps_attr_build.c | 224 len = wpabuf_put(msg, 2); /* to be filled */ in wps_build_wfa_ext() 259 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); in wps_build_wfa_ext() 404 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings() 409 iv = wpabuf_put(msg, block_size); in wps_build_encr_settings() 413 data = wpabuf_put(msg, 0); in wps_build_encr_settings()
|
D | wps_upnp_web.c | 384 put_length_here = wpabuf_put(buf, 0); in web_connection_parse_get() 392 body_start = wpabuf_put(buf, 0); in web_connection_parse_get() 404 body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_parse_get() 808 put_length_here = wpabuf_put(buf, 0); in web_connection_send_reply() 816 body_start = wpabuf_put(buf, 0); in web_connection_send_reply() 851 int body_length = (char *) wpabuf_put(buf, 0) - body_start; in web_connection_send_reply() 1147 b = wpabuf_put(buf, 0); in web_connection_parse_subscribe() 1150 wpabuf_put(buf, os_strlen(b)); in web_connection_parse_subscribe()
|
/hostap-latest/src/ap/ |
D | gas_serv.c | 436 realm_data_len = wpabuf_put(buf, 2); in anqp_add_nai_realm_data() 557 realm_data_len = wpabuf_put(buf, 2); in anqp_add_nai_realm() 559 realm_len = wpabuf_put(buf, 1); in anqp_add_nai_realm() 565 *realm_len = (u8 *) wpabuf_put(buf, 0) - realm_len - 1; in anqp_add_nai_realm() 740 len = wpabuf_put(buf, 2); /* OSU Provider Length to be filled */ in anqp_add_osu_provider() 743 len2 = wpabuf_put(buf, 2); in anqp_add_osu_provider() 750 WPA_PUT_LE16(len2, (u8 *) wpabuf_put(buf, 0) - len2 - 2); in anqp_add_osu_provider() 760 count = wpabuf_put(buf, 1); in anqp_add_osu_provider() 766 len2 = wpabuf_put(buf, 2); in anqp_add_osu_provider() 769 WPA_PUT_LE16(len2, (u8 *) wpabuf_put(buf, 0) - len2 - 2); in anqp_add_osu_provider() [all …]
|
/hostap-latest/src/eap_common/ |
D | ikev2_common.c | 570 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_encrypted() 574 iv = wpabuf_put(msg, iv_len); in ikev2_build_encrypted() 583 wpabuf_put(plain, pad_len); in ikev2_build_encrypted() 594 icv = wpabuf_put(msg, integ_alg->hash_len); in ikev2_build_encrypted() 595 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr; in ikev2_build_encrypted()
|
D | eap_sim_common.c | 995 eap = wpabuf_put(msg->buf, sizeof(*eap)); in eap_sim_msg_init() 999 pos = wpabuf_put(msg->buf, 4); in eap_sim_msg_init() 1066 start = wpabuf_put(msg->buf, 0); in eap_sim_msg_add_full() 1071 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add_full() 1090 start = wpabuf_put(msg->buf, 0); in eap_sim_msg_add() 1097 wpabuf_put(msg->buf, len); in eap_sim_msg_add() 1099 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); in eap_sim_msg_add()
|
/hostap-latest/tests/ |
D | test-https.c | 53 len = recv(s, wpabuf_put(in, 0), wpabuf_tailroom(in), 0); in https_recv() 65 wpabuf_put(in, len); in https_recv()
|
D | test-https_server.c | 52 len = recv(s, wpabuf_put(in, 0), wpabuf_tailroom(in), 0); in https_recv() 64 wpabuf_put(in, len); in https_recv()
|