/hostap-latest/src/utils/ |
D | pcsc_funcs.c | 414 size_t blen; in scard_get_aid() local 419 blen = sizeof(buf); in scard_get_aid() 420 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) { in scard_get_aid() 424 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen); in scard_get_aid() 434 blen = sizeof(buf); in scard_get_aid() 435 if (rlen > (int) blen) { in scard_get_aid() 528 size_t blen; in scard_init() local 632 blen = sizeof(buf); in scard_init() 635 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen, in scard_init() 645 blen = sizeof(buf); in scard_init() [all …]
|
D | wpabuf.c | 278 size_t blen; in wpabuf_zeropad() local 283 blen = wpabuf_len(buf); in wpabuf_zeropad() 284 if (blen >= len) in wpabuf_zeropad() 289 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad()
|
D | edit_readline.c | 131 size_t blen = os_strlen(ps) + 3; in edit_init() local 132 char *ps2 = os_malloc(blen); in edit_init() 134 os_snprintf(ps2, blen, "%s> ", ps); in edit_init()
|
/hostap-latest/wpa_supplicant/ |
D | win_if_list.c | 77 size_t blen = sizeof(*b) + 1024; in ndisuio_query_bindings() local 84 b = malloc(blen); in ndisuio_query_bindings() 89 memset(b, 0, blen); in ndisuio_query_bindings() 93 (DWORD) blen, &written, NULL)) { in ndisuio_query_bindings()
|
D | wps_supplicant.c | 387 size_t blen = cred->cred_attr_len * 2 + 1; in wpa_supplicant_wps_cred() local 388 char *buf = os_malloc(blen); in wpa_supplicant_wps_cred() 390 wpa_snprintf_hex(buf, blen, in wpa_supplicant_wps_cred()
|
/hostap-latest/src/drivers/ |
D | driver_hostap.c | 405 size_t blen; in wpa_driver_hostap_set_key() local 414 blen = sizeof(*param) + key_len; in wpa_driver_hostap_set_key() 415 buf = os_zalloc(blen); in wpa_driver_hostap_set_key() 451 if (hostapd_ioctl(drv, param, blen)) { in wpa_driver_hostap_set_key() 467 size_t blen; in hostap_get_seqnum() local 470 blen = sizeof(*param) + 32; in hostap_get_seqnum() 471 buf = os_zalloc(blen); in hostap_get_seqnum() 483 if (hostapd_ioctl(drv, param, blen)) { in hostap_get_seqnum() 715 size_t blen, elem_len; in hostapd_ioctl_set_generic_elem() local 718 blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN + elem_len; in hostapd_ioctl_set_generic_elem() [all …]
|
D | driver_ndis.c | 818 size_t blen, count, i; in wpa_driver_ndis_get_scan_results() local 824 blen = 65535; in wpa_driver_ndis_get_scan_results() 825 b = os_zalloc(blen); in wpa_driver_ndis_get_scan_results() 828 len = ndis_get_oid(drv, OID_802_11_BSSID_LIST, (char *) b, blen); in wpa_driver_ndis_get_scan_results() 858 if (((char *) bss->IEs) + bss->IELength > (char *) b + blen) { in wpa_driver_ndis_get_scan_results() 892 if (pos > (char *) b + blen) in wpa_driver_ndis_get_scan_results() 1359 size_t blen, i; in wpa_driver_ndis_get_associnfo() local 1420 blen = 65535; in wpa_driver_ndis_get_associnfo() 1421 b = os_zalloc(blen); in wpa_driver_ndis_get_associnfo() 1424 len = ndis_get_oid(drv, OID_802_11_BSSID_LIST, (char *) b, blen); in wpa_driver_ndis_get_associnfo() [all …]
|
/hostap-latest/src/crypto/ |
D | aes-siv.c | 42 static void xorend(u8 *a, int alen, const u8 *b, int blen) in xorend() argument 46 if (alen < blen) in xorend() 49 for (i = 0; i < blen; i++) in xorend() 50 a[alen - blen + i] ^= b[i]; in xorend()
|
D | tls_mbedtls_alt.c | 1204 size_t blen, clen; in tls_mbedtls_set_ciphers() local 1267 blen = tls_mbedtls_translate_ciphername(*list, buf, sizeof(buf)); in tls_mbedtls_set_ciphers() 1268 if (!blen) in tls_mbedtls_set_ciphers() 1272 if (blen == clen + 4) in tls_mbedtls_set_ciphers() 1277 os_memmove(cbc, cbc + 4, blen - (cbc + 4 - buf) + 1); /*(w/ '\0')*/ in tls_mbedtls_set_ciphers() 1278 blen -= 4; in tls_mbedtls_set_ciphers() 1281 if (blen >= clen && os_memcmp(ciphers, buf, clen) == 0 && in tls_mbedtls_set_ciphers() 1282 (blen == clen || (blen == clen + 7 && os_memcmp(buf + clen, "-SHA256", 7)))) in tls_mbedtls_set_ciphers()
|
/hostap-latest/wpa_supplicant/dbus/ |
D | dbus_new_helpers.c | 135 size_t blen = registered_sig + MAX_SIG_LEN - pos; in is_signature_correct() local 137 ret = os_snprintf(pos, blen, "%s", arg->type); in is_signature_correct() 138 if (os_snprintf_error(blen, ret)) in is_signature_correct()
|
/hostap-latest/src/ap/ |
D | wps_hostapd.c | 342 size_t blen = attr_len * 2 + 1; in hapd_new_ap_event() local 343 char *buf = os_malloc(blen); in hapd_new_ap_event() 345 wpa_snprintf_hex(buf, blen, attr, attr_len); in hapd_new_ap_event()
|