eap authenticator

Shvedov Yury yshvedov at arccn.ru
Fri Sep 26 14:10:07 EDT 2014


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.
On 09/26/2014 09:59 PM, Jouni Malinen wrote:
> On Wed, Sep 24, 2014 at 11:51:37AM +0400, Shvedov Yury wrote:
>> 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?
> 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.
>   

-- 
Kind regards
Yury Shvedov

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20140926/c5d7f39c/attachment.htm>


More information about the HostAP mailing list