Home
last modified time | relevance | path

Searched refs:wpabuf_put (Results 1 - 25 of 196) sorted by relevance

12345678

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
H A Dwpabuf.h36 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, 4); in wpabuf_put_le32()
138 u8 *pos = (u8 *) wpabuf_put(buf, 8); in wpabuf_put_le64()
144 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_be16()
150 u8 *pos = (u8 *) wpabuf_put(buf, 3); in wpabuf_put_be24()
156 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_be32()
162 u8 *pos = (u8 *) wpabuf_put(buf, 8); in wpabuf_put_be64()
170 os_memcpy(wpabuf_put(bu in wpabuf_put_data()
[all...]
H A Dwpabuf.c217 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dwpabuf.h36 void * wpabuf_put(struct wpabuf *buf, size_t len);
105 u8 *pos = (u8 *) wpabuf_put(buf, 1); in wpabuf_put_u8()
111 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_le16()
117 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_le32()
123 u8 *pos = (u8 *) wpabuf_put(buf, 2); in wpabuf_put_be16()
129 u8 *pos = (u8 *) wpabuf_put(buf, 3); in wpabuf_put_be24()
135 u8 *pos = (u8 *) wpabuf_put(buf, 4); in wpabuf_put_be32()
143 os_memcpy(wpabuf_put(buf, len), data, len); in wpabuf_put_data()
H A Dwpabuf.c217 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
H A Dikev2.c828 hdr = wpabuf_put(msg, sizeof(*hdr)); in ikev2_build_hdr()
850 phdr = wpabuf_put(msg, sizeof(*phdr)); in ikev2_build_sar1()
854 p = wpabuf_put(msg, sizeof(*p)); in ikev2_build_sar1()
859 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1()
868 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; in ikev2_build_sar1()
871 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1()
877 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1()
883 t = wpabuf_put(msg, sizeof(*t)); in ikev2_build_sar1()
888 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; in ikev2_build_sar1()
891 plen = (u8 *) wpabuf_put(ms in ikev2_build_sar1()
[all...]
H A Deap_eke.c451 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()
H A Dtncc.c1189 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh()
1192 tlv_len2 = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh()
1196 outer_len = wpabuf_put(buf, 2); in tncc_build_soh()
1199 inner_len = wpabuf_put(buf, 2); in tncc_build_soh()
1220 ssoh_len = wpabuf_put(buf, 2); in tncc_build_soh()
1267 end = wpabuf_put(buf, 0); in tncc_build_soh()
1273 end = wpabuf_put(buf, 0); in tncc_build_soh()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
H A Dikev2.c830 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(ms in ikev2_build_sar1()
[all...]
H A Deap_eke.c451 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()
H A Dtncc.c1188 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/
H A Dikev2.c892 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(ms in ikev2_build_sai()
[all...]
H A Deap_server_mschapv2.c122 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_challenge()
131 wpabuf_put(req, CHALLENGE_LEN); in eap_mschapv2_build_challenge()
160 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_success_req()
169 wpabuf_put(req, sizeof(data->auth_response) * 2), in eap_mschapv2_build_success_req()
203 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_failure_req()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/
H A Dikev2.c892 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(ms in ikev2_build_sai()
[all...]
H A Deap_server_mschapv2.c122 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_challenge()
131 wpabuf_put(req, CHALLENGE_LEN); in eap_mschapv2_build_challenge()
160 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_success_req()
169 wpabuf_put(req, sizeof(data->auth_response) * 2), in eap_mschapv2_build_success_req()
203 ms = wpabuf_put(req, sizeof(*ms)); in eap_mschapv2_build_failure_req()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
H A Dgas.c122 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()
H A Dsae_pk.c477 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
H A Dgas.c122 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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
H A Dp2p_supplicant_sd.c192 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(res in wpas_sd_all_upnp()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dp2p_supplicant_sd.c194 len_pos = wpabuf_put(resp, 2); in wpas_sd_add_empty()
200 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_add_empty()
246 len_pos = wpabuf_put(resp, 2); in wpas_sd_all_bonjour()
257 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_all_bonjour()
324 len_pos = wpabuf_put(resp, 2); in wpas_sd_req_bonjour()
338 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_req_bonjour()
348 len_pos = wpabuf_put(resp, 2); in wpas_sd_req_bonjour()
355 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - in wpas_sd_req_bonjour()
380 len_pos = wpabuf_put(resp, 2); in wpas_sd_all_upnp()
391 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(res in wpas_sd_all_upnp()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/
H A Dp2p_build.c48 len = wpabuf_put(buf, 1); /* IE length to be filled */ in p2p_buf_add_ie_hdr()
58 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in p2p_buf_update_ie_hdr()
159 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_channel_list()
170 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list()
172 len + 2, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list()
195 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_device_info()
240 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_device_info()
586 *pos = wpabuf_put(buf, 0); in p2p_buf_add_service_info()
626 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance()
629 pos = wpabuf_put(tmp_bu in p2p_buf_add_service_instance()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/
H A Dp2p_build.c48 len = wpabuf_put(buf, 1); /* IE length to be filled */ in p2p_buf_add_ie_hdr()
58 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; in p2p_buf_update_ie_hdr()
159 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_channel_list()
170 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list()
172 len + 2, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_channel_list()
195 len = wpabuf_put(buf, 2); /* IE length to be filled */ in p2p_buf_add_device_info()
240 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); in p2p_buf_add_device_info()
586 *pos = wpabuf_put(buf, 0); in p2p_buf_add_service_info()
626 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance()
629 pos = wpabuf_put(tmp_bu in p2p_buf_add_service_instance()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
H A Dwps_upnp_web.c384 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()
H A Dwps_attr_build.c222 len = wpabuf_put(msg, 2); /* to be filled */ in wps_build_wfa_ext()
257 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); in wps_build_wfa_ext()
395 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); in wps_build_encr_settings()
400 iv = wpabuf_put(msg, block_size); in wps_build_encr_settings()
404 data = wpabuf_put(msg, 0); in wps_build_encr_settings()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
H A Dwps_upnp_web.c384 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()
H A Dwps_attr_build.c224 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()

Completed in 25 milliseconds

12345678