<div dir="ltr">The SessID need not be stored over restarts. What I was hoping is that the first time I use the NAI as <a href="mailto:abc@example.com">abc@example.com</a> but for reauthentication I use <a href="mailto:abc@example.com">abc@example.com</a>+sessid.<div>
<br></div><div>Should this be supplied in the init_for_reauth() method somehow?</div><div><br></div><div>Thanks</div><div>Khali</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 10, 2014 at 11:00 AM, Jouni Malinen <span dir="ltr">&lt;<a href="mailto:j@w1.fi" target="_blank">j@w1.fi</a>&gt;</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 Sat, Aug 09, 2014 at 08:25:30PM +0300, khali singh wrote:<br>
&gt; I have implemented a new EAP method. It works fine for the first connection<br>
&gt; attempt and upon providing proper credentials, a supplicant can<br>
&gt; successfully complete the handshake and receive the PMK.<br>
&gt;<br>
&gt; But now I want to handle the case when the key expires. And I want to do an<br>
&gt; abbreviated handshake based on the previous exchange. So I want to send the<br>
&gt; SessID (session ID) along with the original NAI that was used.<br>
&gt; But I understood that the NAI is specified in the configuration file of the<br>
&gt; supplicant and not in the EAP method. How do I append a SessID to the NAI<br>
&gt; before it is sent over the network. Note, this should only be done if there<br>
&gt; has been a previous successful handshake before.<br>
<br>
</div></div>If you do not need to store the SessID over wpa_supplicant restarts, you<br>
can maintain this within the EAP peer method (see deinit_for_reauth() and<br>
init_for_reauth() callbacks).<br>
<br>
Or are you referring to using EAP-Identity method instead of EAP<br>
messages specific to this new EAP method? If so, use the get_identity()<br>
callback.<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>