]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agoglobal: Put FR_TYPE_GROUP in the correct group of enum values
Arran Cudbard-Bell [Tue, 31 Mar 2020 14:49:18 +0000 (08:49 -0600)] 
global: Put FR_TYPE_GROUP in the correct group of enum values

6 years agointernal: Fix iterating over children
Arran Cudbard-Bell [Tue, 31 Mar 2020 14:47:57 +0000 (08:47 -0600)] 
internal: Fix iterating over children

6 years agouse standard macro to skip whitespace
Alan T. DeKok [Tue, 31 Mar 2020 13:48:51 +0000 (09:48 -0400)] 
use standard macro to skip whitespace

6 years agowe should pretty much NEVER use "*++p". Instead, use *(p++)
Alan T. DeKok [Tue, 31 Mar 2020 13:46:30 +0000 (09:46 -0400)] 
we should pretty much NEVER use "*++p".  Instead, use *(p++)

The first one increments 'p' BEFORE assigning.  Which results
in uninitialized memory.

The second on increments 'p' AFTER assigning.  Which is what we want

6 years agocurl: Fix minor cosmetic issues
Arran Cudbard-Bell [Mon, 30 Mar 2020 20:31:57 +0000 (14:31 -0600)] 
curl: Fix minor cosmetic issues

6 years agotypo --> fr_dict_t
Alan T. DeKok [Fri, 27 Mar 2020 19:52:46 +0000 (15:52 -0400)] 
typo --> fr_dict_t

6 years agointernal: Fix failing test
Arran Cudbard-Bell [Sat, 28 Mar 2020 23:26:30 +0000 (17:26 -0600)] 
internal: Fix failing test

We don't automatically aggregate TLVs.

6 years agointernal: New encoder/decoder for IPC and serialisation
Arran Cudbard-Bell [Sat, 28 Mar 2020 22:05:29 +0000 (16:05 -0600)] 
internal: New encoder/decoder for IPC and serialisation

6 years agomisc: We want the position of the highest bit, not the highest bit itself
Arran Cudbard-Bell [Sat, 28 Mar 2020 04:04:23 +0000 (22:04 -0600)] 
misc: We want the position of the highest bit, not the highest bit itself

6 years agonet: Fix fr_net_from_uint64v
Arran Cudbard-Bell [Sat, 28 Mar 2020 04:03:58 +0000 (22:03 -0600)] 
net: Fix fr_net_from_uint64v

Start the copy from the right position

6 years agoradius: Should start encoding current position not head
Arran Cudbard-Bell [Fri, 27 Mar 2020 23:47:32 +0000 (17:47 -0600)] 
radius:  Should start encoding current position not head

6 years agounit_test_attribute: Switch to using iterator in encode_pair function
Arran Cudbard-Bell [Fri, 27 Mar 2020 23:45:10 +0000 (17:45 -0600)] 
unit_test_attribute: Switch to using iterator in encode_pair function

6 years agocurl: ignore all.mk
Arran Cudbard-Bell [Fri, 27 Mar 2020 22:58:52 +0000 (16:58 -0600)] 
curl: ignore all.mk

6 years agoExtend module tests for rlm_files (#3341)
Terry Burton [Fri, 27 Mar 2020 16:46:47 +0000 (16:46 +0000)] 
Extend module tests for rlm_files (#3341)

Test control and reply list modification operations.

6 years agoradius: Move to using an iterator for skipping non-encodable attributes
Arran Cudbard-Bell [Fri, 27 Mar 2020 14:29:18 +0000 (08:29 -0600)] 
radius: Move to using an iterator for skipping non-encodable attributes

6 years agopair: Add macro for checking for sufficient space in encode buffer
Arran Cudbard-Bell [Thu, 26 Mar 2020 22:26:45 +0000 (16:26 -0600)] 
pair: Add macro for checking for sufficient space in encode buffer

6 years agopair: Remove useless fields
Arran Cudbard-Bell [Thu, 26 Mar 2020 22:26:21 +0000 (16:26 -0600)] 
pair: Remove useless fields

6 years agomake {dhcpv[46], radius}/encode.c encodability functions as similar as possible
James Jones [Fri, 27 Mar 2020 12:58:26 +0000 (07:58 -0500)] 
make {dhcpv[46], radius}/encode.c encodability functions as similar as possible

6 years agoenocders: Create a struct for da_stack which includes depth.
Arran Cudbard-Bell [Thu, 26 Mar 2020 22:24:46 +0000 (16:24 -0600)] 
enocders: Create a struct for da_stack which includes depth.

Means we no longer have to memset the entire stack on each rebuild.

6 years agos/tlv_stack/da_stack/g
Arran Cudbard-Bell [Thu, 26 Mar 2020 21:32:51 +0000 (15:32 -0600)] 
s/tlv_stack/da_stack/g

It's used for more than TLVs

6 years agoscripts: Fix extraction destination
Arran Cudbard-Bell [Thu, 26 Mar 2020 21:31:48 +0000 (15:31 -0600)] 
scripts: Fix extraction destination

6 years agostop fighting with travis && just revert for now
Alan T. DeKok [Thu, 26 Mar 2020 17:28:13 +0000 (13:28 -0400)] 
stop fighting with travis && just revert for now

6 years agoadd for testing
Alan T. DeKok [Thu, 26 Mar 2020 17:28:02 +0000 (13:28 -0400)] 
add for testing

6 years agoone more dependency
Alan T. DeKok [Thu, 26 Mar 2020 16:43:32 +0000 (12:43 -0400)] 
one more dependency

it's still not clear why it runs multiple rules in parallel,
even when the rules say "don't do that"

6 years agoallow value box groups to be cast to strvalue / octets
Alan T. DeKok [Thu, 26 Mar 2020 16:39:19 +0000 (12:39 -0400)] 
allow value box groups to be cast to strvalue / octets

and printed

6 years agoUpdates dictionary.bskyb (#3340)
shaunmiles [Thu, 26 Mar 2020 16:07:37 +0000 (16:07 +0000)] 
Updates dictionary.bskyb (#3340)

* adds new attributes required by the business

Co-authored-by: Shaun Miles <shaun.miles@bskyb.com>
6 years agomore cleanups
Alan T. DeKok [Thu, 26 Mar 2020 15:56:48 +0000 (11:56 -0400)] 
more cleanups

6 years agogeneralize parsing of special tokens
Alan T. DeKok [Thu, 26 Mar 2020 14:29:19 +0000 (10:29 -0400)] 
generalize parsing of special tokens

6 years agoalso make ca.crt, what the heck
Alan T. DeKok [Thu, 26 Mar 2020 13:46:37 +0000 (09:46 -0400)] 
also make ca.crt, what the heck

6 years agoclean up rules so that they don't run all of the time
Alan T. DeKok [Thu, 26 Mar 2020 13:43:04 +0000 (09:43 -0400)] 
clean up rules so that they don't run all of the time

6 years agoclient, server, and ocsp need the ca crt
Alan T. DeKok [Wed, 25 Mar 2020 20:48:30 +0000 (16:48 -0400)] 
client, server, and ocsp need the ca crt

6 years agotrunk: Add state machine diagram for trunk connections
Arran Cudbard-Bell [Wed, 25 Mar 2020 21:36:27 +0000 (15:36 -0600)] 
trunk: Add state machine diagram for trunk connections

6 years agoscripts: Override fetchexclude when we're pulling from within the install_deps.sh...
Arran Cudbard-Bell [Wed, 25 Mar 2020 20:24:22 +0000 (14:24 -0600)] 
scripts: Override fetchexclude when we're pulling from within the install_deps.sh script

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