Arran Cudbard-Bell [Wed, 20 Feb 2013 23:01:13 +0000 (18:01 -0500)]
Remove conn
Arran Cudbard-Bell [Wed, 20 Feb 2013 22:04:47 +0000 (14:04 -0800)]
Merge pull request #203 from alanbuxey/master
goodbye policy.txt
Arran Cudbard-Bell [Wed, 20 Feb 2013 22:00:34 +0000 (17:00 -0500)]
Avoid calling fr_connection_reconnect if were in a create call
Arran Cudbard-Bell [Wed, 20 Feb 2013 19:43:25 +0000 (14:43 -0500)]
More docs, rename struct from auth_req to request
Alan Buxey [Wed, 20 Feb 2013 21:55:54 +0000 (21:55 +0000)]
goodbye policy.txt
remove policy.txt to stop errors on make install etc
Alan T. DeKok [Wed, 20 Feb 2013 19:39:08 +0000 (20:39 +0100)]
No longer need LT_OBJDIR
Arran Cudbard-Bell [Wed, 20 Feb 2013 19:28:22 +0000 (14:28 -0500)]
Some documentation for the request struct
Alan T. DeKok [Wed, 20 Feb 2013 17:27:16 +0000 (18:27 +0100)]
Remove --with-system-libtool/libltdl
They no longer work
Alan T. DeKok [Wed, 20 Feb 2013 16:57:02 +0000 (11:57 -0500)]
Disable strict aliasing.
Linus isn't wrong
Alan T. DeKok [Wed, 20 Feb 2013 16:56:26 +0000 (11:56 -0500)]
Build raddb/, too
Alan T. DeKok [Wed, 20 Feb 2013 16:56:14 +0000 (11:56 -0500)]
Last fix to colourise stuff
Alan T. DeKok [Wed, 20 Feb 2013 15:53:04 +0000 (10:53 -0500)]
reset only if we changed the colors
Alan T. DeKok [Wed, 20 Feb 2013 15:51:54 +0000 (10:51 -0500)]
Colorise only if we mean to
Parse the flag into an intermediate variable, otherwise it's
enabled immediately.
Then, turn the main variable on ONLY if the intermediate is set,
AND the various preconditions are satisfied
Alan T. DeKok [Wed, 20 Feb 2013 15:26:23 +0000 (16:26 +0100)]
iUpdate configure to have AC_OUTPUT
apparently it's required
Alan T. DeKok [Wed, 20 Feb 2013 14:36:29 +0000 (09:36 -0500)]
FIx build errors
Arran Cudbard-Bell [Wed, 20 Feb 2013 14:41:39 +0000 (09:41 -0500)]
Revert "Unlock mutex when we find a matching connection"
This reverts commit
84fa208a76fc6415d4e5f4c6cb4f1101799b3c89.
Alan T. DeKok [Wed, 20 Feb 2013 14:34:13 +0000 (15:34 +0100)]
Re-run autoconf
Alan T. DeKok [Wed, 20 Feb 2013 14:33:57 +0000 (15:33 +0100)]
Add missing JLIBTOOL definition
Alan T. DeKok [Wed, 20 Feb 2013 14:19:58 +0000 (09:19 -0500)]
Remove option to NOT use boilermake
We now always use boilermake.
Alan T. DeKok [Wed, 20 Feb 2013 14:17:59 +0000 (09:17 -0500)]
Remove the old build system.
Alan T. DeKok [Wed, 20 Feb 2013 13:40:54 +0000 (08:40 -0500)]
Make EAP-Key-Name things work
Alan T. DeKok [Wed, 20 Feb 2013 04:40:07 +0000 (23:40 -0500)]
Simplify warning message
Alan T. DeKok [Wed, 20 Feb 2013 04:35:10 +0000 (23:35 -0500)]
Fix compiler warning
Alan T. DeKok [Wed, 20 Feb 2013 04:32:39 +0000 (23:32 -0500)]
Remove compiler warning
Alan T. DeKok [Wed, 20 Feb 2013 04:32:10 +0000 (23:32 -0500)]
Unknown types in CONF_PARSER are catastrophic failures
Arran Cudbard-Bell [Tue, 19 Feb 2013 23:05:54 +0000 (18:05 -0500)]
Remove last reference to cf_section_parse_free
Arran Cudbard-Bell [Tue, 19 Feb 2013 22:17:24 +0000 (17:17 -0500)]
Fixup documentation
Alan T. DeKok [Tue, 19 Feb 2013 22:17:36 +0000 (17:17 -0500)]
Associate client lists with a parent section.
We now have no talloc leaks on exit.
We still have a few listeners leaked on exit, but that's mostly
because they haven't yet been converted to talloc
Alan T. DeKok [Tue, 19 Feb 2013 22:12:54 +0000 (17:12 -0500)]
-M implies -m, too
Alan T. DeKok [Tue, 19 Feb 2013 22:10:28 +0000 (17:10 -0500)]
Remove compile warnings
Alan T. DeKok [Tue, 19 Feb 2013 21:21:43 +0000 (16:21 -0500)]
Re-add TGT_PREREQS for libfreeradius-radius
Alan T. DeKok [Tue, 19 Feb 2013 14:42:00 +0000 (09:42 -0500)]
Use destructor
Alan T. DeKok [Tue, 19 Feb 2013 03:27:55 +0000 (22:27 -0500)]
Shouldn't be any config when we boot
Alan T. DeKok [Tue, 19 Feb 2013 02:40:49 +0000 (21:40 -0500)]
Require that the modules call talloc for their instance handle.
The server builds, but it WILL have talloc/malloc conflicts, as
the modules have not been updated.
The assumption here is that the modules return an instance handle,
EVEN IF they haev an error. The server core will now take care
of calling the appropriate detach() method.
Arran Cudbard-Bell [Mon, 18 Feb 2013 22:12:38 +0000 (17:12 -0500)]
Convert rad_alloc and rad_free to use talloc
Arran Cudbard-Bell [Mon, 18 Feb 2013 22:27:18 +0000 (17:27 -0500)]
Talloc REQUESTs
Alan T. DeKok [Tue, 19 Feb 2013 00:09:36 +0000 (19:09 -0500)]
Move virtual servers to talloc
Alan T. DeKok [Tue, 19 Feb 2013 00:09:11 +0000 (19:09 -0500)]
Clean up modules, etc. before freeing mainconfig
Alan T. DeKok [Tue, 19 Feb 2013 00:08:43 +0000 (19:08 -0500)]
Use talloc for clients.c
Alan T. DeKok [Mon, 18 Feb 2013 22:05:27 +0000 (17:05 -0500)]
Make modules use talloc
Alan T. DeKok [Mon, 18 Feb 2013 21:48:47 +0000 (16:48 -0500)]
Move all conf file stuff to talloc
Alan T. DeKok [Mon, 18 Feb 2013 21:48:36 +0000 (16:48 -0500)]
Move all pair* to talloc
Arran Cudbard-Bell [Mon, 18 Feb 2013 20:55:18 +0000 (15:55 -0500)]
Use talloc functions to allocate and free valuepairs
Arran Cudbard-Bell [Mon, 18 Feb 2013 20:47:19 +0000 (15:47 -0500)]
Add context pointer to pairalloc
Arran Cudbard-Bell [Tue, 19 Feb 2013 00:33:04 +0000 (19:33 -0500)]
Add talloc memory report on -M
Arran Cudbard-Bell [Mon, 18 Feb 2013 20:10:25 +0000 (15:10 -0500)]
Add libtalloc to version.c
Alan T. DeKok [Mon, 18 Feb 2013 20:00:33 +0000 (15:00 -0500)]
Use talloc
Arran Cudbard-Bell [Tue, 19 Feb 2013 02:32:49 +0000 (21:32 -0500)]
Cleanup checkval
Arran Cudbard-Bell [Tue, 19 Feb 2013 02:21:39 +0000 (21:21 -0500)]
Cleanup chap
Arran Cudbard-Bell [Tue, 19 Feb 2013 19:14:33 +0000 (14:14 -0500)]
Set vp->next to NULL on copy vp data
Arran Cudbard-Bell [Tue, 19 Feb 2013 17:48:53 +0000 (12:48 -0500)]
Update configure script to add -ltalloc
Alan T. DeKok [Tue, 19 Feb 2013 00:41:06 +0000 (19:41 -0500)]
Don't free parsed items
Alan T. DeKok [Mon, 18 Feb 2013 22:59:10 +0000 (17:59 -0500)]
Allocate from the dict pool, not via malloc
Arran Cudbard-Bell [Tue, 19 Feb 2013 15:28:49 +0000 (10:28 -0500)]
vp_prints should check for NULL da
Alan T. DeKok [Tue, 19 Feb 2013 14:54:57 +0000 (09:54 -0500)]
Print out better message on operations error
Alan T. DeKok [Tue, 19 Feb 2013 14:56:46 +0000 (09:56 -0500)]
Make more debug messages errors
So that problems with the client are highlighted
Alan T. DeKok [Tue, 19 Feb 2013 18:13:09 +0000 (13:13 -0500)]
Removed unused definitions for LTDL
Alan T. DeKok [Mon, 18 Feb 2013 21:24:54 +0000 (16:24 -0500)]
Don't use strncpy
Arran Cudbard-Bell [Tue, 19 Feb 2013 17:17:16 +0000 (12:17 -0500)]
Change slightly confusing log message
Arran Cudbard-Bell [Tue, 19 Feb 2013 00:42:01 +0000 (19:42 -0500)]
dict_attr_free should check pointer value
Alan T. DeKok [Mon, 18 Feb 2013 21:14:07 +0000 (16:14 -0500)]
Older systems don't have strlcpy
Alan T. DeKok [Mon, 18 Feb 2013 21:12:43 +0000 (16:12 -0500)]
Don't free config data manually.
Arran Cudbard-Bell [Mon, 18 Feb 2013 19:14:39 +0000 (14:14 -0500)]
Set vp_strvalue to NULL if the pair is marked for xlat
Alan T. DeKok [Mon, 18 Feb 2013 19:02:43 +0000 (14:02 -0500)]
Call cf_section_parse_free before freeing sub-modules
Alan T. DeKok [Mon, 18 Feb 2013 19:02:15 +0000 (14:02 -0500)]
No longer need to free conf file stuff manually.
Alan T. DeKok [Mon, 18 Feb 2013 19:01:56 +0000 (14:01 -0500)]
Call cf_section_parse_free before calling the module detach
Alan T. DeKok [Mon, 18 Feb 2013 19:01:32 +0000 (14:01 -0500)]
cf_section_parse_free() recurses into sub-sections
Alan T. DeKok [Mon, 18 Feb 2013 18:29:57 +0000 (13:29 -0500)]
Fix coverity errors
Alan T. DeKok [Mon, 18 Feb 2013 18:28:12 +0000 (13:28 -0500)]
Unlock mutex when we find a matching connection
Alan T. DeKok [Mon, 18 Feb 2013 18:26:54 +0000 (13:26 -0500)]
Free newfd on error
Alan T. DeKok [Mon, 18 Feb 2013 18:26:03 +0000 (13:26 -0500)]
Free correct VP
Alan T. DeKok [Mon, 18 Feb 2013 18:23:18 +0000 (13:23 -0500)]
One more check for size > 253
Alan T. DeKok [Mon, 18 Feb 2013 18:18:06 +0000 (13:18 -0500)]
Add empty field to struct
Arran Cudbard-Bell [Mon, 18 Feb 2013 18:03:56 +0000 (13:03 -0500)]
Fix for coverity (missed mutex free)
Alan T. DeKok [Mon, 18 Feb 2013 17:16:22 +0000 (12:16 -0500)]
More debug macros
DEBUGE, DEBUGW, for errors / warnings. RDEBUG*, too.
This lets the errors and warnings have a common format, so that
the messages don't need to use an explicit "WARNING" string.
It also means that they are now colorized:
warning = bold + yellow
error = bold + red
This should hopefully help people who have issues reading the
debug output
Alan T. DeKok [Mon, 18 Feb 2013 16:32:23 +0000 (11:32 -0500)]
Turn colorize off only if it was one
Arran Cudbard-Bell [Mon, 18 Feb 2013 16:45:22 +0000 (11:45 -0500)]
Check return code of pairmark_xlat
Arran Cudbard-Bell [Mon, 18 Feb 2013 16:45:07 +0000 (11:45 -0500)]
Whitespace fixes
Arran Cudbard-Bell [Mon, 18 Feb 2013 16:33:47 +0000 (11:33 -0500)]
value.xlat should be set to NULL after being freed
Alan T. DeKok [Mon, 18 Feb 2013 16:24:39 +0000 (11:24 -0500)]
Simplify copying of xlat value
Alan T. DeKok [Mon, 18 Feb 2013 16:17:07 +0000 (11:17 -0500)]
Remove L_CONS
Arran Cudbard-Bell [Mon, 18 Feb 2013 16:29:50 +0000 (11:29 -0500)]
Remove redundant checks for colourisation
Arran Cudbard-Bell [Mon, 18 Feb 2013 15:42:09 +0000 (10:42 -0500)]
Check whether it's appropriate to output colourised log messages
Arran Cudbard-Bell [Mon, 18 Feb 2013 07:50:49 +0000 (02:50 -0500)]
Quick hack for colourising log output to stderr/stdout
Arran Cudbard-Bell [Mon, 18 Feb 2013 07:49:51 +0000 (02:49 -0500)]
Write newline on buffer truncation too
Arran Cudbard-Bell [Sun, 17 Feb 2013 20:55:11 +0000 (15:55 -0500)]
Be explicit about why were not building rlm_rest
Arran Cudbard-Bell [Sun, 17 Feb 2013 20:44:59 +0000 (15:44 -0500)]
Update autoconf.h.in
Arran Cudbard-Bell [Sun, 17 Feb 2013 20:42:48 +0000 (15:42 -0500)]
Check for libcurl >= 17.9.1
Disable definitions for ancient code depending on libcurl
Alan T. DeKok [Sun, 17 Feb 2013 20:38:52 +0000 (15:38 -0500)]
dir can't be NULL
Alan T. DeKok [Sun, 17 Feb 2013 20:37:32 +0000 (15:37 -0500)]
Check pointers before using them
Alan T. DeKok [Sun, 17 Feb 2013 20:35:22 +0000 (15:35 -0500)]
Check length of ascend secrets
Alan T. DeKok [Sun, 17 Feb 2013 20:22:30 +0000 (15:22 -0500)]
Remove finger functionality from radwho. No one uses it (or should)
Alan T. DeKok [Sun, 17 Feb 2013 20:19:03 +0000 (15:19 -0500)]
Check for NULL before incrementing
Alan T. DeKok [Sun, 17 Feb 2013 20:16:18 +0000 (15:16 -0500)]
Check array[0], not array
Alan T. DeKok [Sun, 17 Feb 2013 20:15:25 +0000 (15:15 -0500)]
Error if the dictionaries weren't initialized
Alan T. DeKok [Sun, 17 Feb 2013 20:14:22 +0000 (15:14 -0500)]
Correct args to memset
Alan T. DeKok [Sun, 17 Feb 2013 20:13:19 +0000 (15:13 -0500)]
Use strlcpy instead of strcpy
Alan T. DeKok [Sun, 17 Feb 2013 20:12:32 +0000 (15:12 -0500)]
Use sizeof instead of strlen
Alan T. DeKok [Sun, 17 Feb 2013 20:11:31 +0000 (15:11 -0500)]
Return on error
Alan T. DeKok [Sun, 17 Feb 2013 20:09:16 +0000 (15:09 -0500)]
EOL is EOL