]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:09:36 +0000 (12:09 -0700)]
Move &foo -> &foo[*] fix to the update section fix function
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:08:40 +0000 (12:08 -0700)]
Compile update section LHS
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:08:17 +0000 (12:08 -0700)]
Advance output cursor so we print debug correctly in xlat_eval
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:07:59 +0000 (12:07 -0700)]
When calling legacy xlat functions and we don't have any input, pass in a zero length string
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:07:34 +0000 (12:07 -0700)]
Strip quotes correctly in fr_json_from_string
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:07:09 +0000 (12:07 -0700)]
Use concat
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:07:02 +0000 (12:07 -0700)]
Use instances explicitly
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:06:45 +0000 (12:06 -0700)]
Specify instances explicitly
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:06:31 +0000 (12:06 -0700)]
Split update sections in quote.unlang
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:06:08 +0000 (12:06 -0700)]
Use talloc_typed_strdup in more places
So talloc_get_type_abort(foo, char) works.
Arran Cudbard-Bell [Thu, 25 Jan 2018 17:38:11 +0000 (10:38 -0700)]
Various test fixes
Arran Cudbard-Bell [Thu, 25 Jan 2018 17:37:50 +0000 (10:37 -0700)]
Move unlang update code into a separate source file
Arran Cudbard-Bell [Thu, 25 Jan 2018 17:37:05 +0000 (10:37 -0700)]
Bix list concat should set head box to NULL if it's freed
Arran Cudbard-Bell [Thu, 25 Jan 2018 17:36:30 +0000 (10:36 -0700)]
Formatting
Arran Cudbard-Bell [Thu, 25 Jan 2018 06:38:10 +0000 (23:38 -0700)]
Print (null) for null vb in %pM
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:56:22 +0000 (20:56 -0700)]
Make result input to xlat functions a straight fr_value_box_t
If they need to track state over resumes, they can just keep track of it in their own cursor.
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:54:19 +0000 (20:54 -0700)]
Add list 'o boxes free function
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:27:30 +0000 (20:27 -0700)]
Don't shallow copy anything...
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:27:16 +0000 (20:27 -0700)]
Print the length of hash we expect
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:27:05 +0000 (20:27 -0700)]
Explicitly specify instances
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:26:47 +0000 (20:26 -0700)]
Add &
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:26:25 +0000 (20:26 -0700)]
...again have to specify Class[0] explicitly
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:26:05 +0000 (20:26 -0700)]
There's no implicit [0] anymore
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:25:40 +0000 (20:25 -0700)]
Add &
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:25:24 +0000 (20:25 -0700)]
Specify instances explicitly
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:25:05 +0000 (20:25 -0700)]
Add &
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:24:51 +0000 (20:24 -0700)]
Regression test for multiple !* ANY maps
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:24:20 +0000 (20:24 -0700)]
Need to use the first instance explicitly now
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:24:05 +0000 (20:24 -0700)]
Make update-remove-tag atomic update section safe
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:20:11 +0000 (20:20 -0700)]
Print when we create new xlat instances (debug3)
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:19:56 +0000 (20:19 -0700)]
Better safe than sorry...
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:19:26 +0000 (20:19 -0700)]
Add new concat and bin functions
concat joins the output of multivalued expansions together with a ',' and bin converts hex strings to binary strings
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:18:43 +0000 (20:18 -0700)]
Print expansion of more values
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:17:56 +0000 (20:17 -0700)]
Don't do shallow copies of string buffers in xlat_eval.c
It breaks things in subtle ways... more thinking required
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:16:53 +0000 (20:16 -0700)]
Make logic clearer in talloc_buffer_append_buffer
... and \0 terminate the output string, oops
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:15:56 +0000 (20:15 -0700)]
If input to %pV was null substitute for (null) as with strings
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:15:35 +0000 (20:15 -0700)]
Allow custom format specifiers at the start of the format string
"%pV" wasn't working...
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:14:58 +0000 (20:14 -0700)]
Fix fr_cursor_merge so to_append are always inserted in the correct order
Previously they'd be reversed, which is fine for things that don't care about item ordering, but not fine for attribute lists
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:14:19 +0000 (20:14 -0700)]
Rename append functions and fix logix in value.c
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:13:35 +0000 (20:13 -0700)]
Many many map logic fixes
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:12:56 +0000 (20:12 -0700)]
Add map_afrom_vp which... creates a map from a VP
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:12:29 +0000 (20:12 -0700)]
Move map alloc functions and add list_mod_alloc
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:11:29 +0000 (20:11 -0700)]
Rename cursor free functions to make it clearer what they do
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:07:42 +0000 (20:07 -0700)]
Fix copy/pasted typo
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:06:10 +0000 (20:06 -0700)]
Need to shallow copy the map for !* ANY
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:05:34 +0000 (20:05 -0700)]
Print more friendly exec debug information
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:04:27 +0000 (20:04 -0700)]
Perform xlat instantiation in the right order in unit_test_module.c
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:04:07 +0000 (20:04 -0700)]
Formatting
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:03:59 +0000 (20:03 -0700)]
Formatting
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:54:30 +0000 (17:54 -0700)]
Should be an error...
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:38:08 +0000 (17:38 -0700)]
Use the len argument iterator for lengths
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:37:48 +0000 (17:37 -0700)]
Simplify %pM
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:37:13 +0000 (17:37 -0700)]
Print state of the request after update
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:36:55 +0000 (17:36 -0700)]
Have foreach allocate its own buffers
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:49:54 +0000 (16:49 -0700)]
Add utility functions for appending to and concatenating boxed values
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:49:28 +0000 (16:49 -0700)]
Fix vb strsteal function name
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:48:58 +0000 (16:48 -0700)]
Fix value box foreach macro
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:48:47 +0000 (16:48 -0700)]
Add next pointer to vp_list_mod
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:48:36 +0000 (16:48 -0700)]
Types which should have quotes
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:46:24 +0000 (16:46 -0700)]
Formatting
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:46:12 +0000 (16:46 -0700)]
Parent buffer values correctly in xlat_frame_eval
Alan T. DeKok [Thu, 25 Jan 2018 16:55:48 +0000 (11:55 -0500)]
process new conflicting packets
Alan T. DeKok [Thu, 25 Jan 2018 16:51:12 +0000 (11:51 -0500)]
remove extraneous debug messages
Matthew Newton [Thu, 25 Jan 2018 15:43:28 +0000 (15:43 +0000)]
missing space
Alan T. DeKok [Thu, 25 Jan 2018 05:24:27 +0000 (00:24 -0500)]
don't delete entries which are too old
Alan T. DeKok [Thu, 25 Jan 2018 05:22:00 +0000 (00:22 -0500)]
return error if we can't assert at run-time
Alan T. DeKok [Wed, 24 Jan 2018 16:59:48 +0000 (11:59 -0500)]
initialize list for dynamic clients
Alan T. DeKok [Wed, 24 Jan 2018 08:43:06 +0000 (03:43 -0500)]
8K is probably too much
Arran Cudbard-Bell [Tue, 23 Jan 2018 17:15:26 +0000 (10:15 -0700)]
Fix stats timer argument order
Fix from pwdng
Alan T. DeKok [Tue, 23 Jan 2018 13:13:24 +0000 (08:13 -0500)]
copy the unknown VP, due to pool issues
Alan T. DeKok [Tue, 23 Jan 2018 13:06:11 +0000 (08:06 -0500)]
set a larger pool
it's temporary. But a small pool will cause it to just use
normal allocs.
Arran Cudbard-Bell [Tue, 23 Jan 2018 04:17:14 +0000 (21:17 -0700)]
Doxygen
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:53:03 +0000 (20:53 -0700)]
New version of map_to_request and map_to_vp
These assume xlat evaluation will be done by the caller with the results being passed in and also allow the creation and application of a linked list of modifications, so that updates can be atomic again (yay!).
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:33:16 +0000 (20:33 -0700)]
Clarify use of xlat_unlang_push
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:32:50 +0000 (20:32 -0700)]
Formatting
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:32:40 +0000 (20:32 -0700)]
Iterator for next_by_da for new cusor code
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:30:10 +0000 (20:30 -0700)]
Formatting
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:30:00 +0000 (20:30 -0700)]
Formatting
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:29:48 +0000 (20:29 -0700)]
Set next pointer to NULL in fr_value_box_copy_meta
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:29:08 +0000 (20:29 -0700)]
Print helpful error strings in tmpl_cursor_init
Alan T. DeKok [Sun, 21 Jan 2018 15:02:04 +0000 (10:02 -0500)]
disable client tries until issues have been worked out
Arran Cudbard-Bell [Sat, 20 Jan 2018 19:37:13 +0000 (12:37 -0700)]
Doxygen
Arran Cudbard-Bell [Sat, 20 Jan 2018 19:23:43 +0000 (12:23 -0700)]
Move to dynamically allocated redundant state
With the static states gone the stack should be much smaller. The foreach state removed the stack for each request is now 4K smaller, which is non-negligable when you're dealing with 100s of thousands of requests.
Arran Cudbard-Bell [Sat, 20 Jan 2018 19:14:51 +0000 (12:14 -0700)]
Move to dynamically allocated foreach state
Arran Cudbard-Bell [Sat, 20 Jan 2018 18:52:23 +0000 (11:52 -0700)]
They're frame states not stack states
Arran Cudbard-Bell [Sat, 20 Jan 2018 18:42:51 +0000 (11:42 -0700)]
General reshuffling of unlang/xlat things into their proper places
The signal enum needs to be in its own header, because it's used by the proto module state machines and the unlang interpreter, but the two really shouldn't know about each other.
Arran Cudbard-Bell [Sat, 20 Jan 2018 18:38:54 +0000 (11:38 -0700)]
New compiler, new warnings
Arran Cudbard-Bell [Sat, 20 Jan 2018 01:14:28 +0000 (18:14 -0700)]
Small tweaks/fixes
Arran Cudbard-Bell [Sat, 20 Jan 2018 01:10:06 +0000 (18:10 -0700)]
Be forgiving when calling access functions on NULL cursors
Arran Cudbard-Bell [Fri, 19 Jan 2018 23:34:07 +0000 (16:34 -0700)]
Remove old interpreter.h
Arran Cudbard-Bell [Fri, 19 Jan 2018 23:33:44 +0000 (16:33 -0700)]
Don't mess with request->module on resumption
We need a better way of handling this...
Arran Cudbard-Bell [Fri, 19 Jan 2018 23:33:24 +0000 (16:33 -0700)]
Fixes in rest async xlat
Arran Cudbard-Bell [Fri, 19 Jan 2018 23:33:07 +0000 (16:33 -0700)]
Move async xlat fully out of the interpreter
There's still good separation between the xlat interpreter and the unlang interpeter though, which is nice, as it means we can write a "synchronous" loop around the new async xlat interpreter for use in utilities.
Arran Cudbard-Bell [Fri, 19 Jan 2018 23:31:33 +0000 (16:31 -0700)]
Add %pM to print multiple value boxes as a concatenated string
Arran Cudbard-Bell [Fri, 19 Jan 2018 21:41:54 +0000 (14:41 -0700)]
Consistency
Alan T. DeKok [Fri, 19 Jan 2018 20:57:34 +0000 (15:57 -0500)]
re-add (commented out) old client code again
Arran Cudbard-Bell [Fri, 19 Jan 2018 20:35:45 +0000 (13:35 -0700)]
Fix more things so they use the strerror stack
Alan T. DeKok [Fri, 19 Jan 2018 19:24:56 +0000 (14:24 -0500)]
doxygen
Arran Cudbard-Bell [Fri, 19 Jan 2018 19:15:21 +0000 (12:15 -0700)]
Fix unknown attributes when created by use in unlang
Arran Cudbard-Bell [Fri, 19 Jan 2018 18:39:40 +0000 (11:39 -0700)]
Print the full error stack in map.c