/freebsd-12-stable/contrib/wpa/src/utils/ |
H A D | wpabuf.h | 36 void * wpabuf_put(struct wpabuf *buf, size_t len); 105 u8 *pos = (u8 *) wpabuf_put(buf, 1); 111 u8 *pos = (u8 *) wpabuf_put(buf, 2); 117 u8 *pos = (u8 *) wpabuf_put(buf, 4); 123 u8 *pos = (u8 *) wpabuf_put(buf, 2); 129 u8 *pos = (u8 *) wpabuf_put(buf, 3); 135 u8 *pos = (u8 *) wpabuf_put(buf, 4); 143 os_memcpy(wpabuf_put(buf, len), data, len);
|
H A D | wpabuf.c | 217 void * wpabuf_put(struct wpabuf *buf, size_t len) function 289 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); 334 if (hexstr2bin(buf, wpabuf_put(ret, len), len)) {
|
/freebsd-12-stable/contrib/wpa/src/eap_peer/ |
H A D | ikev2.c | 828 hdr = wpabuf_put(msg, sizeof(*hdr)); 850 phdr = wpabuf_put(msg, sizeof(*phdr)); 854 p = wpabuf_put(msg, sizeof(*p)); 859 t = wpabuf_put(msg, sizeof(*t)); 868 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; 871 t = wpabuf_put(msg, sizeof(*t)); 877 t = wpabuf_put(msg, sizeof(*t)); 883 t = wpabuf_put(msg, sizeof(*t)); 888 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; 891 plen = (u8 *) wpabuf_put(ms [all...] |
H A D | eap_md5.c | 88 rpos = wpabuf_put(resp, CHAP_MD5_LEN);
|
H A D | eap_eke.c | 451 rpos = wpabuf_put(resp, data->sess.dhcomp_len); 473 wpabuf_put(resp, 0), &prot_len) < 0) { 479 wpabuf_put(resp, 0), prot_len); 480 wpabuf_put(resp, prot_len); 589 wpabuf_put(resp, 0), &prot_len) < 0) { 594 wpabuf_put(resp, prot_len); 596 auth = wpabuf_put(resp, data->sess.prf_len);
|
H A D | tncc.c | 1189 tlv_len = wpabuf_put(buf, 2); /* Length */ 1192 tlv_len2 = wpabuf_put(buf, 2); /* Length */ 1196 outer_len = wpabuf_put(buf, 2); 1199 inner_len = wpabuf_put(buf, 2); 1220 ssoh_len = wpabuf_put(buf, 2); 1267 end = wpabuf_put(buf, 0); 1273 end = wpabuf_put(buf, 0);
|
H A D | eap_mschapv2.c | 171 ms = wpabuf_put(resp, sizeof(*ms)); 188 r = wpabuf_put(resp, sizeof(*r)); 545 ms = wpabuf_put(resp, sizeof(*ms)); 549 cp = wpabuf_put(resp, sizeof(*cp));
|
H A D | eap_pax.c | 104 pax = wpabuf_put(resp, sizeof(*pax)); 206 rpos = wpabuf_put(resp, EAP_PAX_MAC_LEN); 216 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN); 314 rpos = wpabuf_put(resp, EAP_PAX_ICV_LEN);
|
/freebsd-12-stable/contrib/wpa/src/common/ |
H A D | gas.c | 122 wpabuf_put(buf, 2); /* Query Request Length to be filled */ 140 wpabuf_put(buf, 2); /* Query Response Length to be filled */ 181 wpabuf_put(buf, 2); /* Query Response Length to be filled */ 245 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); 258 return wpabuf_put(buf, 2); /* Length to be filled */ 272 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(buf, 0) - len_pos - 2);
|
/freebsd-12-stable/contrib/wpa/src/eap_server/ |
H A D | ikev2.c | 892 hdr = wpabuf_put(msg, sizeof(*hdr)); 914 phdr = wpabuf_put(msg, sizeof(*phdr)); 919 p = wpabuf_put(msg, sizeof(*p)); 924 t = wpabuf_put(msg, sizeof(*t)); 933 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) t; 936 t = wpabuf_put(msg, sizeof(*t)); 942 t = wpabuf_put(msg, sizeof(*t)); 948 t = wpabuf_put(msg, sizeof(*t)); 953 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) p; 956 plen = (u8 *) wpabuf_put(ms [all...] |
H A D | eap_server_mschapv2.c | 122 ms = wpabuf_put(req, sizeof(*ms)); 131 wpabuf_put(req, CHALLENGE_LEN); 160 ms = wpabuf_put(req, sizeof(*ms)); 169 wpabuf_put(req, sizeof(data->auth_response) * 2), 203 ms = wpabuf_put(req, sizeof(*ms));
|
H A D | eap_server_pax.c | 97 pax = wpabuf_put(req, sizeof(*pax)); 109 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); 143 pax = wpabuf_put(req, sizeof(*pax)); 151 pos = wpabuf_put(req, EAP_PAX_MAC_LEN); 165 pos = wpabuf_put(req, EAP_PAX_MAC_LEN);
|
H A D | eap_server_fast.c | 617 result = wpabuf_put(buf, sizeof(*result)); 629 result = wpabuf_put(buf, sizeof(*result)); 637 binding = wpabuf_put(buf, sizeof(*binding)); 762 result = wpabuf_put(buf, sizeof(*result)); 770 pac_tlv = wpabuf_put(buf, sizeof(*pac_tlv)); 782 pac_info = wpabuf_put(buf, sizeof(*pac_info)); 808 pos = wpabuf_put(buf, 0);
|
/freebsd-12-stable/contrib/wpa/wpa_supplicant/ |
H A D | p2p_supplicant_sd.c | 192 len_pos = wpabuf_put(resp, 2); 198 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); 244 len_pos = wpabuf_put(resp, 2); 255 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 322 len_pos = wpabuf_put(resp, 2); 336 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); 346 len_pos = wpabuf_put(resp, 2); 353 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 378 len_pos = wpabuf_put(resp, 2); 389 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(res [all...] |
H A D | wifi_display.c | 261 if (hexstr2bin(pos, wpabuf_put(e, len), len) < 0) { 283 if (hexstr2bin(pos, wpabuf_put(e, len), len) < 0) {
|
/freebsd-12-stable/contrib/wpa/src/wps/ |
H A D | wps_module_tests.c | 282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) {
|
H A D | wps_attr_build.c | 222 len = wpabuf_put(msg, 2); /* to be filled */ 257 WPA_PUT_BE16(len, (u8 *) wpabuf_put(msg, 0) - len - 2); 395 os_memset(wpabuf_put(plain, pad_len), pad_len, pad_len); 400 iv = wpabuf_put(msg, block_size); 404 data = wpabuf_put(msg, 0);
|
H A D | wps_upnp_event.c | 161 b = wpabuf_put(buf, 0); 163 wpabuf_put(buf, os_strlen(b));
|
H A D | wps_upnp_web.c | 384 put_length_here = wpabuf_put(buf, 0); 392 body_start = wpabuf_put(buf, 0); 404 body_length = (char *) wpabuf_put(buf, 0) - body_start; 808 put_length_here = wpabuf_put(buf, 0); 816 body_start = wpabuf_put(buf, 0); 851 int body_length = (char *) wpabuf_put(buf, 0) - body_start; 1147 b = wpabuf_put(buf, 0); 1150 wpabuf_put(buf, os_strlen(b));
|
/freebsd-12-stable/contrib/wpa/src/p2p/ |
H A D | p2p_build.c | 48 len = wpabuf_put(buf, 1); /* IE length to be filled */ 58 *len = (u8 *) wpabuf_put(buf, 0) - len - 1; 159 len = wpabuf_put(buf, 2); /* IE length to be filled */ 170 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); 172 len + 2, (u8 *) wpabuf_put(buf, 0) - len - 2); 195 len = wpabuf_put(buf, 2); /* IE length to be filled */ 240 WPA_PUT_LE16(len, (u8 *) wpabuf_put(buf, 0) - len - 2); 586 *pos = wpabuf_put(buf, 0); 626 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); 629 pos = wpabuf_put(tmp_bu [all...] |
/freebsd-12-stable/contrib/wpa/src/eap_common/ |
H A D | ikev2_common.c | 570 phdr = wpabuf_put(msg, sizeof(*phdr)); 574 iv = wpabuf_put(msg, iv_len); 583 wpabuf_put(plain, pad_len); 594 icv = wpabuf_put(msg, integ_alg->hash_len); 595 plen = (u8 *) wpabuf_put(msg, 0) - (u8 *) phdr;
|
H A D | eap_sim_common.c | 995 eap = wpabuf_put(msg->buf, sizeof(*eap)); 999 pos = wpabuf_put(msg->buf, 4); 1066 start = wpabuf_put(msg->buf, 0); 1071 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len); 1090 start = wpabuf_put(msg->buf, 0); 1097 wpabuf_put(msg->buf, len); 1099 os_memset(wpabuf_put(msg->buf, pad_len), 0, pad_len);
|
H A D | eap_common.c | 141 hdr = wpabuf_put(buf, sizeof(*hdr));
|
/freebsd-12-stable/contrib/wpa/src/ap/ |
H A D | gas_serv.c | 436 realm_data_len = wpabuf_put(buf, 2); 557 realm_data_len = wpabuf_put(buf, 2); 559 realm_len = wpabuf_put(buf, 1); 565 *realm_len = (u8 *) wpabuf_put(buf, 0) - realm_len - 1; 740 len = wpabuf_put(buf, 2); /* OSU Provider Length to be filled */ 743 len2 = wpabuf_put(buf, 2); 750 WPA_PUT_LE16(len2, (u8 *) wpabuf_put(buf, 0) - len2 - 2); 760 count = wpabuf_put(buf, 1); 766 len2 = wpabuf_put(buf, 2); 769 WPA_PUT_LE16(len2, (u8 *) wpabuf_put(bu [all...] |
H A D | ap_drv_ops.c | 124 start = wpabuf_put(beacon, 0); 126 wpabuf_put(beacon, p - start); 131 start = wpabuf_put(proberesp, 0); 133 wpabuf_put(proberesp, p - start); 150 start = wpabuf_put(assocresp, 0); 152 wpabuf_put(assocresp, p - start);
|