wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Functions
wps_i.h File Reference

Wi-Fi Protected Setup - internal definitions. More...

#include "wps.h"
#include "wps_attr_parse.h"

Go to the source code of this file.

Data Structures

struct  wps_data
 WPS registration protocol data. More...
 

Functions

void wps_kdf (const u8 *key, const u8 *label_prefix, size_t label_prefix_len, const char *label, u8 *res, size_t res_len)
 
int wps_derive_keys (struct wps_data *wps)
 
void wps_derive_psk (struct wps_data *wps, const u8 *dev_passwd, size_t dev_passwd_len)
 
struct wpabufwps_decrypt_encr_settings (struct wps_data *wps, const u8 *encr, size_t encr_len)
 
void wps_fail_event (struct wps_context *wps, enum wps_msg_type msg, u16 config_error, u16 error_indication, const u8 *mac_addr)
 
void wps_success_event (struct wps_context *wps, const u8 *mac_addr)
 
void wps_pwd_auth_fail_event (struct wps_context *wps, int enrollee, int part, const u8 *mac_addr)
 
void wps_pbc_overlap_event (struct wps_context *wps)
 
void wps_pbc_timeout_event (struct wps_context *wps)
 
void wps_pbc_active_event (struct wps_context *wps)
 
void wps_pbc_disable_event (struct wps_context *wps)
 
struct wpabufwps_build_wsc_ack (struct wps_data *wps)
 
struct wpabufwps_build_wsc_nack (struct wps_data *wps)
 
int wps_build_public_key (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_req_type (struct wpabuf *msg, enum wps_request_type type)
 
int wps_build_resp_type (struct wpabuf *msg, enum wps_response_type type)
 
int wps_build_config_methods (struct wpabuf *msg, u16 methods)
 
int wps_build_uuid_e (struct wpabuf *msg, const u8 *uuid)
 
int wps_build_dev_password_id (struct wpabuf *msg, u16 id)
 
int wps_build_config_error (struct wpabuf *msg, u16 err)
 
int wps_build_authenticator (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_key_wrap_auth (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_encr_settings (struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain)
 
int wps_build_version (struct wpabuf *msg)
 
int wps_build_wfa_ext (struct wpabuf *msg, int req_to_enroll, const u8 *auth_macs, size_t auth_macs_count)
 
int wps_build_msg_type (struct wpabuf *msg, enum wps_msg_type msg_type)
 
int wps_build_enrollee_nonce (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_registrar_nonce (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_auth_type_flags (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_encr_type_flags (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_conn_type_flags (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_assoc_state (struct wps_data *wps, struct wpabuf *msg)
 
int wps_build_oob_dev_pw (struct wpabuf *msg, u16 dev_pw_id, const struct wpabuf *pubkey, const u8 *dev_pw, size_t dev_pw_len)
 
struct wpabufwps_ie_encapsulate (struct wpabuf *data)
 
int wps_build_mac_addr (struct wpabuf *msg, const u8 *addr)
 
int wps_build_rf_bands_attr (struct wpabuf *msg, u8 rf_bands)
 
int wps_build_ap_channel (struct wpabuf *msg, u16 ap_channel)
 
int wps_process_authenticator (struct wps_data *wps, const u8 *authenticator, const struct wpabuf *msg)
 
int wps_process_key_wrap_auth (struct wps_data *wps, struct wpabuf *msg, const u8 *key_wrap_auth)
 
int wps_process_cred (struct wps_parse_attr *attr, struct wps_credential *cred)
 
int wps_process_ap_settings (struct wps_parse_attr *attr, struct wps_credential *cred)
 
struct wpabufwps_enrollee_get_msg (struct wps_data *wps, enum wsc_op_code *op_code)
 
enum wps_process_res wps_enrollee_process_msg (struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg)
 
struct wpabufwps_registrar_get_msg (struct wps_data *wps, enum wsc_op_code *op_code)
 
enum wps_process_res wps_registrar_process_msg (struct wps_data *wps, enum wsc_op_code op_code, const struct wpabuf *msg)
 
int wps_build_cred (struct wps_data *wps, struct wpabuf *msg)
 
int wps_device_store (struct wps_registrar *reg, struct wps_device_data *dev, const u8 *uuid)
 
void wps_registrar_selected_registrar_changed (struct wps_registrar *reg, u16 dev_pw_id)
 SetSelectedRegistrar change. More...
 
const u8 * wps_authorized_macs (struct wps_registrar *reg, size_t *count)
 
int wps_registrar_pbc_overlap (struct wps_registrar *reg, const u8 *addr, const u8 *uuid_e)
 
void wps_registrar_remove_nfc_pw_token (struct wps_registrar *reg, struct wps_nfc_pw_token *token)
 
int wps_cb_new_psk (struct wps_registrar *reg, const u8 *mac_addr, const u8 *p2p_dev_addr, const u8 *psk, size_t psk_len)
 

Detailed Description

Wi-Fi Protected Setup - internal definitions.

Function Documentation

void wps_registrar_selected_registrar_changed ( struct wps_registrar reg,
u16  dev_pw_id 
)

SetSelectedRegistrar change.

Parameters
regRegistrar data from wps_registrar_init()

This function is called when selected registrar state changes, e.g., when an AP receives a SetSelectedRegistrar UPnP message.