/hostap-latest/src/utils/ |
D | trace.h | 28 #define wpa_trace_dump(title, ptr) \ argument 29 wpa_trace_dump_func((title), (ptr)->btrace, (ptr)->btrace_num) 31 #define wpa_trace_record(ptr) \ argument 32 (ptr)->btrace_num = backtrace((ptr)->btrace, WPA_TRACE_LEN) 34 #define wpa_trace_add_ref(ptr, name, addr) \ argument 35 wpa_trace_add_ref_func(&(ptr)->wpa_trace_ref_##name, (addr)) 37 #define wpa_trace_remove_ref(ptr, name, addr) \ argument 40 dl_list_del(&(ptr)->wpa_trace_ref_##name.list); \ 49 #define wpa_trace_dump(title, ptr) do { } while (0) argument 50 #define wpa_trace_record(ptr) do { } while (0) argument [all …]
|
D | os_zephyr.c | 226 void os_free(void *ptr) in os_free() argument 228 k_free(ptr); in os_free() 231 void *os_realloc(void *ptr, size_t newsize) in os_realloc() argument 236 os_free(ptr); in os_realloc() 240 if (ptr == NULL) { in os_realloc() 247 if (ptr != NULL) { in os_realloc() 248 memcpy(p, ptr, newsize); in os_realloc() 249 os_free(ptr); in os_realloc()
|
D | os.h | 300 void *os_realloc(void *ptr, size_t size); 306 void os_free(void *ptr); 409 void * os_realloc(void *ptr, size_t size); 415 void os_free(void *ptr); 567 void * os_realloc(void *ptr, size_t size); 568 void os_free(void *ptr); 658 static inline void * os_realloc_array(void *ptr, size_t nmemb, size_t size) in os_realloc_array() argument 662 return os_realloc(ptr, nmemb * size); in os_realloc_array() 672 static inline void os_remove_in_array(void *ptr, size_t nmemb, size_t size, in os_remove_in_array() argument 676 os_memmove(((unsigned char *) ptr) + idx * size, in os_remove_in_array() [all …]
|
D | utils_module_tests.c | 451 void *ptr; in os_tests() local 456 ptr = os_calloc((size_t) -1, (size_t) -1); in os_tests() 457 if (ptr) { in os_tests() 459 os_free(ptr); in os_tests() 461 ptr = os_calloc((size_t) 2, (size_t) -1); in os_tests() 462 if (ptr) { in os_tests() 464 os_free(ptr); in os_tests() 466 ptr = os_calloc((size_t) -1, (size_t) 2); in os_tests() 467 if (ptr) { in os_tests() 469 os_free(ptr); in os_tests() [all …]
|
D | os_unix.c | 745 void * os_realloc(void *ptr, size_t size) in os_realloc() argument 751 if (ptr == NULL) in os_realloc() 754 a = (struct os_alloc_trace *) ptr - 1; in os_realloc() 769 os_free(ptr); in os_realloc() 774 void os_free(void *ptr) in os_free() argument 778 if (ptr == NULL) in os_free() 780 a = (struct os_alloc_trace *) ptr - 1; in os_free() 791 wpa_trace_check_ref(ptr); in os_free() 798 void *ptr = os_malloc(size); in os_zalloc() local 799 if (ptr) in os_zalloc() [all …]
|
D | os_internal.c | 273 void * os_realloc(void *ptr, size_t size) in os_realloc() argument 275 return realloc(ptr, size); in os_realloc() 279 void os_free(void *ptr) in os_free() argument 281 free(ptr); in os_free()
|
D | os_none.c | 130 void * os_realloc(void *ptr, size_t size) in os_realloc() argument 136 void os_free(void *ptr) in os_free() argument
|
D | common.h | 645 void forced_memzero(void *ptr, size_t len); 661 #define WPA_MEM_DEFINED(ptr, len) VALGRIND_MAKE_MEM_DEFINED((ptr), (len)) argument 663 #define WPA_MEM_DEFINED(ptr, len) do { } while (0) argument
|
D | common.c | 1312 void forced_memzero(void *ptr, size_t len) in forced_memzero() argument 1314 memset_func(ptr, 0, len); in forced_memzero() 1316 forced_memzero_val = ((u8 *) ptr)[0]; in forced_memzero()
|
D | http_curl.c | 162 static size_t curl_cb_write(void *ptr, size_t size, size_t nmemb, in curl_cb_write() argument 171 os_memcpy(n + ctx->curl_buf_len, ptr, size * nmemb); in curl_cb_write()
|
/hostap-latest/wpa_supplicant/ |
D | mesh_rsn.c | 446 u8 context[RSN_SELECTOR_LEN + 2 * ETH_ALEN], *ptr = context; in mesh_rsn_derive_aek() local 453 RSN_SELECTOR_PUT(ptr, RSN_AUTH_KEY_MGMT_SAE); in mesh_rsn_derive_aek() 454 ptr += RSN_SELECTOR_LEN; in mesh_rsn_derive_aek() 463 os_memcpy(ptr, addr1, ETH_ALEN); in mesh_rsn_derive_aek() 464 ptr += ETH_ALEN; in mesh_rsn_derive_aek() 465 os_memcpy(ptr, addr2, ETH_ALEN); in mesh_rsn_derive_aek() 475 u8 *ptr; in mesh_rsn_derive_mtk() local 487 ptr = context; in mesh_rsn_derive_mtk() 495 os_memcpy(ptr, min, WPA_NONCE_LEN); in mesh_rsn_derive_mtk() 496 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk() [all …]
|
D | wnm_sta.c | 237 u8 *ptr, *end; in wnm_sleep_mode_exit_success() local 248 ptr = (u8 *) frm + 1 + 2; in wnm_sleep_mode_exit_success() 249 end = ptr + key_len_total; in wnm_sleep_mode_exit_success() 250 wpa_hexdump_key(MSG_DEBUG, "WNM: Key Data", ptr, key_len_total); in wnm_sleep_mode_exit_success() 258 while (end - ptr > 1) { in wnm_sleep_mode_exit_success() 259 if (2 + ptr[1] > end - ptr) { in wnm_sleep_mode_exit_success() 262 if (end > ptr) { in wnm_sleep_mode_exit_success() 264 ptr, end - ptr); in wnm_sleep_mode_exit_success() 268 if (*ptr == WNM_SLEEP_SUBELEM_GTK) { in wnm_sleep_mode_exit_success() 269 if (ptr[1] < 11 + 5) { in wnm_sleep_mode_exit_success() [all …]
|
/hostap-latest/src/eap_peer/ |
D | eap_pwd.c | 360 const u8 *ptr = payload; in eap_pwd_perform_commit_exchange() local 427 if (payload_len < 1 || *ptr == 0) { in eap_pwd_perform_commit_exchange() 431 salt_len = *ptr++; in eap_pwd_perform_commit_exchange() 444 wpa_hexdump(MSG_DEBUG, "EAP-pwd: Salt", ptr, salt_len); in eap_pwd_perform_commit_exchange() 446 salt_pwd[1] = ptr; in eap_pwd_perform_commit_exchange() 455 ptr += salt_len; in eap_pwd_perform_commit_exchange() 464 if (payload_len < 1 || *ptr == 0) { in eap_pwd_perform_commit_exchange() 468 salt_len = *ptr++; in eap_pwd_perform_commit_exchange() 481 wpa_hexdump(MSG_DEBUG, "EAP-pwd: Salt", ptr, salt_len); in eap_pwd_perform_commit_exchange() 483 salt_pwd[1] = ptr; in eap_pwd_perform_commit_exchange() [all …]
|
/hostap-latest/src/eap_server/ |
D | eap_server_pwd.c | 318 u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; in eap_pwd_build_confirm_req() local 395 ptr = cruft; in eap_pwd_build_confirm_req() 396 os_memcpy(ptr, &grp, sizeof(u16)); in eap_pwd_build_confirm_req() 397 ptr += sizeof(u16); in eap_pwd_build_confirm_req() 398 *ptr = EAP_PWD_DEFAULT_RAND_FUNC; in eap_pwd_build_confirm_req() 399 ptr += sizeof(u8); in eap_pwd_build_confirm_req() 400 *ptr = EAP_PWD_DEFAULT_PRF; in eap_pwd_build_confirm_req() 401 ptr += sizeof(u8); in eap_pwd_build_confirm_req() 402 eap_pwd_h_update(hash, cruft, ptr - cruft); in eap_pwd_build_confirm_req() 663 const u8 *ptr; in eap_pwd_process_commit_resp() local [all …]
|
/hostap-latest/src/ap/ |
D | ieee802_11_eht.c | 449 const u8 *ptr; in hostapd_eid_eht_basic_ml_common() local 606 ptr = link->resp_sta_profile; in hostapd_eid_eht_basic_ml_common() 611 wpabuf_put_data(buf, ptr, slice_len); in hostapd_eid_eht_basic_ml_common() 613 ptr += slice_len; in hostapd_eid_eht_basic_ml_common() 623 wpabuf_put_data(buf, ptr, slice_len); in hostapd_eid_eht_basic_ml_common() 626 ptr += slice_len; in hostapd_eid_eht_basic_ml_common() 634 ptr = wpabuf_head(buf); in hostapd_eid_eht_basic_ml_common() 644 os_memcpy(pos, ptr, slice_len); in hostapd_eid_eht_basic_ml_common() 646 ptr += slice_len; in hostapd_eid_eht_basic_ml_common() 658 os_memcpy(pos, ptr, slice_len); in hostapd_eid_eht_basic_ml_common() [all …]
|
D | hostapd.c | 3730 char *ptr; in hostapd_add_iface() local 3809 ptr = os_strchr(buf, ' '); in hostapd_add_iface() 3810 if (ptr == NULL) in hostapd_add_iface() 3812 *ptr++ = '\0'; in hostapd_add_iface() 3814 if (os_strncmp(ptr, "config=", 7) == 0) in hostapd_add_iface() 3815 conf_file = ptr + 7; in hostapd_add_iface() 3846 char *driver = os_strchr(ptr, ' '); in hostapd_add_iface() 3850 conf = hostapd_config_alloc(interfaces, buf, ptr, driver); in hostapd_add_iface()
|
D | wpa_auth.c | 647 unsigned long ptr; in wpa_group_init_gmk_and_counter() local 659 ptr = (unsigned long) group; in wpa_group_init_gmk_and_counter() 660 os_memcpy(buf + ETH_ALEN + 8, &ptr, sizeof(ptr)); in wpa_group_init_gmk_and_counter() 663 os_memset(buf + ETH_ALEN + 8, 0xcd, sizeof(ptr)); in wpa_group_init_gmk_and_counter()
|
/hostap-latest/hs20/client/ |
D | est.c | 520 BUF_MEM *ptr; in generate_csr() local 531 BIO_get_mem_ptr(mem, &ptr); in generate_csr() 532 pos = ptr->data; in generate_csr() 533 buf_end = pos + ptr->length; in generate_csr()
|
/hostap-latest/src/crypto/ |
D | tls_gnutls.c | 154 static ssize_t tls_pull_func(gnutls_transport_ptr_t ptr, void *buf, in tls_pull_func() argument 157 struct tls_connection *conn = (struct tls_connection *) ptr; in tls_pull_func() 183 static ssize_t tls_push_func(gnutls_transport_ptr_t ptr, const void *buf, in tls_push_func() argument 186 struct tls_connection *conn = (struct tls_connection *) ptr; in tls_push_func() 699 static int server_ocsp_status_req(gnutls_session_t session, void *ptr, in server_ocsp_status_req() argument 702 struct tls_global *global = ptr; in server_ocsp_status_req()
|
D | tls_mbedtls_alt.c | 114 #define forced_memzero(ptr, sz) mbedtls_platform_zeroize(ptr, sz) argument 614 static int tls_pull_func(void *ptr, unsigned char *buf, size_t len) in tls_pull_func() argument 616 struct tls_connection *conn = (struct tls_connection *)ptr; in tls_pull_func() 641 static int tls_push_func(void *ptr, const unsigned char *buf, size_t len) in tls_push_func() argument 643 struct tls_connection *conn = (struct tls_connection *)ptr; in tls_push_func()
|
D | crypto_mbedtls_alt.c | 35 #define forced_memzero(ptr, sz) mbedtls_platform_zeroize(ptr, sz) argument
|
/hostap-latest/src/pasn/ |
D | pasn_responder.c | 433 u8 *ptr; in handle_auth_pasn_resp() local 511 ptr = wpabuf_put(buf, mic_len); in handle_auth_pasn_resp() 513 os_memset(ptr, 0, mic_len); in handle_auth_pasn_resp() 574 os_memcpy(ptr, mic, mic_len); in handle_auth_pasn_resp()
|
D | pasn_initiator.c | 625 u8 *ptr; in wpas_pasn_build_auth_3() local 661 ptr = wpabuf_put(buf, mic_len); in wpas_pasn_build_auth_3() 663 os_memset(ptr, 0, mic_len); in wpas_pasn_build_auth_3() 683 os_memcpy(ptr, mic, mic_len); in wpas_pasn_build_auth_3()
|
/hostap-latest/src/drivers/ |
D | driver_hostap.h | 113 caddr_t ptr; /* pointer to data in user space */ member
|
/hostap-latest/wpa_supplicant/dbus/ |
D | dbus_new.c | 2804 static void wpa_dbus_free(void *ptr) in wpa_dbus_free() argument 2806 os_free(ptr); in wpa_dbus_free()
|