Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 9 of 9) sorted by relevance

/hostap-latest/src/common/
Dwpa_helpers.c101 char *buf, size_t buf_size) in get_wpa_cli_event2() argument
131 len = buf_size; in get_wpa_cli_event2()
136 if (len == buf_size) in get_wpa_cli_event2()
157 const char *event, char *buf, size_t buf_size) in get_wpa_cli_event() argument
159 return get_wpa_cli_event2(mon, event, NULL, buf, buf_size); in get_wpa_cli_event()
Dwpa_helpers.h22 const char *event, char *buf, size_t buf_size);
25 char *buf, size_t buf_size);
/hostap-latest/src/tls/
Dtlsv1_record.c151 size_t buf_size, const u8 *payload, size_t payload_len, in tlsv1_record_send() argument
160 if (pos + TLS_RECORD_HEADER_LEN > buf + buf_size) in tlsv1_record_send()
179 if (pos + rl->iv_size > buf + buf_size) in tlsv1_record_send()
196 if (pos + payload_len > buf + buf_size) in tlsv1_record_send()
218 clen = buf + buf_size - pos; in tlsv1_record_send()
240 if (pos + pad + 1 > buf + buf_size) { in tlsv1_record_send()
Dtlsv1_record.h65 size_t buf_size, const u8 *payload, size_t payload_len,
/hostap-latest/src/utils/
Dcommon.c293 int wpa_snprintf_hex_sep(char *buf, size_t buf_size, const u8 *data, size_t len, in wpa_snprintf_hex_sep() argument
297 char *pos = buf, *end = buf + buf_size; in wpa_snprintf_hex_sep()
300 if (buf_size == 0) in wpa_snprintf_hex_sep()
317 static inline int _wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, in _wpa_snprintf_hex() argument
321 char *pos = buf, *end = buf + buf_size; in _wpa_snprintf_hex()
323 if (buf_size == 0) in _wpa_snprintf_hex()
346 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len) in wpa_snprintf_hex() argument
348 return _wpa_snprintf_hex(buf, buf_size, data, len, 0); in wpa_snprintf_hex()
360 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data, in wpa_snprintf_hex_uppercase() argument
363 return _wpa_snprintf_hex(buf, buf_size, data, len, 1); in wpa_snprintf_hex_uppercase()
Dcommon.h530 int wpa_snprintf_hex_sep(char *buf, size_t buf_size, const u8 *data, size_t len,
532 int wpa_snprintf_hex(char *buf, size_t buf_size, const u8 *data, size_t len);
533 int wpa_snprintf_hex_uppercase(char *buf, size_t buf_size, const u8 *data,
/hostap-latest/src/wps/
Dwps_upnp.c485 int buf_size = 0; in upnp_wps_device_send_event() local
525 buf_size += os_strlen(format_head); in upnp_wps_device_send_event()
526 buf_size += 50 + 2 * os_strlen("WLANEvent"); in upnp_wps_device_send_event()
528 buf_size += os_strlen(sm->wlanevent); in upnp_wps_device_send_event()
529 buf_size += os_strlen(format_tail); in upnp_wps_device_send_event()
531 buf = wpabuf_alloc(buf_size); in upnp_wps_device_send_event()
/hostap-latest/src/radius/
Dradius_server.c2039 const int buf_size = 1024; in radius_server_read_clients() local
2055 buf = os_malloc(buf_size); in radius_server_read_clients()
2062 while (fgets(buf, buf_size, f)) { in radius_server_read_clients()
2069 buf[buf_size - 1] = '\0'; in radius_server_read_clients()
/hostap-latest/wpa_supplicant/
Dwpa_cli.c243 os_snprintf(buf, buf_size, "IFNAME=%s %s", in _wpa_ctrl_command()
245 buf[buf_size - 1] = '\0'; in _wpa_ctrl_command()
248 len = buf_size - 1; in _wpa_ctrl_command()