freeradius.git
10 years agoMarkup more SQL functions as nonnull
Arran Cudbard-Bell [Thu, 22 May 2014 11:19:05 +0000 (12:19 +0100)]
Markup more SQL functions as nonnull

10 years agoWhitespace
Arran Cudbard-Bell [Thu, 22 May 2014 11:08:50 +0000 (12:08 +0100)]
Whitespace

10 years agoFix dumb errors in the rlm_sql reconnection logic. Fixes #651
Arran Cudbard-Bell [Thu, 22 May 2014 11:07:18 +0000 (12:07 +0100)]
Fix dumb errors in the rlm_sql reconnection logic. Fixes #651

10 years agoBackport boiler.mk from master
Arran Cudbard-Bell [Thu, 22 May 2014 10:36:58 +0000 (11:36 +0100)]
Backport boiler.mk from master

10 years agoWhitespace
Arran Cudbard-Bell [Thu, 22 May 2014 10:36:47 +0000 (11:36 +0100)]
Whitespace

10 years agoPass pointer to the handle instead of handle in SQL group functions
Arran Cudbard-Bell [Thu, 22 May 2014 10:14:06 +0000 (11:14 +0100)]
Pass pointer to the handle instead of handle in SQL group functions

10 years agoAdd a few more enum types
Arran Cudbard-Bell [Wed, 21 May 2014 21:48:01 +0000 (22:48 +0100)]
Add a few more enum types

10 years agoAdd PW_TYPE_SIGNED and PW_TYPE_INTEGER64 to the conffile parser
Arran Cudbard-Bell [Wed, 21 May 2014 21:46:20 +0000 (22:46 +0100)]
Add PW_TYPE_SIGNED and PW_TYPE_INTEGER64 to the conffile parser

PW_TYPE_INTEGER was being used to create signed ints, which in the vast majority of places was wrong (they needed unsigned ints).

For anything which does need signed ints there's now PW_TYPE_SIGNED.

10 years agoFixup types in rlm_couchbase instance struct, and add type validation
Arran Cudbard-Bell [Wed, 21 May 2014 18:30:08 +0000 (19:30 +0100)]
Fixup types in rlm_couchbase instance struct, and add type validation

10 years agoNote recent changes
Alan T. DeKok [Thu, 22 May 2014 01:27:23 +0000 (21:27 -0400)]
Note recent changes

10 years agoClean up proxy reply handling. Fixes #637
Alan T. DeKok [Wed, 21 May 2014 20:36:24 +0000 (16:36 -0400)]
Clean up proxy reply handling.  Fixes #637

10 years agoActually set timevals
Alan T. DeKok [Wed, 21 May 2014 20:27:20 +0000 (16:27 -0400)]
Actually set timevals

10 years agoUse correct ip address for message
Alan T. DeKok [Wed, 21 May 2014 20:18:10 +0000 (16:18 -0400)]
Use correct ip address for message

10 years agoApply pointer type validation to config items which use direct pointers into structures
Arran Cudbard-Bell [Wed, 21 May 2014 17:34:41 +0000 (18:34 +0100)]
Apply pointer type validation to config items which use direct pointers into structures

10 years agoRemove unused config item
Arran Cudbard-Bell [Wed, 21 May 2014 16:33:41 +0000 (17:33 +0100)]
Remove unused config item

10 years agogcc fixes
Arran Cudbard-Bell [Wed, 21 May 2014 16:29:42 +0000 (17:29 +0100)]
gcc fixes

10 years agoMore talloc_steal
Alan T. DeKok [Wed, 21 May 2014 15:50:21 +0000 (11:50 -0400)]
More talloc_steal

10 years agoFix consting in rlm_unbound
Arran Cudbard-Bell [Wed, 21 May 2014 15:15:45 +0000 (16:15 +0100)]
Fix consting in rlm_unbound

10 years agoFix duplicate definition of mod_rcode_table
Arran Cudbard-Bell [Wed, 21 May 2014 14:51:28 +0000 (15:51 +0100)]
Fix duplicate definition of mod_rcode_table

10 years agoAdd autoconf checks for builtins, __has_builtin doesn't seem to work correctly with...
Arran Cudbard-Bell [Wed, 21 May 2014 14:31:02 +0000 (15:31 +0100)]
Add autoconf checks for builtins, __has_builtin doesn't seem to work correctly with clang 3.4 and __builtin_choose_expr/__builtin_types_compatible_p

10 years agoAdd "show module status"
Alan T. DeKok [Wed, 21 May 2014 14:28:46 +0000 (10:28 -0400)]
Add "show module status"

10 years agoAdd framework for compile time type checking
Arran Cudbard-Bell [Wed, 21 May 2014 10:57:00 +0000 (11:57 +0100)]
Add framework for compile time type checking

10 years agoCleanup some of the build macros and add __has_builtin
Arran Cudbard-Bell [Wed, 21 May 2014 10:56:17 +0000 (11:56 +0100)]
Cleanup some of the build macros and add __has_builtin

10 years agoDeal with boolean in more switch statements
Arran Cudbard-Bell [Wed, 21 May 2014 07:08:25 +0000 (08:08 +0100)]
Deal with boolean in more switch statements

10 years agoChange PW_TYPE_STRING_PTR to PW_TYPE_STRING
Arran Cudbard-Bell [Wed, 21 May 2014 06:55:07 +0000 (07:55 +0100)]
Change PW_TYPE_STRING_PTR to PW_TYPE_STRING

There's no point in distinguishing between the two

10 years agoAdd PW_TYPE_BOOLEAN as a proper type
Arran Cudbard-Bell [Wed, 21 May 2014 06:54:17 +0000 (07:54 +0100)]
Add PW_TYPE_BOOLEAN as a proper type

10 years agoMake PW_TYPE_FILE_INPUT and PW_TYPE_FILE_OUTPUT into string types
Arran Cudbard-Bell [Wed, 21 May 2014 06:53:11 +0000 (07:53 +0100)]
Make PW_TYPE_FILE_INPUT and PW_TYPE_FILE_OUTPUT into string types

10 years agoMerge pull request #648 from leprechau/feature-fix
Arran Cudbard-Bell [Wed, 21 May 2014 05:50:18 +0000 (06:50 +0100)]
Merge pull request #648 from leprechau/feature-fix

minor fixes for missing functions in old json-c

10 years agoMerge pull request #647 from leprechau/v3.0.x
Arran Cudbard-Bell [Wed, 21 May 2014 05:49:59 +0000 (06:49 +0100)]
Merge pull request #647 from leprechau/v3.0.x

add missing 'acct' option to struct

10 years agominor fixes for missing functions in old json-c
Aaron Hurt [Wed, 21 May 2014 03:11:56 +0000 (22:11 -0500)]
minor fixes for missing functions in old json-c
* upstream json_object_get_string_len returns 0 if object is not type string
* small indentation fix

10 years agoadd missing 'acct' option to struct
Aaron Hurt [Wed, 21 May 2014 03:00:58 +0000 (22:00 -0500)]
add missing 'acct' option to struct

10 years agocleanup comments
Arran Cudbard-Bell [Tue, 20 May 2014 18:59:54 +0000 (19:59 +0100)]
cleanup comments

10 years agoSet port in radclient 'auto' mode too
Arran Cudbard-Bell [Tue, 20 May 2014 18:54:19 +0000 (19:54 +0100)]
Set port in radclient 'auto' mode too

10 years agoMake response_window a struct timeval
Alan T. DeKok [Tue, 20 May 2014 15:00:53 +0000 (11:00 -0400)]
Make response_window a struct timeval

10 years agoAdd parser for PW_TYPE_TIMEVAL
Alan T. DeKok [Tue, 20 May 2014 14:45:46 +0000 (10:45 -0400)]
Add parser for PW_TYPE_TIMEVAL

10 years agoCreate new type PW_TYPE_TIMEVAL
Alan T. DeKok [Tue, 20 May 2014 14:33:22 +0000 (10:33 -0400)]
Create new type PW_TYPE_TIMEVAL

10 years agoOnly check if were building with libssl
Arran Cudbard-Bell [Tue, 20 May 2014 10:25:12 +0000 (11:25 +0100)]
Only check if were building with libssl

10 years agoFix potential NULL dereference found by scan
Arran Cudbard-Bell [Tue, 20 May 2014 10:21:18 +0000 (11:21 +0100)]
Fix potential NULL dereference found by scan

10 years agoWe need to initialise SSL before reading the main config Fixes #646
Arran Cudbard-Bell [Tue, 20 May 2014 09:00:29 +0000 (10:00 +0100)]
We need to initialise SSL before reading the main config Fixes #646

It was initialised before instantiating the modules, but that's probably not enough for RADSEC

10 years agodebian: debian/compat 9 -> 7
Fajar A. Nugraha [Mon, 19 May 2014 09:39:15 +0000 (16:39 +0700)]
debian: debian/compat 9 -> 7

10 years agodebian: changed required debhelper to (>= 7.4)
Fajar A. Nugraha [Mon, 19 May 2014 09:23:50 +0000 (16:23 +0700)]
debian: changed required debhelper to (>= 7.4)

10 years agodebian: update radiusd-to-freeradius.diff
Fajar A. Nugraha [Mon, 19 May 2014 08:27:09 +0000 (15:27 +0700)]
debian: update radiusd-to-freeradius.diff

10 years agoAdd some basic indenting
Arran Cudbard-Bell [Sun, 18 May 2014 16:49:00 +0000 (17:49 +0100)]
Add some basic indenting

10 years agoRemove trailing periods in log messages
Arran Cudbard-Bell [Sun, 18 May 2014 16:35:14 +0000 (17:35 +0100)]
Remove trailing periods in log messages

10 years agoAdd RINDENT and REXDENT macros
Arran Cudbard-Bell [Sun, 18 May 2014 16:31:21 +0000 (17:31 +0100)]
Add RINDENT and REXDENT macros

10 years agoGather existing log fields in rad_request into a struct. This allows us to easily...
Arran Cudbard-Bell [Sun, 18 May 2014 15:57:25 +0000 (16:57 +0100)]
Gather existing log fields in rad_request into a struct. This allows us to easily copy them all when creating fake requests, or later, spawning child requests.

10 years agoChange request struct name to rad_request
Arran Cudbard-Bell [Sun, 18 May 2014 15:56:36 +0000 (16:56 +0100)]
Change request struct name to rad_request

10 years agoRemove some duplicate build macros
Arran Cudbard-Bell [Sun, 18 May 2014 15:42:40 +0000 (16:42 +0100)]
Remove some duplicate build macros

10 years agoFix "weird" message
Alan T. DeKok [Sat, 17 May 2014 00:14:54 +0000 (20:14 -0400)]
Fix "weird" message

10 years agoNeeded for endian checks
Arran Cudbard-Bell [Sat, 17 May 2014 15:21:29 +0000 (16:21 +0100)]
Needed for endian checks

10 years agoMinor radclient fixes
Arran Cudbard-Bell [Sat, 17 May 2014 15:21:21 +0000 (16:21 +0100)]
Minor radclient fixes

10 years agoCorrect fix for debug quoting (now we don't get double quoting everywhere)
Arran Cudbard-Bell [Sat, 17 May 2014 08:24:47 +0000 (09:24 +0100)]
Correct fix for debug quoting (now we don't get double quoting everywhere)

10 years agoMore talloc_steal() . Should help with #637
Alan T. DeKok [Sat, 17 May 2014 00:11:42 +0000 (20:11 -0400)]
More talloc_steal() .  Should help with #637

10 years agoFix list'o links
Arran Cudbard-Bell [Fri, 16 May 2014 17:57:29 +0000 (18:57 +0100)]
Fix list'o links

10 years agoUpdate contributing.rst
Arran Cudbard-Bell [Fri, 16 May 2014 17:55:58 +0000 (18:55 +0100)]
Update contributing.rst

10 years agoUpdate and rename DIFFS.rst to contributing.rst
Arran Cudbard-Bell [Fri, 16 May 2014 17:54:00 +0000 (18:54 +0100)]
Update and rename DIFFS.rst to contributing.rst

10 years agoRemove duplicate tests
Arran Cudbard-Bell [Fri, 16 May 2014 16:09:51 +0000 (17:09 +0100)]
Remove duplicate tests

10 years agoAdd tests for expanded vs compiled regexes and foreach
Arran Cudbard-Bell [Fri, 16 May 2014 14:52:40 +0000 (15:52 +0100)]
Add tests for expanded vs compiled regexes and foreach

10 years agoConvert (Foreach-Variable-# ...) to (%{Foreach-Variable}...
Alan T. DeKok [Fri, 16 May 2014 14:44:35 +0000 (10:44 -0400)]
Convert (Foreach-Variable-# ...) to (%{Foreach-Variable}...

it's the same thing, and doesn't confuse the end user

10 years agoAdd entries for structs when debugging
Alan T. DeKok [Fri, 16 May 2014 14:34:53 +0000 (10:34 -0400)]
Add entries for structs when debugging

10 years agoTurn on M_CHECK_ACTION too
Arran Cudbard-Bell [Fri, 16 May 2014 13:24:23 +0000 (14:24 +0100)]
Turn on M_CHECK_ACTION too

10 years agoDon't free foreach VPs on break #639
Arran Cudbard-Bell [Fri, 16 May 2014 11:32:12 +0000 (12:32 +0100)]
Don't free foreach VPs on break #639

Wwe go back up the stack in an orderly way and don't need this hack anymore

10 years agoAdd fr_panic_on_free which calls fr_fault when a chunk is freed
Arran Cudbard-Bell [Fri, 16 May 2014 11:19:29 +0000 (12:19 +0100)]
Add fr_panic_on_free which calls fr_fault when a chunk is freed

10 years agoMake the foreach code slightly more sane. Reliably reproduces the issue described...
Arran Cudbard-Bell [Fri, 16 May 2014 10:38:22 +0000 (11:38 +0100)]
Make the foreach code slightly more sane. Reliably reproduces the issue described by #639

10 years agoUse pairstrncpy and pairmemcpy in paircopy to ensure consistency
Arran Cudbard-Bell [Fri, 16 May 2014 10:37:22 +0000 (11:37 +0100)]
Use pairstrncpy and pairmemcpy in paircopy to ensure consistency

10 years agoMake backtraces slightly cleaner
Arran Cudbard-Bell [Fri, 16 May 2014 09:41:14 +0000 (10:41 +0100)]
Make backtraces slightly cleaner

10 years agoWork around weird debian build issues
Arran Cudbard-Bell [Fri, 16 May 2014 09:39:45 +0000 (10:39 +0100)]
Work around weird debian build issues

10 years agoRemove MALLOC_PERTURB it's now handled internally with mallopt, and it might be causi...
Arran Cudbard-Bell [Fri, 16 May 2014 08:16:06 +0000 (09:16 +0100)]
Remove MALLOC_PERTURB it's now handled internally with mallopt, and it might be causing GCC to die...

10 years agoExtra foreach tests
Arran Cudbard-Bell [Thu, 15 May 2014 22:14:23 +0000 (23:14 +0100)]
Extra foreach tests

10 years ago...and pull in malloc.h
Arran Cudbard-Bell [Thu, 15 May 2014 21:47:38 +0000 (22:47 +0100)]
...and pull in malloc.h

10 years agoScribble over alloced and freed memory on platforms using glibc malloc
Arran Cudbard-Bell [Thu, 15 May 2014 21:21:00 +0000 (22:21 +0100)]
Scribble over alloced and freed memory on platforms using glibc malloc

10 years agoRegenerate autoconf.h.in
Arran Cudbard-Bell [Thu, 15 May 2014 21:16:02 +0000 (22:16 +0100)]
Regenerate autoconf.h.in

10 years agoFix uninitialised value in radclient
Arran Cudbard-Bell [Thu, 15 May 2014 21:09:37 +0000 (22:09 +0100)]
Fix uninitialised value in radclient

10 years agoFix CUI processing
Arran Cudbard-Bell [Thu, 15 May 2014 20:55:25 +0000 (21:55 +0100)]
Fix CUI processing

10 years agoUnused variable
Arran Cudbard-Bell [Thu, 15 May 2014 17:57:58 +0000 (18:57 +0100)]
Unused variable

10 years agoPrint out debug when we fail reads/writes in detail.c
Arran Cudbard-Bell [Thu, 15 May 2014 17:47:49 +0000 (18:47 +0100)]
Print out debug when we fail reads/writes in detail.c

10 years agoCUI should be octets type
Arran Cudbard-Bell [Thu, 15 May 2014 17:26:19 +0000 (18:26 +0100)]
CUI should be octets type

10 years agoExit if we can't signal ourselves
Arran Cudbard-Bell [Thu, 15 May 2014 16:43:36 +0000 (17:43 +0100)]
Exit if we can't signal ourselves

10 years agoPrint error before freeing memory
Alan T. DeKok [Thu, 15 May 2014 16:27:14 +0000 (12:27 -0400)]
Print error before freeing memory

10 years agoAdd new build to the matrix with optimisations and additional memory checking turned on
Arran Cudbard-Bell [Thu, 15 May 2014 14:56:54 +0000 (15:56 +0100)]
Add new build to the matrix with optimisations and additional memory checking turned on

10 years agoUse the correct data type. Closes #634
Alan T. DeKok [Thu, 15 May 2014 14:31:23 +0000 (10:31 -0400)]
Use the correct data type.  Closes #634

10 years agoBuild without NDEBUG
Alan T. DeKok [Thu, 15 May 2014 14:02:36 +0000 (10:02 -0400)]
Build without NDEBUG

10 years agoAdded new dictionary
Alan T. DeKok [Thu, 15 May 2014 13:45:54 +0000 (09:45 -0400)]
Added new dictionary

10 years agoMerge pull request #633 from alanbuxey/patch-1
Arran Cudbard-Bell [Thu, 15 May 2014 09:46:36 +0000 (05:46 -0400)]
Merge pull request #633 from alanbuxey/patch-1

10 years agorlm_perl - don't truncate strings from perl to FreeRADIUS
nchaigne [Thu, 15 May 2014 09:37:49 +0000 (11:37 +0200)]
rlm_perl - don't truncate strings from perl to FreeRADIUS

Don't truncate strings passed from perl from FreeRADIUS if they contain
a '\0'.

10 years agoAdd postauth function to rlm_rest
Arran Cudbard-Bell [Thu, 15 May 2014 09:22:19 +0000 (10:22 +0100)]
Add postauth function to rlm_rest

10 years agoVerbosity of version should be independent of order or arguments
Arran Cudbard-Bell [Wed, 14 May 2014 21:33:26 +0000 (22:33 +0100)]
Verbosity of version should be independent of order or arguments

10 years agoDo SSL cleanups on exit
Alan T. DeKok [Wed, 14 May 2014 14:00:19 +0000 (10:00 -0400)]
Do SSL cleanups on exit

So that there are fewer issues with valgrind

10 years agoFix typo. Closes #635
Alan T. DeKok [Wed, 14 May 2014 17:32:42 +0000 (13:32 -0400)]
Fix typo.  Closes #635

10 years agoUpdate process function when necessary
Alan T. DeKok [Wed, 14 May 2014 14:09:43 +0000 (10:09 -0400)]
Update process function when necessary

10 years agoShow component and module when discarding duplicate request
Alan T. DeKok [Tue, 13 May 2014 15:56:58 +0000 (11:56 -0400)]
Show component and module when discarding duplicate request

10 years agoNote recent changes
Alan T. DeKok [Tue, 13 May 2014 15:10:02 +0000 (11:10 -0400)]
Note recent changes

10 years agoThese tests use unprecompiled regexes
Arran Cudbard-Bell [Tue, 13 May 2014 12:32:34 +0000 (13:32 +0100)]
These tests use unprecompiled regexes

10 years agoFix case insensitive matching in compiled regular expressions
Arran Cudbard-Bell [Tue, 13 May 2014 10:52:21 +0000 (11:52 +0100)]
Fix case insensitive matching in compiled regular expressions

10 years agoRemove uneeded check
Arran Cudbard-Bell [Tue, 13 May 2014 07:22:15 +0000 (08:22 +0100)]
Remove uneeded check

10 years agoSet connection pool defaults to mirror the thread pool settings
Arran Cudbard-Bell [Tue, 13 May 2014 06:18:28 +0000 (07:18 +0100)]
Set connection pool defaults to mirror the thread pool settings

10 years agoMerge pull request #631 from leprechau/v3.0.x
Arran Cudbard-Bell [Tue, 13 May 2014 05:39:22 +0000 (06:39 +0100)]
Merge pull request #631 from leprechau/v3.0.x

misc fixes

10 years agoTypo in heimdal
Arran Cudbard-Bell [Tue, 13 May 2014 05:38:12 +0000 (06:38 +0100)]
Typo in heimdal

10 years agobump version number
Alan T. DeKok [Tue, 13 May 2014 02:05:16 +0000 (22:05 -0400)]
bump version number

10 years agomisc fixes
Aaron Hurt [Tue, 13 May 2014 00:01:45 +0000 (19:01 -0500)]
misc fixes
* move couchbase.config to raddb/mods-available/couchbase and remove
install section for this file from all.mk.in
* re-work spacing in README.md to pass 'make whitespace' while still
aligning properly with github markdown rendering
* make example configuration and README documentation match