Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 21 of 21) sorted by relevance

/hostap-3.6.0/src/utils/
Dtrace.h28 #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 …]
Dos.h326 void * os_realloc(void *ptr, size_t size);
332 void os_free(void *ptr);
484 void * os_realloc(void *ptr, size_t size);
485 void os_free(void *ptr);
569 static inline void * os_realloc_array(void *ptr, size_t nmemb, size_t size) in os_realloc_array() argument
573 return os_realloc(ptr, nmemb * size); in os_realloc_array()
583 static inline void os_remove_in_array(void *ptr, size_t nmemb, size_t size, in os_remove_in_array() argument
587 os_memmove(((unsigned char *) ptr) + idx * size, in os_remove_in_array()
588 ((unsigned char *) ptr) + (idx + 1) * size, in os_remove_in_array()
Dutils_module_tests.c451 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 …]
Dos_unix.c726 void * os_realloc(void *ptr, size_t size) in os_realloc() argument
732 if (ptr == NULL) in os_realloc()
735 a = (struct os_alloc_trace *) ptr - 1; in os_realloc()
750 os_free(ptr); in os_realloc()
755 void os_free(void *ptr) in os_free() argument
759 if (ptr == NULL) in os_free()
761 a = (struct os_alloc_trace *) ptr - 1; in os_free()
772 wpa_trace_check_ref(ptr); in os_free()
779 void *ptr = os_malloc(size); in os_zalloc() local
780 if (ptr) in os_zalloc()
[all …]
Dos_internal.c273 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()
Dos_none.c130 void * os_realloc(void *ptr, size_t size) in os_realloc() argument
136 void os_free(void *ptr) in os_free() argument
Dcommon.h606 void forced_memzero(void *ptr, size_t len);
622 #define WPA_MEM_DEFINED(ptr, len) VALGRIND_MAKE_MEM_DEFINED((ptr), (len)) argument
624 #define WPA_MEM_DEFINED(ptr, len) do { } while (0) argument
Dcommon.c1299 void forced_memzero(void *ptr, size_t len) in forced_memzero() argument
1301 memset_func(ptr, 0, len); in forced_memzero()
1303 forced_memzero_val = ((u8 *) ptr)[0]; in forced_memzero()
Dhttp_curl.c161 static size_t curl_cb_write(void *ptr, size_t size, size_t nmemb, in curl_cb_write() argument
170 os_memcpy(n + ctx->curl_buf_len, ptr, size * nmemb); in curl_cb_write()
/hostap-3.6.0/wpa_supplicant/
Dmesh_rsn.c427 u8 context[RSN_SELECTOR_LEN + 2 * ETH_ALEN], *ptr = context; in mesh_rsn_derive_aek() local
434 RSN_SELECTOR_PUT(ptr, RSN_AUTH_KEY_MGMT_SAE); in mesh_rsn_derive_aek()
435 ptr += RSN_SELECTOR_LEN; in mesh_rsn_derive_aek()
444 os_memcpy(ptr, addr1, ETH_ALEN); in mesh_rsn_derive_aek()
445 ptr += ETH_ALEN; in mesh_rsn_derive_aek()
446 os_memcpy(ptr, addr2, ETH_ALEN); in mesh_rsn_derive_aek()
456 u8 *ptr; in mesh_rsn_derive_mtk() local
468 ptr = context; in mesh_rsn_derive_mtk()
476 os_memcpy(ptr, min, WPA_NONCE_LEN); in mesh_rsn_derive_mtk()
477 ptr += WPA_NONCE_LEN; in mesh_rsn_derive_mtk()
[all …]
Dwnm_sta.c236 u8 *ptr, *end; in wnm_sleep_mode_exit_success() local
245 ptr = (u8 *) frm + 1 + 2; in wnm_sleep_mode_exit_success()
246 end = ptr + key_len_total; in wnm_sleep_mode_exit_success()
247 wpa_hexdump_key(MSG_DEBUG, "WNM: Key Data", ptr, key_len_total); in wnm_sleep_mode_exit_success()
255 while (end - ptr > 1) { in wnm_sleep_mode_exit_success()
256 if (2 + ptr[1] > end - ptr) { in wnm_sleep_mode_exit_success()
259 if (end > ptr) { in wnm_sleep_mode_exit_success()
261 ptr, end - ptr); in wnm_sleep_mode_exit_success()
265 if (*ptr == WNM_SLEEP_SUBELEM_GTK) { in wnm_sleep_mode_exit_success()
266 if (ptr[1] < 11 + 5) { in wnm_sleep_mode_exit_success()
[all …]
Dpasn_supplicant.c775 u8 *ptr; in wpas_pasn_build_auth_3() local
811 ptr = wpabuf_put(buf, mic_len); in wpas_pasn_build_auth_3()
813 os_memset(ptr, 0, mic_len); in wpas_pasn_build_auth_3()
833 os_memcpy(ptr, mic, mic_len); in wpas_pasn_build_auth_3()
/hostap-3.6.0/src/eap_peer/
Deap_pwd.c360 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-3.6.0/src/eap_server/
Deap_server_pwd.c315 u8 conf[SHA256_MAC_LEN], *cruft = NULL, *ptr; in eap_pwd_build_confirm_req() local
384 ptr = cruft; in eap_pwd_build_confirm_req()
385 os_memcpy(ptr, &grp, sizeof(u16)); in eap_pwd_build_confirm_req()
386 ptr += sizeof(u16); in eap_pwd_build_confirm_req()
387 *ptr = EAP_PWD_DEFAULT_RAND_FUNC; in eap_pwd_build_confirm_req()
388 ptr += sizeof(u8); in eap_pwd_build_confirm_req()
389 *ptr = EAP_PWD_DEFAULT_PRF; in eap_pwd_build_confirm_req()
390 ptr += sizeof(u8); in eap_pwd_build_confirm_req()
391 eap_pwd_h_update(hash, cruft, ptr - cruft); in eap_pwd_build_confirm_req()
652 const u8 *ptr; in eap_pwd_process_commit_resp() local
[all …]
/hostap-3.6.0/hs20/client/
Dest.c547 BUF_MEM *ptr; in generate_csr() local
558 BIO_get_mem_ptr(mem, &ptr); in generate_csr()
559 pos = ptr->data; in generate_csr()
560 buf_end = pos + ptr->length; in generate_csr()
/hostap-3.6.0/src/crypto/
Dtls_gnutls.c154 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()
/hostap-3.6.0/src/drivers/
Ddriver_hostap.h113 caddr_t ptr; /* pointer to data in user space */ member
/hostap-3.6.0/src/ap/
Dhostapd.c2952 char *ptr; in hostapd_add_iface() local
3027 ptr = os_strchr(buf, ' '); in hostapd_add_iface()
3028 if (ptr == NULL) in hostapd_add_iface()
3030 *ptr++ = '\0'; in hostapd_add_iface()
3032 if (os_strncmp(ptr, "config=", 7) == 0) in hostapd_add_iface()
3033 conf_file = ptr + 7; in hostapd_add_iface()
3058 char *driver = os_strchr(ptr, ' '); in hostapd_add_iface()
3062 conf = hostapd_config_alloc(interfaces, buf, ptr, driver); in hostapd_add_iface()
Dwpa_auth.c402 unsigned long ptr; in wpa_group_init_gmk_and_counter() local
414 ptr = (unsigned long) group; in wpa_group_init_gmk_and_counter()
415 os_memcpy(buf + ETH_ALEN + 8, &ptr, sizeof(ptr)); in wpa_group_init_gmk_and_counter()
418 os_memset(buf + ETH_ALEN + 8, 0xcd, sizeof(ptr)); in wpa_group_init_gmk_and_counter()
Dieee802_11.c2963 u8 *ptr; in handle_auth_pasn_resp() local
3037 ptr = wpabuf_put(buf, mic_len); in handle_auth_pasn_resp()
3039 os_memset(ptr, 0, mic_len); in handle_auth_pasn_resp()
3083 os_memcpy(ptr, mic, mic_len); in handle_auth_pasn_resp()
/hostap-3.6.0/wpa_supplicant/dbus/
Ddbus_new.c2737 static void wpa_dbus_free(void *ptr) in wpa_dbus_free() argument
2739 os_free(ptr); in wpa_dbus_free()