Classes | Defines | Enumerations | Functions | Variables
wpa_auth.h File Reference
#include "common/defs.h"
#include "common/eapol_common.h"
#include "common/wpa_common.h"
Include dependency graph for wpa_auth.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Defines

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

Enumerations

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  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_event {
  WPA_AUTH, WPA_ASSOC, WPA_DISASSOC, WPA_DEAUTH,
  WPA_REAUTH, WPA_REAUTH_EAPOL, WPA_ASSOC_FT
}

Functions

void wpa_auth_countermeasures_start (struct wpa_authenticator *wpa_auth)
int wpa_auth_get_pairwise (struct wpa_state_machine *sm)
const u8 * wpa_auth_get_wpa_ie (struct wpa_authenticator *wpa_auth, size_t *len)
int wpa_auth_pairwise_set (struct wpa_state_machine *sm)
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_sm_event (struct wpa_state_machine *sm, wpa_event event)
void wpa_auth_sm_notify (struct wpa_state_machine *sm)
int wpa_auth_sta_associated (struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm)
int wpa_auth_sta_clear_pmksa (struct wpa_state_machine *sm, struct rsn_pmksa_cache_entry *entry)
void wpa_auth_sta_deinit (struct wpa_state_machine *sm)
struct rsn_pmksa_cache_entrywpa_auth_sta_get_pmksa (struct wpa_state_machine *sm)
struct wpa_state_machinewpa_auth_sta_init (struct wpa_authenticator *wpa_auth, const u8 *addr)
int wpa_auth_sta_key_mgmt (struct wpa_state_machine *sm)
void wpa_auth_sta_local_mic_failure_report (struct wpa_state_machine *sm)
void wpa_auth_sta_no_wpa (struct wpa_state_machine *sm)
int wpa_auth_sta_set_vlan (struct wpa_state_machine *sm, int vlan_id)
int wpa_auth_sta_wpa_version (struct wpa_state_machine *sm)
int wpa_auth_uses_mfp (struct wpa_state_machine *sm)
void wpa_deinit (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_gtk_rekey (struct wpa_authenticator *wpa_auth)
struct wpa_authenticatorwpa_init (const u8 *addr, struct wpa_auth_config *conf, struct wpa_auth_callbacks *cb)
void wpa_receive (struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len)
int wpa_reconfig (struct wpa_authenticator *wpa_auth, struct wpa_auth_config *conf)
void wpa_remove_ptk (struct wpa_state_machine *sm)
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)

Variables

struct ft_rrb_frame STRUCT_PACKED

Define Documentation

#define FT_PACKET_R0KH_R1KH_PULL   200

Definition at line 44 of file wpa_auth.h.

#define FT_PACKET_R0KH_R1KH_PUSH   202

Definition at line 46 of file wpa_auth.h.

#define FT_PACKET_R0KH_R1KH_RESP   201

Definition at line 45 of file wpa_auth.h.

#define FT_PACKET_REQUEST   0

Definition at line 41 of file wpa_auth.h.

#define FT_PACKET_RESPONSE   1

Definition at line 42 of file wpa_auth.h.

#define FT_R0KH_R1KH_PULL_DATA_LEN   44

Definition at line 48 of file wpa_auth.h.

#define FT_R0KH_R1KH_PUSH_DATA_LEN   88

Definition at line 50 of file wpa_auth.h.

#define FT_R0KH_R1KH_RESP_DATA_LEN   76

Definition at line 49 of file wpa_auth.h.

Definition at line 39 of file wpa_auth.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
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 

Definition at line 212 of file wpa_auth.h.

Enumerator:
LOGGER_DEBUG 
LOGGER_INFO 
LOGGER_WARNING 

Definition at line 166 of file wpa_auth.h.

Enumerator:
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 

Definition at line 170 of file wpa_auth.h.

enum wpa_event
Enumerator:
WPA_AUTH 
WPA_ASSOC 
WPA_DISASSOC 
WPA_DEAUTH 
WPA_REAUTH 
WPA_REAUTH_EAPOL 
WPA_ASSOC_FT 

Definition at line 233 of file wpa_auth.h.


Function Documentation

Definition at line 2484 of file wpa_auth.c.

Definition at line 2497 of file wpa_auth.c.

const u8* wpa_auth_get_wpa_ie ( struct wpa_authenticator wpa_auth,
size_t *  len 
)

Definition at line 2543 of file wpa_auth.c.

Definition at line 2491 of file wpa_auth.c.

int wpa_auth_pmksa_add ( struct wpa_state_machine sm,
const u8 *  pmk,
int  session_timeout,
struct eapol_state_machine eapol 
)

Definition at line 2552 of file wpa_auth.c.

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 
)

Definition at line 2567 of file wpa_auth.c.

int wpa_auth_sm_event ( struct wpa_state_machine sm,
wpa_event  event 
)

Definition at line 1257 of file wpa_auth.c.

void wpa_auth_sm_notify ( struct wpa_state_machine sm)

Definition at line 2267 of file wpa_auth.c.

int wpa_auth_sta_associated ( struct wpa_authenticator wpa_auth,
struct wpa_state_machine sm 
)

Definition at line 494 of file wpa_auth.c.

int wpa_auth_sta_clear_pmksa ( struct wpa_state_machine sm,
struct rsn_pmksa_cache_entry entry 
)

Definition at line 2519 of file wpa_auth.c.

void wpa_auth_sta_deinit ( struct wpa_state_machine sm)

Definition at line 551 of file wpa_auth.c.

Definition at line 2530 of file wpa_auth.c.

struct wpa_state_machine* wpa_auth_sta_init ( struct wpa_authenticator wpa_auth,
const u8 *  addr 
) [read]

Definition at line 478 of file wpa_auth.c.

Definition at line 2503 of file wpa_auth.c.

Definition at line 2536 of file wpa_auth.c.

void wpa_auth_sta_no_wpa ( struct wpa_state_machine sm)

Definition at line 528 of file wpa_auth.c.

int wpa_auth_sta_set_vlan ( struct wpa_state_machine sm,
int  vlan_id 
)

Definition at line 2605 of file wpa_auth.c.

Definition at line 2511 of file wpa_auth.c.

int wpa_auth_uses_mfp ( struct wpa_state_machine sm)

Definition at line 865 of file wpa_auth_ie.c.

void wpa_deinit ( struct wpa_authenticator wpa_auth)

wpa_deinit - Deinitialize WPA authenticator : Pointer to WPA authenticator data from wpa_init()

Definition at line 412 of file wpa_auth.c.

int wpa_get_mib ( struct wpa_authenticator wpa_auth,
char *  buf,
size_t  buflen 
)

Definition at line 2326 of file wpa_auth.c.

int wpa_get_mib_sta ( struct wpa_state_machine sm,
char *  buf,
size_t  buflen 
)

Definition at line 2413 of file wpa_auth.c.

void wpa_gtk_rekey ( struct wpa_authenticator wpa_auth)

Definition at line 2275 of file wpa_auth.c.

struct wpa_authenticator* wpa_init ( const u8 *  addr,
struct wpa_auth_config conf,
struct wpa_auth_callbacks cb 
) [read]

wpa_init - Initialize WPA authenticator : Authenticator address : Configuration for WPA authenticator : Callback functions for WPA authenticator Returns: Pointer to WPA authenticator data or NULL on failure

Definition at line 348 of file wpa_auth.c.

void wpa_receive ( struct wpa_authenticator wpa_auth,
struct wpa_state_machine sm,
u8 *  data,
size_t  data_len 
)

Definition at line 654 of file wpa_auth.c.

int wpa_reconfig ( struct wpa_authenticator wpa_auth,
struct wpa_auth_config conf 
)

wpa_reconfig - Update WPA authenticator configuration : Pointer to WPA authenticator data from wpa_init() : Configuration for WPA authenticator

Definition at line 449 of file wpa_auth.c.

void wpa_remove_ptk ( struct wpa_state_machine sm)

Definition at line 1246 of file wpa_auth.c.

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 
)

Definition at line 452 of file wpa_auth_ie.c.


Variable Documentation



wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:25