EAP method cleanup

Piotr Marnik piotr.marnik at gmail.com
Mon Jul 31 19:16:48 CEST 2006


Dnia poniedziałek, 31 lipca 2006 18:31, Alan DeKok napisał:
> Piotr Marnik <piotr.marnik at gmail.com> wrote:
> > My question is: how free session data when user breaks the session before
> > finish? From my observation free_opaque is called only once when method
> > finishes. But what about non finished sessions (intentionally or not)
> > which should be, after some delay, also removed. Is there any solution
> > for this problem?
>
>   See the source code.  Handlers are freed via eap_handler_free(),
> which always calls handler->free_opaque if it's set.
>
>   eap_handler_free() is always called to free a handler, and
> eap_list_find() takes care of calling eap_handler_free() for handlers
> that are too old.

Thanks! I will check how this exactly work.

>   Which EAP method are you implementing?

I'm working on EAP-IKEv2 implenetation.

Regards
Piotr Marnik
-- 
Piotr Marnik 
e-mail: piotr.marnik at gmail.com
icq: 319887763,    gg: 8097221 




More information about the Freeradius-Devel mailing list