]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoMove &foo -> &foo[*] fix to the update section fix function
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:09:36 +0000 (12:09 -0700)] 
Move &foo -> &foo[*] fix to the update section fix function

8 years agoCompile update section LHS
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:08:40 +0000 (12:08 -0700)] 
Compile update section LHS

8 years agoAdvance output cursor so we print debug correctly in xlat_eval
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

8 years agoWhen calling legacy xlat functions and we don't have any input, pass in a zero length...
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

8 years agoStrip quotes correctly in fr_json_from_string
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:07:34 +0000 (12:07 -0700)] 
Strip quotes correctly in fr_json_from_string

8 years agoUse concat
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:07:09 +0000 (12:07 -0700)] 
Use concat

8 years agoUse instances explicitly
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:07:02 +0000 (12:07 -0700)] 
Use instances explicitly

8 years agoSpecify instances explicitly
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:06:45 +0000 (12:06 -0700)] 
Specify instances explicitly

8 years agoSplit update sections in quote.unlang
Arran Cudbard-Bell [Thu, 25 Jan 2018 19:06:31 +0000 (12:06 -0700)] 
Split update sections in quote.unlang

8 years agoUse talloc_typed_strdup in more places
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.

8 years agoVarious test fixes
Arran Cudbard-Bell [Thu, 25 Jan 2018 17:38:11 +0000 (10:38 -0700)] 
Various test fixes

8 years agoMove unlang update code into a separate source file
Arran Cudbard-Bell [Thu, 25 Jan 2018 17:37:50 +0000 (10:37 -0700)] 
Move unlang update code into a separate source file

8 years agoBix list concat should set head box to NULL if it's freed
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

8 years agoFormatting
Arran Cudbard-Bell [Thu, 25 Jan 2018 17:36:30 +0000 (10:36 -0700)] 
Formatting

8 years agoPrint (null) for null vb in %pM
Arran Cudbard-Bell [Thu, 25 Jan 2018 06:38:10 +0000 (23:38 -0700)] 
Print (null) for null vb in %pM

8 years agoMake result input to xlat functions a straight fr_value_box_t
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.

8 years agoAdd list 'o boxes free function
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:54:19 +0000 (20:54 -0700)] 
Add list 'o boxes free function

8 years agoDon't shallow copy anything...
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:27:30 +0000 (20:27 -0700)] 
Don't shallow copy anything...

8 years agoPrint the length of hash we expect
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:27:16 +0000 (20:27 -0700)] 
Print the length of hash we expect

8 years agoExplicitly specify instances
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:27:05 +0000 (20:27 -0700)] 
Explicitly specify instances

8 years agoAdd &
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:26:47 +0000 (20:26 -0700)] 
Add &

8 years ago...again have to specify Class[0] explicitly
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:26:25 +0000 (20:26 -0700)] 
...again have to specify Class[0] explicitly

8 years agoThere's no implicit [0] anymore
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:26:05 +0000 (20:26 -0700)] 
There's no implicit [0] anymore

8 years agoAdd &
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:25:40 +0000 (20:25 -0700)] 
Add &

8 years agoSpecify instances explicitly
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:25:24 +0000 (20:25 -0700)] 
Specify instances explicitly

8 years agoAdd &
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:25:05 +0000 (20:25 -0700)] 
Add &

8 years agoRegression test for multiple !* ANY maps
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:24:51 +0000 (20:24 -0700)] 
Regression test for multiple !* ANY maps

8 years agoNeed to use the first instance explicitly now
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:24:20 +0000 (20:24 -0700)] 
Need to use the first instance explicitly now

8 years agoMake update-remove-tag atomic update section safe
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:24:05 +0000 (20:24 -0700)] 
Make update-remove-tag atomic update section safe

8 years agoPrint when we create new xlat instances (debug3)
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:20:11 +0000 (20:20 -0700)] 
Print when we create new xlat instances (debug3)

8 years agoBetter safe than sorry...
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:19:56 +0000 (20:19 -0700)] 
Better safe than sorry...

8 years agoAdd new concat and bin functions
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

8 years agoPrint expansion of more values
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:18:43 +0000 (20:18 -0700)] 
Print expansion of more values

8 years agoDon't do shallow copies of string buffers in xlat_eval.c
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

8 years agoMake logic clearer in talloc_buffer_append_buffer
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

8 years agoIf input to %pV was null substitute for (null) as with strings
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

8 years agoAllow custom format specifiers at the start of the format string
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...

8 years agoFix fr_cursor_merge so to_append are always inserted in the correct order
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

8 years agoRename append functions and fix logix in value.c
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:14:19 +0000 (20:14 -0700)] 
Rename append functions and fix logix in value.c

8 years agoMany many map logic fixes
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:13:35 +0000 (20:13 -0700)] 
Many many map logic fixes

8 years agoAdd map_afrom_vp which... creates a map from a VP
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

8 years agoMove map alloc functions and add list_mod_alloc
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:12:29 +0000 (20:12 -0700)] 
Move map alloc functions and add list_mod_alloc

8 years agoRename cursor free functions to make it clearer what they do
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

8 years agoFix copy/pasted typo
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:07:42 +0000 (20:07 -0700)] 
Fix copy/pasted typo

8 years agoNeed to shallow copy the map for !* ANY
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:06:10 +0000 (20:06 -0700)] 
Need to shallow copy the map for !* ANY

8 years agoPrint more friendly exec debug information
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:05:34 +0000 (20:05 -0700)] 
Print more friendly exec debug information

8 years agoPerform xlat instantiation in the right order in unit_test_module.c
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

8 years agoFormatting
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:04:07 +0000 (20:04 -0700)] 
Formatting

8 years agoFormatting
Arran Cudbard-Bell [Thu, 25 Jan 2018 03:03:59 +0000 (20:03 -0700)] 
Formatting

8 years agoShould be an error...
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:54:30 +0000 (17:54 -0700)] 
Should be an error...

8 years agoUse the len argument iterator for lengths
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:38:08 +0000 (17:38 -0700)] 
Use the len argument iterator for lengths

8 years agoSimplify %pM
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:37:48 +0000 (17:37 -0700)] 
Simplify %pM

8 years agoPrint state of the request after update
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:37:13 +0000 (17:37 -0700)] 
Print state of the request after update

8 years agoHave foreach allocate its own buffers
Arran Cudbard-Bell [Wed, 24 Jan 2018 00:36:55 +0000 (17:36 -0700)] 
Have foreach allocate its own buffers

8 years agoAdd utility functions for appending to and concatenating boxed values
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:49:54 +0000 (16:49 -0700)] 
Add utility functions for appending to and concatenating boxed values

8 years agoFix vb strsteal function name
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:49:28 +0000 (16:49 -0700)] 
Fix vb strsteal function name

8 years agoFix value box foreach macro
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:48:58 +0000 (16:48 -0700)] 
Fix value box foreach macro

8 years agoAdd next pointer to vp_list_mod
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:48:47 +0000 (16:48 -0700)] 
Add next pointer to vp_list_mod

8 years agoTypes which should have quotes
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:48:36 +0000 (16:48 -0700)] 
Types which should have quotes

8 years agoFormatting
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:46:24 +0000 (16:46 -0700)] 
Formatting

8 years agoParent buffer values correctly in xlat_frame_eval
Arran Cudbard-Bell [Tue, 23 Jan 2018 23:46:12 +0000 (16:46 -0700)] 
Parent buffer values correctly in xlat_frame_eval

8 years agoprocess new conflicting packets
Alan T. DeKok [Thu, 25 Jan 2018 16:55:48 +0000 (11:55 -0500)] 
process new conflicting packets

8 years agoremove extraneous debug messages
Alan T. DeKok [Thu, 25 Jan 2018 16:51:12 +0000 (11:51 -0500)] 
remove extraneous debug messages

8 years agomissing space
Matthew Newton [Thu, 25 Jan 2018 15:43:28 +0000 (15:43 +0000)] 
missing space

8 years agodon't delete entries which are too old
Alan T. DeKok [Thu, 25 Jan 2018 05:24:27 +0000 (00:24 -0500)] 
don't delete entries which are too old

8 years agoreturn error if we can't assert at run-time
Alan T. DeKok [Thu, 25 Jan 2018 05:22:00 +0000 (00:22 -0500)] 
return error if we can't assert at run-time

8 years agoinitialize list for dynamic clients
Alan T. DeKok [Wed, 24 Jan 2018 16:59:48 +0000 (11:59 -0500)] 
initialize list for dynamic clients

8 years ago8K is probably too much
Alan T. DeKok [Wed, 24 Jan 2018 08:43:06 +0000 (03:43 -0500)] 
8K is probably too much

8 years agoFix stats timer argument order
Arran Cudbard-Bell [Tue, 23 Jan 2018 17:15:26 +0000 (10:15 -0700)] 
Fix stats timer argument order

Fix from pwdng

8 years agocopy the unknown VP, due to pool issues
Alan T. DeKok [Tue, 23 Jan 2018 13:13:24 +0000 (08:13 -0500)] 
copy the unknown VP, due to pool issues

8 years agoset a larger pool
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.

8 years agoDoxygen
Arran Cudbard-Bell [Tue, 23 Jan 2018 04:17:14 +0000 (21:17 -0700)] 
Doxygen

8 years agoNew version of map_to_request and map_to_vp
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!).

8 years agoClarify use of xlat_unlang_push
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:33:16 +0000 (20:33 -0700)] 
Clarify use of xlat_unlang_push

8 years agoFormatting
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:32:50 +0000 (20:32 -0700)] 
Formatting

8 years agoIterator for next_by_da for new cusor code
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:32:40 +0000 (20:32 -0700)] 
Iterator for next_by_da for new cusor code

8 years agoFormatting
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:30:10 +0000 (20:30 -0700)] 
Formatting

8 years agoFormatting
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:30:00 +0000 (20:30 -0700)] 
Formatting

8 years agoSet next pointer to NULL in fr_value_box_copy_meta
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

8 years agoPrint helpful error strings in tmpl_cursor_init
Arran Cudbard-Bell [Tue, 23 Jan 2018 03:29:08 +0000 (20:29 -0700)] 
Print helpful error strings in tmpl_cursor_init

8 years agodisable client tries until issues have been worked out
Alan T. DeKok [Sun, 21 Jan 2018 15:02:04 +0000 (10:02 -0500)] 
disable client tries until issues have been worked out

8 years agoDoxygen
Arran Cudbard-Bell [Sat, 20 Jan 2018 19:37:13 +0000 (12:37 -0700)] 
Doxygen

8 years agoMove to dynamically allocated redundant state
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.

8 years agoMove to dynamically allocated foreach state
Arran Cudbard-Bell [Sat, 20 Jan 2018 19:14:51 +0000 (12:14 -0700)] 
Move to dynamically allocated foreach state

8 years agoThey're frame states not stack states
Arran Cudbard-Bell [Sat, 20 Jan 2018 18:52:23 +0000 (11:52 -0700)] 
They're frame states not stack states

8 years agoGeneral reshuffling of unlang/xlat things into their proper places
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.

8 years agoNew compiler, new warnings
Arran Cudbard-Bell [Sat, 20 Jan 2018 18:38:54 +0000 (11:38 -0700)] 
New compiler, new warnings

8 years agoSmall tweaks/fixes
Arran Cudbard-Bell [Sat, 20 Jan 2018 01:14:28 +0000 (18:14 -0700)] 
Small tweaks/fixes

8 years agoBe forgiving when calling access functions on NULL cursors
Arran Cudbard-Bell [Sat, 20 Jan 2018 01:10:06 +0000 (18:10 -0700)] 
Be forgiving when calling access functions on NULL cursors

8 years agoRemove old interpreter.h
Arran Cudbard-Bell [Fri, 19 Jan 2018 23:34:07 +0000 (16:34 -0700)] 
Remove old interpreter.h

8 years agoDon't mess with request->module on resumption
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...

8 years agoFixes in rest async xlat
Arran Cudbard-Bell [Fri, 19 Jan 2018 23:33:24 +0000 (16:33 -0700)] 
Fixes in rest async xlat

8 years agoMove async xlat fully out of the interpreter
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.

8 years agoAdd %pM to print multiple value boxes as a concatenated string
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

8 years agoConsistency
Arran Cudbard-Bell [Fri, 19 Jan 2018 21:41:54 +0000 (14:41 -0700)] 
Consistency

8 years agore-add (commented out) old client code again
Alan T. DeKok [Fri, 19 Jan 2018 20:57:34 +0000 (15:57 -0500)] 
re-add (commented out) old client code again

8 years agoFix more things so they use the strerror stack
Arran Cudbard-Bell [Fri, 19 Jan 2018 20:35:45 +0000 (13:35 -0700)] 
Fix more things so they use the strerror stack

8 years agodoxygen
Alan T. DeKok [Fri, 19 Jan 2018 19:24:56 +0000 (14:24 -0500)] 
doxygen

8 years agoFix unknown attributes when created by use in unlang
Arran Cudbard-Bell [Fri, 19 Jan 2018 19:15:21 +0000 (12:15 -0700)] 
Fix unknown attributes when created by use in unlang

8 years agoPrint the full error stack in map.c
Arran Cudbard-Bell [Fri, 19 Jan 2018 18:39:40 +0000 (11:39 -0700)] 
Print the full error stack in map.c