Arran Cudbard-Bell [Fri, 23 May 2014 14:00:06 +0000 (15:00 +0100)]
Change array index range back to between 0-1000
Arran Cudbard-Bell [Fri, 23 May 2014 13:49:49 +0000 (14:49 +0100)]
Fix corner case when using fr_cursor_remove and fr_cursor_next_by_da together
Arran Cudbard-Bell [Fri, 23 May 2014 13:14:23 +0000 (14:14 +0100)]
Fix array offsets to that offset 0 is differentiated from no offset
Arran Cudbard-Bell [Fri, 23 May 2014 13:06:54 +0000 (14:06 +0100)]
Rework map2request to process multiple attributes returned from func, correctly Fixes #652
Arran Cudbard-Bell [Fri, 23 May 2014 13:02:25 +0000 (14:02 +0100)]
Use the same num/tag field widths and values in xlat and VPT code, this allows us to optimised attribute and tag selection XLATs to VPTs in some instances.
Arran Cudbard-Bell [Fri, 23 May 2014 13:09:35 +0000 (14:09 +0100)]
Should be using the macro to access attribute.num
Arran Cudbard-Bell [Fri, 23 May 2014 12:15:55 +0000 (13:15 +0100)]
Formatting and better error messages in radius_tmpl2str
Arran Cudbard-Bell [Fri, 23 May 2014 12:14:11 +0000 (13:14 +0100)]
Enumerate failures in base64 test
Arran Cudbard-Bell [Thu, 22 May 2014 21:44:37 +0000 (22:44 +0100)]
Add more tests for deletions
Arran Cudbard-Bell [Thu, 22 May 2014 18:52:31 +0000 (19:52 +0100)]
Use sql_rcode_t
Arran Cudbard-Bell [Thu, 22 May 2014 19:57:26 +0000 (20:57 +0100)]
update-operator test should use += to add failures
Arran Cudbard-Bell [Thu, 22 May 2014 15:58:26 +0000 (16:58 +0100)]
Newer name for control list should have priority
Arran Cudbard-Bell [Thu, 22 May 2014 19:56:40 +0000 (20:56 +0100)]
make rad_assert_fail call fr_fault(SIGABRT) (instead of abort) so we have a better chance of entering the debugger with a valid stack
Arran Cudbard-Bell [Thu, 22 May 2014 21:16:20 +0000 (22:16 +0100)]
Formatting
Arran Cudbard-Bell [Thu, 22 May 2014 19:55:54 +0000 (20:55 +0100)]
Add fr_cursor_last
Alan T. DeKok [Fri, 23 May 2014 12:51:40 +0000 (08:51 -0400)]
Allow Post-Proxy-Type Fail. Closes #653
Alan T. DeKok [Thu, 22 May 2014 19:55:42 +0000 (15:55 -0400)]
Run pass2_cb on components once, not for each component
Alan T. DeKok [Thu, 22 May 2014 13:31:20 +0000 (09:31 -0400)]
Do pass2 only once. Closes #650
A temporary fix until we can find out why it's loading the
same thing multiple times
Arran Cudbard-Bell [Thu, 22 May 2014 11:50:08 +0000 (12:50 +0100)]
Need to pass CPPFLAGS to the analyser too
Arran Cudbard-Bell [Thu, 22 May 2014 11:48:06 +0000 (12:48 +0100)]
Need to check that rlm_sql_select_query != RLM_SQL_OK, < 0 is not enough as it may return RLM_SQL_RECONNECT Fixes #651
Arran Cudbard-Bell [Thu, 22 May 2014 11:47:04 +0000 (12:47 +0100)]
Section can sometimes be NULL
Arran Cudbard-Bell [Thu, 22 May 2014 11:45:51 +0000 (12:45 +0100)]
Remove useless wrapper functions in the postgresql driver
Arran Cudbard-Bell [Thu, 22 May 2014 11:19:05 +0000 (12:19 +0100)]
Markup more SQL functions as nonnull
Arran Cudbard-Bell [Thu, 22 May 2014 11:08:50 +0000 (12:08 +0100)]
Whitespace
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
Arran Cudbard-Bell [Thu, 22 May 2014 10:36:58 +0000 (11:36 +0100)]
Backport boiler.mk from master
Arran Cudbard-Bell [Thu, 22 May 2014 10:36:47 +0000 (11:36 +0100)]
Whitespace
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
Arran Cudbard-Bell [Wed, 21 May 2014 21:48:01 +0000 (22:48 +0100)]
Add a few more enum types
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.
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
Alan T. DeKok [Thu, 22 May 2014 01:27:23 +0000 (21:27 -0400)]
Note recent changes
Alan T. DeKok [Wed, 21 May 2014 20:36:24 +0000 (16:36 -0400)]
Clean up proxy reply handling. Fixes #637
Alan T. DeKok [Wed, 21 May 2014 20:27:20 +0000 (16:27 -0400)]
Actually set timevals
Alan T. DeKok [Wed, 21 May 2014 20:18:10 +0000 (16:18 -0400)]
Use correct ip address for message
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
Arran Cudbard-Bell [Wed, 21 May 2014 16:33:41 +0000 (17:33 +0100)]
Remove unused config item
Arran Cudbard-Bell [Wed, 21 May 2014 16:29:42 +0000 (17:29 +0100)]
gcc fixes
Alan T. DeKok [Wed, 21 May 2014 15:50:21 +0000 (11:50 -0400)]
More talloc_steal
Arran Cudbard-Bell [Wed, 21 May 2014 15:15:45 +0000 (16:15 +0100)]
Fix consting in rlm_unbound
Arran Cudbard-Bell [Wed, 21 May 2014 14:51:28 +0000 (15:51 +0100)]
Fix duplicate definition of mod_rcode_table
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
Alan T. DeKok [Wed, 21 May 2014 14:28:46 +0000 (10:28 -0400)]
Add "show module status"
Arran Cudbard-Bell [Wed, 21 May 2014 10:57:00 +0000 (11:57 +0100)]
Add framework for compile time type checking
Arran Cudbard-Bell [Wed, 21 May 2014 10:56:17 +0000 (11:56 +0100)]
Cleanup some of the build macros and add __has_builtin
Arran Cudbard-Bell [Wed, 21 May 2014 07:08:25 +0000 (08:08 +0100)]
Deal with boolean in more switch statements
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
Arran Cudbard-Bell [Wed, 21 May 2014 06:54:17 +0000 (07:54 +0100)]
Add PW_TYPE_BOOLEAN as a proper type
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
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
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
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
Aaron Hurt [Wed, 21 May 2014 03:00:58 +0000 (22:00 -0500)]
add missing 'acct' option to struct
Arran Cudbard-Bell [Tue, 20 May 2014 18:59:54 +0000 (19:59 +0100)]
cleanup comments
Arran Cudbard-Bell [Tue, 20 May 2014 18:54:19 +0000 (19:54 +0100)]
Set port in radclient 'auto' mode too
Alan T. DeKok [Tue, 20 May 2014 15:00:53 +0000 (11:00 -0400)]
Make response_window a struct timeval
Alan T. DeKok [Tue, 20 May 2014 14:45:46 +0000 (10:45 -0400)]
Add parser for PW_TYPE_TIMEVAL
Alan T. DeKok [Tue, 20 May 2014 14:33:22 +0000 (10:33 -0400)]
Create new type PW_TYPE_TIMEVAL
Arran Cudbard-Bell [Tue, 20 May 2014 10:25:12 +0000 (11:25 +0100)]
Only check if were building with libssl
Arran Cudbard-Bell [Tue, 20 May 2014 10:21:18 +0000 (11:21 +0100)]
Fix potential NULL dereference found by scan
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
Fajar A. Nugraha [Mon, 19 May 2014 09:39:15 +0000 (16:39 +0700)]
debian: debian/compat 9 -> 7
Fajar A. Nugraha [Mon, 19 May 2014 09:23:50 +0000 (16:23 +0700)]
debian: changed required debhelper to (>= 7.4)
Fajar A. Nugraha [Mon, 19 May 2014 08:27:09 +0000 (15:27 +0700)]
debian: update radiusd-to-freeradius.diff
Arran Cudbard-Bell [Sun, 18 May 2014 16:49:00 +0000 (17:49 +0100)]
Add some basic indenting
Arran Cudbard-Bell [Sun, 18 May 2014 16:35:14 +0000 (17:35 +0100)]
Remove trailing periods in log messages
Arran Cudbard-Bell [Sun, 18 May 2014 16:31:21 +0000 (17:31 +0100)]
Add RINDENT and REXDENT macros
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.
Arran Cudbard-Bell [Sun, 18 May 2014 15:56:36 +0000 (16:56 +0100)]
Change request struct name to rad_request
Arran Cudbard-Bell [Sun, 18 May 2014 15:42:40 +0000 (16:42 +0100)]
Remove some duplicate build macros
Alan T. DeKok [Sat, 17 May 2014 00:14:54 +0000 (20:14 -0400)]
Fix "weird" message
Arran Cudbard-Bell [Sat, 17 May 2014 15:21:29 +0000 (16:21 +0100)]
Needed for endian checks
Arran Cudbard-Bell [Sat, 17 May 2014 15:21:21 +0000 (16:21 +0100)]
Minor radclient fixes
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)
Alan T. DeKok [Sat, 17 May 2014 00:11:42 +0000 (20:11 -0400)]
More talloc_steal() . Should help with #637
Arran Cudbard-Bell [Fri, 16 May 2014 17:57:29 +0000 (18:57 +0100)]
Fix list'o links
Arran Cudbard-Bell [Fri, 16 May 2014 17:55:58 +0000 (18:55 +0100)]
Update contributing.rst
Arran Cudbard-Bell [Fri, 16 May 2014 17:54:00 +0000 (18:54 +0100)]
Update and rename DIFFS.rst to contributing.rst
Arran Cudbard-Bell [Fri, 16 May 2014 16:09:51 +0000 (17:09 +0100)]
Remove duplicate tests
Arran Cudbard-Bell [Fri, 16 May 2014 14:52:40 +0000 (15:52 +0100)]
Add tests for expanded vs compiled regexes and foreach
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
Alan T. DeKok [Fri, 16 May 2014 14:34:53 +0000 (10:34 -0400)]
Add entries for structs when debugging
Arran Cudbard-Bell [Fri, 16 May 2014 13:24:23 +0000 (14:24 +0100)]
Turn on M_CHECK_ACTION too
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
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
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
Arran Cudbard-Bell [Fri, 16 May 2014 10:37:22 +0000 (11:37 +0100)]
Use pairstrncpy and pairmemcpy in paircopy to ensure consistency
Arran Cudbard-Bell [Fri, 16 May 2014 09:41:14 +0000 (10:41 +0100)]
Make backtraces slightly cleaner
Arran Cudbard-Bell [Fri, 16 May 2014 09:39:45 +0000 (10:39 +0100)]
Work around weird debian build issues
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...
Arran Cudbard-Bell [Thu, 15 May 2014 22:14:23 +0000 (23:14 +0100)]
Extra foreach tests
Arran Cudbard-Bell [Thu, 15 May 2014 21:47:38 +0000 (22:47 +0100)]
...and pull in malloc.h
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
Arran Cudbard-Bell [Thu, 15 May 2014 21:16:02 +0000 (22:16 +0100)]
Regenerate autoconf.h.in
Arran Cudbard-Bell [Thu, 15 May 2014 21:09:37 +0000 (22:09 +0100)]
Fix uninitialised value in radclient
Arran Cudbard-Bell [Thu, 15 May 2014 20:55:25 +0000 (21:55 +0100)]
Fix CUI processing
Arran Cudbard-Bell [Thu, 15 May 2014 17:57:58 +0000 (18:57 +0100)]
Unused variable
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
Arran Cudbard-Bell [Thu, 15 May 2014 17:26:19 +0000 (18:26 +0100)]
CUI should be octets type
Arran Cudbard-Bell [Thu, 15 May 2014 16:43:36 +0000 (17:43 +0100)]
Exit if we can't signal ourselves