]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
5 years agouse names with specific sizes
Alan T. DeKok [Tue, 8 Dec 2020 18:25:17 +0000 (13:25 -0500)] 
use names with specific sizes

5 years agoallow cloning of struct MEMBERs
Alan T. DeKok [Tue, 8 Dec 2020 18:23:10 +0000 (13:23 -0500)] 
allow cloning of struct MEMBERs

5 years agodocument how VALUE lookups are done
Alan T. DeKok [Mon, 7 Dec 2020 16:17:09 +0000 (11:17 -0500)] 
document how VALUE lookups are done

5 years agoCI: Perform the package build tests on a schedule not push
Terry Burton [Mon, 7 Dec 2020 15:21:51 +0000 (15:21 +0000)] 
CI: Perform the package build tests on a schedule not push

5 years agoCI: Do DEB build tests for suppored Debian and Ubuntu versions
Terry Burton [Mon, 7 Dec 2020 13:08:09 +0000 (13:08 +0000)] 
CI: Do DEB build tests for suppored Debian and Ubuntu versions

... including Sid

5 years agoCI: Do RPM build tests for supported CentOS versions
Terry Burton [Mon, 7 Dec 2020 12:40:01 +0000 (12:40 +0000)] 
CI: Do RPM build tests for supported CentOS versions

5 years agoCI RPM/DEB: Performance tweaks and cleanups
Terry Burton [Fri, 4 Dec 2020 19:37:38 +0000 (19:37 +0000)] 
CI RPM/DEB: Performance tweaks and cleanups

5 years agoRPM: Don't wrongly include requisits in the package description
Terry Burton [Mon, 7 Dec 2020 14:28:17 +0000 (14:28 +0000)] 
RPM: Don't wrongly include requisits in the package description

5 years agoCURL_HTTP_VERSION_2_0 is undefined until cURL 7.33.0
Terry Burton [Mon, 7 Dec 2020 12:27:42 +0000 (12:27 +0000)] 
CURL_HTTP_VERSION_2_0 is undefined until cURL 7.33.0

5 years agoMove CURL_AT_LEAST_VERSION macro into header
Terry Burton [Sun, 6 Dec 2020 21:35:15 +0000 (21:35 +0000)] 
Move CURL_AT_LEAST_VERSION macro into header

And trivial alignment with upstream codebase

5 years agoDeal with failed fork
Arran Cudbard-Bell [Mon, 7 Dec 2020 15:36:23 +0000 (08:36 -0700)] 
Deal with failed fork

5 years agoRemove dict_by_attr_name. It's pretty useless now we don't have one namespace per...
Arran Cudbard-Bell [Mon, 7 Dec 2020 14:45:17 +0000 (07:45 -0700)] 
Remove dict_by_attr_name.  It's pretty useless now we don't have one namespace per dict.

5 years agoFix useless goto
Arran Cudbard-Bell [Mon, 7 Dec 2020 14:30:58 +0000 (07:30 -0700)] 
Fix useless goto

5 years agoNo longer const
Arran Cudbard-Bell [Mon, 7 Dec 2020 14:28:00 +0000 (07:28 -0700)] 
No longer const

5 years agoRename for consistency
Arran Cudbard-Bell [Mon, 7 Dec 2020 14:24:12 +0000 (07:24 -0700)] 
Rename for consistency

5 years agoGet pointer to existing extension
Arran Cudbard-Bell [Sun, 6 Dec 2020 04:20:44 +0000 (21:20 -0700)] 
Get pointer to existing extension

5 years agoAnother unused var
Arran Cudbard-Bell [Sun, 6 Dec 2020 03:58:59 +0000 (20:58 -0700)] 
Another unused var

5 years agoMark arg as unused
Arran Cudbard-Bell [Sun, 6 Dec 2020 03:45:11 +0000 (20:45 -0700)] 
Mark arg as unused

5 years agoMemset all extensions to zero
Arran Cudbard-Bell [Sun, 6 Dec 2020 03:35:40 +0000 (20:35 -0700)] 
Memset all extensions to zero

Don't leak hash tables on ext copy

5 years agoadd comments
Alan T. DeKok [Sun, 6 Dec 2020 02:47:36 +0000 (21:47 -0500)] 
add comments

5 years agoupdate for complex structs
Alan T. DeKok [Sun, 6 Dec 2020 01:59:31 +0000 (20:59 -0500)] 
update for complex structs

5 years agoupdate for complex structs
Alan T. DeKok [Sat, 5 Dec 2020 14:47:58 +0000 (09:47 -0500)] 
update for complex structs

and allow users to specify VALUEs for key fields in a struct.
The rest of the code will ensure that duplicate VALUEs are not
created

5 years agoset values only on success
Alan T. DeKok [Sat, 5 Dec 2020 14:43:50 +0000 (09:43 -0500)] 
set values only on success

5 years agoinitialize "out" so that it's NULL on error
Alan T. DeKok [Sat, 5 Dec 2020 14:43:06 +0000 (09:43 -0500)] 
initialize "out" so that it's NULL on error

otherwise unit_test_attribute crashes

5 years agoit helps to return here
Alan T. DeKok [Sat, 5 Dec 2020 14:37:30 +0000 (09:37 -0500)] 
it helps to return here

5 years agowe now support structs
Alan T. DeKok [Sat, 5 Dec 2020 14:28:12 +0000 (09:28 -0500)] 
we now support structs

5 years agoupdate for structs, and add tests
Alan T. DeKok [Sat, 5 Dec 2020 14:25:31 +0000 (09:25 -0500)] 
update for structs, and add tests

5 years agoallow string[n] in the dictionaries
Alan T. DeKok [Sat, 5 Dec 2020 14:24:51 +0000 (09:24 -0500)] 
allow string[n] in the dictionaries

and fix RADIUS to allow it.  The rest of the code already
supports it.

5 years agowe now support nested groups
Alan T. DeKok [Sat, 5 Dec 2020 14:09:51 +0000 (09:09 -0500)] 
we now support nested groups

5 years agodo decode / match / encode / match tests
Alan T. DeKok [Fri, 4 Dec 2020 21:47:28 +0000 (16:47 -0500)] 
do decode / match / encode / match tests

5 years agocopy keyed structures, and update DHCPv6 dict and tests
Alan T. DeKok [Fri, 4 Dec 2020 21:43:03 +0000 (16:43 -0500)] 
copy keyed structures, and update DHCPv6 dict and tests

5 years agorecursively copy the child_struct
Alan T. DeKok [Fri, 4 Dec 2020 21:40:44 +0000 (16:40 -0500)] 
recursively copy the child_struct

which means that we can re-parent the copy

5 years agoclone structs
Alan T. DeKok [Fri, 4 Dec 2020 20:25:05 +0000 (15:25 -0500)] 
clone structs

add structs to WiMAX. And add tests

5 years agotypo
Alan T. DeKok [Fri, 4 Dec 2020 20:25:01 +0000 (15:25 -0500)] 
typo

5 years agosimplify and cleanup dict fixup loops
Alan T. DeKok [Fri, 4 Dec 2020 20:11:13 +0000 (15:11 -0500)] 
simplify and cleanup dict fixup loops

5 years agoabstract common code into a common function
Alan T. DeKok [Fri, 4 Dec 2020 16:38:20 +0000 (11:38 -0500)] 
abstract common code into a common function

5 years agotypo. add missing !
Alan T. DeKok [Sun, 6 Dec 2020 02:46:30 +0000 (21:46 -0500)] 
typo.  add missing !

5 years agoPass in both src and dst chunks to the copy callback
Arran Cudbard-Bell [Sat, 5 Dec 2020 05:09:38 +0000 (22:09 -0700)] 
Pass in  both src and dst chunks to the copy callback

5 years agoVarious extensions fixes
Arran Cudbard-Bell [Sat, 5 Dec 2020 04:33:16 +0000 (21:33 -0700)] 
Various extensions fixes

5 years agouse correct example config for json
Matthew Newton [Fri, 4 Dec 2020 02:37:26 +0000 (02:37 +0000)] 
use correct example config for json

5 years agoRPM build fixes
Terry Burton [Wed, 2 Dec 2020 23:15:43 +0000 (23:15 +0000)] 
RPM build fixes

5 years agoDEB build fixes
Terry Burton [Wed, 2 Dec 2020 23:15:26 +0000 (23:15 +0000)] 
DEB build fixes

5 years agoCI tests for build and install of DEBs and RPMs
Terry Burton [Wed, 2 Dec 2020 03:47:16 +0000 (03:47 +0000)] 
CI tests for build and install of DEBs and RPMs

5 years agoadd "clone" functionality, and tests
Alan T. DeKok [Thu, 3 Dec 2020 21:04:03 +0000 (16:04 -0500)] 
add "clone" functionality, and tests

We can now say that one TLV is a "clone" of another.  In which
case the children of the source TLV are copied to become
children of the destination TLV

5 years agoadd dict_attr_acopy_children()
Alan T. DeKok [Thu, 3 Dec 2020 20:50:08 +0000 (15:50 -0500)] 
add dict_attr_acopy_children()

which does a recursive copy of the child from "src" to "dst"

5 years agoassert so that we get failures, instead of silent hash table errors
Alan T. DeKok [Thu, 3 Dec 2020 20:44:52 +0000 (15:44 -0500)] 
assert so that we get failures, instead of silent hash table errors

5 years agoprint out parents name, too
Alan T. DeKok [Thu, 3 Dec 2020 18:25:39 +0000 (13:25 -0500)] 
print out parents name, too

5 years agocopy and standardize common sub-TLVs
Alan T. DeKok [Thu, 3 Dec 2020 17:09:40 +0000 (12:09 -0500)] 
copy and standardize common sub-TLVs

5 years agore-run the tests if the dictionaries change
Alan T. DeKok [Thu, 3 Dec 2020 17:09:25 +0000 (12:09 -0500)] 
re-run the tests if the dictionaries change

5 years agoFix ext debugging
Arran Cudbard-Bell [Thu, 3 Dec 2020 21:04:23 +0000 (14:04 -0700)] 
Fix ext debugging

5 years agoFixup various pre-existing dictionary issues
Arran Cudbard-Bell [Thu, 3 Dec 2020 16:31:50 +0000 (09:31 -0700)] 
Fixup various pre-existing dictionary issues

5 years agoResolution functions already resolve the ref
Arran Cudbard-Bell [Thu, 3 Dec 2020 16:00:35 +0000 (09:00 -0700)] 
Resolution functions already resolve the ref

5 years agoAll structural types can contain references
Arran Cudbard-Bell [Thu, 3 Dec 2020 15:59:18 +0000 (08:59 -0700)] 
All structural types can contain references

5 years agoRemove duplicate hash table free function
Arran Cudbard-Bell [Thu, 3 Dec 2020 15:56:20 +0000 (08:56 -0700)] 
Remove duplicate hash table free function

Fix thread safety issues in rlm_detail

5 years agofollow refs in fr_dict_oid_component
Alan T. DeKok [Thu, 3 Dec 2020 14:39:52 +0000 (09:39 -0500)] 
follow refs in fr_dict_oid_component

5 years agoadd the ref if it's group OR the ref exists
Alan T. DeKok [Thu, 3 Dec 2020 14:23:56 +0000 (09:23 -0500)] 
add the ref if it's group OR the ref exists

we can't check fr_dict_attr_ref(da), because we're supposed to
be adding it here.  So it doesn't exist.

5 years agono need for linking contexts
Alan T. DeKok [Thu, 3 Dec 2020 14:07:22 +0000 (09:07 -0500)] 
no need for linking contexts

now that we just use the talloc hierarchy

5 years agopreparation for allowing structs to have refs
Alan T. DeKok [Thu, 3 Dec 2020 13:59:41 +0000 (08:59 -0500)] 
preparation for allowing structs to have refs

5 years agoCorrect status names for accounting On / Off
Nick Porter [Thu, 3 Dec 2020 08:49:27 +0000 (08:49 +0000)] 
Correct status names for accounting On / Off

5 years agoAdd method binding for Confirm, Rebind and Renew packets in sql_ippool
Nick Porter [Thu, 3 Dec 2020 10:37:05 +0000 (10:37 +0000)] 
Add method binding for Confirm, Rebind and Renew packets in sql_ippool

5 years agoAdd method to correctly release DHCP leases in rlm_redis_ippool
Nick Porter [Thu, 3 Dec 2020 10:29:12 +0000 (10:29 +0000)] 
Add method to correctly release DHCP leases in rlm_redis_ippool

5 years agoAssociate Confirm, Renew and Rebind with correct method
Nick Porter [Thu, 3 Dec 2020 10:12:29 +0000 (10:12 +0000)] 
Associate Confirm, Renew and Rebind with correct method

5 years agov4: DHCPv6 accept Confirm packets
Nick Porter [Thu, 3 Dec 2020 09:27:06 +0000 (09:27 +0000)] 
v4: DHCPv6 accept Confirm packets

We receive confirm packets, not send

5 years agoDon't zero out memory we're just going to copy over anyway
Arran Cudbard-Bell [Thu, 3 Dec 2020 01:28:13 +0000 (18:28 -0700)] 
Don't zero out memory we're just going to copy over anyway

and maybe avoid the copy in some situations?

5 years agoStrip the DHCP prefix from all DHCPv4 attributes
Arran Cudbard-Bell [Thu, 3 Dec 2020 00:31:56 +0000 (17:31 -0700)] 
Strip the DHCP prefix from all DHCPv4 attributes

5 years agomore Requested-IP-Address to DHCP-Requested-IP-Address
Alan T. DeKok [Wed, 2 Dec 2020 18:59:30 +0000 (13:59 -0500)] 
more Requested-IP-Address to DHCP-Requested-IP-Address

5 years agozero the array
Alan T. DeKok [Wed, 2 Dec 2020 17:01:00 +0000 (12:01 -0500)] 
zero the array

5 years agoUse the talloc hierarchy
Alan T. DeKok [Wed, 2 Dec 2020 15:08:40 +0000 (10:08 -0500)] 
Use the talloc hierarchy

5 years agorename back for consistency
Alan T. DeKok [Wed, 2 Dec 2020 14:22:39 +0000 (09:22 -0500)] 
rename back for consistency

5 years agoFix error offset in some cases
Arran Cudbard-Bell [Tue, 1 Dec 2020 20:28:27 +0000 (13:28 -0700)] 
Fix error offset in some cases

5 years agoWe don't actually use slen anywhere anyway
Arran Cudbard-Bell [Tue, 1 Dec 2020 19:38:06 +0000 (12:38 -0700)] 
We don't actually use slen anywhere anyway

5 years agoAlways free the cc->pool
Arran Cudbard-Bell [Tue, 1 Dec 2020 18:57:05 +0000 (11:57 -0700)] 
Always free the cc->pool

5 years agoFix fr_dlist_pop_tail / fr_dlist_pop_head and remove hack
Arran Cudbard-Bell [Tue, 1 Dec 2020 17:34:03 +0000 (10:34 -0700)] 
Fix fr_dlist_pop_tail / fr_dlist_pop_head and remove hack

5 years agoDon't use the pair list macro here
Arran Cudbard-Bell [Tue, 1 Dec 2020 16:34:06 +0000 (09:34 -0700)] 
Don't use the pair list macro here

5 years agoOnly allocate the pool when it's needed
Arran Cudbard-Bell [Tue, 1 Dec 2020 16:11:29 +0000 (09:11 -0700)] 
Only allocate the pool when it's needed

5 years agoReturn from a single location in xlat_eval_pair_real
Arran Cudbard-Bell [Tue, 1 Dec 2020 16:11:10 +0000 (09:11 -0700)] 
Return from a single location in xlat_eval_pair_real

5 years agoadd assertion to shut up clang scan
Alan T. DeKok [Tue, 1 Dec 2020 13:56:22 +0000 (08:56 -0500)] 
add assertion to shut up clang scan

if the parser read a name from the string, then the dictionary
attribute MUST have been initialized

5 years agocreate a private talloc ctx for tmpl_cursor_init()
Alan T. DeKok [Tue, 1 Dec 2020 13:21:09 +0000 (08:21 -0500)] 
create a private talloc ctx for tmpl_cursor_init()

because there are paths which create leaf nodes allocated from
this context, BUT those leaf nodes are never cleaned up.  Instead,
we rely on talloc() to clean them up when the parent talloc ctx
is cleaned up.

Except that most callers of tmpl_cursor_init() pass it NULL as the
talloc ctx.  Which means that this memory will NEVER be cleaned up.

In the interest of simple fixes, we fix the tmpl cursor code to
always create a child context, and always clean up that child
context.  Which is only 2 lines of code, and fixes all of this.

5 years agofix for new names
Alan T. DeKok [Mon, 30 Nov 2020 21:52:46 +0000 (16:52 -0500)] 
fix for new names

5 years agoDon't stop after closing square bracket, there may be more components
Arran Cudbard-Bell [Mon, 30 Nov 2020 23:28:41 +0000 (16:28 -0700)] 
Don't stop after closing square bracket, there may be more components

5 years agoFix closing bracket whitespace
Arran Cudbard-Bell [Mon, 30 Nov 2020 22:54:32 +0000 (15:54 -0700)] 
Fix closing bracket whitespace

5 years agoChange the list ctx to the group
Arran Cudbard-Bell [Mon, 30 Nov 2020 22:23:28 +0000 (15:23 -0700)] 
Change the list ctx to the group

5 years agoCheck talloc hierarchy in pair_verify
Arran Cudbard-Bell [Mon, 30 Nov 2020 21:12:45 +0000 (14:12 -0700)] 
Check talloc hierarchy in pair_verify

5 years agoDon't try and cast when the RHS an attribute
Arran Cudbard-Bell [Mon, 30 Nov 2020 20:22:43 +0000 (13:22 -0700)] 
Don't try and cast when the RHS an attribute

5 years agomove decode_tlv() functionality into fr_struct_from_network()
Alan T. DeKok [Mon, 30 Nov 2020 20:12:22 +0000 (15:12 -0500)] 
move decode_tlv() functionality into fr_struct_from_network()

5 years agoprepare for decoding TLVs inside of struct_from_network()
Alan T. DeKok [Mon, 30 Nov 2020 19:54:24 +0000 (14:54 -0500)] 
prepare for decoding TLVs inside of struct_from_network()

rearrange arguments to match struct_to_network
add (currently unused) decode_tlv function

5 years agoFixup unresolved_namespace too
Arran Cudbard-Bell [Mon, 30 Nov 2020 19:37:40 +0000 (12:37 -0700)] 
Fixup unresolved_namespace too

5 years agoUnused
Arran Cudbard-Bell [Mon, 30 Nov 2020 19:18:45 +0000 (12:18 -0700)] 
Unused

5 years agoAllow internal attributes in groups
Arran Cudbard-Bell [Mon, 30 Nov 2020 19:13:40 +0000 (12:13 -0700)] 
Allow internal attributes in groups

Simplify re-printing attributes

Add additional sanity checks for namespaces and parents

5 years agoalways clear the curson on exit
Alan T. DeKok [Mon, 30 Nov 2020 18:41:22 +0000 (13:41 -0500)] 
always clear the curson on exit

5 years agoremove unused variables
Alan T. DeKok [Mon, 30 Nov 2020 14:26:13 +0000 (09:26 -0500)] 
remove unused variables

5 years agostructs are allowed, not disallowed
Alan T. DeKok [Mon, 30 Nov 2020 14:20:12 +0000 (09:20 -0500)] 
structs are allowed, not disallowed

5 years agoadd ifdef around code
Alan T. DeKok [Mon, 30 Nov 2020 14:10:30 +0000 (09:10 -0500)] 
add ifdef around code

5 years agoVarious fixups for structural attributes
Arran Cudbard-Bell [Mon, 30 Nov 2020 03:46:06 +0000 (20:46 -0700)] 
Various fixups for structural attributes

5 years agoStructs are tlvlike
Arran Cudbard-Bell [Mon, 30 Nov 2020 03:27:38 +0000 (20:27 -0700)] 
Structs are tlvlike

5 years agoFix function calls
Arran Cudbard-Bell [Mon, 30 Nov 2020 02:36:51 +0000 (19:36 -0700)] 
Fix function calls

5 years agoMore variants on the existing search functions
Arran Cudbard-Bell [Mon, 30 Nov 2020 02:28:16 +0000 (19:28 -0700)] 
More variants on the existing search functions

5 years agoSplit qualifier searching off from the main attr search function
Arran Cudbard-Bell [Mon, 30 Nov 2020 00:09:53 +0000 (17:09 -0700)] 
Split qualifier searching off from the main attr search function

5 years agoRemove duplicate name resolution function
Arran Cudbard-Bell [Sun, 29 Nov 2020 23:35:42 +0000 (16:35 -0700)] 
Remove duplicate name resolution function

We don't need it now we have multi-level namespaces

5 years agoCheck for errors using out, not slen
Arran Cudbard-Bell [Sun, 29 Nov 2020 22:59:38 +0000 (15:59 -0700)] 
Check for errors using out, not slen