Need help with code-structur according EAP-TLS and the 4-way handshake

Jouni Malinen j at w1.fi
Wed Oct 29 14:55:01 EDT 2008


On Wed, Oct 29, 2008 at 11:54:01AM +0100, Arne Keller wrote:

> I'm trying to understand the hostapd code for a time now ;)
> In the moment I understood the way the state machine in wpa.c works, especially by reading the ieee 802.11i standard.
> 
> My problem is that I can't find the point where hostapd starts the state machine in wpa.c after a successfull EAP-TLS communication. Can somebody tell me where the link is between EAP-SUCCESS and starting the 4-WAY HANDSHAKE?

The state machine is running all the time when the STA is associated.
The EAPOL and WPA Authenticator state machines are synchronized with
keyRun and keyAvailable variables, i.e., WPA waits in AUTHENTICATION2
until EAPOL is ready to start key transmission (keyRun is set to TRUE)
and then WPA state machine waits in INITPMK until EAPOL indicates that
key (MSK, i.e., source for PMK) is available (keyAvailable is set to
TRUE).
 
-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list