fragattacks/src/common
Jouni Malinen a1afa2df8a Remove unnecessary and confusing length check from the PMKID KDE case
wpa_parse_kde_ies(), i.e., the only caller to wpa_parse_generic(),
verifies that there is room for KDE Length field and pos[1] (that
length) octets of payload in the Key Data buffer. The PMKID KDE case
within wpa_parse_generic() was doing an unnecessary separate check for
there being room for the Length, OUI, and Data Type fields. This is
covered by the check in the calling function with the combination of
verifying that pos[1] is large enough to contain RSN_SELECTOR_LEN +
PMKID_LEN octets of payload.

This is confusing since no other KDE case was checking remaining full
buffer room within wpa_parse_generic(). Clean this up by removing the
unnecessary check from the PMKID KDE case so that all KDEs are handled
consistently.

Signed-off-by: Jouni Malinen <j@w1.fi>
2020-03-15 23:24:18 +02:00
..
cli.c cli: Share a common tokenize_cmd() implementation 2016-08-06 12:46:39 +03:00
cli.h cli: Share a common tokenize_cmd() implementation 2016-08-06 12:46:39 +03:00
common_module_tests.c SAE: Expose sae_write_commit() error cases to callers 2020-03-08 16:59:42 +02:00
ctrl_iface_common.c hostapd: Add wpa_msg_ctrl() to report Probe Request frames from STA 2017-11-23 20:12:34 +02:00
ctrl_iface_common.h hostapd: Add wpa_msg_ctrl() to report Probe Request frames from STA 2017-11-23 20:12:34 +02:00
defs.h Add KEY_FLAG_MODIFY for Extended Key ID support 2020-03-15 23:00:10 +02:00
dhcp.h BSD: Use struct ip rather than struct iphdr 2020-01-02 19:17:10 +02:00
dpp.c DPP: Remove unreachable return statement 2020-03-08 16:35:45 +02:00
dpp.h DPP: Require conf=configurator to allow Configurator provisioning 2020-02-08 07:19:53 +02:00
dragonfly.c dragonfly: Disable use of groups using Brainpool curves 2019-07-27 23:36:27 +03:00
dragonfly.h dragonfly: SAE/EAP-pwd min PWE derivation iteration count to shared code 2019-07-23 21:21:30 +03:00
eapol_common.h PAE: Use be16/be32 instead of u16/u32 for spartse 2016-06-24 01:38:48 +03:00
gas_server.c DPP: Fix error path handling for GAS Comeback Response building 2018-11-25 13:51:26 +02:00
gas_server.h DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
gas.c DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
gas.h DPP: Configuration exchange 2017-06-19 21:13:15 +03:00
hw_features_common.c Do not enable HT/VHT for 6 GHz band 20 MHz width channels also 2020-01-23 16:10:41 +02:00
hw_features_common.h Extract BSS coex 40 MHz check into a separate function 2019-12-26 11:41:01 +02:00
ieee802_1x_defs.h mka: Support GCM-AES-256 2018-08-21 19:28:20 +03:00
ieee802_11_common.c Recognize OWE Transition Mode element in IE parser 2020-03-07 17:27:32 +02:00
ieee802_11_common.h common: Add support for element defragmentation 2020-02-29 23:56:15 +02:00
ieee802_11_defs.h WPA: Rename FILS wrapped data 2020-02-29 23:30:55 +02:00
linux_bridge.h vlan: Use new bridge ioctl() 2019-01-02 00:23:43 +02:00
linux_vlan.h Use own header file for defining Linux VLAN kernel interface 2016-03-26 11:24:38 +02:00
Makefile Remove CONFIG_IEEE80211W build parameter 2019-09-08 17:33:40 +03:00
ocv.c OCV: Add function to verify a received OCI element 2018-12-17 00:02:14 +02:00
ocv.h OCV: Add function to verify a received OCI element 2018-12-17 00:02:14 +02:00
privsep_commands.h privsep: Add key_flag to set_key() 2020-03-01 21:11:07 +02:00
qca-vendor-attr.h Make qca-vendor.h independent of other header files 2014-04-25 11:41:36 +03:00
qca-vendor.h Add attribute for dwell time in QCA vendor scan 2020-02-26 23:47:37 +02:00
sae.c SAE: Expose sae_write_commit() error cases to callers 2020-03-08 16:59:42 +02:00
sae.h SAE: Expose sae_write_commit() error cases to callers 2020-03-08 16:59:42 +02:00
tnc.h tests: TNC testing 2014-05-17 20:05:55 +03:00
version.h The master branch is now used for v2.10 development 2019-08-07 17:51:53 +03:00
wpa_common.c Remove unnecessary and confusing length check from the PMKID KDE case 2020-03-15 23:24:18 +02:00
wpa_common.h Add parsing of Key ID KDE for Extended Key ID 2020-03-15 23:17:56 +02:00
wpa_ctrl.c Replace deprecated readdir_r() with readdir() 2020-02-10 06:40:50 +02:00
wpa_ctrl.h common: Provide the BIT() macro locally 2020-02-28 11:03:05 +02:00
wpa_helpers.c wpa_helpers: Ignore link-local IPv4 address while waiting for DHCP 2017-03-26 21:13:21 +03:00
wpa_helpers.h Add wpa_ctrl helper functions for upper level functionality 2014-03-12 01:09:21 +02:00