Accessing REQUEST structure data outside FreeRADIUS module

Joe Maimon jmaimon at ttec.com
Wed Apr 12 15:26:05 CEST 2006



Nicolas Castel wrote:

> 2006/4/12, Joe Maimon <jmaimon at ttec.com>:
> 
>>
>>Nicolas Castel wrote:
>>
>>
>>>Hello and thanks for replies
>>>
>>>I'm using FreeRADIUS v1.1.0. I'm developping  some modules and I try to
>>>access auth_req structure (REQUEST) data from an  external function (out of
>>>my module) and it fails. All works fine when  accessing this data from the
>>>module itself but when i call an external  function with the address of
>>>REQUEST, it doesn't work.
>>>
>>
>>>and  in anotherfile, lib_com.c
>>
>>What happens when your "external" function is in the same file as your
>>module function?
>>
>>-
>>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>
> 
> 
> Thanks for responding,
> 
> When i put the function in the module all works fine too.
> 

Let me rewrite that:

When you put the function into the same c language file as the rest of 
the module functions, all works fine.

If that is correct, than I would suggest you are having an include file 
problem and/or a linking problem.

If I am correct, there isnt much I can do without seeing your code other 
than suggest you duplicate what you do for the file that works and/or 
you examine other successfull built modules with multiple files and 
their build process.

Of course, I could be very wide off the mark here.





More information about the Freeradius-Users mailing list