aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-03-11 22:23:36 (GMT)
committerJouni Malinen <j@w1.fi>2017-03-11 22:23:36 (GMT)
commit9c7aac738b77505b074baa4dee9452ebaebb4891 (patch)
tree2e669e5b2c13eab2a1d7782e4e3dc11f8ed6d329 /src
parente73244c2406236f82acb73ad6eaa59523d8afab1 (diff)
downloadhostap-9c7aac738b77505b074baa4dee9452ebaebb4891.zip
hostap-9c7aac738b77505b074baa4dee9452ebaebb4891.tar.gz
hostap-9c7aac738b77505b074baa4dee9452ebaebb4891.tar.bz2
OWE: Define and parse Diffie-Hellman Parameter element
Add WLAN_EID_EXT_OWE_DH_PARAM definition and extend ieee802_11_parse_elems() to recognize this element. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/common/ieee802_11_common.c6
-rw-r--r--src/common/ieee802_11_common.h2
-rw-r--r--src/common/ieee802_11_defs.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index 4a04915..dc99f8b 100644
--- a/src/common/ieee802_11_common.c
+++ b/src/common/ieee802_11_common.c
@@ -250,6 +250,12 @@ static int ieee802_11_parse_extension(const u8 *pos, size_t elen,
break;
elems->fils_nonce = pos;
break;
+ case WLAN_EID_EXT_OWE_DH_PARAM:
+ if (elen < 2)
+ break;
+ elems->owe_dh = pos;
+ elems->owe_dh_len = elen;
+ break;
default:
if (show_errors) {
wpa_printf(MSG_MSGDUMP,
diff --git a/src/common/ieee802_11_common.h b/src/common/ieee802_11_common.h
index b3a74f1..ff2f8e7 100644
--- a/src/common/ieee802_11_common.h
+++ b/src/common/ieee802_11_common.h
@@ -78,6 +78,7 @@ struct ieee802_11_elems {
const u8 *fils_wrapped_data;
const u8 *fils_pk;
const u8 *fils_nonce;
+ const u8 *owe_dh;
u8 ssid_len;
u8 supp_rates_len;
@@ -120,6 +121,7 @@ struct ieee802_11_elems {
u8 key_delivery_len;
u8 fils_wrapped_data_len;
u8 fils_pk_len;
+ u8 owe_dh_len;
struct mb_ies_info mb_ies;
};
diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
index afe2651..d57bb0c 100644
--- a/src/common/ieee802_11_defs.h
+++ b/src/common/ieee802_11_defs.h
@@ -462,6 +462,7 @@
#define WLAN_EID_EXT_FILS_PUBLIC_KEY 12
#define WLAN_EID_EXT_FILS_NONCE 13
#define WLAN_EID_EXT_FUTURE_CHANNEL_GUIDANCE 14
+#define WLAN_EID_EXT_OWE_DH_PARAM 32
/* Action frame categories (IEEE Std 802.11-2016, 9.4.1.11, Table 9-76) */