hostapd/src
Anusha Datar 8f248d1aca Check for message truncation in RADIUS client
The RADIUS client currently determines if a radius message is longer
than the supported maximum length by checking whether the size of the
received buffer and the length of the buffer (as returned by recv()) is
equal. This method fails to detect if the buffer has actually been
truncated. This change modifies the RADIUS client to instead use the
recvmsg() call and then check the message header flags to determine
whether or not the received message has been truncated and drop the
message if that is the case.

Signed-off-by: Anusha Datar <anusha@meter.com>
Reviewed-by: Steve deRosier <derosier@cal-sierra.com>
Reviewed-by: Julian Squires <julian@cipht.net>
2021-02-20 00:15:15 +02:00
..
ap AP: Check driver's capability to enable OCV when driver SME is used 2021-02-16 00:47:43 +02:00
common Add new attributes in get_sta_info QCA vendor command 2021-02-16 00:47:43 +02:00
crypto wolfSSL: wolfSSL_use_PrivateKey_* correct return codes 2021-02-09 20:54:34 +02:00
drivers AP: Check driver's capability to enable OCV when driver SME is used 2021-02-16 00:47:43 +02:00
eap_common build: Make more library things common 2020-10-12 20:20:35 +03:00
eap_peer EAP-AKA: Check that ID message storing succeeds 2021-02-07 23:40:20 +02:00
eap_server build: Make more library things common 2020-10-12 20:20:35 +03:00
eapol_auth build: Make more library things common 2020-10-12 20:20:35 +03:00
eapol_supp build: Make more library things common 2020-10-12 20:20:35 +03:00
fst FST: Convert Boolean to C99 bool 2020-04-24 17:06:50 +03:00
l2_packet build: Make more library things common 2020-10-12 20:20:35 +03:00
p2p P2P: Add a maximum length limit for peer vendor IEs 2021-02-05 01:39:29 +02:00
pae MACsec: Convert Boolean to C99 bool 2020-04-24 17:06:50 +03:00
radius Check for message truncation in RADIUS client 2021-02-20 00:15:15 +02:00
rsn_supp RSN: Validate RSNXE match in EAPOL-Key msg 3/4 only when RSN is used 2021-02-06 12:09:30 +02:00
tls Fix couple more typos 2020-10-20 00:37:01 +03:00
utils ext_password: Implement new file-based backend 2021-02-16 00:47:43 +02:00
wps WPS: Reconfigure credentials on hostapd config reload 2021-02-06 17:15:31 +02:00
build.rules build: Rebuild libs all the time 2020-10-12 20:18:02 +03:00
lib.rules build: lib.rules: Add common-clean 2020-10-16 12:51:12 +03:00
Makefile build: Add a common-clean target 2020-10-10 12:48:41 +03:00
objs.mk build: Fix dependency file inclusion 2020-10-12 11:05:16 +03:00