aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_defs.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-06-27 15:28:13 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-27 18:22:12 (GMT)
commit4e0131d3512acc67eff02ffa07fd1c0fea2fd3f4 (patch)
treee432f27be0156ff119e8fe34f1edbe3b1d0223f8 /src/wps/wps_defs.h
parent582143e5440c59ca3c0f97e4e2fe73a0af8750ee (diff)
downloadhostap-4e0131d3512acc67eff02ffa07fd1c0fea2fd3f4.zip
hostap-4e0131d3512acc67eff02ffa07fd1c0fea2fd3f4.tar.gz
hostap-4e0131d3512acc67eff02ffa07fd1c0fea2fd3f4.tar.bz2
WPS: Add support for OOB dev password lengths 16..31
Previously, only the maximum length 32 octets for OOB device password was accepted. Since the specification allows a shorter password to be used with limited OOB mechanism (e.g., small NFC tag), we should accept lengths 16..32. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/wps/wps_defs.h')
-rw-r--r--src/wps/wps_defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wps/wps_defs.h b/src/wps/wps_defs.h
index e128a19..2f42603 100644
--- a/src/wps/wps_defs.h
+++ b/src/wps/wps_defs.h
@@ -41,7 +41,7 @@ extern int wps_testing_dummy_cred;
#define WPS_MGMTAUTHKEY_LEN 32
#define WPS_MGMTENCKEY_LEN 16
#define WPS_MGMT_KEY_ID_LEN 16
-#define WPS_OOB_DEVICE_PASSWORD_ATTR_LEN 54
+#define WPS_OOB_DEVICE_PASSWORD_MIN_LEN 16
#define WPS_OOB_DEVICE_PASSWORD_LEN 32
#define WPS_OOB_PUBKEY_HASH_LEN 20