radiusclient thread-safety
Alan DeKok
aland at deployingradius.com
Tue Mar 2 09:22:47 CET 2010
Alex Massover wrote:
> Also regardless of rc_handle the lib has a lot of non-reentrant
> functions (inet_ntoa, localtime, gmtime, random, rand...).
> Does it supposed to be thread-safe even if there's no logical
> issue with rc_handle?
Probably not.
For a thread-safe RADIUS client library (LGPL), see freeradius-server,
src/lib. See src/main/radclient.c for an example client.
The client doesn't use threads. But the functions in src/lib are
thread-safe if they're protected by a mutex lock.
Alan DeKok.
More information about the Freeradius-Devel
mailing list