aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/wpa_common.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-11-12 19:52:14 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-12 19:52:14 (GMT)
commitf3b87561d7614f4b4ea2aea13400a249225c7fee (patch)
tree81e9d4d959322617a55b628c25157f71fca177b4 /src/common/wpa_common.h
parent01d92811f979b9d5a5907dfbda0e66c0a5c7fdaa (diff)
downloadhostap-f3b87561d7614f4b4ea2aea13400a249225c7fee.zip
hostap-f3b87561d7614f4b4ea2aea13400a249225c7fee.tar.gz
hostap-f3b87561d7614f4b4ea2aea13400a249225c7fee.tar.bz2
Share WPA IE parser function for RSN authenticator/supplicant
There is no point in maintaining two almost identical versions of this parser. Move WPA IE parser into wpa_common.c similarly to what was already the case with RSN IE parse.
Diffstat (limited to 'src/common/wpa_common.h')
-rw-r--r--src/common/wpa_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h
index fd8a79f..1193d85 100644
--- a/src/common/wpa_common.h
+++ b/src/common/wpa_common.h
@@ -337,6 +337,8 @@ struct wpa_ie_data {
int wpa_parse_wpa_ie_rsn(const u8 *rsn_ie, size_t rsn_ie_len,
struct wpa_ie_data *data);
+int wpa_parse_wpa_ie_wpa(const u8 *wpa_ie, size_t wpa_ie_len,
+ struct wpa_ie_data *data);
void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa,
u8 *pmkid, int use_sha256);