]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoPeform adds after deletes because libkqueue/epoll are not smart enough to allow an...
Arran Cudbard-Bell [Thu, 1 Feb 2018 01:33:21 +0000 (18:33 -0700)] 
Peform adds after deletes because libkqueue/epoll are not smart enough to allow an add and a delete in the same operation even if they're for different filters

8 years agoCheck for both UMTS rcodes
Arran Cudbard-Bell [Wed, 31 Jan 2018 23:40:45 +0000 (16:40 -0700)] 
Check for both UMTS rcodes

8 years agoMake that global log
Arran Cudbard-Bell [Wed, 31 Jan 2018 23:15:33 +0000 (16:15 -0700)] 
Make that global log

8 years agoMark up duplicate requests as warnings
Arran Cudbard-Bell [Wed, 31 Jan 2018 23:11:56 +0000 (16:11 -0700)] 
Mark up duplicate requests as warnings

8 years agoRemember the request that previously thawed the state
Arran Cudbard-Bell [Wed, 31 Jan 2018 22:36:12 +0000 (15:36 -0700)] 
Remember the request that previously thawed the state

8 years agodoxygen
Alan T. DeKok [Wed, 31 Jan 2018 22:32:50 +0000 (17:32 -0500)] 
doxygen

8 years agoconst issues
Alan T. DeKok [Wed, 31 Jan 2018 22:31:30 +0000 (17:31 -0500)] 
const issues

8 years agobe more forgiving here, too
Alan T. DeKok [Wed, 31 Jan 2018 21:56:47 +0000 (16:56 -0500)] 
be more forgiving here, too

8 years agobe more forgiving...
Alan T. DeKok [Wed, 31 Jan 2018 21:52:20 +0000 (16:52 -0500)] 
be more forgiving...

8 years agomore talloc_get_type_abort
Alan T. DeKok [Wed, 31 Jan 2018 21:45:59 +0000 (16:45 -0500)] 
more talloc_get_type_abort

8 years agoconvert assert to run-time check
Alan T. DeKok [Wed, 31 Jan 2018 21:45:46 +0000 (16:45 -0500)] 
convert assert to run-time check

so that it doesn't stomp on memory

8 years agowhen walking up the stack signalling all the things, update their view of the current...
Arran Cudbard-Bell [Wed, 31 Jan 2018 20:40:09 +0000 (13:40 -0700)] 
when walking up the stack signalling all the things, update their view of the current stack frame

8 years agosend duplicate replies on duplicate requests
Alan T. DeKok [Wed, 31 Jan 2018 19:55:29 +0000 (14:55 -0500)] 
send duplicate replies on duplicate requests

8 years agoset duplicate timestamp
Alan T. DeKok [Wed, 31 Jan 2018 19:50:51 +0000 (14:50 -0500)] 
set duplicate timestamp

8 years agoone more clean up tracking table entry...
Alan T. DeKok [Wed, 31 Jan 2018 19:15:38 +0000 (14:15 -0500)] 
one more clean up tracking table entry...

8 years agocleanups
Alan T. DeKok [Wed, 31 Jan 2018 18:56:15 +0000 (13:56 -0500)] 
cleanups

8 years agoOnly parse the username portion of the identity string in fr_sim_id_type
Arran Cudbard-Bell [Wed, 31 Jan 2018 18:14:54 +0000 (11:14 -0700)] 
Only parse the username portion of the identity string in fr_sim_id_type

8 years agoFix zero length format string warnings
Arran Cudbard-Bell [Wed, 31 Jan 2018 17:55:08 +0000 (10:55 -0700)] 
Fix zero length format string warnings

8 years agoMake tls-verify-cert work with async calls
Arran Cudbard-Bell [Wed, 31 Jan 2018 17:47:47 +0000 (10:47 -0700)] 
Make tls-verify-cert work with async calls

8 years agoUse const free when freeing reply in fr_radius_tracking_entry_reply
Arran Cudbard-Bell [Wed, 31 Jan 2018 17:47:24 +0000 (10:47 -0700)] 
Use const free when freeing reply in fr_radius_tracking_entry_reply

8 years agoFixup some eap submodule return codes
Arran Cudbard-Bell [Wed, 31 Jan 2018 17:47:03 +0000 (10:47 -0700)] 
Fixup some eap submodule return codes

8 years agoIf entry->reply is already set, free it
Arran Cudbard-Bell [Wed, 31 Jan 2018 16:22:55 +0000 (09:22 -0700)] 
If entry->reply is already set, free it

8 years agotrack FD filter type
Alan T. DeKok [Wed, 31 Jan 2018 16:26:56 +0000 (11:26 -0500)] 
track FD filter type

and delete sockets before calling module detach or freeing the
event list, to ensure proper ordering.

8 years agoassert if FD is closed before it's removed from the event list
Alan T. DeKok [Wed, 31 Jan 2018 16:25:26 +0000 (11:25 -0500)] 
assert if FD is closed before it's removed from the event list

and continue deleting things even if something goes wrong.
We can't recover, so we might as well keep going.

8 years agoparse the limit section, and retransmit.
Alan T. DeKok [Wed, 31 Jan 2018 15:49:22 +0000 (10:49 -0500)] 
parse the limit section, and retransmit.

These aren't *technically* part of the detail "file" reader,
they're part of the worker.  But they *are* copied to the worker.
And they are in the default config.  So we should parse and use them here.

8 years agobe more accepting of boundary values
Alan T. DeKok [Wed, 31 Jan 2018 15:48:55 +0000 (10:48 -0500)] 
be more accepting of boundary values

8 years agolower the limits on num_messages
Alan T. DeKok [Wed, 31 Jan 2018 15:40:26 +0000 (10:40 -0500)] 
lower the limits on num_messages

which should drastically decrease the memory usage of the detail
file reader

8 years agoDon't leak memory on zero length expansion
Arran Cudbard-Bell [Wed, 31 Jan 2018 14:13:31 +0000 (07:13 -0700)] 
Don't leak memory on zero length expansion

8 years agoAdd basic, outer eap result functions
Arran Cudbard-Bell [Wed, 31 Jan 2018 05:41:03 +0000 (22:41 -0700)] 
Add basic, outer eap result functions

8 years agoRemove unused function eap_basic_compose
Arran Cudbard-Bell [Wed, 31 Jan 2018 05:40:22 +0000 (22:40 -0700)] 
Remove unused function eap_basic_compose

8 years agoFormatting
Arran Cudbard-Bell [Wed, 31 Jan 2018 05:38:14 +0000 (22:38 -0700)] 
Formatting

8 years agoone more assert...
Alan T. DeKok [Wed, 31 Jan 2018 11:36:56 +0000 (06:36 -0500)] 
one more assert...

8 years agotypo
Alan T. DeKok [Wed, 31 Jan 2018 11:36:51 +0000 (06:36 -0500)] 
typo

8 years agodetached children can run forever... mostly
Alan T. DeKok [Tue, 30 Jan 2018 20:07:15 +0000 (15:07 -0500)] 
detached children can run forever... mostly

8 years agoremove unused struct entry
Alan T. DeKok [Tue, 30 Jan 2018 20:04:10 +0000 (15:04 -0500)] 
remove unused struct entry

8 years agoThe behaviour of -C and -X should be identical in terms of what's allowed
Arran Cudbard-Bell [Wed, 31 Jan 2018 02:27:58 +0000 (19:27 -0700)] 
The behaviour of -C and -X should be identical in terms of what's allowed

8 years agoPass in structure names, because sizeof(sizeof(rest_xlat_thread_inst_t)) is not what...
Arran Cudbard-Bell [Wed, 31 Jan 2018 02:16:59 +0000 (19:16 -0700)] 
Pass in structure names, because sizeof(sizeof(rest_xlat_thread_inst_t)) is not what we want

8 years agoInitialise state tree earlier?
Arran Cudbard-Bell [Wed, 31 Jan 2018 01:20:33 +0000 (18:20 -0700)] 
Initialise state tree earlier?

We seem to start processing requests before it's started

8 years agoSet xlat instance data correctly instead of synthesizing it
Arran Cudbard-Bell [Wed, 31 Jan 2018 01:14:25 +0000 (18:14 -0700)] 
Set xlat instance data correctly instead of synthesizing it

8 years agoRaise state tree exhaustion as an issue in the logs, and don't respond if we can...
Arran Cudbard-Bell [Wed, 31 Jan 2018 00:34:56 +0000 (17:34 -0700)] 
Raise state tree exhaustion as an issue in the logs, and don't respond if we can't alloc state entries

8 years agoFix build issues
Arran Cudbard-Bell [Wed, 31 Jan 2018 00:07:41 +0000 (17:07 -0700)] 
Fix build issues

8 years agoFix const issues
Arran Cudbard-Bell [Tue, 30 Jan 2018 23:55:38 +0000 (16:55 -0700)] 
Fix const issues

8 years agodoxygen
Arran Cudbard-Bell [Tue, 30 Jan 2018 23:54:39 +0000 (16:54 -0700)] 
doxygen

8 years agoIndent debug
Arran Cudbard-Bell [Tue, 30 Jan 2018 23:46:30 +0000 (16:46 -0700)] 
Indent debug

8 years agoasync xlat functions with no arguments can yield too!
Arran Cudbard-Bell [Tue, 30 Jan 2018 23:46:24 +0000 (16:46 -0700)] 
async xlat functions with no arguments can yield too!

8 years agoAdd xlat for rlm_delay
Arran Cudbard-Bell [Tue, 30 Jan 2018 21:52:10 +0000 (14:52 -0700)] 
Add xlat for rlm_delay

...it delays things.

8 years agoAdd xlat specific infrastructure for timeouts
Arran Cudbard-Bell [Tue, 30 Jan 2018 23:43:03 +0000 (16:43 -0700)] 
Add xlat specific infrastructure for timeouts

8 years agoPass right arguments to xlat async function
Arran Cudbard-Bell [Tue, 30 Jan 2018 23:41:21 +0000 (16:41 -0700)] 
Pass right arguments to xlat async function

Needs the xlat instance, not the wrapper struct

8 years agoAdd more sanity checks and pass correct values to instantiate functions
Arran Cudbard-Bell [Tue, 30 Jan 2018 23:40:48 +0000 (16:40 -0700)] 
Add more sanity checks and pass correct values to instantiate functions

8 years agoTypo
Arran Cudbard-Bell [Tue, 30 Jan 2018 21:51:49 +0000 (14:51 -0700)] 
Typo

8 years agoStore the current result in the stack structure so we can get at it
Arran Cudbard-Bell [Tue, 30 Jan 2018 20:29:12 +0000 (13:29 -0700)] 
Store the current result in the stack structure so we can get at it

8 years agoAdd function to check for compiled unlang data
Arran Cudbard-Bell [Tue, 30 Jan 2018 20:28:35 +0000 (13:28 -0700)] 
Add function to check for compiled unlang data

8 years agos/expanded/expansion/
Arran Cudbard-Bell [Tue, 30 Jan 2018 20:28:01 +0000 (13:28 -0700)] 
s/expanded/expansion/

8 years agounlang_push_section should take a top_frame argument
Arran Cudbard-Bell [Tue, 30 Jan 2018 20:25:47 +0000 (13:25 -0700)] 
unlang_push_section should take a top_frame argument

8 years agoBe better about restoring previous module name, modules can be called inside modules
Arran Cudbard-Bell [Tue, 30 Jan 2018 20:08:26 +0000 (13:08 -0700)] 
Be better about restoring previous module name, modules can be called inside modules

8 years agoSet type of talloc chunk when memduping it
Arran Cudbard-Bell [Tue, 30 Jan 2018 20:05:35 +0000 (13:05 -0700)] 
Set type of talloc chunk when memduping it

8 years agodetach MUST have a parent request
Alan T. DeKok [Tue, 30 Jan 2018 19:50:54 +0000 (14:50 -0500)] 
detach MUST have a parent request

8 years agomore assertions and cleanups
Alan T. DeKok [Tue, 30 Jan 2018 19:50:45 +0000 (14:50 -0500)] 
more assertions and cleanups

8 years agomore debug3 macros
Alan T. DeKok [Tue, 30 Jan 2018 17:29:22 +0000 (12:29 -0500)] 
more debug3 macros

8 years agoadd more verification of requests
Alan T. DeKok [Tue, 30 Jan 2018 17:20:20 +0000 (12:20 -0500)] 
add more verification of requests

8 years agosanity check request->async, too
Alan T. DeKok [Tue, 30 Jan 2018 17:18:38 +0000 (12:18 -0500)] 
sanity check request->async, too

8 years agoRevert "disable exec wait and ignore child signals"
Alan T. DeKok [Tue, 30 Jan 2018 16:33:12 +0000 (11:33 -0500)] 
Revert "disable exec wait and ignore child signals"

This reverts commit 5432dc9359752cea74ed29b249696474e0ddb4b7.

Now that exec.c tracks 'nowait' children, after the previous
commit.

8 years agotrack "nowait" children we've exec'd.
Alan T. DeKok [Tue, 30 Jan 2018 16:32:24 +0000 (11:32 -0500)] 
track "nowait" children we've exec'd.

So that they can be cleaned up appropriately.

8 years agoshow the line number where the tests failed
Alan T. DeKok [Tue, 30 Jan 2018 15:56:34 +0000 (10:56 -0500)] 
show the line number where the tests failed

8 years agodisable exec wait and ignore child signals
Alan T. DeKok [Tue, 30 Jan 2018 15:43:30 +0000 (10:43 -0500)] 
disable exec wait and ignore child signals

until such time as "wait" is integrated into the event loop.

8 years agowhitespace
Alan T. DeKok [Tue, 30 Jan 2018 15:29:36 +0000 (10:29 -0500)] 
whitespace

8 years agodoxygen
Alan T. DeKok [Tue, 30 Jan 2018 14:29:59 +0000 (09:29 -0500)] 
doxygen

8 years agoremove unused variable
Alan T. DeKok [Tue, 30 Jan 2018 14:28:57 +0000 (09:28 -0500)] 
remove unused variable

8 years agoinstruction may be NULL?
Alan T. DeKok [Tue, 30 Jan 2018 14:08:53 +0000 (09:08 -0500)] 
instruction may be NULL?

8 years agoInstall signal handler to destroy EAP sessions
Arran Cudbard-Bell [Tue, 30 Jan 2018 02:37:08 +0000 (19:37 -0700)] 
Install signal handler to destroy EAP sessions

8 years agoExplicitly free rctx
Arran Cudbard-Bell [Tue, 30 Jan 2018 02:04:09 +0000 (19:04 -0700)] 
Explicitly free rctx

Else we'd leak memory into the REQUEST *

8 years agoDon't need this anymore
Arran Cudbard-Bell [Tue, 30 Jan 2018 01:34:56 +0000 (18:34 -0700)] 
Don't need this anymore

8 years agoTry and emulate Linux symbol binding behaviour
Arran Cudbard-Bell [Tue, 30 Jan 2018 00:35:19 +0000 (17:35 -0700)] 
Try and emulate Linux symbol binding behaviour

8 years agoDon't bake module.c into unit_test_module
Arran Cudbard-Bell [Tue, 30 Jan 2018 00:34:48 +0000 (17:34 -0700)] 
Don't bake module.c into unit_test_module

It's provided by libfreeradius-server, and building with it here gives us a chimaera effect, where half the symbols resolve in the local version, and half resolve to libfreeradius-server.dylib

8 years agoSanity check for unlang_signal
Arran Cudbard-Bell [Tue, 30 Jan 2018 00:23:12 +0000 (17:23 -0700)] 
Sanity check for unlang_signal

8 years agoResume frame should repeat too
Arran Cudbard-Bell [Tue, 30 Jan 2018 00:23:00 +0000 (17:23 -0700)] 
Resume frame should repeat too

8 years agoPass a repeat function for going back up the stack
Arran Cudbard-Bell [Tue, 30 Jan 2018 00:22:49 +0000 (17:22 -0700)] 
Pass a repeat function for going back up the stack

8 years agoCase where q is NULL
Arran Cudbard-Bell [Tue, 30 Jan 2018 00:19:20 +0000 (17:19 -0700)] 
Case where q is NULL

8 years agoSwitch to two level namespace in macOS to fix OpenSSL/BoringSSL conflicts
Arran Cudbard-Bell [Mon, 29 Jan 2018 22:31:38 +0000 (15:31 -0700)] 
Switch to two level namespace in macOS to fix OpenSSL/BoringSSL conflicts

8 years agoSet/unset module names when calling signal and resume functions
Arran Cudbard-Bell [Mon, 29 Jan 2018 22:29:50 +0000 (15:29 -0700)] 
Set/unset module names when calling signal and resume functions

Not just cosmetic fixes, we hit asserts if the RINDENTs() and REXDENTS() are done with an inconsistent request->module pointer.

This is because there's a separate indentation counter for when the request is being processed by a module, and for when the request is running outside of a module.

8 years agoFormatting
Arran Cudbard-Bell [Mon, 29 Jan 2018 22:28:08 +0000 (15:28 -0700)] 
Formatting

8 years agoFix low level debug output in xlat_register
Arran Cudbard-Bell [Mon, 29 Jan 2018 05:41:57 +0000 (22:41 -0700)] 
Fix low level debug output in xlat_register

8 years agoFix ocsp.cnf
Arran Cudbard-Bell [Mon, 29 Jan 2018 05:20:45 +0000 (22:20 -0700)] 
Fix ocsp.cnf

So we can generate fake certs again...

8 years agoStart work on making rlm_eap async
Arran Cudbard-Bell [Mon, 29 Jan 2018 04:49:14 +0000 (21:49 -0700)] 
Start work on making rlm_eap async

8 years agoresolve symbols now, and use dlerror
Matthew Newton [Mon, 29 Jan 2018 20:37:33 +0000 (20:37 +0000)] 
resolve symbols now, and use dlerror

8 years agotypo
Alan T. DeKok [Mon, 29 Jan 2018 19:53:08 +0000 (14:53 -0500)] 
typo

8 years agodoxygen
Alan T. DeKok [Mon, 29 Jan 2018 19:04:31 +0000 (14:04 -0500)] 
doxygen

8 years ago"documentation" is "useful"
Alan T. DeKok [Mon, 29 Jan 2018 19:01:35 +0000 (14:01 -0500)] 
"documentation" is "useful"

8 years agohacks for LD_PRELOAD, where we just load it ourselves...
Alan T. DeKok [Mon, 29 Jan 2018 18:58:54 +0000 (13:58 -0500)] 
hacks for LD_PRELOAD, where we just load it ourselves...

8 years agowe don't use checkrad in v4
Alan T. DeKok [Mon, 29 Jan 2018 18:49:06 +0000 (13:49 -0500)] 
we don't use checkrad in v4

or, at least, in the same way as it was used in v3

8 years agoparse ENV subsection before loading modules or threads
Alan T. DeKok [Mon, 29 Jan 2018 18:44:55 +0000 (13:44 -0500)] 
parse ENV subsection before loading modules or threads

so that we don't have to set LD_PRELOAD on the command line
for stupid libraries

8 years agocheck for address->client
Alan T. DeKok [Mon, 29 Jan 2018 15:21:12 +0000 (10:21 -0500)] 
check for address->client

8 years agoAllow unlang OPs to push generic functions onto the stack
Arran Cudbard-Bell [Mon, 29 Jan 2018 03:01:36 +0000 (20:01 -0700)] 
Allow unlang OPs to push generic functions onto the stack

This allows functions deeper in the C call stack to set up resumption points.

This makes submodules and even internal module functions far easier to integrate, as they don't have to communicate with callers further up the C stack, to get them to push the resumption functions they need.

8 years agoMove more of the module specific code out of unlang_op.c
Arran Cudbard-Bell [Mon, 29 Jan 2018 02:59:55 +0000 (19:59 -0700)] 
Move more of the module specific code out of unlang_op.c

There's still a bunch of module specific event handler functions which either need to be made generic or moved into module_unlang.c

8 years agoAlways initialise quote
Arran Cudbard-Bell [Sun, 28 Jan 2018 23:29:30 +0000 (16:29 -0700)] 
Always initialise quote

8 years agoFix handling of NULL RHS in update sections
Arran Cudbard-Bell [Sun, 28 Jan 2018 23:06:14 +0000 (16:06 -0700)] 
Fix handling of NULL RHS in update sections

8 years agoReset alternate on an additional code path
Arran Cudbard-Bell [Sun, 28 Jan 2018 22:53:24 +0000 (15:53 -0700)] 
Reset alternate on an additional code path

8 years ago...an xlat can yield multiple times
Arran Cudbard-Bell [Sun, 28 Jan 2018 22:36:30 +0000 (15:36 -0700)] 
...an xlat can yield multiple times

8 years agoImprove xlat evaluation debugging
Arran Cudbard-Bell [Sun, 28 Jan 2018 22:27:26 +0000 (15:27 -0700)] 
Improve xlat evaluation debugging

It should be about equivalent to the synchronous debug output, with the added bonus feature of printing the function fmt string and the expanded arguments.

8 years agoAdd function for copying value_box lists and for checking list taint
Arran Cudbard-Bell [Sun, 28 Jan 2018 22:24:45 +0000 (15:24 -0700)] 
Add function for copying value_box lists and for checking list taint