Hello! I have a little problem with developing new EAP method. The problem is with the internal data which are used between subsequent EAP request (handler->opaque). 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? Regards Piotr Marnik -- Piotr Marnik e-mail: piotr.marnik@gmail.com icq: 319887763, gg: 8097221
Piotr Marnik <piotr.marnik@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. Which EAP method are you implementing? Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
Dnia poniedziaĆek, 31 lipca 2006 18:31, Alan DeKok napisaĆ:
Piotr Marnik <piotr.marnik@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@gmail.com icq: 319887763, gg: 8097221
participants (2)
-
Alan DeKok -
Piotr Marnik