<div dir="ltr"><div>Hi,<br></div> Thanks for your suggestion, but my real concern is about, after first full authentication sm->EAP_state of server goes to EAP_SUCCESS state. For another authentication (fast re-authentication) I have to change the EAP_state from EAP_SUCCESS to some other state right? So, what would be that state?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 19, 2014 at 4:56 PM, Jouni Malinen <span dir="ltr"><<a href="mailto:j@w1.fi" target="_blank">j@w1.fi</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Wed, Feb 19, 2014 at 12:40:26PM +0530, samiran saha wrote:<br>
> I am trying to implement server client program using hostapd as<br>
> library that will at first complete full authentication process and then it<br>
> will do fast re-authentication using the re-authentication id received from<br>
> server. I have completed the first step i.e. full authentication process<br>
> using EAP-AKA but can not proceed further for fast re-authentication<br>
> because after full authentication server goes to EAP-SUCCESS state and if I<br>
> reinitialize the state machine then it allocate new sm . So how can I do<br>
> fast re-authentication, any clue or does hostapd support fast<br>
> re-authentication at all?<br>
<br>
</div></div>I'm not sure how you use "hostapd as a library", but anyway, hostapd as<br>
an independent process does support EAP-AKA fast re-authentication. The<br>
fast re-auth information is kept in memory by default, so if you<br>
reinitialize state completely, you will lose that data. You can enable<br>
CONFIG_SQLITE=y for the build and set eap_user_file to point to an<br>
SQLite database to use a database to store such information to<br>
persistent over hostapd restarts, so I'd assume that would work for you<br>
use case as well.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Jouni Malinen PGP id EFC895FA<br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</font></span></blockquote></div><br></div>