]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Thu, 7 Apr 2022 20:55:58 +0000 (16:55 -0400)]
remove unnecessary struct/union
this doesn't change anything other than formatting
Alan T. DeKok [Thu, 7 Apr 2022 20:54:24 +0000 (16:54 -0400)]
convert error-prone code to inline typed functions
James Jones [Thu, 7 Apr 2022 20:59:42 +0000 (15:59 -0500)]
Add VALUEs for Datum in Geoconf-Option and change test to match (#4454)
James Jones [Thu, 7 Apr 2022 20:35:51 +0000 (15:35 -0500)]
Use SET_FLAG(subtype) rather than explicitly writing the equivalent code (#4453)
It *may* be that the explicit version is there to avoid the compiler
kvetching about a needless bit++ at the end. If that's the case, one
can switch to initializing bit to -1 and preincrementing rather than
postincrementing.
James Jones [Thu, 7 Apr 2022 20:33:28 +0000 (15:33 -0500)]
Convert GeoConf-Option (code 123) to struct, with test (#4450)
James Jones [Thu, 7 Apr 2022 20:33:18 +0000 (15:33 -0500)]
Convert GeoConf-Civic to use struct and add test (#4449)
James Jones [Thu, 7 Apr 2022 20:33:11 +0000 (15:33 -0500)]
Add test for RFC 3495; this exercises nested TLVs (#4448)
Arran Cudbard-Bell [Thu, 7 Apr 2022 20:28:07 +0000 (15:28 -0500)]
Typo
Arran Cudbard-Bell [Thu, 7 Apr 2022 19:34:27 +0000 (14:34 -0500)]
Use the standard instantiate bootstrap callbacks for proto and proc modules
Alan T. DeKok [Thu, 7 Apr 2022 18:03:58 +0000 (14:03 -0400)]
use offset from value box, not from datum
Alan T. DeKok [Thu, 7 Apr 2022 17:42:58 +0000 (13:42 -0400)]
copy at the correct offset
Alan T. DeKok [Thu, 7 Apr 2022 14:02:49 +0000 (10:02 -0400)]
might as well make this "const"
Alan T. DeKok [Wed, 6 Apr 2022 02:43:31 +0000 (22:43 -0400)]
use API instead of poking fields directly
Alan T. DeKok [Tue, 5 Apr 2022 22:35:29 +0000 (18:35 -0400)]
make the dlist offset point to the parent structure
instead of pointing to the fr_tlist_t. That way we can just
use the dlist functions, and get the enclosing structure.
As a bonus, it's also a lot less code.
Alan T. DeKok [Tue, 5 Apr 2022 22:26:46 +0000 (18:26 -0400)]
update TLIST macro functions
Alan T. DeKok [Tue, 5 Apr 2022 22:25:32 +0000 (18:25 -0400)]
add function to get tlist from dlist head
because a lot of dlist callbacks give the dlist head, and we
sometimes wish to convert that back to a tlist
Alan T. DeKok [Tue, 5 Apr 2022 22:24:52 +0000 (18:24 -0400)]
remove unused / unneeded functions
Alan T. DeKok [Tue, 5 Apr 2022 22:22:27 +0000 (18:22 -0400)]
manually free the pair list, as done in the other test functions.
otherwise with the new tlist code, the pairs are freed via
the talloc_free_children() callback, and the PAIR_VERIFY() check
fails, because the pair is still in a list.
Alan T. DeKok [Tue, 5 Apr 2022 15:56:24 +0000 (11:56 -0400)]
allow "attribute" command to parse/print multiple pairs
Alan T. DeKok [Tue, 5 Apr 2022 14:46:15 +0000 (10:46 -0400)]
check for error before allocating the VP
which also makes the code a little cleaner.
Alan T. DeKok [Tue, 5 Apr 2022 14:44:26 +0000 (10:44 -0400)]
can't re-init structural types
where would the children go? Be freed?
Nick Porter [Wed, 6 Apr 2022 11:35:52 +0000 (12:35 +0100)]
Remove unused variables
Alan T. DeKok [Tue, 5 Apr 2022 14:27:21 +0000 (10:27 -0400)]
fix relative OIDs here, too
Alan T. DeKok [Tue, 5 Apr 2022 14:26:45 +0000 (10:26 -0400)]
fully qualify the dictionary OIDs
Alan T. DeKok [Tue, 5 Apr 2022 14:13:42 +0000 (10:13 -0400)]
add fr_tlist_talloc_free_to_tail()
similar to fr_dlist_talloc_free_to_tail()
Alan T. DeKok [Tue, 5 Apr 2022 14:04:09 +0000 (10:04 -0400)]
add fr_pair_list_dlist_head()
and use it so that no one looks at internal fields
Alan T. DeKok [Tue, 5 Apr 2022 13:59:36 +0000 (09:59 -0400)]
remove unused lavel
Alan T. DeKok [Tue, 5 Apr 2022 13:54:13 +0000 (09:54 -0400)]
update fr_pair_replace() and callers
it was previously never called. And documented as freeing the
input VP, even though it didn't. And documented as "finding"
a VP, even though it didn't.
Use fr_pair_replace() in pairmove() functions, instead of having
them poke the dlists themselves.
Alan T. DeKok [Tue, 5 Apr 2022 13:14:20 +0000 (09:14 -0400)]
use fewer memset
new VPs are always initialized to zero
Alan T. DeKok [Tue, 5 Apr 2022 12:54:05 +0000 (08:54 -0400)]
less code == better code
Alan T. DeKok [Tue, 5 Apr 2022 12:45:44 +0000 (08:45 -0400)]
fix fr_pair_reinit_from_da()
it may be called with a VP which has been created via
fr_pair_alloc_null(), in which case vp->da is NULL.
Alan T. DeKok [Tue, 5 Apr 2022 12:46:40 +0000 (08:46 -0400)]
use fr_pair_init_null() instead of memset()
Alan T. DeKok [Tue, 5 Apr 2022 12:31:14 +0000 (08:31 -0400)]
add fr_pair_init_null()
because memset(vp, 0) is no longer appropriate
Alan T. DeKok [Tue, 5 Apr 2022 12:24:08 +0000 (08:24 -0400)]
use "free to tail", and don't keep tmp_list
Alan T. DeKok [Mon, 4 Apr 2022 19:29:23 +0000 (15:29 -0400)]
add "free to tail" function
Nick Porter [Tue, 5 Apr 2022 12:53:11 +0000 (13:53 +0100)]
Add apt retry configuration to second half of debian CI tests
Nick Porter [Tue, 5 Apr 2022 11:06:08 +0000 (12:06 +0100)]
Use correct apt option for retries
Alan T. DeKok [Mon, 4 Apr 2022 19:07:28 +0000 (15:07 -0400)]
minor typos and fixes
Alan T. DeKok [Mon, 4 Apr 2022 19:00:33 +0000 (15:00 -0400)]
add dlist_head function
Alan T. DeKok [Mon, 4 Apr 2022 18:55:14 +0000 (14:55 -0400)]
typo
Alan T. DeKok [Mon, 4 Apr 2022 13:21:44 +0000 (09:21 -0400)]
typo
Alan T. DeKok [Mon, 4 Apr 2022 12:43:11 +0000 (08:43 -0400)]
remove unused macros
Alan T. DeKok [Mon, 4 Apr 2022 12:42:30 +0000 (08:42 -0400)]
pair dlist functions are internal, not public
in preparation for changing the internal structure of pair lists
Alan T. DeKok [Fri, 1 Apr 2022 14:52:57 +0000 (10:52 -0400)]
add note about variable length time specs
Nick Porter [Fri, 1 Apr 2022 14:31:36 +0000 (15:31 +0100)]
Fix handling of affected_rows for FreeTDS SQL driver
After all the required calls to ct_results(), the internal counter of
affected rows is reset. So, retrieve it whilst still available and
store for later use.
Nick Porter [Fri, 1 Apr 2022 14:30:22 +0000 (15:30 +0100)]
Add AcctUpdateTime and AcctInterval to MS SQL accounting tables
To bring them in line with other databases
Arran Cudbard-Bell [Fri, 1 Apr 2022 21:13:09 +0000 (15:13 -0600)]
Try *really* hard to pull down packages
github-actions[bot] [Fri, 1 Apr 2022 09:37:16 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:13 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:10 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:07 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:04 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Fri, 1 Apr 2022 09:37:01 +0000 (09:37 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Fri, 1 Apr 2022 09:36:57 +0000 (09:36 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Fri, 1 Apr 2022 09:36:55 +0000 (09:36 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
Alan T. DeKok [Thu, 31 Mar 2022 18:03:33 +0000 (14:03 -0400)]
correct references and numbers
apparently the formatter isn't quite perfect
Arran Cudbard-Bell [Thu, 31 Mar 2022 17:10:25 +0000 (11:10 -0600)]
Bump the timeout
This'll temporarily fix CI, but we should try and figure out exactly what's happening.
Arran Cudbard-Bell [Thu, 31 Mar 2022 17:09:09 +0000 (11:09 -0600)]
Return NULL on error
Alan T. DeKok [Thu, 31 Mar 2022 16:45:43 +0000 (12:45 -0400)]
run through the formatting script
which updates the copyright date, and changes whitespace
Alan T. DeKok [Thu, 31 Mar 2022 16:44:41 +0000 (12:44 -0400)]
this encoded as DNS
Arran Cudbard-Bell [Thu, 31 Mar 2022 16:35:02 +0000 (10:35 -0600)]
Check for NULL heap pointers
Arran Cudbard-Bell [Thu, 31 Mar 2022 16:12:05 +0000 (10:12 -0600)]
Remove one layer of heap derefs and shrink heaps as elements are removed
Alan T. DeKok [Thu, 31 Mar 2022 16:04:29 +0000 (12:04 -0400)]
update and rearrange
to reset TLV numbers
Alan T. DeKok [Thu, 31 Mar 2022 14:29:35 +0000 (10:29 -0400)]
the first 2 fields are mandatory, so we might as well define them :(
Alan T. DeKok [Thu, 31 Mar 2022 14:21:52 +0000 (10:21 -0400)]
these are "bool encode=exists", like Rapid-Commit
James Jones [Thu, 31 Mar 2022 14:04:17 +0000 (09:04 -0500)]
Continue splitting dictionaries by RFC (#4445)
Matthew Newton [Thu, 31 Mar 2022 09:05:43 +0000 (10:05 +0100)]
Remove prefixes
Matthew Newton [Wed, 30 Mar 2022 20:03:13 +0000 (21:03 +0100)]
Add netelastic dictionary
Terry Burton [Wed, 30 Mar 2022 12:06:10 +0000 (13:06 +0100)]
freeradius-snmp "proxy": Fixes and cleanup (#4446)
Accelerate walks with a "next OID" hash.
Enable collection of per-client stats by default.
Populate accounting client table with real data.
Avoid race by hoisting radius_stats_init() out of updater thread.
Have radius_updater thread terminate on SIGINT.
Refresh RADIUS-AUTH-SERVER-MIB and RADIUS-ACC-SERVER-MIBs.
Add IPv6 client support.
Assume default value (0) for non-existent stats attributes.
Whitespace and style.
Arran Cudbard-Bell [Mon, 28 Mar 2022 21:19:37 +0000 (15:19 -0600)]
Try and fix the random debian packaging failures
Arran Cudbard-Bell [Mon, 28 Mar 2022 21:15:06 +0000 (15:15 -0600)]
add back Centos 7 support, apparently that was still passing in the scheduled builds somehow
Arran Cudbard-Bell [Mon, 28 Mar 2022 21:08:10 +0000 (15:08 -0600)]
Typo
Arran Cudbard-Bell [Mon, 28 Mar 2022 21:04:10 +0000 (15:04 -0600)]
Use another source of centos stream
Strip support for fedora and centos-7
Arran Cudbard-Bell [Mon, 28 Mar 2022 20:31:36 +0000 (14:31 -0600)]
See if this fixes the centos 8 package build...
Arran Cudbard-Bell [Mon, 28 Mar 2022 19:31:42 +0000 (13:31 -0600)]
Fix failures in OpenSSL 3.0 with custom logging BIOs
Apparently the create callbacks need to call BIO_set_init() otherwise all operations on the BIO will fail. This isn't documented anywhere.
Arran Cudbard-Bell [Mon, 28 Mar 2022 18:21:09 +0000 (12:21 -0600)]
If we're building OpenSSL make sure it's a debug build
Arran Cudbard-Bell [Mon, 28 Mar 2022 17:56:08 +0000 (11:56 -0600)]
We still need the request for state reset
Arran Cudbard-Bell [Mon, 28 Mar 2022 17:28:37 +0000 (11:28 -0600)]
Hack in stack over-allocation for OpenSSL async contexts
Arran Cudbard-Bell [Mon, 28 Mar 2022 16:32:24 +0000 (10:32 -0600)]
Bump OpenSSL for alt libs
Alan T. DeKok [Mon, 28 Mar 2022 14:29:27 +0000 (10:29 -0400)]
i->ifa_addr may not be aligned
on OSX it fails with alignment issues, as apparently the alignment
requirements are different for sockaddr and sockaddr_storage?
Or at least ubsan complains on my Mac.
Alan T. DeKok [Mon, 28 Mar 2022 14:55:23 +0000 (10:55 -0400)]
more sanity checks on parsing dates / times
Alan T. DeKok [Sat, 26 Mar 2022 13:05:06 +0000 (09:05 -0400)]
move private macros to private header
Alan T. DeKok [Sat, 26 Mar 2022 13:04:42 +0000 (09:04 -0400)]
add cf_item_has_no_children()
Alan T. DeKok [Sat, 26 Mar 2022 12:58:00 +0000 (08:58 -0400)]
doxygen
Alan T. DeKok [Sat, 26 Mar 2022 12:55:32 +0000 (08:55 -0400)]
use inline API for node removal
Alan T. DeKok [Sat, 26 Mar 2022 01:35:18 +0000 (21:35 -0400)]
move item initialization to a common function
Alan T. DeKok [Sat, 26 Mar 2022 01:25:44 +0000 (21:25 -0400)]
more use cf_item_foreach()
Alan T. DeKok [Sat, 26 Mar 2022 01:22:05 +0000 (21:22 -0400)]
insert the twin, not the entry we're deleting
Alan T. DeKok [Sat, 26 Mar 2022 00:57:30 +0000 (20:57 -0400)]
add cf_item_foreach_prev()
which avoids many manual calls to dlist code
Alan T. DeKok [Fri, 25 Mar 2022 22:11:09 +0000 (18:11 -0400)]
add cf_item_foreach
which makes things much easier
Alan T. DeKok [Fri, 25 Mar 2022 21:06:18 +0000 (17:06 -0400)]
inputs may be NULL
Alan T. DeKok [Fri, 25 Mar 2022 19:43:43 +0000 (15:43 -0400)]
add fr_tlist_parent()
Arran Cudbard-Bell [Sat, 26 Mar 2022 01:40:10 +0000 (19:40 -0600)]
Add fr_rb_delete_by_inline_node and fr_rb_remove_by_inline_node
Alan T. DeKok [Fri, 25 Mar 2022 18:50:26 +0000 (14:50 -0400)]
add more tlist-specific functions
Alan T. DeKok [Fri, 25 Mar 2022 18:24:00 +0000 (14:24 -0400)]
add the child list, too
MIZUTA Takeshi [Thu, 3 Mar 2022 06:28:56 +0000 (15:28 +0900)]
Don't refer to errno when the pthread library fails
When the pthread library fails, errno is referenced even though errno is not set.
Fix to refer to the return code of the pthread library instead of errno.
Nick Porter [Fri, 25 Mar 2022 17:33:38 +0000 (17:33 +0000)]
v4: Remove ifdefs for longstanding OpenLDAP features (#4439)
* Remove #ifdef LDAP_OPT_X_TLS_PROTOCOL_MIN
Has been in libldap for 13 years
* Remove #ifdef LDAP_OPT_NETWORK_TIMEOUT
Has been in libldap for 19 years
* Remove #ifdef LDAP_OPT_X_KEEPALIVE_IDLE
Has been in libldap for 13 years
* Remove #ifdef LDAP_OPT_X_KEEPALIVE_PROBES
Has been in libldap for 13 years
* Remove #ifdef LDAP_OPT_X_KEEPALIVE_INTERVAL
Has been in libldap for 13 years
* Remove #ifdef LDAP_MOD_INCREMENT
Has been in libldap for 15 years
* Remove #ifdef LDAP_OPT_X_TLS_NEVER
Has been in libldap for 18 years
* Remove #ifdef LDAP_SCOPE_CHILDREN
Has been in libldap for 18 years
* Remove #ifdef LDAP_OPT_TIMEOUT
Has been in libldap for 23 years
* Remove #ifdef LDAP_OPT_DEBUG_LEVEL
Has been in libldap for 23 years
* Remove #ifdef LDAP_OPT_TLS_RANDOM_FILE
Has been in libldap for 21 years
* Remove #ifdef LDAP_OPT_X_TLS_REQUIRE_CERT
Has been in libldap for 23 years
* Remove #ifdef LDAP_OPT_X_TLS_NEWCTX
Has been in libldap for 16 years
* Remove #ifdef HAVE_LDAP_UNBIND_EXT_S
Has been in libldap for 23 years
* Remove #ifdef HAVE_LDAP_INITIALIZE
Has been in libldap for 22 years
* Remove #ifdef HAVE_LDAP_URL_PARSE
Has been in libldap for 23 years
* Remove #ifdef HAVE_LDAP_IS_LDAP_URL
Has been in libldap for 23 years
* Remove #ifdef HAVE_LDAP_URL_DESC2STR (and LDAP_CAN_PARSE_URLS)
Has been in libldap for 21 years
* Remove #ifdef HAVE_LDAP_CREATE_SORT_KEYLIST and HAVE_LDAP_FREE_SORT_KEYLIST
Have been in libldap for 22 years
* Remove #ifdef HAVE_LDAP_CREATE_SORT_CONTROL
Has been in libldap for 20 years
* Remove #ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND
Has been in libldap for 11 years
* Remove #ifdef HAVE_LDAP_START_TLS_S
Has been in libldap for 22 years
* Update configure.ac to reflect changes in libldap tests
Alan T. DeKok [Fri, 25 Mar 2022 15:38:33 +0000 (11:38 -0400)]
fix types and compile errors
Nick Porter [Fri, 25 Mar 2022 13:45:06 +0000 (13:45 +0000)]
talloc_array_length() doesn't handle array resized by talloc_realloc_fn() (#4428)
Alan T. DeKok [Fri, 25 Mar 2022 13:02:18 +0000 (09:02 -0400)]
port last dlist -> tlist changes