Long term WPS context data. More...
#include <wps.h>
Data Fields | |
int | ap |
Whether the local end is an access point. | |
struct wps_registrar * | registrar |
Pointer to WPS registrar data from wps_registrar_init(). | |
enum wps_state | wps_state |
Current WPS state. | |
int | ap_setup_locked |
Whether AP setup is locked (only used at AP). | |
u8 | uuid [16] |
Own UUID. | |
u8 | ssid [32] |
SSID. | |
size_t | ssid_len |
Length of ssid in octets. | |
struct wps_device_data | dev |
Own WPS device data. | |
struct oob_conf_data | oob_conf |
OOB Config data. | |
u16 | oob_dev_pw_id |
OOB Device password id. | |
void * | dh_ctx |
Context data for Diffie-Hellman operation. | |
struct wpabuf * | dh_privkey |
Diffie-Hellman private key. | |
struct wpabuf * | dh_pubkey |
Diffie-Hellman public key. | |
u16 | config_methods |
Enabled configuration methods. | |
u16 | encr_types |
Enabled encryption types (bit field of WPS_ENCR_*). | |
u16 | auth_types |
Authentication types (bit field of WPS_AUTH_*). | |
u8 * | network_key |
The current Network Key (PSK) or NULL to generate new. | |
size_t | network_key_len |
Length of network_key in octets. | |
u8 * | ap_settings |
AP Settings override for M7 (only used at AP). | |
size_t | ap_settings_len |
Length of ap_settings in octets. | |
char * | friendly_name |
Friendly Name (required for UPnP). | |
char * | manufacturer_url |
Manufacturer URL (optional for UPnP). | |
char * | model_description |
Model Description (recommended for UPnP). | |
char * | model_url |
Model URL (optional for UPnP). | |
char * | upc |
Universal Product Code (optional for UPnP). | |
int(* | cred_cb )(void *ctx, const struct wps_credential *cred) |
Callback to notify that new Credentials were received. | |
void(* | event_cb )(void *ctx, enum wps_event event, union wps_event_data *data) |
Event callback (state information about progress). | |
void * | cb_ctx |
struct upnp_wps_device_sm * | wps_upnp |
struct upnp_pending_message * | upnp_msgs |
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.
Definition at line 501 of file wps.h.
void* wps_context::cb_ctx |
int(* wps_context::cred_cb)(void *ctx, const struct wps_credential *cred) |
Callback to notify that new Credentials were received.
ctx | Higher layer context data (cb_ctx) | |
cred | The received Credential Return: 0 on success, -1 on failure |
void(* wps_context::event_cb)(void *ctx, enum wps_event event, union wps_event_data *data) |
Event callback (state information about progress).
ctx | Higher layer context data (cb_ctx) | |
event | Event type | |
data | Event data |
u8 wps_context::ssid[32] |