diff options
author | Jouni Malinen <j@w1.fi> | 2012-06-28 13:25:48 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-06-28 13:25:48 +0300 |
commit | 3cf7a59d4f4345c24f99e5422a680cec6b9356d0 (patch) | |
tree | cf6f42aa1653b9591a525f9cff7b5cfd4a5ef93c /src/wps | |
parent | 5bb7ae1f0ccca1474d8972dab582d136fef8d65b (diff) | |
download | external_wpa_supplicant_8_ti-3cf7a59d4f4345c24f99e5422a680cec6b9356d0.zip external_wpa_supplicant_8_ti-3cf7a59d4f4345c24f99e5422a680cec6b9356d0.tar.gz external_wpa_supplicant_8_ti-3cf7a59d4f4345c24f99e5422a680cec6b9356d0.tar.bz2 |
WPS: Add new mechanism for generation NFC configuration token
The new hostapd ctrl_iface command WPS_NFC_CONFIG_TOKEN can now be used
to fetch payload for an NFC configuration token so that an external
program can be used to write this on an NFC tag.
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/wps')
-rw-r--r-- | src/wps/wps.h | 1 | ||||
-rw-r--r-- | src/wps/wps_common.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/wps/wps.h b/src/wps/wps.h index 927102f..ca2f55c 100644 --- a/src/wps/wps.h +++ b/src/wps/wps.h @@ -817,6 +817,7 @@ struct oob_nfc_device_data * wps_get_oob_nfc_device(char *device_name); int wps_get_oob_method(char *method); int wps_process_oob(struct wps_context *wps, struct oob_device_data *oob_dev, int registrar); +struct wpabuf * wps_get_oob_cred(struct wps_context *wps); int wps_attr_text(struct wpabuf *data, char *buf, char *end); struct wps_er * wps_er_init(struct wps_context *wps, const char *ifname, diff --git a/src/wps/wps_common.c b/src/wps/wps_common.c index 63857e0..35ebec0 100644 --- a/src/wps/wps_common.c +++ b/src/wps/wps_common.c @@ -308,7 +308,7 @@ void wps_pbc_timeout_event(struct wps_context *wps) #ifdef CONFIG_WPS_OOB -static struct wpabuf * wps_get_oob_cred(struct wps_context *wps) +struct wpabuf * wps_get_oob_cred(struct wps_context *wps) { struct wps_data data; struct wpabuf *plain; |