aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps/wps_defs.h
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2009-02-26 19:57:38 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-26 19:57:38 (GMT)
commit46bdb83acdb9c2f1a031971e665b75fce6bcbe47 (patch)
treebf3fdd443275779adc6329be9201b111407bf07d /src/wps/wps_defs.h
parentb414900a90829d3d3a58a45f29be708a6757b258 (diff)
downloadhostap-46bdb83acdb9c2f1a031971e665b75fce6bcbe47.zip
hostap-46bdb83acdb9c2f1a031971e665b75fce6bcbe47.tar.gz
hostap-46bdb83acdb9c2f1a031971e665b75fce6bcbe47.tar.bz2
WPS: Add UFD support (USBA out-of-band mechanism)
This patch is only for the following use case: - Enrollee = wpa_supplicant - Registrar = hostapd internal Registrar Following UFD methods can be used: - Enrollee PIN with UFD - Registrar PIN with UFD - unencrypted credential with UFD Encrypted credentials are not supported. Enrollee side operation: wpa_cli -i ath0 wps_oob <device type> <mount point> <oob method> oob method = pin-e/pin-r/cred wpa_cli -i ath0 wps_oob ufd /mnt/ pin-r Registrar side operation: ./hostapd_cli -i ath0 wps_oob <device type> <mount point> <oob method> oob method = pin-e/pin-r/cred hostapd_cli -i ath0 wps_oob ufd /mnt/ cred
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 bf6ccc5..ab9536a 100644
--- a/src/wps/wps_defs.h
+++ b/src/wps/wps_defs.h
@@ -33,6 +33,9 @@
#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_LEN 32
+#define WPS_OOB_PUBKEY_HASH_LEN 20
/* Attribute Types */
enum wps_attribute {