$search

wps_context Struct Reference

#include <wps.h>

List of all members.

Public Attributes

int ap
u8ap_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 wpabufdh_privkey
struct wpabufdh_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
u8network_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_registrarregistrar
u8 ssid [32]
size_t ssid_len
char * upc
struct upnp_pending_messageupnp_msgs
u8 uuid [16]
enum wps_state wps_state
struct upnp_wps_device_smwps_upnp

Detailed Description

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.

Definition at line 488 of file wps.h.


Member Data Documentation

ap - Whether the local end is an access point

Definition at line 492 of file wps.h.

ap_settings - AP Settings override for M7 (only used at AP)

If NULL, AP Settings attributes will be generated based on the current network configuration.

Definition at line 616 of file wps.h.

ap_settings_len - Length of ap_settings in octets

Definition at line 621 of file wps.h.

ap_setup_locked - Whether AP setup is locked (only used at AP)

Definition at line 507 of file wps.h.

auth_types - Authentication types (bit field of WPS_AUTH_*)

Definition at line 573 of file wps.h.

cb_ctx: Higher layer context data for callbacks

Definition at line 668 of file wps.h.

config_methods - Enabled configuration methods

Bit field of WPS_CONFIG_*

Definition at line 563 of file wps.h.

int(* wps_context::cred_cb)(void *ctx, const struct wps_credential *cred)

cred_cb - Callback to notify that new Credentials were received : Higher layer context data (cb_ctx) : The received Credential Return: 0 on success, -1 on failure

Definition at line 654 of file wps.h.

dev - Own WPS device data

Definition at line 531 of file wps.h.

dh_ctx - Context data for Diffie-Hellman operation

Definition at line 546 of file wps.h.

dh_privkey - Diffie-Hellman private key

Definition at line 551 of file wps.h.

dh_pubkey_oob - Diffie-Hellman public key

Definition at line 556 of file wps.h.

encr_types - Enabled encryption types (bit field of WPS_ENCR_*)

Definition at line 568 of file wps.h.

void(* wps_context::event_cb)(void *ctx, enum wps_event event, union wps_event_data *data)

event_cb - Event callback (state information about progress) : Higher layer context data (cb_ctx) : Event type : Event data

Definition at line 662 of file wps.h.

friendly_name - Friendly Name (required for UPnP)

Definition at line 626 of file wps.h.

manufacturer_url - Manufacturer URL (optional for UPnP)

Definition at line 631 of file wps.h.

model_description - Model Description (recommended for UPnP)

Definition at line 636 of file wps.h.

model_url - Model URL (optional for UPnP)

Definition at line 641 of file wps.h.

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).

Definition at line 590 of file wps.h.

network_key_len - Length of network_key in octets

Definition at line 595 of file wps.h.

oob_conf - OOB Config data

Definition at line 536 of file wps.h.

oob_dev_pw_id - OOB Device password id

Definition at line 541 of file wps.h.

psk - The current network PSK

This optional value can be used to provide the current PSK if network_key is set to the ASCII passphrase.

Definition at line 603 of file wps.h.

psk_set - Whether psk value is set

Definition at line 608 of file wps.h.

registrar - Pointer to WPS registrar data from wps_registrar_init()

Definition at line 497 of file wps.h.

ssid - SSID

This SSID is used by the Registrar to fill in information for Credentials. In addition, AP uses it when acting as an Enrollee to notify Registrar of the current configuration.

Definition at line 521 of file wps.h.

ssid_len - Length of ssid in octets

Definition at line 526 of file wps.h.

upc - Universal Product Code (optional for UPnP)

Definition at line 646 of file wps.h.

Definition at line 673 of file wps.h.

uuid - Own UUID

Definition at line 512 of file wps.h.

wps_state - Current WPS state

Definition at line 502 of file wps.h.

Definition at line 670 of file wps.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Mar 1 16:00:55 2013