aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_defs.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-11-29 10:11:56 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-29 10:11:56 (GMT)
commiteb76b7e3ffea75035836aa2313c3c69b60c2ac34 (patch)
tree173617da4dac74651ad392992c1f3a61356abd72 /src/wps/wps_defs.h
parente9ab39b4446e10fe3502c741973ba36ec45de7c4 (diff)
downloadhostap-eb76b7e3ffea75035836aa2313c3c69b60c2ac34.zip
hostap-eb76b7e3ffea75035836aa2313c3c69b60c2ac34.tar.gz
hostap-eb76b7e3ffea75035836aa2313c3c69b60c2ac34.tar.bz2
WPS: Parse Request Type from WPS IE in (Re)AssocReq and derive mgmt keys
WPS IE is now passed from hostapd association processing into EAP-WSC and WPS processing. Request Type attribute is parsed from this information and if the request is for a WLAN Manager Registrar, additional management keys are derived (to be used with UPnP).
Diffstat (limited to 'src/wps/wps_defs.h')
-rw-r--r--src/wps/wps_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wps/wps_defs.h b/src/wps/wps_defs.h
index 141efba..bf6ccc5 100644
--- a/src/wps/wps_defs.h
+++ b/src/wps/wps_defs.h
@@ -30,6 +30,9 @@
#define WPS_SECRET_NONCE_LEN 16
#define WPS_HASH_LEN 32
#define WPS_KWA_LEN 8
+#define WPS_MGMTAUTHKEY_LEN 32
+#define WPS_MGMTENCKEY_LEN 16
+#define WPS_MGMT_KEY_ID_LEN 16
/* Attribute Types */
enum wps_attribute {