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

hostapd - IEEE 802.11i-2004 / WPA Authenticator More...

#include "common/defs.h"
#include "common/eapol_common.h"
#include "common/wpa_common.h"
#include "common/ieee802_11_defs.h"

Go to the source code of this file.

Data Structures

struct  ft_rrb_frame
 
struct  ft_r0kh_r1kh_pull_frame
 
struct  ft_r0kh_r1kh_resp_frame
 
struct  ft_r0kh_r1kh_push_frame
 
struct  ft_remote_r0kh
 
struct  ft_remote_r1kh
 
struct  wpa_auth_config
 
struct  wpa_auth_callbacks
 

Macros

#define MAX_OWN_IE_OVERRIDE   256
 
#define RSN_REMOTE_FRAME_TYPE_FT_RRB   1
 
#define FT_PACKET_REQUEST   0
 
#define FT_PACKET_RESPONSE   1
 
#define FT_PACKET_R0KH_R1KH_PULL   200
 
#define FT_PACKET_R0KH_R1KH_RESP   201
 
#define FT_PACKET_R0KH_R1KH_PUSH   202
 
#define FT_R0KH_R1KH_PULL_DATA_LEN   44
 
#define FT_R0KH_R1KH_RESP_DATA_LEN   76
 
#define FT_R0KH_R1KH_PUSH_DATA_LEN   88
 
#define FT_R0KH_R1KH_PULL_NONCE_LEN   16
 

Enumerations

enum  logger_level { LOGGER_DEBUG, LOGGER_INFO, LOGGER_WARNING }
 
enum  wpa_eapol_variable {
  WPA_EAPOL_portEnabled, WPA_EAPOL_portValid, WPA_EAPOL_authorized, WPA_EAPOL_portControl_Auto,
  WPA_EAPOL_keyRun, WPA_EAPOL_keyAvailable, WPA_EAPOL_keyDone, WPA_EAPOL_inc_EapolFramesTx
}
 
enum  {
  WPA_IE_OK, WPA_INVALID_IE, WPA_INVALID_GROUP, WPA_INVALID_PAIRWISE,
  WPA_INVALID_AKMP, WPA_NOT_ENABLED, WPA_ALLOC_FAIL, WPA_MGMT_FRAME_PROTECTION_VIOLATION,
  WPA_INVALID_MGMT_GROUP_CIPHER, WPA_INVALID_MDIE, WPA_INVALID_PROTO
}
 
enum  wpa_event {
  WPA_AUTH, WPA_ASSOC, WPA_DISASSOC, WPA_DEAUTH,
  WPA_REAUTH, WPA_REAUTH_EAPOL, WPA_ASSOC_FT
}
 

Functions

struct wpa_authenticatorwpa_init (const u8 *addr, struct wpa_auth_config *conf, struct wpa_auth_callbacks *cb)
 Initialize WPA authenticator. More...
 
int wpa_init_keys (struct wpa_authenticator *wpa_auth)
 
void wpa_deinit (struct wpa_authenticator *wpa_auth)
 Deinitialize WPA authenticator. More...
 
int wpa_reconfig (struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf)
 Update WPA authenticator configuration. More...
 
int wpa_validate_wpa_ie (struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *mdie, size_t mdie_len)
 
int wpa_validate_osen (struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, const u8 *osen_ie, size_t osen_ie_len)
 
int wpa_auth_uses_mfp (struct wpa_state_machine *sm)
 
struct wpa_state_machinewpa_auth_sta_init (struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *p2p_dev_addr)
 
int wpa_auth_sta_associated (struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm)
 
void wpa_auth_sta_no_wpa (struct wpa_state_machine *sm)
 
void wpa_auth_sta_deinit (struct wpa_state_machine *sm)
 
void wpa_receive (struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len)
 
void wpa_remove_ptk (struct wpa_state_machine *sm)
 
int wpa_auth_sm_event (struct wpa_state_machine *sm, enum wpa_event event)
 
void wpa_auth_sm_notify (struct wpa_state_machine *sm)
 
void wpa_gtk_rekey (struct wpa_authenticator *wpa_auth)
 
int wpa_get_mib (struct wpa_authenticator *wpa_auth, char *buf, size_t buflen)
 
int wpa_get_mib_sta (struct wpa_state_machine *sm, char *buf, size_t buflen)
 
void wpa_auth_countermeasures_start (struct wpa_authenticator *wpa_auth)
 
int wpa_auth_pairwise_set (struct wpa_state_machine *sm)
 
int wpa_auth_get_pairwise (struct wpa_state_machine *sm)
 
int wpa_auth_sta_key_mgmt (struct wpa_state_machine *sm)
 
int wpa_auth_sta_wpa_version (struct wpa_state_machine *sm)
 
int wpa_auth_sta_clear_pmksa (struct wpa_state_machine *sm, struct rsn_pmksa_cache_entry *entry)
 
struct rsn_pmksa_cache_entrywpa_auth_sta_get_pmksa (struct wpa_state_machine *sm)
 
void wpa_auth_sta_local_mic_failure_report (struct wpa_state_machine *sm)
 
const u8 * wpa_auth_get_wpa_ie (struct wpa_authenticator *wpa_auth, size_t *len)
 
int wpa_auth_pmksa_add (struct wpa_state_machine *sm, const u8 *pmk, int session_timeout, struct eapol_state_machine *eapol)
 
int wpa_auth_pmksa_add_preauth (struct wpa_authenticator *wpa_auth, const u8 *pmk, size_t len, const u8 *sta_addr, int session_timeout, struct eapol_state_machine *eapol)
 
int wpa_auth_pmksa_add_sae (struct wpa_authenticator *wpa_auth, const u8 *addr, const u8 *pmk)
 
void wpa_auth_pmksa_remove (struct wpa_authenticator *wpa_auth, const u8 *sta_addr)
 
int wpa_auth_sta_set_vlan (struct wpa_state_machine *sm, int vlan_id)
 
void wpa_auth_eapol_key_tx_status (struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack)
 
void wpa_wnmsleep_rekey_gtk (struct wpa_state_machine *sm)
 
void wpa_set_wnmsleep (struct wpa_state_machine *sm, int flag)
 
int wpa_wnmsleep_gtk_subelem (struct wpa_state_machine *sm, u8 *pos)
 
int wpa_wnmsleep_igtk_subelem (struct wpa_state_machine *sm, u8 *pos)
 
int wpa_auth_uses_sae (struct wpa_state_machine *sm)
 
int wpa_auth_uses_ft_sae (struct wpa_state_machine *sm)
 
int wpa_auth_get_ip_addr (struct wpa_state_machine *sm, u8 *addr)
 
int wpa_auth_radius_das_disconnect_pmksa (struct wpa_authenticator *wpa_auth, struct radius_das_attrs *attr)
 
void wpa_auth_reconfig_group_keys (struct wpa_authenticator *wpa_auth)
 

Variables

struct ft_rrb_frame STRUCT_PACKED
 

Detailed Description

hostapd - IEEE 802.11i-2004 / WPA Authenticator

Function Documentation

void wpa_deinit ( struct wpa_authenticator wpa_auth)

Deinitialize WPA authenticator.

Parameters
wpa_authPointer to WPA authenticator data from wpa_init()
struct wpa_authenticator* wpa_init ( const u8 *  addr,
struct wpa_auth_config conf,
struct wpa_auth_callbacks cb 
)

Initialize WPA authenticator.

Parameters
addrAuthenticator address
confConfiguration for WPA authenticator
cbCallback functions for WPA authenticator
Returns
Pointer to WPA authenticator data or NULL on failure
int wpa_reconfig ( struct wpa_authenticator wpa_auth,
struct wpa_auth_config conf 
)

Update WPA authenticator configuration.

Parameters
wpa_authPointer to WPA authenticator data from wpa_init()
confConfiguration for WPA authenticator