aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_common.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-07-16 08:13:39 (GMT)
committerJouni Malinen <j@w1.fi>2011-07-16 08:13:39 (GMT)
commit6554237f38f9abf289d263fed383b5871fe58eb6 (patch)
tree130da5620523806c9fc2f3f10f98c1e062780cf5 /src/common/wpa_common.h
parentc3c828ebfdde9fc860008d97797dc034eae0a431 (diff)
downloadhostap-6554237f38f9abf289d263fed383b5871fe58eb6.zip
hostap-6554237f38f9abf289d263fed383b5871fe58eb6.tar.gz
hostap-6554237f38f9abf289d263fed383b5871fe58eb6.tar.bz2
FT: Share IE parser implementation for Authenticator and Supplicant
These are almost identical, so there is no point in using separate implementations.
Diffstat (limited to 'src/common/wpa_common.h')
-rw-r--r--src/common/wpa_common.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index fe79cee..69437a7 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -358,4 +358,27 @@ int wpa_compare_rsn_ie(int ft_initial_assoc,
const u8 *ie2, size_t ie2len);
int wpa_insert_pmkid(u8 *ies, size_t ies_len, const u8 *pmkid);
+struct wpa_ft_ies {
+ const u8 *mdie;
+ size_t mdie_len;
+ const u8 *ftie;
+ size_t ftie_len;
+ const u8 *r1kh_id;
+ const u8 *gtk;
+ size_t gtk_len;
+ const u8 *r0kh_id;
+ size_t r0kh_id_len;
+ const u8 *rsn;
+ size_t rsn_len;
+ const u8 *rsn_pmkid;
+ const u8 *tie;
+ size_t tie_len;
+ const u8 *igtk;
+ size_t igtk_len;
+ const u8 *ric;
+ size_t ric_len;
+};
+
+int wpa_ft_parse_ies(const u8 *ies, size_t ies_len, struct wpa_ft_ies *parse);
+
#endif /* WPA_COMMON_H */