#include <wps.h>
Public Attributes | |
| int | ap |
| u8 * | ap_settings |
| size_t | ap_settings_len |
| int | ap_setup_locked |
| u16 | auth_types |
| void * | cb_ctx |
| u16 | config_methods |
| int(* | cred_cb )(void *ctx, const struct wps_credential *cred) |
| struct wps_device_data | dev |
| void * | dh_ctx |
| struct wpabuf * | dh_privkey |
| struct wpabuf * | dh_pubkey |
| u16 | encr_types |
| void(* | event_cb )(void *ctx, enum wps_event event, union wps_event_data *data) |
| char * | friendly_name |
| char * | manufacturer_url |
| char * | model_description |
| char * | model_url |
| u8 * | network_key |
| size_t | network_key_len |
| struct oob_conf_data | oob_conf |
| u16 | oob_dev_pw_id |
| u8 | psk [32] |
| int | psk_set |
| struct wps_registrar * | registrar |
| u8 | ssid [32] |
| size_t | ssid_len |
| char * | upc |
| struct upnp_pending_message * | upnp_msgs |
| u8 | uuid [16] |
| enum wps_state | wps_state |
| struct upnp_wps_device_sm * | wps_upnp |
struct wps_context - Long term WPS context data
This data is stored at the higher layer Authenticator or Supplicant data structures and it is maintained over multiple registration protocol runs.
| int wps_context::ap |
| size_t wps_context::ap_settings_len |
| void* wps_context::cb_ctx |
| int(* wps_context::cred_cb)(void *ctx, const struct wps_credential *cred) |
| struct wps_device_data wps_context::dev |
| void* wps_context::dh_ctx |
| struct wpabuf* wps_context::dh_privkey |
| struct wpabuf* wps_context::dh_pubkey |
| void(* wps_context::event_cb)(void *ctx, enum wps_event event, union wps_event_data *data) |
| char* wps_context::model_url |
network_key - The current Network Key (PSK) or NULL to generate new
If NULL, Registrar will generate per-device PSK. In addition, AP uses this when acting as an Enrollee to notify Registrar of the current configuration.
When using WPA/WPA2-Person, this key can be either the ASCII passphrase (8..63 characters) or the 32-octet PSK (64 hex characters). When this is set to the ASCII passphrase, the PSK can be provided in the psk buffer and used per-Enrollee to control which key type is included in the Credential (e.g., to reduce calculation need on low-powered devices by provisioning PSK while still allowing other devices to get the passphrase).
| size_t wps_context::network_key_len |
| u8 wps_context::psk[32] |
| struct wps_registrar* wps_context::registrar |
registrar - Pointer to WPS registrar data from wps_registrar_init()
| u8 wps_context::ssid[32] |
| size_t wps_context::ssid_len |
| char* wps_context::upc |
| u8 wps_context::uuid[16] |