]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Tue, 8 Dec 2020 18:25:17 +0000 (13:25 -0500)]
use names with specific sizes
Alan T. DeKok [Tue, 8 Dec 2020 18:23:10 +0000 (13:23 -0500)]
allow cloning of struct MEMBERs
Alan T. DeKok [Mon, 7 Dec 2020 16:17:09 +0000 (11:17 -0500)]
document how VALUE lookups are done
Terry Burton [Mon, 7 Dec 2020 15:21:51 +0000 (15:21 +0000)]
CI: Perform the package build tests on a schedule not push
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
Terry Burton [Mon, 7 Dec 2020 12:40:01 +0000 (12:40 +0000)]
CI: Do RPM build tests for supported CentOS versions
Terry Burton [Fri, 4 Dec 2020 19:37:38 +0000 (19:37 +0000)]
CI RPM/DEB: Performance tweaks and cleanups
Terry Burton [Mon, 7 Dec 2020 14:28:17 +0000 (14:28 +0000)]
RPM: Don't wrongly include requisits in the package description
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
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
Arran Cudbard-Bell [Mon, 7 Dec 2020 15:36:23 +0000 (08:36 -0700)]
Deal with failed fork
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.
Arran Cudbard-Bell [Mon, 7 Dec 2020 14:30:58 +0000 (07:30 -0700)]
Fix useless goto
Arran Cudbard-Bell [Mon, 7 Dec 2020 14:28:00 +0000 (07:28 -0700)]
No longer const
Arran Cudbard-Bell [Mon, 7 Dec 2020 14:24:12 +0000 (07:24 -0700)]
Rename for consistency
Arran Cudbard-Bell [Sun, 6 Dec 2020 04:20:44 +0000 (21:20 -0700)]
Get pointer to existing extension
Arran Cudbard-Bell [Sun, 6 Dec 2020 03:58:59 +0000 (20:58 -0700)]
Another unused var
Arran Cudbard-Bell [Sun, 6 Dec 2020 03:45:11 +0000 (20:45 -0700)]
Mark arg as unused
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
Alan T. DeKok [Sun, 6 Dec 2020 02:47:36 +0000 (21:47 -0500)]
add comments
Alan T. DeKok [Sun, 6 Dec 2020 01:59:31 +0000 (20:59 -0500)]
update 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
Alan T. DeKok [Sat, 5 Dec 2020 14:43:50 +0000 (09:43 -0500)]
set values only on success
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
Alan T. DeKok [Sat, 5 Dec 2020 14:37:30 +0000 (09:37 -0500)]
it helps to return here
Alan T. DeKok [Sat, 5 Dec 2020 14:28:12 +0000 (09:28 -0500)]
we now support structs
Alan T. DeKok [Sat, 5 Dec 2020 14:25:31 +0000 (09:25 -0500)]
update for structs, and add tests
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.
Alan T. DeKok [Sat, 5 Dec 2020 14:09:51 +0000 (09:09 -0500)]
we now support nested groups
Alan T. DeKok [Fri, 4 Dec 2020 21:47:28 +0000 (16:47 -0500)]
do decode / match / encode / match tests
Alan T. DeKok [Fri, 4 Dec 2020 21:43:03 +0000 (16:43 -0500)]
copy keyed structures, and update DHCPv6 dict and tests
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
Alan T. DeKok [Fri, 4 Dec 2020 20:25:05 +0000 (15:25 -0500)]
clone structs
add structs to WiMAX. And add tests
Alan T. DeKok [Fri, 4 Dec 2020 20:25:01 +0000 (15:25 -0500)]
typo
Alan T. DeKok [Fri, 4 Dec 2020 20:11:13 +0000 (15:11 -0500)]
simplify and cleanup dict fixup loops
Alan T. DeKok [Fri, 4 Dec 2020 16:38:20 +0000 (11:38 -0500)]
abstract common code into a common function
Alan T. DeKok [Sun, 6 Dec 2020 02:46:30 +0000 (21:46 -0500)]
typo. add missing !
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
Arran Cudbard-Bell [Sat, 5 Dec 2020 04:33:16 +0000 (21:33 -0700)]
Various extensions fixes
Matthew Newton [Fri, 4 Dec 2020 02:37:26 +0000 (02:37 +0000)]
use correct example config for json
Terry Burton [Wed, 2 Dec 2020 23:15:43 +0000 (23:15 +0000)]
RPM build fixes
Terry Burton [Wed, 2 Dec 2020 23:15:26 +0000 (23:15 +0000)]
DEB build fixes
Terry Burton [Wed, 2 Dec 2020 03:47:16 +0000 (03:47 +0000)]
CI tests for build and install of DEBs and RPMs
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
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"
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
Alan T. DeKok [Thu, 3 Dec 2020 18:25:39 +0000 (13:25 -0500)]
print out parents name, too
Alan T. DeKok [Thu, 3 Dec 2020 17:09:40 +0000 (12:09 -0500)]
copy and standardize common sub-TLVs
Alan T. DeKok [Thu, 3 Dec 2020 17:09:25 +0000 (12:09 -0500)]
re-run the tests if the dictionaries change
Arran Cudbard-Bell [Thu, 3 Dec 2020 21:04:23 +0000 (14:04 -0700)]
Fix ext debugging
Arran Cudbard-Bell [Thu, 3 Dec 2020 16:31:50 +0000 (09:31 -0700)]
Fixup various pre-existing dictionary issues
Arran Cudbard-Bell [Thu, 3 Dec 2020 16:00:35 +0000 (09:00 -0700)]
Resolution functions already resolve the ref
Arran Cudbard-Bell [Thu, 3 Dec 2020 15:59:18 +0000 (08:59 -0700)]
All structural types can contain references
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
Alan T. DeKok [Thu, 3 Dec 2020 14:39:52 +0000 (09:39 -0500)]
follow refs in fr_dict_oid_component
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.
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
Alan T. DeKok [Thu, 3 Dec 2020 13:59:41 +0000 (08:59 -0500)]
preparation for allowing structs to have refs
Nick Porter [Thu, 3 Dec 2020 08:49:27 +0000 (08:49 +0000)]
Correct status names for accounting On / Off
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
Nick Porter [Thu, 3 Dec 2020 10:29:12 +0000 (10:29 +0000)]
Add method to correctly release DHCP leases in rlm_redis_ippool
Nick Porter [Thu, 3 Dec 2020 10:12:29 +0000 (10:12 +0000)]
Associate Confirm, Renew and Rebind with correct method
Nick Porter [Thu, 3 Dec 2020 09:27:06 +0000 (09:27 +0000)]
v4: DHCPv6 accept Confirm packets
We receive confirm packets, not send
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?
Arran Cudbard-Bell [Thu, 3 Dec 2020 00:31:56 +0000 (17:31 -0700)]
Strip the DHCP prefix from all DHCPv4 attributes
Alan T. DeKok [Wed, 2 Dec 2020 18:59:30 +0000 (13:59 -0500)]
more Requested-IP-Address to DHCP-Requested-IP-Address
Alan T. DeKok [Wed, 2 Dec 2020 17:01:00 +0000 (12:01 -0500)]
zero the array
Alan T. DeKok [Wed, 2 Dec 2020 15:08:40 +0000 (10:08 -0500)]
Use the talloc hierarchy
Alan T. DeKok [Wed, 2 Dec 2020 14:22:39 +0000 (09:22 -0500)]
rename back for consistency
Arran Cudbard-Bell [Tue, 1 Dec 2020 20:28:27 +0000 (13:28 -0700)]
Fix error offset in some cases
Arran Cudbard-Bell [Tue, 1 Dec 2020 19:38:06 +0000 (12:38 -0700)]
We don't actually use slen anywhere anyway
Arran Cudbard-Bell [Tue, 1 Dec 2020 18:57:05 +0000 (11:57 -0700)]
Always free the cc->pool
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
Arran Cudbard-Bell [Tue, 1 Dec 2020 16:34:06 +0000 (09:34 -0700)]
Don't use the pair list macro here
Arran Cudbard-Bell [Tue, 1 Dec 2020 16:11:29 +0000 (09:11 -0700)]
Only allocate the pool when it's needed
Arran Cudbard-Bell [Tue, 1 Dec 2020 16:11:10 +0000 (09:11 -0700)]
Return from a single location in xlat_eval_pair_real
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
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.
Alan T. DeKok [Mon, 30 Nov 2020 21:52:46 +0000 (16:52 -0500)]
fix for new names
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
Arran Cudbard-Bell [Mon, 30 Nov 2020 22:54:32 +0000 (15:54 -0700)]
Fix closing bracket whitespace
Arran Cudbard-Bell [Mon, 30 Nov 2020 22:23:28 +0000 (15:23 -0700)]
Change the list ctx to the group
Arran Cudbard-Bell [Mon, 30 Nov 2020 21:12:45 +0000 (14:12 -0700)]
Check talloc hierarchy in pair_verify
Arran Cudbard-Bell [Mon, 30 Nov 2020 20:22:43 +0000 (13:22 -0700)]
Don't try and cast when the RHS an attribute
Alan T. DeKok [Mon, 30 Nov 2020 20:12:22 +0000 (15:12 -0500)]
move decode_tlv() functionality into fr_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
Arran Cudbard-Bell [Mon, 30 Nov 2020 19:37:40 +0000 (12:37 -0700)]
Fixup unresolved_namespace too
Arran Cudbard-Bell [Mon, 30 Nov 2020 19:18:45 +0000 (12:18 -0700)]
Unused
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
Alan T. DeKok [Mon, 30 Nov 2020 18:41:22 +0000 (13:41 -0500)]
always clear the curson on exit
Alan T. DeKok [Mon, 30 Nov 2020 14:26:13 +0000 (09:26 -0500)]
remove unused variables
Alan T. DeKok [Mon, 30 Nov 2020 14:20:12 +0000 (09:20 -0500)]
structs are allowed, not disallowed
Alan T. DeKok [Mon, 30 Nov 2020 14:10:30 +0000 (09:10 -0500)]
add ifdef around code
Arran Cudbard-Bell [Mon, 30 Nov 2020 03:46:06 +0000 (20:46 -0700)]
Various fixups for structural attributes
Arran Cudbard-Bell [Mon, 30 Nov 2020 03:27:38 +0000 (20:27 -0700)]
Structs are tlvlike
Arran Cudbard-Bell [Mon, 30 Nov 2020 02:36:51 +0000 (19:36 -0700)]
Fix function calls
Arran Cudbard-Bell [Mon, 30 Nov 2020 02:28:16 +0000 (19:28 -0700)]
More variants on the existing search functions
Arran Cudbard-Bell [Mon, 30 Nov 2020 00:09:53 +0000 (17:09 -0700)]
Split qualifier searching off from the main attr search 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
Arran Cudbard-Bell [Sun, 29 Nov 2020 22:59:38 +0000 (15:59 -0700)]
Check for errors using out, not slen