freeradius.git
11 years agoMove scripts directory to boilermake
Alan T. DeKok [Sun, 24 Feb 2013 01:29:49 +0000 (20:29 -0500)]
Move scripts directory to boilermake

TODO: have "BINDIR" macro, which installs files into bindir
and for sbindir

11 years agoDependencies need to be passed as LIBS
Arran Cudbard-Bell [Mon, 25 Feb 2013 16:21:27 +0000 (11:21 -0500)]
Dependencies need to be passed as LIBS

11 years agoTry adding openssl libs to linkerflags when testing eap-ikev2
Arran Cudbard-Bell [Mon, 25 Feb 2013 16:13:02 +0000 (11:13 -0500)]
Try adding openssl libs to linkerflags when testing eap-ikev2

11 years agoFix eap-ikev2 configure script
Arran Cudbard-Bell [Mon, 25 Feb 2013 15:52:23 +0000 (10:52 -0500)]
Fix eap-ikev2 configure script

11 years agoMove EAP types (sub-modules) to use talloc
Alan T. DeKok [Fri, 22 Feb 2013 01:14:50 +0000 (20:14 -0500)]
Move EAP types (sub-modules) to use talloc

11 years agoMore formatting
Arran Cudbard-Bell [Sat, 23 Feb 2013 01:33:41 +0000 (20:33 -0500)]
More formatting

11 years agoFix const free warnings
Arran Cudbard-Bell [Sat, 23 Feb 2013 01:22:51 +0000 (20:22 -0500)]
Fix const free warnings

11 years agoMore jlibtool cleanups
Arran Cudbard-Bell [Sat, 23 Feb 2013 01:18:36 +0000 (20:18 -0500)]
More jlibtool cleanups

11 years agoPreliminary fix for linking in DynaLoader
Arran Cudbard-Bell [Fri, 22 Feb 2013 21:41:23 +0000 (16:41 -0500)]
Preliminary fix for linking in DynaLoader

11 years agoFixup formatting
Arran Cudbard-Bell [Fri, 22 Feb 2013 21:13:27 +0000 (16:13 -0500)]
Fixup formatting

11 years agoMake rlm_perl configure script more verbose
Arran Cudbard-Bell [Fri, 22 Feb 2013 04:45:01 +0000 (23:45 -0500)]
Make rlm_perl configure script more verbose

11 years agoNot needed as were using C99 types
Arran Cudbard-Bell [Fri, 22 Feb 2013 01:29:57 +0000 (20:29 -0500)]
Not needed as were using C99 types

11 years agoReformat base64 code, use library base64 functions in rlm_pap
Arran Cudbard-Bell [Fri, 22 Feb 2013 01:27:20 +0000 (20:27 -0500)]
Reformat base64 code, use library base64 functions in rlm_pap

11 years agoFix error strings to make more sense
Alan T. DeKok [Thu, 21 Feb 2013 14:34:31 +0000 (09:34 -0500)]
Fix error strings to make more sense

11 years agoStatic declarations of structures belong in C files, not H files
Alan T. DeKok [Thu, 21 Feb 2013 03:56:17 +0000 (22:56 -0500)]
Static declarations of structures belong in C files, not H files

And set the "end of CONF_PARSER" entry, too.

11 years agomark unused
Alan T. DeKok [Thu, 21 Feb 2013 00:48:29 +0000 (19:48 -0500)]
mark unused

11 years agodup may return < 0
Alan T. DeKok [Thu, 21 Feb 2013 00:48:00 +0000 (19:48 -0500)]
dup may return < 0

11 years agofix for coverity
Alan T. DeKok [Thu, 21 Feb 2013 00:46:45 +0000 (19:46 -0500)]
fix for coverity

11 years agofix for coverity
Alan T. DeKok [Thu, 21 Feb 2013 00:44:33 +0000 (19:44 -0500)]
fix for coverity

11 years agoFix for coverity
Alan T. DeKok [Thu, 21 Feb 2013 00:42:50 +0000 (19:42 -0500)]
Fix for coverity

11 years agoSkip encrypted, tagged, etc. attrs for zero-length CUI
Alan T. DeKok [Thu, 21 Feb 2013 00:41:38 +0000 (19:41 -0500)]
Skip encrypted, tagged, etc. attrs for zero-length CUI

11 years agoCheck for !cs before expanding variables
Alan T. DeKok [Thu, 21 Feb 2013 00:37:54 +0000 (19:37 -0500)]
Check for !cs before expanding variables

11 years agoFree variables on exit
Alan T. DeKok [Thu, 21 Feb 2013 00:37:06 +0000 (19:37 -0500)]
Free variables on exit

11 years agoFix typo
Alan T. DeKok [Thu, 21 Feb 2013 00:34:59 +0000 (19:34 -0500)]
Fix typo

11 years agoForce buffer to be terminated
Alan T. DeKok [Thu, 21 Feb 2013 00:34:11 +0000 (19:34 -0500)]
Force buffer to be terminated

11 years agoFix typo
Arran Cudbard-Bell [Wed, 20 Feb 2013 23:28:22 +0000 (18:28 -0500)]
Fix typo

11 years agoUse talloc to alloc conn memory
Arran Cudbard-Bell [Wed, 20 Feb 2013 23:01:26 +0000 (18:01 -0500)]
Use talloc to alloc conn memory

11 years agoRemove conn
Arran Cudbard-Bell [Wed, 20 Feb 2013 23:01:13 +0000 (18:01 -0500)]
Remove conn

11 years agoMerge pull request #203 from alanbuxey/master
Arran Cudbard-Bell [Wed, 20 Feb 2013 22:04:47 +0000 (14:04 -0800)]
Merge pull request #203 from alanbuxey/master

goodbye policy.txt

11 years agoAvoid calling fr_connection_reconnect if were in a create call
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

11 years agoMore docs, rename struct from auth_req to request
Arran Cudbard-Bell [Wed, 20 Feb 2013 19:43:25 +0000 (14:43 -0500)]
More docs, rename struct from auth_req to request

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