]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoDon't download lfs files by default
Arran Cudbard-Bell [Wed, 25 Mar 2020 20:16:52 +0000 (14:16 -0600)] 
Don't download lfs files by default

6 years agoadd explicit dependencies for all products
Alan T. DeKok [Wed, 25 Mar 2020 20:06:32 +0000 (16:06 -0400)] 
add explicit dependencies for all products

so that gnu make can properly do -j 8

6 years agoscripts: Add install_deps.sh for installing brewed and proprietary dependencies for...
Arran Cudbard-Bell [Wed, 25 Mar 2020 17:47:09 +0000 (11:47 -0600)] 
scripts: Add install_deps.sh for installing brewed and proprietary dependencies for macOS

add appropriate license and copyright notice

6 years agoRevert "script to install dependencies on OSX"
Arran Cudbard-Bell [Wed, 25 Mar 2020 17:46:03 +0000 (11:46 -0600)] 
Revert "script to install dependencies on OSX"

This reverts commit e446e04c95d19b08c99d94f40c6f2d8eef310558.

6 years agoAdd proprietary dependencies
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:51:58 +0000 (08:51 -0600)] 
Add proprietary dependencies

6 years agogit: Add bz2 and gz to git-lfs tracking list
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:48:51 +0000 (08:48 -0600)] 
git: Add bz2 and gz to git-lfs tracking list

6 years agocurl: Doxygen
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:45:42 +0000 (08:45 -0600)] 
curl: Doxygen

6 years agoconnection: Fix issue where closed was entered when it shouldn't have been on halt
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:45:31 +0000 (08:45 -0600)] 
connection: Fix issue where closed was entered when it shouldn't have been on halt

6 years agoconnection: Fix issue where closed wasn't always entered on shutdown
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:45:02 +0000 (08:45 -0600)] 
connection: Fix issue where closed wasn't always entered on shutdown

6 years agoconnection: Fix issue where closed wasn't always entered on reconnect
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:44:47 +0000 (08:44 -0600)] 
connection: Fix issue where closed wasn't always entered on reconnect

6 years agoconnection: Connecting can only be entered from init
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:43:58 +0000 (08:43 -0600)] 
connection: Connecting can only be entered from init

6 years agoconnection: Limit the number of states we can enter halted from
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:43:40 +0000 (08:43 -0600)] 
connection:  Limit the number of states we can enter halted from

6 years agoconnection: Fix verb noun order to be the same as trunk
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:43:19 +0000 (08:43 -0600)] 
connection: Fix verb noun order to be the same as trunk

6 years agotrunk: In reality halted can only be reached from a very small number of states,...
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:39:05 +0000 (08:39 -0600)] 
trunk: In reality halted can only be reached from a very small number of states, and there will always be no requests left on the connection

6 years agotrunk: Signalling a draining connection as inactive should move it to inactive-draining
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:38:23 +0000 (08:38 -0600)] 
trunk: Signalling a draining connection as inactive should move it to inactive-draining

6 years agotrunk: Signalling an inactive-draining connection to be active, should move it to...
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:37:59 +0000 (08:37 -0600)] 
trunk: Signalling an inactive-draining connection to be active, should move it to draining, not active

6 years agotrunk: Doxygen
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:37:28 +0000 (08:37 -0600)] 
trunk: Doxygen

6 years agotrunk: If we're re-activating a connection, check whether it's full or not and move...
Arran Cudbard-Bell [Wed, 25 Mar 2020 14:37:17 +0000 (08:37 -0600)] 
trunk: If we're re-activating a connection, check whether it's full or not and move it into the appropriate state

6 years agotrunk: We don't free we drain _then_ free.
Arran Cudbard-Bell [Tue, 24 Mar 2020 16:19:50 +0000 (10:19 -0600)] 
trunk: We don't free we drain _then_ free.

6 years agoone more attempt to see if we can create the output directories first
Alan T. DeKok [Wed, 25 Mar 2020 15:25:58 +0000 (11:25 -0400)] 
one more attempt to see if we can create the output directories first

6 years agogenerate rules for each individual file
Alan T. DeKok [Wed, 25 Mar 2020 15:20:22 +0000 (11:20 -0400)] 
generate rules for each individual file

which should help with stomping issues and "make -j 8"

6 years agoalways build test certs when doing non-package builds
Alan T. DeKok [Wed, 25 Mar 2020 14:39:43 +0000 (10:39 -0400)] 
always build test certs when doing non-package builds

6 years agorefresh certs
Alan T. DeKok [Wed, 25 Mar 2020 14:12:36 +0000 (10:12 -0400)] 
refresh certs

now that it takes ~2s to recreate them, we should likely just
delete these.  Then, build && use the ones in raddb/certs/

6 years agoscript to install dependencies on OSX
Alan T. DeKok [Wed, 25 Mar 2020 13:49:14 +0000 (09:49 -0400)] 
script to install dependencies on OSX

6 years agomove blocks of code to common functions for later re-use
Alan T. DeKok [Tue, 24 Mar 2020 17:51:07 +0000 (13:51 -0400)] 
move blocks of code to common functions for later re-use

with async exec

6 years agoremove rad_fork(). It's no longer used
Alan T. DeKok [Tue, 24 Mar 2020 17:42:18 +0000 (13:42 -0400)] 
remove rad_fork().  It's no longer used

6 years agoexpand the child, not the node
Alan T. DeKok [Mon, 23 Mar 2020 21:20:10 +0000 (17:20 -0400)] 
expand the child, not the node

6 years agocurl: As per tradition...
Arran Cudbard-Bell [Tue, 24 Mar 2020 14:17:29 +0000 (08:17 -0600)] 
curl: As per tradition...

6 years agocurl: de-conflict SET_OPTION/SET_MOPTION
Arran Cudbard-Bell [Tue, 24 Mar 2020 13:57:42 +0000 (07:57 -0600)] 
curl: de-conflict SET_OPTION/SET_MOPTION

6 years agotrunk: Add inactive-draining state to allow inactive connections to be closed gracefully
Arran Cudbard-Bell [Tue, 24 Mar 2020 00:21:25 +0000 (18:21 -0600)] 
trunk: Add inactive-draining state to allow inactive connections to be closed gracefully

6 years agocurl: Use a standard prefix for all log messages
Arran Cudbard-Bell [Mon, 23 Mar 2020 23:46:52 +0000 (17:46 -0600)] 
curl: Use a standard prefix for all log messages

6 years agocurl: Allow a pass through the event loop before servicing the mhandle
Arran Cudbard-Bell [Mon, 23 Mar 2020 23:14:26 +0000 (17:14 -0600)] 
curl: Allow a pass through the event loop before servicing the mhandle

6 years agocheck for empty string && output list
Alan T. DeKok [Mon, 23 Mar 2020 14:22:58 +0000 (10:22 -0400)] 
check for empty string && output list

6 years agoremove unused assignment
Alan T. DeKok [Mon, 23 Mar 2020 14:22:48 +0000 (10:22 -0400)] 
remove unused assignment

6 years agoquiet compiler
Alan T. DeKok [Mon, 23 Mar 2020 13:22:08 +0000 (09:22 -0400)] 
quiet compiler

6 years agoAPIs to tokenize xlats into arguments for argv
Alan T. DeKok [Mon, 23 Mar 2020 12:58:02 +0000 (08:58 -0400)] 
APIs to tokenize xlats into arguments for argv

along with a function to evaluate the xlat into an argv-style
C string array for synchronous xlats, and a function to split
the parent xlat into an array of xlat_exp_t*, for asynchronous
xlat expansion.

And tests.  Tests are good.

6 years agofirst pass at xlat_tokenize_argv()
Alan T. DeKok [Sun, 22 Mar 2020 19:36:24 +0000 (15:36 -0400)] 
first pass at xlat_tokenize_argv()

which assumes that the input is a "const char*" which will
be in turn parsed and split into argv-style strings.

6 years agoframework for adding XLAT_TYPE_CHILD
Alan T. DeKok [Sun, 22 Mar 2020 15:44:05 +0000 (11:44 -0400)] 
framework for adding XLAT_TYPE_CHILD

6 years agocf_parse: Fix the remaining type checks
Arran Cudbard-Bell [Mon, 23 Mar 2020 02:27:25 +0000 (20:27 -0600)] 
cf_parse: Fix the remaining type checks

6 years agocf_parse: Fix formatting
Arran Cudbard-Bell [Fri, 20 Mar 2020 22:30:27 +0000 (16:30 -0600)] 
cf_parse: Fix formatting

6 years agocf_parse: Fix check for FR_TYPE_OCTETS
Arran Cudbard-Bell [Fri, 20 Mar 2020 22:30:01 +0000 (16:30 -0600)] 
cf_parse: Fix check for FR_TYPE_OCTETS

6 years agoRevert "comment out various array / pointer types"
Arran Cudbard-Bell [Fri, 20 Mar 2020 21:53:46 +0000 (15:53 -0600)] 
Revert "comment out various array / pointer types"

This reverts commit 7484619c9f9eb7d7e72134998812d8634044d189.

6 years agoremove until we finish the work
Alan T. DeKok [Sun, 22 Mar 2020 15:37:15 +0000 (11:37 -0400)] 
remove until we finish the work

6 years agowalk over alternate *and* child of alternation nodes
Alan T. DeKok [Sun, 22 Mar 2020 15:07:44 +0000 (11:07 -0400)] 
walk over alternate *and* child of alternation nodes

6 years agoif they're used as bit masks, ensure that the masks don't overlap
Alan T. DeKok [Sun, 22 Mar 2020 15:04:23 +0000 (11:04 -0400)] 
if they're used as bit masks, ensure that the masks don't overlap

6 years agomore make xlat_tokenize_literal() respect inlen
Alan T. DeKok [Sun, 22 Mar 2020 14:42:18 +0000 (10:42 -0400)] 
more make xlat_tokenize_literal() respect inlen

6 years agouse un-escaped length for input to xlat
Alan T. DeKok [Sun, 22 Mar 2020 14:41:44 +0000 (10:41 -0400)] 
use un-escaped length for input to xlat

6 years agoCompile fixes for uint128 library (#3332)
Herwin [Sat, 21 Mar 2020 16:53:31 +0000 (17:53 +0100)] 
Compile fixes for uint128 library (#3332)

6 years agomake xlat_tokenize_literal() respect inlen
Alan T. DeKok [Sat, 21 Mar 2020 15:21:36 +0000 (11:21 -0400)] 
make xlat_tokenize_literal() respect inlen

6 years agomake xlat_tokenize_function() respect inlen
Alan T. DeKok [Sat, 21 Mar 2020 15:17:50 +0000 (11:17 -0400)] 
make xlat_tokenize_function() respect inlen

6 years agodepend on the binaries, not on the build target
Alan T. DeKok [Sat, 21 Mar 2020 15:12:33 +0000 (11:12 -0400)] 
depend on the binaries, not on the build target

6 years agoupdate more APIs to take 'inlen'
Alan T. DeKok [Sat, 21 Mar 2020 15:06:45 +0000 (11:06 -0400)] 
update more APIs to take 'inlen'

and don't modify 'char const *' buffers.

6 years agomake xlat_tokenize_regex() respect inlen
Alan T. DeKok [Sat, 21 Mar 2020 14:55:30 +0000 (10:55 -0400)] 
make xlat_tokenize_regex() respect inlen

6 years agounused in non-debug builds
Alan T. DeKok [Fri, 20 Mar 2020 22:10:19 +0000 (18:10 -0400)] 
unused in non-debug builds

6 years agouse correct data type
Alan T. DeKok [Fri, 20 Mar 2020 21:48:17 +0000 (17:48 -0400)] 
use correct data type

6 years agocomment out various array / pointer types
Alan T. DeKok [Fri, 20 Mar 2020 21:14:51 +0000 (17:14 -0400)] 
comment out various array / pointer types

as they're not used elsewhere in the CONF_PARSER arrays, and
they cause compiler errors due to the type checks

6 years agotrunk: Typo
Arran Cudbard-Bell [Fri, 20 Mar 2020 21:08:45 +0000 (15:08 -0600)] 
trunk: Typo

6 years agofix type inconsistencies
Alan T. DeKok [Fri, 20 Mar 2020 20:39:17 +0000 (16:39 -0400)] 
fix type inconsistencies

now that the FR_CONF_TYPE_CHECK macro is fixed, there are many
inconsistencies in the CONF_PARSER structs.  Fixing those here.

6 years agocf_parse: Correctly identify subsections.
Arran Cudbard-Bell [Fri, 20 Mar 2020 20:23:43 +0000 (14:23 -0600)] 
cf_parse: Correctly identify subsections.

cf_parse: Void is special and disables type checks.
cf_parse: Add support for float/double in type checks.

6 years agocf_parse: Alpabetise dummy types and add float/double
Arran Cudbard-Bell [Fri, 20 Mar 2020 20:22:51 +0000 (14:22 -0600)] 
cf_parse: Alpabetise dummy types and add float/double

6 years agotrunk: Distinguish between INITIAL and UNASSIGNED states
Arran Cudbard-Bell [Fri, 20 Mar 2020 19:51:21 +0000 (13:51 -0600)] 
trunk: Distinguish between INITIAL and UNASSIGNED states

6 years agotrunk: The only valid state change for PARTIAL is PENDING -> PARTIAL
Arran Cudbard-Bell [Fri, 20 Mar 2020 19:51:00 +0000 (13:51 -0600)] 
trunk: The only valid state change for PARTIAL is PENDING -> PARTIAL

6 years agotrunk: De-conflict macro scoped variable names
Arran Cudbard-Bell [Fri, 20 Mar 2020 19:01:37 +0000 (13:01 -0600)] 
trunk: De-conflict macro scoped variable names

6 years agointerpret: Fix stupid debug message
Arran Cudbard-Bell [Fri, 20 Mar 2020 03:16:47 +0000 (21:16 -0600)] 
interpret: Fix stupid debug message

6 years agotrunk: Add asserts to catch a connection being halted that's still in one of the...
Arran Cudbard-Bell [Fri, 20 Mar 2020 03:12:19 +0000 (21:12 -0600)] 
trunk: Add asserts to catch a connection being halted that's still in one of the lists

6 years agoconfigure: Fix commit hash to 4 bytes (8 hexits)
Arran Cudbard-Bell [Thu, 19 Mar 2020 23:04:04 +0000 (17:04 -0600)] 
configure: Fix commit hash to 4 bytes (8 hexits)

6 years agoglobal: Mask off version correctly
Arran Cudbard-Bell [Thu, 19 Mar 2020 22:31:09 +0000 (16:31 -0600)] 
global: Mask off version correctly

6 years agoglobal: Include debug state in the magic number
Arran Cudbard-Bell [Thu, 19 Mar 2020 22:23:49 +0000 (16:23 -0600)] 
global: Include debug state in the magic number

6 years agorlm_radius_udp: Additional assert in request_timeout
Arran Cudbard-Bell [Thu, 19 Mar 2020 20:07:50 +0000 (14:07 -0600)] 
rlm_radius_udp: Additional assert in request_timeout

6 years agopass in/inlen to xlat_tokenize() functions
Alan T. DeKok [Thu, 19 Mar 2020 18:11:20 +0000 (14:11 -0400)] 
pass in/inlen to xlat_tokenize() functions

instead of "fmt".  This change lets us pass in substrings,
as with updating exec changes

6 years agorevert
Alan T. DeKok [Thu, 19 Mar 2020 17:53:24 +0000 (13:53 -0400)] 
revert

6 years agoraduat fixes (#3323)
Terry Burton [Thu, 19 Mar 2020 17:17:10 +0000 (17:17 +0000)] 
raduat fixes (#3323)

* raduat: Use the given instance of radclient

* raduat: Use the given DICTPATH

6 years agodepend on binaries
Alan T. DeKok [Thu, 19 Mar 2020 14:56:36 +0000 (10:56 -0400)] 
depend on binaries

6 years agoadd build rule to catch non-existent input files
Alan T. DeKok [Thu, 19 Mar 2020 12:47:13 +0000 (08:47 -0400)] 
add build rule to catch non-existent input files

6 years agoremove binary which doesn't exist
Alan T. DeKok [Thu, 19 Mar 2020 12:41:45 +0000 (08:41 -0400)] 
remove binary which doesn't exist

and depend on the full path to the tests

6 years agoUse consistent formatting
Alan T. DeKok [Thu, 19 Mar 2020 12:19:01 +0000 (08:19 -0400)] 
Use consistent formatting

via "make dictionary.format"

6 years agoAdded dictionary.vasexperts
B Thompson [Thu, 19 Mar 2020 08:52:06 +0000 (11:52 +0300)] 
Added dictionary.vasexperts

6 years agorlm_radius_udp: Cache the tconn, so we can still access it if the module
Arran Cudbard-Bell [Wed, 18 Mar 2020 22:56:11 +0000 (18:56 -0400)] 
rlm_radius_udp: Cache the tconn, so we can still access it if the module

6 years agoRemove MINGW32 ifdef's
Jorge Pereira [Wed, 18 Mar 2020 00:46:06 +0000 (21:46 -0300)] 
Remove MINGW32 ifdef's

6 years agocopy all bits FROM start_bit
Alan T. DeKok [Wed, 18 Mar 2020 20:38:12 +0000 (16:38 -0400)] 
copy all bits FROM start_bit

6 years agoprintf is more portable than "echo -n"
Alan T. DeKok [Wed, 18 Mar 2020 20:21:22 +0000 (16:21 -0400)] 
printf is more portable than "echo -n"

6 years agono need to copy `fmt`, it's been const for a while
Alan T. DeKok [Wed, 18 Mar 2020 19:51:27 +0000 (15:51 -0400)] 
no need to copy `fmt`, it's been const for a while

6 years agothis should take const
Alan T. DeKok [Wed, 18 Mar 2020 19:48:14 +0000 (15:48 -0400)] 
this should take const

6 years agomask off unused bits already in the buffer
Alan T. DeKok [Wed, 18 Mar 2020 13:11:35 +0000 (09:11 -0400)] 
mask off unused bits already in the buffer

instead of relying on the buffer to be zeroed.

6 years agoradius: Don't molest the request further if its connection has just become a zombie...
Arran Cudbard-Bell [Wed, 18 Mar 2020 02:15:30 +0000 (22:15 -0400)] 
radius: Don't molest the request further if its connection has just become a zombie.  It's suffered enough...

6 years agotrunk: Don't process invalid queue (#3326)
Jorge Pereira [Wed, 18 Mar 2020 01:58:23 +0000 (22:58 -0300)] 
trunk: Don't process invalid queue (#3326)

6 years agounit_test_attribute: Only < 0 is an error for encoders.
Arran Cudbard-Bell [Wed, 18 Mar 2020 00:09:19 +0000 (20:09 -0400)] 
unit_test_attribute: Only < 0 is an error for encoders.

6 years agorest: Use config.h from curl library
Arran Cudbard-Bell [Wed, 18 Mar 2020 00:02:44 +0000 (20:02 -0400)] 
rest: Use config.h from curl library

6 years agostatus_check can be zero
Alan T. DeKok [Tue, 17 Mar 2020 23:21:54 +0000 (19:21 -0400)] 
status_check can be zero

6 years agofix up ancient nonblock usage
Alan T. DeKok [Tue, 17 Mar 2020 21:06:37 +0000 (17:06 -0400)] 
fix up ancient nonblock usage

6 years agoremove mingw nonsense
Alan T. DeKok [Tue, 17 Mar 2020 21:02:21 +0000 (17:02 -0400)] 
remove mingw nonsense

6 years agocurl: Rework code to use fr_curl_io_request_t structs, which have the result of the...
Arran Cudbard-Bell [Tue, 17 Mar 2020 22:16:11 +0000 (18:16 -0400)] 
curl: Rework code to use fr_curl_io_request_t structs, which have the result of the operation written to them

We wouldn't need to do this, but curl provides no way of extracting the same info from the easy handle

6 years agounit_test_attribute: Only consider '-' special if it's at the end of a line
Arran Cudbard-Bell [Tue, 17 Mar 2020 04:03:39 +0000 (00:03 -0400)] 
unit_test_attribute: Only consider '-' special if it's at the end of a line

6 years agounit_test_attribute: Add function for writing the last returned value to the data...
Arran Cudbard-Bell [Tue, 17 Mar 2020 03:48:38 +0000 (23:48 -0400)] 
unit_test_attribute: Add function for writing the last returned value to the data buffer

6 years agolog: Add function for pretty printing hex with markers
Arran Cudbard-Bell [Tue, 17 Mar 2020 03:48:02 +0000 (23:48 -0400)] 
log: Add function for pretty printing hex with markers

6 years agocurl: Fix debug message
Arran Cudbard-Bell [Mon, 16 Mar 2020 22:06:01 +0000 (18:06 -0400)] 
curl: Fix debug message

6 years agorest: use the correct transfers field
Arran Cudbard-Bell [Mon, 16 Mar 2020 22:01:41 +0000 (18:01 -0400)] 
rest: use the correct transfers field

6 years agorest: This is specific to rest
Arran Cudbard-Bell [Mon, 16 Mar 2020 20:13:48 +0000 (16:13 -0400)] 
rest: This is specific to rest

6 years agocurl: Create libfreeradius-curl
Arran Cudbard-Bell [Mon, 16 Mar 2020 20:06:03 +0000 (16:06 -0400)] 
curl: Create libfreeradius-curl

6 years agopair: Change the group functions to take an explicit list struct
Arran Cudbard-Bell [Sun, 15 Mar 2020 23:21:40 +0000 (19:21 -0400)] 
pair: Change the group functions to take an explicit list struct

We can use _Generic to automatically select the correct functions later... Or maybe just change the invocation