aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp/peerkey.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-06-29 15:32:12 (GMT)
committerJouni Malinen <j@w1.fi>2014-07-02 09:38:46 (GMT)
commitf107d00cf6e97a6252b34dfc7fb902f645b39a5f (patch)
tree6acd9ea748541ad198737859c8dd3a5394dc98ef /src/rsn_supp/peerkey.h
parent010fc5f507020f69f64b958450eb5136e9d6db77 (diff)
downloadhostap-f107d00cf6e97a6252b34dfc7fb902f645b39a5f.zip
hostap-f107d00cf6e97a6252b34dfc7fb902f645b39a5f.tar.gz
hostap-f107d00cf6e97a6252b34dfc7fb902f645b39a5f.tar.bz2
PeerKey: Clean up EAPOL-Key Key Data processing
This extends the earlier commit e6270129f6ac06c319480c409ee7013a1ad33127 ('Clean up EAPOL-Key Key Data processing') design to be used with PeerKey EAPOL-key processing as well. This avoids false warnings from static analyzer (CID 62860, CID 62861, CID 62862). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/rsn_supp/peerkey.h')
-rw-r--r--src/rsn_supp/peerkey.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rsn_supp/peerkey.h b/src/rsn_supp/peerkey.h
index f420691..4c17eae 100644
--- a/src/rsn_supp/peerkey.h
+++ b/src/rsn_supp/peerkey.h
@@ -41,7 +41,8 @@ int peerkey_verify_eapol_key_mic(struct wpa_sm *sm,
struct wpa_eapol_key *key, u16 ver,
const u8 *buf, size_t len);
void peerkey_rx_eapol_4way(struct wpa_sm *sm, struct wpa_peerkey *peerkey,
- struct wpa_eapol_key *key, u16 key_info, u16 ver);
+ 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);
@@ -60,7 +61,8 @@ peerkey_verify_eapol_key_mic(struct wpa_sm *sm,
static inline void
peerkey_rx_eapol_4way(struct wpa_sm *sm, struct wpa_peerkey *peerkey,
- struct wpa_eapol_key *key, u16 key_info, u16 ver)
+ struct wpa_eapol_key *key, u16 key_info, u16 ver,
+ const u8 *key_data, size_t key_data_len)
{
}