Arran Cudbard-Bell [Thu, 6 Nov 2014 03:47:52 +0000 (22:47 -0500)]
Add support for DEBUG environmental variable
yes - don't install fault_action signal handlers
no - don't install fault_action signal handlers
auto - if the server is running under a debugger, don't install fault_action signal handlers
Arran Cudbard-Bell [Thu, 6 Nov 2014 03:46:44 +0000 (22:46 -0500)]
Parent vpt->name correctly
Arran Cudbard-Bell [Thu, 6 Nov 2014 02:24:25 +0000 (21:24 -0500)]
Build on travis WITH_EVAL_DEBUG
Arran Cudbard-Bell [Wed, 5 Nov 2014 22:40:06 +0000 (17:40 -0500)]
Typo
Arran Cudbard-Bell [Wed, 5 Nov 2014 22:35:53 +0000 (17:35 -0500)]
Check number strings fed into dynamic regular expressions work
Arran Cudbard-Bell [Wed, 5 Nov 2014 21:07:02 +0000 (16:07 -0500)]
Add test for paircmp
Arran Cudbard-Bell [Wed, 5 Nov 2014 18:18:22 +0000 (13:18 -0500)]
Return string 0 for &Attr[#] where no attributes exist
Arran Cudbard-Bell [Wed, 5 Nov 2014 18:17:22 +0000 (13:17 -0500)]
Split apart some integer tests
Arran Cudbard-Bell [Wed, 5 Nov 2014 05:49:14 +0000 (00:49 -0500)]
Fix printing of tmpl_num in tmpl_prints
Herwin Weststrate [Tue, 4 Nov 2014 19:28:45 +0000 (20:28 +0100)]
Updated a check in cbtls_msg
The check does exactly the same thing as before, but this silences a cppcheck warning.
Herwin Weststrate [Tue, 4 Nov 2014 19:24:30 +0000 (20:24 +0100)]
Removed some redundant not-null checks
Herwin Weststrate [Tue, 4 Nov 2014 19:20:52 +0000 (20:20 +0100)]
Fixed potential null pointer dereferences
Alan T. DeKok [Tue, 4 Nov 2014 21:12:55 +0000 (16:12 -0500)]
Remove old example
Alan T. DeKok [Tue, 4 Nov 2014 17:07:05 +0000 (12:07 -0500)]
SQL, not MySQL
Alan T. DeKok [Tue, 4 Nov 2014 17:05:30 +0000 (12:05 -0500)]
Tie "originate coa" into the session-state handler
any state added by originate-coa will be available to the next
Access-Request.
Alan T. DeKok [Tue, 4 Nov 2014 12:48:43 +0000 (07:48 -0500)]
Note TLS 1.1 and 1.2
Arran Cudbard-Bell [Tue, 4 Nov 2014 16:34:27 +0000 (11:34 -0500)]
Cleanup formatting in radiusd.c
Arran Cudbard-Bell [Tue, 4 Nov 2014 15:54:15 +0000 (10:54 -0500)]
Update ChangeLog
Arran Cudbard-Bell [Tue, 4 Nov 2014 13:56:46 +0000 (08:56 -0500)]
Update ChangeLog
Arran Cudbard-Bell [Tue, 4 Nov 2014 06:23:52 +0000 (01:23 -0500)]
Formatting
Arran Cudbard-Bell [Tue, 4 Nov 2014 06:01:02 +0000 (01:01 -0500)]
Fix assumption in radius_compare_vps that the check item is always a string (oops)
Arran Cudbard-Bell [Tue, 4 Nov 2014 06:00:29 +0000 (01:00 -0500)]
Process the *expanded* check items for rlm_files
Arran Cudbard-Bell [Tue, 4 Nov 2014 05:08:38 +0000 (00:08 -0500)]
Fixup mysql driver script to work with libmysqlclient >= 5.6
Arran Cudbard-Bell [Tue, 4 Nov 2014 05:08:16 +0000 (00:08 -0500)]
Formatting in mysql driver
Arran Cudbard-Bell [Tue, 4 Nov 2014 03:27:01 +0000 (22:27 -0500)]
Helpful if it's info so it shows up in the main log
Arran Cudbard-Bell [Tue, 4 Nov 2014 03:05:33 +0000 (22:05 -0500)]
Merge pull request #827 from leprechau/tokener-cleanup
minor cleanups
Arran Cudbard-Bell [Mon, 3 Nov 2014 20:00:04 +0000 (15:00 -0500)]
Link to libcap to determine process capabilities
This lets us know whether the debugger attach check is failing because
we don't have CAP_SYS_PTRACE or because there really is another
debugger attached already.
Arran Cudbard-Bell [Mon, 3 Nov 2014 22:08:46 +0000 (17:08 -0500)]
Add libcap-dev dependency for travis and debian packages
Alan T. DeKok [Mon, 3 Nov 2014 20:35:58 +0000 (15:35 -0500)]
Fix fr_utf8_strchar() and tests
allowed characters shouldn't be escaped in the test.
the function returns const
it checks for fr_utf8_char() of str, not char the second time
around
Aaron Hurt [Mon, 3 Nov 2014 21:24:16 +0000 (15:24 -0600)]
* use the same json token parsing function everywhere
* cleanup now un-used functions in jsonc_missing
* minor function naming cleanup in mod.c
* add missing prototype to mod.h
Alan T. DeKok [Mon, 3 Nov 2014 20:35:58 +0000 (15:35 -0500)]
Fix fr_utf8_strchar() and tests
allowed characters shouldn't be escaped in the test.
the function returns const
it checks for fr_utf8_char() of str, not char the second time
around
Alan T. DeKok [Mon, 3 Nov 2014 19:37:59 +0000 (14:37 -0500)]
Allow TLS 1.1 and 1.2
Arran Cudbard-Bell [Mon, 3 Nov 2014 16:46:59 +0000 (11:46 -0500)]
Another typo
Alan T. DeKok [Mon, 3 Nov 2014 16:45:58 +0000 (11:45 -0500)]
Fix compile error
Alan T. DeKok [Mon, 3 Nov 2014 16:45:27 +0000 (11:45 -0500)]
Allow all UTF-8 characters
Arran Cudbard-Bell [Mon, 3 Nov 2014 16:16:46 +0000 (11:16 -0500)]
Typo
Alan T. DeKok [Mon, 3 Nov 2014 15:37:05 +0000 (10:37 -0500)]
Add reply attributes, not over-write them
Arran Cudbard-Bell [Mon, 3 Nov 2014 15:14:24 +0000 (10:14 -0500)]
Quiet GCC
Arran Cudbard-Bell [Mon, 3 Nov 2014 15:14:16 +0000 (10:14 -0500)]
More fixes for fr_debugger_attached
Alan T. DeKok [Mon, 3 Nov 2014 13:47:47 +0000 (08:47 -0500)]
Better checks for duplicates.
If the old packet is in RESPONSE_DELAY or CLEANUP_DELAY,
we can delete the old packet. This is really only for DHCP.
Arran Cudbard-Bell [Mon, 3 Nov 2014 05:52:28 +0000 (00:52 -0500)]
Debugging info to help find out why the ptrace attach failed
Arran Cudbard-Bell [Mon, 3 Nov 2014 05:40:19 +0000 (00:40 -0500)]
Fix infinite loop in fr_fault if initial pattach fails (indicating process is running under debugger), and process receives either SIGUSR1 or SIGUSR2
Arran Cudbard-Bell [Sun, 2 Nov 2014 21:52:13 +0000 (16:52 -0500)]
Quiet GCC
Arran Cudbard-Bell [Sun, 2 Nov 2014 21:37:35 +0000 (16:37 -0500)]
Fix %{escape:} and %{unecape:} to work correctly with UTF8 safe characters
Alan T. DeKok [Sun, 2 Nov 2014 20:34:53 +0000 (15:34 -0500)]
IDs are signed for DHCP. Closes #797.
We don't want integer overflow.
Alan T. DeKok [Sun, 2 Nov 2014 19:44:43 +0000 (14:44 -0500)]
Load internal dictionary, for Packet-Src-IP-Address, etc.
Alan T. DeKok [Sun, 2 Nov 2014 19:44:32 +0000 (14:44 -0500)]
Added -D option to mirror radclient
Alan T. DeKok [Sun, 2 Nov 2014 19:30:31 +0000 (14:30 -0500)]
Document session-state some more
Arran Cudbard-Bell [Fri, 31 Oct 2014 18:05:47 +0000 (14:05 -0400)]
Fix log messages
Arran Cudbard-Bell [Fri, 31 Oct 2014 00:45:40 +0000 (20:45 -0400)]
Convert one cast call to value_data_cast
Arran Cudbard-Bell [Fri, 31 Oct 2014 00:39:40 +0000 (20:39 -0400)]
Make arguments consistent between value_data functions
Alan T. DeKok [Fri, 31 Oct 2014 15:05:27 +0000 (11:05 -0400)]
Tie session state into the rest of the server.
Alan T. DeKok [Fri, 31 Oct 2014 15:05:06 +0000 (11:05 -0400)]
API to get / put session state
Alan T. DeKok [Fri, 31 Oct 2014 14:29:28 +0000 (10:29 -0400)]
Fix assertions
Arran Cudbard-Bell [Thu, 30 Oct 2014 22:34:31 +0000 (18:34 -0400)]
Fix const casts
Arran Cudbard-Bell [Thu, 30 Oct 2014 22:31:50 +0000 (18:31 -0400)]
Convert xlat_debug_attr to use more library functions
Arran Cudbard-Bell [Thu, 30 Oct 2014 22:31:23 +0000 (18:31 -0400)]
Fix SEGV when parsing 64bit integer fails
Arran Cudbard-Bell [Thu, 30 Oct 2014 22:31:04 +0000 (18:31 -0400)]
Indentation
Arran Cudbard-Bell [Thu, 30 Oct 2014 22:30:53 +0000 (18:30 -0400)]
Print booleans
Arran Cudbard-Bell [Thu, 30 Oct 2014 21:17:30 +0000 (17:17 -0400)]
Add value_data_cast and use it to perform casts for hex xlat
Eventual plan is to use it everywhere we need to perform casts
Arran Cudbard-Bell [Thu, 30 Oct 2014 21:16:51 +0000 (17:16 -0400)]
Quiet GCC
Arran Cudbard-Bell [Thu, 30 Oct 2014 19:05:11 +0000 (15:05 -0400)]
Fix a fixme
Arran Cudbard-Bell [Thu, 30 Oct 2014 19:03:43 +0000 (15:03 -0400)]
Same for prefix
Arran Cudbard-Bell [Thu, 30 Oct 2014 18:47:45 +0000 (14:47 -0400)]
another missed cast
Arran Cudbard-Bell [Thu, 30 Oct 2014 18:46:00 +0000 (14:46 -0400)]
rename vp_aprint_value to vp_aprints_value
Arran Cudbard-Bell [Thu, 30 Oct 2014 18:44:29 +0000 (14:44 -0400)]
convert vp_aprint_value to vp_data_aprints_value
Arran Cudbard-Bell [Thu, 30 Oct 2014 18:01:36 +0000 (14:01 -0400)]
Indent
Alan T. DeKok [Thu, 30 Oct 2014 18:08:21 +0000 (14:08 -0400)]
Fix typo
Arran Cudbard-Bell [Thu, 30 Oct 2014 17:58:58 +0000 (13:58 -0400)]
Missed cast
Arran Cudbard-Bell [Thu, 30 Oct 2014 17:49:29 +0000 (13:49 -0400)]
Fixup validation functions to deal with polymorphic attributes
Arran Cudbard-Bell [Thu, 30 Oct 2014 17:49:12 +0000 (13:49 -0400)]
Fixup dict_attr on LHS of tmpl for polymorphic attributes
Arran Cudbard-Bell [Thu, 30 Oct 2014 17:48:54 +0000 (13:48 -0400)]
Copy the name field of polymorphic attributes correctly
Arran Cudbard-Bell [Thu, 30 Oct 2014 16:12:46 +0000 (12:12 -0400)]
Alloc value_data_t as part of tmpls
Alan T. DeKok [Thu, 30 Oct 2014 15:30:20 +0000 (11:30 -0400)]
If LHS is combo-IP, mash the LHS to the type of the RHS
Alan T. DeKok [Thu, 30 Oct 2014 15:29:45 +0000 (11:29 -0400)]
Tests for WiMAX combo IP addresses.
Which will break the server until new code is written
Alan T. DeKok [Thu, 30 Oct 2014 15:08:10 +0000 (11:08 -0400)]
It's COMBO_IP_ADDR
Arran Cudbard-Bell [Thu, 30 Oct 2014 15:06:22 +0000 (11:06 -0400)]
Copy to octets is not a strdup
Alan T. DeKok [Thu, 30 Oct 2014 14:56:20 +0000 (10:56 -0400)]
Run authentication tests, too
Alan T. DeKok [Thu, 30 Oct 2014 14:52:53 +0000 (10:52 -0400)]
whitespace
Alan T. DeKok [Thu, 30 Oct 2014 14:43:52 +0000 (10:43 -0400)]
Grammar
Alan T. DeKok [Thu, 30 Oct 2014 14:42:53 +0000 (10:42 -0400)]
Remove unused variable
Alan T. DeKok [Thu, 30 Oct 2014 14:41:43 +0000 (10:41 -0400)]
Install example config file
Arran Cudbard-Bell [Thu, 30 Oct 2014 14:38:43 +0000 (10:38 -0400)]
Stop compiler complaints
Arran Cudbard-Bell [Thu, 30 Oct 2014 14:35:54 +0000 (10:35 -0400)]
Fixup support for polymorphic attributes (maybe)
Arran Cudbard-Bell [Thu, 30 Oct 2014 14:35:37 +0000 (10:35 -0400)]
Set buffer type in value_data_from_str when allocing octets types buffers
Alan T. DeKok [Thu, 30 Oct 2014 14:25:36 +0000 (10:25 -0400)]
listener is NULL for Status-Server packets
Arran Cudbard-Bell [Thu, 30 Oct 2014 02:45:55 +0000 (22:45 -0400)]
Make arguments between vp_data_prints_value and value_data_from_str consistent
Arran Cudbard-Bell [Thu, 30 Oct 2014 02:34:27 +0000 (22:34 -0400)]
Convert pairparsevalue to value_data_from_str which does the same thing but writes the result to a value_data_t
This makes it more useful for evaluating conditions
Arran Cudbard-Bell [Thu, 30 Oct 2014 02:31:05 +0000 (22:31 -0400)]
Formatting
Arran Cudbard-Bell [Thu, 30 Oct 2014 00:18:58 +0000 (20:18 -0400)]
Useful macro
Arran Cudbard-Bell [Wed, 29 Oct 2014 21:26:45 +0000 (17:26 -0400)]
Split out value data functions into value.c and rename valuepair.c to pair.c
Alan T. DeKok [Wed, 29 Oct 2014 21:19:41 +0000 (17:19 -0400)]
Remember OPENSSL_CPPFLAGS and use them
Alan T. DeKok [Wed, 29 Oct 2014 19:50:00 +0000 (15:50 -0400)]
Newer registrations replace old ones
So that for HUP, the xlat's go to the new modules
Alan T. DeKok [Wed, 29 Oct 2014 19:47:57 +0000 (15:47 -0400)]
Automatically remove xlat's when we free a module instance
Alan T. DeKok [Wed, 29 Oct 2014 19:38:59 +0000 (15:38 -0400)]
Add xlat_unregister_module()
Which unregisters all xlat's for a module instance.
So that the modules don't have to do that.
Alan T. DeKok [Wed, 29 Oct 2014 19:32:04 +0000 (15:32 -0400)]
Note recent changes
Arran Cudbard-Bell [Wed, 29 Oct 2014 15:58:00 +0000 (11:58 -0400)]
Colourise should be bool
Arran Cudbard-Bell [Wed, 29 Oct 2014 15:54:45 +0000 (11:54 -0400)]
Avoid writing "Error: rlm_sql (sql): Cannot open new connection, connection spawning already in progress" when maintaining spares
Arran Cudbard-Bell [Wed, 29 Oct 2014 15:23:27 +0000 (11:23 -0400)]
Don't SEGV if start connections is set and we have a connection initialisation statement
Alan T. DeKok [Wed, 29 Oct 2014 15:05:01 +0000 (11:05 -0400)]
Decode unknown VSAs which are in RFC format