aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp/peerkey.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-12-18 17:07:29 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-18 17:07:29 (GMT)
commit28fb9bb195761303345945d95b3f23716c3c70af (patch)
treec64a33938341ffe8021662525dda0ef5a1f36444 /src/rsn_supp/peerkey.h
parentdfc7731729be0d0a8e6bf5368d4c77048f6ead1b (diff)
downloadhostap-28fb9bb195761303345945d95b3f23716c3c70af.zip
hostap-28fb9bb195761303345945d95b3f23716c3c70af.tar.gz
hostap-28fb9bb195761303345945d95b3f23716c3c70af.tar.bz2
PeerKey: Fix EAPOL-Key processing
Commit 6d014ffc6e654e7e802263c55ce568df153a1e1c ('Make struct wpa_eapol_key easier to use with variable length MIC') forgot to update number of EAPOL-Key processing steps for SMK and STK exchanges and broke PeerKey. Fix this by updating the Key Data field pointers to match the new style with variable length Key MIC field. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/rsn_supp/peerkey.h')
-rw-r--r--src/rsn_supp/peerkey.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rsn_supp/peerkey.h b/src/rsn_supp/peerkey.h
index f3d07f3..02e12e9 100644
--- a/src/rsn_supp/peerkey.h
+++ b/src/rsn_supp/peerkey.h
@@ -44,8 +44,8 @@ void peerkey_rx_eapol_4way(struct wpa_sm *sm, struct wpa_peerkey *peerkey,
struct wpa_eapol_key *key, u16 key_info, u16 ver,
const u8 *key_data, size_t key_data_len);
void peerkey_rx_eapol_smk(struct wpa_sm *sm, const u8 *src_addr,
- struct wpa_eapol_key *key, size_t extra_len,
- u16 key_info, u16 ver);
+ struct wpa_eapol_key *key, const u8 *key_data,
+ size_t key_data_len, u16 key_info, u16 ver);
void peerkey_deinit(struct wpa_sm *sm);
#else /* CONFIG_PEERKEY */
@@ -68,8 +68,8 @@ peerkey_rx_eapol_4way(struct wpa_sm *sm, struct wpa_peerkey *peerkey,
static inline void
peerkey_rx_eapol_smk(struct wpa_sm *sm, const u8 *src_addr,
- struct wpa_eapol_key *key, size_t extra_len,
- u16 key_info, u16 ver)
+ struct wpa_eapol_key *key, const u8 *key_data,
+ size_t key_data_len, u16 key_info, u16 ver)
{
}