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

Internal WPA/RSN supplicant state machine definitions. More...

#include "utils/list.h"

Go to the source code of this file.

Data Structures

struct  wpa_sm
 Internal WPA state machine data. More...
 

Functions

void wpa_eapol_key_send (struct wpa_sm *sm, const u8 *kck, size_t kck_len, int ver, const u8 *dest, u16 proto, u8 *msg, size_t msg_len, u8 *key_mic)
 Send WPA/RSN EAPOL-Key message. More...
 
int wpa_supplicant_send_2_of_4 (struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, int ver, const u8 *nonce, const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ptk *ptk)
 Send message 2 of WPA/RSN 4-Way Handshake. More...
 
int wpa_supplicant_send_4_of_4 (struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, u16 ver, u16 key_info, struct wpa_ptk *ptk)
 Send message 4 of WPA/RSN 4-Way Handshake. More...
 
int wpa_derive_ptk_ft (struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, struct wpa_ptk *ptk)
 
void wpa_tdls_assoc (struct wpa_sm *sm)
 
void wpa_tdls_disassoc (struct wpa_sm *sm)
 

Detailed Description

Internal WPA/RSN supplicant state machine definitions.

Function Documentation

void wpa_eapol_key_send ( struct wpa_sm sm,
const u8 *  kck,
size_t  kck_len,
int  ver,
const u8 *  dest,
u16  proto,
u8 *  msg,
size_t  msg_len,
u8 *  key_mic 
)

Send WPA/RSN EAPOL-Key message.

Parameters
smPointer to WPA state machine data from wpa_sm_init()
kckKey Confirmation Key (KCK, part of PTK)
kck_lenKCK length in octets
verVersion field from Key Info
destDestination address for the frame
protoEthertype (usually ETH_P_EAPOL)
msgEAPOL-Key message
msg_lenLength of message
key_micPointer to the buffer to which the EAPOL-Key MIC is written
int wpa_supplicant_send_2_of_4 ( struct wpa_sm sm,
const unsigned char *  dst,
const struct wpa_eapol_key key,
int  ver,
const u8 *  nonce,
const u8 *  wpa_ie,
size_t  wpa_ie_len,
struct wpa_ptk ptk 
)

Send message 2 of WPA/RSN 4-Way Handshake.

Parameters
smPointer to WPA state machine data from wpa_sm_init()
dstDestination address for the frame
keyPointer to the EAPOL-Key frame header
verVersion bits from EAPOL-Key Key Info
nonceNonce value for the EAPOL-Key frame
wpa_ieWPA/RSN IE
wpa_ie_lenLength of the WPA/RSN IE
ptkPTK to use for keyed hash and encryption
Returns
0 on success, -1 on failure
int wpa_supplicant_send_4_of_4 ( struct wpa_sm sm,
const unsigned char *  dst,
const struct wpa_eapol_key key,
u16  ver,
u16  key_info,
struct wpa_ptk ptk 
)

Send message 4 of WPA/RSN 4-Way Handshake.

Parameters
smPointer to WPA state machine data from wpa_sm_init()
dstDestination address for the frame
keyPointer to the EAPOL-Key frame header
verVersion bits from EAPOL-Key Key Info
key_infoKey Info
ptkPTK to use for keyed hash and encryption
Returns
0 on success, -1 on failure