<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you for your reply. I found the solution. My system support
    event evoking in specified thread. So I decided, that separate
    authenticator will work in its own thread<big>.</big><br>
    <div class="moz-cite-prefix">On 09/26/2014 09:59 PM, Jouni Malinen
      wrote:<br>
    </div>
    <blockquote cite="mid:20140926175943.GB28323@w1.fi" type="cite">
      <pre wrap="">On Wed, Sep 24, 2014 at 11:51:37AM +0400, Shvedov Yury wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">So, to pull out eapol_auth from hostapd and put it to my project
correctly, I have to implement environment of hostapd such as eloop.
This is not problem, but problem is in thread safety. My project
have multi-thread nature unlike hostapd.

The question is: can someone give me an advice about
thread-protection of hostapd eap authenticator? Does each call use
some global data or I can leave some calls without lock supposing
that each entity (wireless client) handles in only one thread?
</pre>
      </blockquote>
      <pre wrap="">
There is no protection within the EAPOL or EAP authenticator
implementation for multi-threaded cases. If you are trying to use this
implementation from hostapd in a design where events may be indicated
from multiple threads concurrently, you would need to make sure that
there is no code path that can end up calling into the hostapd code
concurrently from multiple threads.
 
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Kind regards
Yury Shvedov</pre>
  </body>
</html>