freeradius.git
11 years agoadded RFC6677 to the main include list
Alan Buxey [Thu, 7 Mar 2013 20:55:54 +0000 (20:55 +0000)]
added RFC6677 to the main include list

wont get used otherwise...

11 years agokeeping up with the RFCs
Alan Buxey [Thu, 7 Mar 2013 20:52:19 +0000 (20:52 +0000)]
keeping up with the RFCs

RFC 6677.  awaiting RFC-ietf-abfab-gss-eap-09 to be passed before
further dictionary changes

11 years agogoodbye policy.txt
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

11 years agoNo longer need LT_OBJDIR
Alan T. DeKok [Wed, 20 Feb 2013 19:39:08 +0000 (20:39 +0100)]
No longer need LT_OBJDIR

11 years agoSome documentation for the request struct
Arran Cudbard-Bell [Wed, 20 Feb 2013 19:28:22 +0000 (14:28 -0500)]
Some documentation for the request struct

11 years agoRemove --with-system-libtool/libltdl
Alan T. DeKok [Wed, 20 Feb 2013 17:27:16 +0000 (18:27 +0100)]
Remove --with-system-libtool/libltdl

They no longer work

11 years agoDisable strict aliasing.
Alan T. DeKok [Wed, 20 Feb 2013 16:57:02 +0000 (11:57 -0500)]
Disable strict aliasing.

Linus isn't wrong

11 years agoBuild raddb/, too
Alan T. DeKok [Wed, 20 Feb 2013 16:56:26 +0000 (11:56 -0500)]
Build raddb/, too

11 years agoLast fix to colourise stuff
Alan T. DeKok [Wed, 20 Feb 2013 16:56:14 +0000 (11:56 -0500)]
Last fix to colourise stuff

11 years agoreset only if we changed the colors
Alan T. DeKok [Wed, 20 Feb 2013 15:53:04 +0000 (10:53 -0500)]
reset only if we changed the colors

11 years agoColorise only if we mean to
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

11 years agoiUpdate configure to have AC_OUTPUT
Alan T. DeKok [Wed, 20 Feb 2013 15:26:23 +0000 (16:26 +0100)]
iUpdate configure to have AC_OUTPUT

apparently it's required

11 years agoFIx build errors
Alan T. DeKok [Wed, 20 Feb 2013 14:36:29 +0000 (09:36 -0500)]
FIx build errors

11 years agoRevert "Unlock mutex when we find a matching connection"
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.

11 years agoRe-run autoconf
Alan T. DeKok [Wed, 20 Feb 2013 14:34:13 +0000 (15:34 +0100)]
Re-run autoconf

11 years agoAdd missing JLIBTOOL definition
Alan T. DeKok [Wed, 20 Feb 2013 14:33:57 +0000 (15:33 +0100)]
Add missing JLIBTOOL definition

11 years agoRemove option to NOT use boilermake
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.

11 years agoRemove the old build system.
Alan T. DeKok [Wed, 20 Feb 2013 14:17:59 +0000 (09:17 -0500)]
Remove the old build system.

11 years agoMake EAP-Key-Name things work
Alan T. DeKok [Wed, 20 Feb 2013 13:40:54 +0000 (08:40 -0500)]
Make EAP-Key-Name things work

11 years agoSimplify warning message
Alan T. DeKok [Wed, 20 Feb 2013 04:40:07 +0000 (23:40 -0500)]
Simplify warning message

11 years agoFix compiler warning
Alan T. DeKok [Wed, 20 Feb 2013 04:35:10 +0000 (23:35 -0500)]
Fix compiler warning

11 years agoRemove compiler warning
Alan T. DeKok [Wed, 20 Feb 2013 04:32:39 +0000 (23:32 -0500)]
Remove compiler warning

11 years agoUnknown types in CONF_PARSER are catastrophic failures
Alan T. DeKok [Wed, 20 Feb 2013 04:32:10 +0000 (23:32 -0500)]
Unknown types in CONF_PARSER are catastrophic failures

11 years agoRemove last reference to cf_section_parse_free
Arran Cudbard-Bell [Tue, 19 Feb 2013 23:05:54 +0000 (18:05 -0500)]
Remove last reference to cf_section_parse_free

11 years agoFixup documentation
Arran Cudbard-Bell [Tue, 19 Feb 2013 22:17:24 +0000 (17:17 -0500)]
Fixup documentation

11 years agoAssociate client lists with a parent section.
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

11 years ago-M implies -m, too
Alan T. DeKok [Tue, 19 Feb 2013 22:12:54 +0000 (17:12 -0500)]
-M implies -m, too

11 years agoRemove compile warnings
Alan T. DeKok [Tue, 19 Feb 2013 22:10:28 +0000 (17:10 -0500)]
Remove compile warnings

11 years agoRe-add TGT_PREREQS for libfreeradius-radius
Alan T. DeKok [Tue, 19 Feb 2013 21:21:43 +0000 (16:21 -0500)]
Re-add TGT_PREREQS for libfreeradius-radius

11 years agoUse destructor
Alan T. DeKok [Tue, 19 Feb 2013 14:42:00 +0000 (09:42 -0500)]
Use destructor

11 years agoShouldn't be any config when we boot
Alan T. DeKok [Tue, 19 Feb 2013 03:27:55 +0000 (22:27 -0500)]
Shouldn't be any config when we boot

11 years agoRequire that the modules call talloc for their instance handle.
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.

11 years agoConvert rad_alloc and rad_free to use talloc
Arran Cudbard-Bell [Mon, 18 Feb 2013 22:12:38 +0000 (17:12 -0500)]
Convert rad_alloc and rad_free to use talloc

11 years agoTalloc REQUESTs
Arran Cudbard-Bell [Mon, 18 Feb 2013 22:27:18 +0000 (17:27 -0500)]
Talloc REQUESTs

11 years agoMove virtual servers to talloc
Alan T. DeKok [Tue, 19 Feb 2013 00:09:36 +0000 (19:09 -0500)]
Move virtual servers to talloc

11 years agoClean up modules, etc. before freeing mainconfig
Alan T. DeKok [Tue, 19 Feb 2013 00:09:11 +0000 (19:09 -0500)]
Clean up modules, etc. before freeing mainconfig

11 years agoUse talloc for clients.c
Alan T. DeKok [Tue, 19 Feb 2013 00:08:43 +0000 (19:08 -0500)]
Use talloc for clients.c

11 years agoMake modules use talloc
Alan T. DeKok [Mon, 18 Feb 2013 22:05:27 +0000 (17:05 -0500)]
Make modules use talloc

11 years agoMove all conf file stuff to talloc
Alan T. DeKok [Mon, 18 Feb 2013 21:48:47 +0000 (16:48 -0500)]
Move all conf file stuff to talloc

11 years agoMove all pair* to talloc
Alan T. DeKok [Mon, 18 Feb 2013 21:48:36 +0000 (16:48 -0500)]
Move all pair* to talloc

11 years agoUse talloc functions to allocate and free valuepairs
Arran Cudbard-Bell [Mon, 18 Feb 2013 20:55:18 +0000 (15:55 -0500)]
Use talloc functions to allocate and free valuepairs

11 years agoAdd context pointer to pairalloc
Arran Cudbard-Bell [Mon, 18 Feb 2013 20:47:19 +0000 (15:47 -0500)]
Add context pointer to pairalloc

11 years agoAdd talloc memory report on -M
Arran Cudbard-Bell [Tue, 19 Feb 2013 00:33:04 +0000 (19:33 -0500)]
Add talloc memory report on -M

11 years agoAdd libtalloc to version.c
Arran Cudbard-Bell [Mon, 18 Feb 2013 20:10:25 +0000 (15:10 -0500)]
Add libtalloc to version.c

11 years agoUse talloc
Alan T. DeKok [Mon, 18 Feb 2013 20:00:33 +0000 (15:00 -0500)]
Use talloc

11 years agoCleanup checkval
Arran Cudbard-Bell [Tue, 19 Feb 2013 02:32:49 +0000 (21:32 -0500)]
Cleanup checkval

11 years agoCleanup chap
Arran Cudbard-Bell [Tue, 19 Feb 2013 02:21:39 +0000 (21:21 -0500)]
Cleanup chap

11 years agoSet vp->next to NULL on copy vp data
Arran Cudbard-Bell [Tue, 19 Feb 2013 19:14:33 +0000 (14:14 -0500)]
Set vp->next to NULL on copy vp data

11 years agoUpdate configure script to add -ltalloc
Arran Cudbard-Bell [Tue, 19 Feb 2013 17:48:53 +0000 (12:48 -0500)]
Update configure script to add -ltalloc

11 years agoDon't free parsed items
Alan T. DeKok [Tue, 19 Feb 2013 00:41:06 +0000 (19:41 -0500)]
Don't free parsed items

11 years agoAllocate from the dict pool, not via malloc
Alan T. DeKok [Mon, 18 Feb 2013 22:59:10 +0000 (17:59 -0500)]
Allocate from the dict pool, not via malloc

11 years agovp_prints should check for NULL da
Arran Cudbard-Bell [Tue, 19 Feb 2013 15:28:49 +0000 (10:28 -0500)]
vp_prints should check for NULL da

11 years agoPrint out better message on operations error
Alan T. DeKok [Tue, 19 Feb 2013 14:54:57 +0000 (09:54 -0500)]
Print out better message on operations error

11 years agoMake more debug messages errors
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

11 years agoRemoved unused definitions for LTDL
Alan T. DeKok [Tue, 19 Feb 2013 18:13:09 +0000 (13:13 -0500)]
Removed unused definitions for LTDL

11 years agoDon't use strncpy
Alan T. DeKok [Mon, 18 Feb 2013 21:24:54 +0000 (16:24 -0500)]
Don't use strncpy

11 years agoChange slightly confusing log message
Arran Cudbard-Bell [Tue, 19 Feb 2013 17:17:16 +0000 (12:17 -0500)]
Change slightly confusing log message

11 years agodict_attr_free should check pointer value
Arran Cudbard-Bell [Tue, 19 Feb 2013 00:42:01 +0000 (19:42 -0500)]
dict_attr_free should check pointer value

11 years agoOlder systems don't have strlcpy
Alan T. DeKok [Mon, 18 Feb 2013 21:14:07 +0000 (16:14 -0500)]
Older systems don't have strlcpy

11 years agoDon't free config data manually.
Alan T. DeKok [Mon, 18 Feb 2013 21:12:43 +0000 (16:12 -0500)]
Don't free config data manually.

11 years agoSet vp_strvalue to NULL if the pair is marked for xlat
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

11 years agoCall cf_section_parse_free before freeing sub-modules
Alan T. DeKok [Mon, 18 Feb 2013 19:02:43 +0000 (14:02 -0500)]
Call cf_section_parse_free before freeing sub-modules

11 years agoNo longer need to free conf file stuff manually.
Alan T. DeKok [Mon, 18 Feb 2013 19:02:15 +0000 (14:02 -0500)]
No longer need to free conf file stuff manually.

11 years agoCall cf_section_parse_free before calling the module detach
Alan T. DeKok [Mon, 18 Feb 2013 19:01:56 +0000 (14:01 -0500)]
Call cf_section_parse_free before calling the module detach

11 years agocf_section_parse_free() recurses into sub-sections
Alan T. DeKok [Mon, 18 Feb 2013 19:01:32 +0000 (14:01 -0500)]
cf_section_parse_free() recurses into sub-sections

11 years agoFix coverity errors
Alan T. DeKok [Mon, 18 Feb 2013 18:29:57 +0000 (13:29 -0500)]
Fix coverity errors

11 years agoUnlock mutex when we find a matching connection
Alan T. DeKok [Mon, 18 Feb 2013 18:28:12 +0000 (13:28 -0500)]
Unlock mutex when we find a matching connection

11 years agoFree newfd on error
Alan T. DeKok [Mon, 18 Feb 2013 18:26:54 +0000 (13:26 -0500)]
Free newfd on error

11 years agoFree correct VP
Alan T. DeKok [Mon, 18 Feb 2013 18:26:03 +0000 (13:26 -0500)]
Free correct VP

11 years agoOne more check for size > 253
Alan T. DeKok [Mon, 18 Feb 2013 18:23:18 +0000 (13:23 -0500)]
One more check for size > 253

11 years agoAdd empty field to struct
Alan T. DeKok [Mon, 18 Feb 2013 18:18:06 +0000 (13:18 -0500)]
Add empty field to struct

11 years agoFix for coverity (missed mutex free)
Arran Cudbard-Bell [Mon, 18 Feb 2013 18:03:56 +0000 (13:03 -0500)]
Fix for coverity (missed mutex free)

11 years agoMore debug macros
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

11 years agoTurn colorize off only if it was one
Alan T. DeKok [Mon, 18 Feb 2013 16:32:23 +0000 (11:32 -0500)]
Turn colorize off only if it was one

11 years agoCheck return code of pairmark_xlat
Arran Cudbard-Bell [Mon, 18 Feb 2013 16:45:22 +0000 (11:45 -0500)]
Check return code of pairmark_xlat

11 years agoWhitespace fixes
Arran Cudbard-Bell [Mon, 18 Feb 2013 16:45:07 +0000 (11:45 -0500)]
Whitespace fixes

11 years agovalue.xlat should be set to NULL after being freed
Arran Cudbard-Bell [Mon, 18 Feb 2013 16:33:47 +0000 (11:33 -0500)]
value.xlat should be set to NULL after being freed

11 years agoSimplify copying of xlat value
Alan T. DeKok [Mon, 18 Feb 2013 16:24:39 +0000 (11:24 -0500)]
Simplify copying of xlat value

11 years agoRemove L_CONS
Alan T. DeKok [Mon, 18 Feb 2013 16:17:07 +0000 (11:17 -0500)]
Remove L_CONS

11 years agoRemove redundant checks for colourisation
Arran Cudbard-Bell [Mon, 18 Feb 2013 16:29:50 +0000 (11:29 -0500)]
Remove redundant checks for colourisation

11 years agoCheck whether it's appropriate to output colourised log messages
Arran Cudbard-Bell [Mon, 18 Feb 2013 15:42:09 +0000 (10:42 -0500)]
Check whether it's appropriate to output colourised log messages

11 years agoQuick hack for colourising log output to stderr/stdout
Arran Cudbard-Bell [Mon, 18 Feb 2013 07:50:49 +0000 (02:50 -0500)]
Quick hack for colourising log output to stderr/stdout

11 years agoWrite newline on buffer truncation too
Arran Cudbard-Bell [Mon, 18 Feb 2013 07:49:51 +0000 (02:49 -0500)]
Write newline on buffer truncation too

11 years agoBe explicit about why were not building rlm_rest
Arran Cudbard-Bell [Sun, 17 Feb 2013 20:55:11 +0000 (15:55 -0500)]
Be explicit about why were not building rlm_rest

11 years agoUpdate autoconf.h.in
Arran Cudbard-Bell [Sun, 17 Feb 2013 20:44:59 +0000 (15:44 -0500)]
Update autoconf.h.in

11 years agoCheck for libcurl >= 17.9.1
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

11 years agodir can't be NULL
Alan T. DeKok [Sun, 17 Feb 2013 20:38:52 +0000 (15:38 -0500)]
dir can't be NULL

11 years agoCheck pointers before using them
Alan T. DeKok [Sun, 17 Feb 2013 20:37:32 +0000 (15:37 -0500)]
Check pointers before using them

11 years agoCheck length of ascend secrets
Alan T. DeKok [Sun, 17 Feb 2013 20:35:22 +0000 (15:35 -0500)]
Check length of ascend secrets

11 years agoRemove finger functionality from radwho. No one uses it (or should)
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)

11 years agoCheck for NULL before incrementing
Alan T. DeKok [Sun, 17 Feb 2013 20:19:03 +0000 (15:19 -0500)]
Check for NULL before incrementing

11 years agoCheck array[0], not array
Alan T. DeKok [Sun, 17 Feb 2013 20:16:18 +0000 (15:16 -0500)]
Check array[0], not array

11 years agoError if the dictionaries weren't initialized
Alan T. DeKok [Sun, 17 Feb 2013 20:15:25 +0000 (15:15 -0500)]
Error if the dictionaries weren't initialized

11 years agoCorrect args to memset
Alan T. DeKok [Sun, 17 Feb 2013 20:14:22 +0000 (15:14 -0500)]
Correct args to memset

11 years agoUse strlcpy instead of strcpy
Alan T. DeKok [Sun, 17 Feb 2013 20:13:19 +0000 (15:13 -0500)]
Use strlcpy instead of strcpy

11 years agoUse sizeof instead of strlen
Alan T. DeKok [Sun, 17 Feb 2013 20:12:32 +0000 (15:12 -0500)]
Use sizeof instead of strlen

11 years agoReturn on error
Alan T. DeKok [Sun, 17 Feb 2013 20:11:31 +0000 (15:11 -0500)]
Return on error

11 years agoEOL is EOL
Alan T. DeKok [Sun, 17 Feb 2013 20:09:16 +0000 (15:09 -0500)]
EOL is EOL

11 years agoEOL is EOL
Alan T. DeKok [Sun, 17 Feb 2013 20:06:49 +0000 (15:06 -0500)]
EOL is EOL

11 years agoFix build error
Alan T. DeKok [Sun, 17 Feb 2013 20:00:15 +0000 (15:00 -0500)]
Fix build error