Classes | Defines | Functions | Variables
wps_i.h File Reference
#include "wps.h"
Include dependency graph for wps_i.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wps_data
struct  wps_parse_attr

Defines

#define MAX_CRED_COUNT   10

Functions

struct wpabufndef_build_wifi (struct wpabuf *buf)
struct wpabufndef_parse_wifi (struct wpabuf *buf)
int wps_build_assoc_state (struct wps_data *wps, struct wpabuf *msg)
int wps_build_auth_type_flags (struct wps_data *wps, struct wpabuf *msg)
int wps_build_authenticator (struct wps_data *wps, struct wpabuf *msg)
int wps_build_config_error (struct wpabuf *msg, u16 err)
int wps_build_config_methods (struct wpabuf *msg, u16 methods)
int wps_build_conn_type_flags (struct wps_data *wps, struct wpabuf *msg)
int wps_build_cred (struct wps_data *wps, struct wpabuf *msg)
int wps_build_dev_password_id (struct wpabuf *msg, u16 id)
int wps_build_encr_settings (struct wps_data *wps, struct wpabuf *msg, struct wpabuf *plain)
int wps_build_encr_type_flags (struct wps_data *wps, struct wpabuf *msg)
int wps_build_enrollee_nonce (struct wps_data *wps, struct wpabuf *msg)
int wps_build_key_wrap_auth (struct wps_data *wps, struct wpabuf *msg)
int wps_build_msg_type (struct wpabuf *msg, enum wps_msg_type msg_type)
int wps_build_oob_dev_password (struct wpabuf *msg, struct wps_context *wps)
int wps_build_public_key (struct wps_data *wps, struct wpabuf *msg)
int wps_build_registrar_nonce (struct wps_data *wps, struct wpabuf *msg)
int wps_build_req_type (struct wpabuf *msg, enum wps_request_type type)
int wps_build_uuid_e (struct wpabuf *msg, const u8 *uuid)
int wps_build_version (struct wpabuf *msg)
struct wpabufwps_decrypt_encr_settings (struct wps_data *wps, const u8 *encr, size_t encr_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)
int wps_device_store (struct wps_registrar *reg, struct wps_device_data *dev, const u8 *uuid)
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)
void wps_fail_event (struct wps_context *wps, enum wps_msg_type msg)
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_parse_msg (const struct wpabuf *msg, struct wps_parse_attr *attr)
void wps_pbc_overlap_event (struct wps_context *wps)
void wps_pbc_timeout_event (struct wps_context *wps)
int wps_process_ap_settings (struct wps_parse_attr *attr, struct wps_credential *cred)
int wps_process_authenticator (struct wps_data *wps, const u8 *authenticator, const struct wpabuf *msg)
int wps_process_cred (struct wps_parse_attr *attr, struct wps_credential *cred)
int wps_process_key_wrap_auth (struct wps_data *wps, struct wpabuf *msg, const u8 *key_wrap_auth)
void wps_pwd_auth_fail_event (struct wps_context *wps, int enrollee, int part)
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)
void wps_registrar_selected_registrar_changed (struct wps_registrar *reg)
void wps_success_event (struct wps_context *wps)
static int wps_version_supported (const u8 *version)

Variables

struct oob_device_data oob_nfc_device_data
struct oob_nfc_device_data oob_nfc_pn531_device_data
struct oob_device_data oob_ufd_device_data

Define Documentation

#define MAX_CRED_COUNT   10

Definition at line 191 of file wps_i.h.


Function Documentation

struct wpabuf* ndef_build_wifi ( struct wpabuf buf) [read]

Definition at line 169 of file ndef.c.

struct wpabuf* ndef_parse_wifi ( struct wpabuf buf) [read]

Definition at line 163 of file ndef.c.

int wps_build_assoc_state ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 217 of file wps_attr_build.c.

int wps_build_auth_type_flags ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 187 of file wps_attr_build.c.

int wps_build_authenticator ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 117 of file wps_attr_build.c.

int wps_build_config_error ( struct wpabuf msg,
u16  err 
)

Definition at line 107 of file wps_attr_build.c.

int wps_build_config_methods ( struct wpabuf msg,
u16  methods 
)

Definition at line 77 of file wps_attr_build.c.

int wps_build_conn_type_flags ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 207 of file wps_attr_build.c.

int wps_build_cred ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 1185 of file wps_registrar.c.

int wps_build_dev_password_id ( struct wpabuf msg,
u16  id 
)

Definition at line 97 of file wps_attr_build.c.

int wps_build_encr_settings ( struct wps_data wps,
struct wpabuf msg,
struct wpabuf plain 
)

Definition at line 242 of file wps_attr_build.c.

int wps_build_encr_type_flags ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 197 of file wps_attr_build.c.

int wps_build_enrollee_nonce ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 167 of file wps_attr_build.c.

int wps_build_key_wrap_auth ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 227 of file wps_attr_build.c.

int wps_build_msg_type ( struct wpabuf msg,
enum wps_msg_type  msg_type 
)

Definition at line 157 of file wps_attr_build.c.

int wps_build_oob_dev_password ( struct wpabuf msg,
struct wps_context wps 
)
int wps_build_public_key ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 25 of file wps_attr_build.c.

int wps_build_registrar_nonce ( struct wps_data wps,
struct wpabuf msg 
)

Definition at line 177 of file wps_attr_build.c.

int wps_build_req_type ( struct wpabuf msg,
enum wps_request_type  type 
)

Definition at line 67 of file wps_attr_build.c.

int wps_build_uuid_e ( struct wpabuf msg,
const u8 *  uuid 
)

Definition at line 87 of file wps_attr_build.c.

int wps_build_version ( struct wpabuf msg)

Definition at line 147 of file wps_attr_build.c.

struct wpabuf* wps_decrypt_encr_settings ( struct wps_data wps,
const u8 *  encr,
size_t  encr_len 
) [read]

Definition at line 153 of file wps_common.c.

int wps_derive_keys ( struct wps_data wps)

Definition at line 65 of file wps_common.c.

void wps_derive_psk ( struct wps_data wps,
const u8 *  dev_passwd,
size_t  dev_passwd_len 
)

Definition at line 133 of file wps_common.c.

int wps_device_store ( struct wps_registrar reg,
struct wps_device_data dev,
const u8 *  uuid 
)

Definition at line 184 of file wps_registrar.c.

struct wpabuf* wps_enrollee_get_msg ( struct wps_data wps,
enum wsc_op_code op_code 
) [read]

Definition at line 408 of file wps_enrollee.c.

enum wps_process_res wps_enrollee_process_msg ( struct wps_data wps,
enum wsc_op_code  op_code,
const struct wpabuf msg 
)

Definition at line 1203 of file wps_enrollee.c.

void wps_fail_event ( struct wps_context wps,
enum wps_msg_type  msg 
)

Definition at line 256 of file wps_common.c.

void wps_kdf ( const u8 *  key,
const u8 *  label_prefix,
size_t  label_prefix_len,
const char *  label,
u8 *  res,
size_t  res_len 
)

Definition at line 27 of file wps_common.c.

int wps_parse_msg ( const struct wpabuf msg,
struct wps_parse_attr attr 
)

Definition at line 410 of file wps_attr_parse.c.

void wps_pbc_overlap_event ( struct wps_context wps)

Definition at line 292 of file wps_common.c.

void wps_pbc_timeout_event ( struct wps_context wps)

Definition at line 301 of file wps_common.c.

int wps_process_ap_settings ( struct wps_parse_attr attr,
struct wps_credential cred 
)

Definition at line 305 of file wps_attr_process.c.

int wps_process_authenticator ( struct wps_data wps,
const u8 *  authenticator,
const struct wpabuf msg 
)

Definition at line 22 of file wps_attr_process.c.

int wps_process_cred ( struct wps_parse_attr attr,
struct wps_credential cred 
)

Definition at line 277 of file wps_attr_process.c.

int wps_process_key_wrap_auth ( struct wps_data wps,
struct wpabuf msg,
const u8 *  key_wrap_auth 
)

Definition at line 59 of file wps_attr_process.c.

void wps_pwd_auth_fail_event ( struct wps_context wps,
int  enrollee,
int  part 
)

Definition at line 278 of file wps_common.c.

struct wpabuf* wps_registrar_get_msg ( struct wps_data wps,
enum wsc_op_code op_code 
) [read]

Definition at line 1563 of file wps_registrar.c.

enum wps_process_res wps_registrar_process_msg ( struct wps_data wps,
enum wsc_op_code  op_code,
const struct wpabuf msg 
)

Definition at line 2695 of file wps_registrar.c.

wps_registrar_selected_registrar_changed - SetSelectedRegistrar change : Registrar data from wps_registrar_init()

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

Definition at line 2830 of file wps_registrar.c.

void wps_success_event ( struct wps_context wps)

Definition at line 269 of file wps_common.c.

static int wps_version_supported ( const u8 *  version) [inline, static]

Definition at line 271 of file wps_i.h.


Variable Documentation

Definition at line 110 of file wps_nfc.c.

Definition at line 108 of file wps_nfc_pn531.c.

Definition at line 228 of file wps_ufd.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:40