From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH v3 05/13] handshake: use authenticator_fte instead of 'fte'
Date: Wed, 6 Dec 2023 12:17:54 -0800 [thread overview]
Message-ID: <20231206201802.2139649-5-prestwoj@gmail.com> (raw)
In-Reply-To: <20231206201802.2139649-1-prestwoj@gmail.com>
---
src/eapol.c | 5 +++--
src/fils.c | 2 +-
src/ft.c | 2 +-
src/handshake.c | 2 +-
src/netdev.c | 2 +-
5 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/eapol.c b/src/eapol.c
index 3d7b3d38..bad4bbb7 100644
--- a/src/eapol.c
+++ b/src/eapol.c
@@ -1299,7 +1299,8 @@ static void eapol_handle_ptk_1_of_4(struct eapol_sm *sm,
ies_len = ies[1] + 2;
ies_len += append_ie(ies + ies_len, sm->handshake->mde);
- ies_len += append_ie(ies + ies_len, sm->handshake->fte);
+ ies_len += append_ie(ies + ies_len,
+ sm->handshake->authenticator_fte);
} else {
ies_len = append_ie(ies, own_ie);
}
@@ -1795,7 +1796,7 @@ static void eapol_handle_ptk_3_of_4(struct eapol_sm *sm,
if (eapol_ie_matches(decrypted_key_data,
decrypted_key_data_size,
IE_TYPE_FAST_BSS_TRANSITION,
- hs->fte) < 0)
+ hs->authenticator_fte) < 0)
goto error_ie_different;
}
diff --git a/src/fils.c b/src/fils.c
index c3337352..f876e7e5 100644
--- a/src/fils.c
+++ b/src/fils.c
@@ -445,7 +445,7 @@ static int fils_rx_authenticate(struct auth_proto *driver, const uint8_t *frame,
kck_len, &ft_info) < 0)
goto invalid_ies;
- handshake_state_set_fte(fils->hs, fte);
+ handshake_state_set_authenticator_fte(fils->hs, fte);
handshake_state_set_kh_ids(fils->hs, ft_info.r0khid,
ft_info.r0khid_len,
ft_info.r1khid);
diff --git a/src/ft.c b/src/ft.c
index 2cc611b8..43399828 100644
--- a/src/ft.c
+++ b/src/ft.c
@@ -922,7 +922,7 @@ static void ft_prepare_handshake(struct ft_info *info,
memcpy(hs->snonce, info->snonce, sizeof(hs->snonce));
- handshake_state_set_fte(hs, info->fte);
+ handshake_state_set_authenticator_fte(hs, info->fte);
handshake_state_set_anonce(hs, info->ft_info.anonce);
diff --git a/src/handshake.c b/src/handshake.c
index f35da9b1..ad8533f4 100644
--- a/src/handshake.c
+++ b/src/handshake.c
@@ -528,7 +528,7 @@ bool handshake_state_derive_ptk(struct handshake_state *s)
IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256 |
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA256 |
IE_RSN_AKM_SUITE_FT_OVER_FILS_SHA384)) &&
- (!s->mde || !s->fte))
+ (!s->mde || !s->authenticator_fte))
return false;
s->ptk_complete = false;
diff --git a/src/netdev.c b/src/netdev.c
index f2e887b4..b9dc930e 100644
--- a/src/netdev.c
+++ b/src/netdev.c
@@ -2777,7 +2777,7 @@ process_resp_ies:
*/
if (ie_parse_fast_bss_transition_from_data(fte,
fte[1] + 2, kck_len, &ft_info) >= 0) {
- handshake_state_set_fte(hs, fte);
+ handshake_state_set_authenticator_fte(hs, fte);
handshake_state_set_kh_ids(hs,
ft_info.r0khid,
ft_info.r0khid_len,
--
2.34.1
next prev parent reply other threads:[~2023-12-06 20:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-06 20:17 [PATCH v3 01/13] auto-t: add explicit stop() to IWD class James Prestwood
2023-12-06 20:17 ` [PATCH v3 02/13] auto-t: add association timeout test James Prestwood
2023-12-06 20:17 ` [PATCH v3 03/13] auto-t: only call set_value for changed values in default() James Prestwood
2023-12-06 20:17 ` [PATCH v3 04/13] handshake: add setters for authenticator/supplicant_fte James Prestwood
2023-12-06 20:17 ` James Prestwood [this message]
2023-12-06 20:17 ` [PATCH v3 06/13] unit: use authenticator_fte James Prestwood
2023-12-06 20:17 ` [PATCH v3 07/13] handshake: remove handshake_state_set_fte James Prestwood
2023-12-06 20:17 ` [PATCH v3 08/13] ft: add FTE/RSNE building to ft_prepare_handshake James Prestwood
2023-12-06 20:17 ` [PATCH v3 09/13] ft: add ft_handshake_setup James Prestwood
2023-12-06 20:17 ` [PATCH v3 10/13] netdev: add netdev_ft_reassociate James Prestwood
2023-12-06 20:18 ` [PATCH v3 11/13] station: use netdev_ft_reassociate James Prestwood
2023-12-06 20:18 ` [PATCH v3 12/13] ft: remove ft_associate and helpers James Prestwood
2023-12-06 20:18 ` [PATCH v3 13/13] netdev: station: remove NETDEV_EVENT_FT_ROAMED James Prestwood
2023-12-13 16:14 ` [PATCH v3 01/13] auto-t: add explicit stop() to IWD class Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231206201802.2139649-5-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox