wpa_i.h File Reference

wpa_supplicant - Internal WPA state machine definitions More...

This graph shows which files directly or indirectly include this file:

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, int ver, const u8 *dest, u16 proto, u8 *msg, size_t msg_len, u8 *key_mic)
 Send WPA/RSN EAPOL-Key message.
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.
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, const u8 *kde, size_t kde_len, struct wpa_ptk *ptk)
 Send message 4 of WPA/RSN 4-Way Handshake.
int wpa_derive_ptk_ft (struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, struct wpa_ptk *ptk, size_t ptk_len)

Detailed Description

wpa_supplicant - Internal WPA state machine definitions

Copyright
Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

Alternatively, this software may be distributed under the terms of BSD license.

See README and COPYING for more details.

Definition in file wpa_i.h.


Function Documentation

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

Send WPA/RSN EAPOL-Key message.

Parameters:
sm Pointer to WPA state machine data from wpa_sm_init()
kck Key Confirmation Key (KCK, part of PTK)
ver Version field from Key Info
dest Destination address for the frame
proto Ethertype (usually ETH_P_EAPOL)
msg EAPOL-Key message
msg_len Length of message
key_mic Pointer to the buffer to which the EAPOL-Key MIC is written

Definition at line 44 of file wpa.c.

Here is the call graph for this function:

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:
sm Pointer to WPA state machine data from wpa_sm_init()
dst Destination address for the frame
key Pointer to the EAPOL-Key frame header
ver Version bits from EAPOL-Key Key Info
nonce Nonce value for the EAPOL-Key frame
wpa_ie WPA/RSN IE
wpa_ie_len Length of the WPA/RSN IE
ptk PTK to use for keyed hash and encryption
Returns:
0 on success, -1 on failure

Definition at line 259 of file wpa.c.

Here is the call graph for this function:

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,
const u8 *  kde,
size_t  kde_len,
struct wpa_ptk ptk 
)

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

Parameters:
sm Pointer to WPA state machine data from wpa_sm_init()
dst Destination address for the frame
key Pointer to the EAPOL-Key frame header
ver Version bits from EAPOL-Key Key Info
key_info Key Info
kde KDEs to include the EAPOL-Key frame
kde_len Length of KDEs
ptk PTK to use for keyed hash and encryption
Returns:
0 on success, -1 on failure

Definition at line 843 of file wpa.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:22:15 2009 for hostapd by  doxygen 1.6.1