]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Wed, 27 May 2020 13:57:08 +0000 (09:57 -0400)]
add API to get ethernet address from interface
Alan T. DeKok [Wed, 27 May 2020 13:10:06 +0000 (09:10 -0400)]
define and decode ethernet address for client / server ID
Alan T. DeKok [Wed, 27 May 2020 12:37:41 +0000 (08:37 -0400)]
document multicast + unicast default listeners
Alan T. DeKok [Wed, 27 May 2020 12:34:17 +0000 (08:34 -0400)]
let's have this compile, okay?
Alan T. DeKok [Mon, 25 May 2020 23:20:33 +0000 (19:20 -0400)]
move functions to better location
Arran Cudbard-Bell [Tue, 26 May 2020 16:29:29 +0000 (11:29 -0500)]
Reword cassandra-install.sh
Arran Cudbard-Bell [Tue, 26 May 2020 03:46:40 +0000 (22:46 -0500)]
Typo
Arran Cudbard-Bell [Tue, 26 May 2020 03:34:50 +0000 (22:34 -0500)]
pair/value: Remove final calls to memsteal and bstrsteal
Arran Cudbard-Bell [Mon, 25 May 2020 23:24:31 +0000 (18:24 -0500)]
inet: Static buffer size
Alan T. DeKok [Mon, 25 May 2020 23:14:11 +0000 (19:14 -0400)]
expose fr_dhcpv6_option_find() function
Alan T. DeKok [Mon, 25 May 2020 21:38:35 +0000 (17:38 -0400)]
ACK the client ID if the admin didn't add one
We also need to set a server identifier somewhere
Alan T. DeKok [Mon, 25 May 2020 21:09:47 +0000 (17:09 -0400)]
clean up.
* if we have interface but no ipaddr, then try to set ipaddr
from a link-local address on that interface
* check for multicast differently. We assume that the admin
will configure one link-local "listen" section, and another
multicase "listen" section
* set src_ipaddr == ipaddr for link-local addresses
* for multicast, require interface to be set, AND set src_ipaddr
to the link-local address on that interface
Alan T. DeKok [Mon, 25 May 2020 21:03:19 +0000 (17:03 -0400)]
add fr_interface_to_ipaddr()
which grabs an IP from an interface
Alan T. DeKok [Mon, 25 May 2020 21:02:43 +0000 (17:02 -0400)]
NAKs are 1 byte
Alan T. DeKok [Mon, 25 May 2020 15:27:16 +0000 (11:27 -0400)]
set packet->code
Arran Cudbard-Bell [Mon, 25 May 2020 21:16:58 +0000 (16:16 -0500)]
Remove more memsteal and bstrsteal
Arran Cudbard-Bell [Mon, 25 May 2020 17:43:15 +0000 (12:43 -0500)]
radclient: Fix radclient_init return check
Arran Cudbard-Bell [Mon, 25 May 2020 17:27:31 +0000 (12:27 -0500)]
Is it cap causing travis to fail?
Arran Cudbard-Bell [Mon, 25 May 2020 16:46:22 +0000 (11:46 -0500)]
half the test is to make sure the process can do its own cap requesting
Arran Cudbard-Bell [Mon, 25 May 2020 16:41:03 +0000 (11:41 -0500)]
dl: Remove search path from dl_loader_init and default to the libdir set by autoconf
add dl_search_path_prepend and dl_search_path_append to add extra components to the search path, and use those to add auxilliary search paths.
Hopefully have better luck loading the dictionary validation libraries now...
Arran Cudbard-Bell [Mon, 25 May 2020 16:09:49 +0000 (11:09 -0500)]
more typos
Arran Cudbard-Bell [Mon, 25 May 2020 15:39:12 +0000 (10:39 -0500)]
Add this back in...
Alan T. DeKok [Mon, 25 May 2020 14:59:18 +0000 (10:59 -0400)]
typo
Alan T. DeKok [Mon, 25 May 2020 14:55:55 +0000 (10:55 -0400)]
not all binaries are radiusd
Alan T. DeKok [Mon, 25 May 2020 14:50:59 +0000 (10:50 -0400)]
do setcap on travis for unit_test_module and radiusd
so that we can do ICMP tests, ARP tests, DHCPv4 raw socket tests,
among others.
Arran Cudbard-Bell [Mon, 25 May 2020 14:51:30 +0000 (09:51 -0500)]
Typo
Arran Cudbard-Bell [Mon, 25 May 2020 14:32:12 +0000 (09:32 -0500)]
socket: Put cap command on a different line
Arran Cudbard-Bell [Mon, 25 May 2020 14:16:29 +0000 (09:16 -0500)]
icmp: Move instantiation functions
Make a get cap failure, a fatal error (if we're not running as root)
Arran Cudbard-Bell [Mon, 25 May 2020 13:19:10 +0000 (08:19 -0500)]
Typo
Arran Cudbard-Bell [Mon, 25 May 2020 03:13:38 +0000 (22:13 -0500)]
pair: Remove more memsteal uses
Arran Cudbard-Bell [Mon, 25 May 2020 02:49:39 +0000 (21:49 -0500)]
pair: remove more bstrsteal uses
Arran Cudbard-Bell [Mon, 25 May 2020 02:47:01 +0000 (21:47 -0500)]
Fix const issues
Arran Cudbard-Bell [Mon, 25 May 2020 02:22:02 +0000 (21:22 -0500)]
value/pair: Consistency fixes in assignment APIs
Arran Cudbard-Bell [Mon, 25 May 2020 00:10:13 +0000 (19:10 -0500)]
s/fr_pair_value_strcpy/fr_pair_value_strdup/g
Arran Cudbard-Bell [Mon, 25 May 2020 00:05:47 +0000 (19:05 -0500)]
value: Remove some calls to fr_value_box_bstrsteal
Arran Cudbard-Bell [Sun, 24 May 2020 22:17:41 +0000 (17:17 -0500)]
yubikey: Just trim the existing buffer, don't allocate a new one
Arran Cudbard-Bell [Sun, 24 May 2020 22:11:20 +0000 (17:11 -0500)]
pair/value: Add utility functions for clearing values
Arran Cudbard-Bell [Sun, 24 May 2020 21:39:31 +0000 (16:39 -0500)]
value/pair: Add re-alloc functions to change the length of a buffer
Arran Cudbard-Bell [Sun, 24 May 2020 20:04:40 +0000 (15:04 -0500)]
value: Remove bstrnsteal functions
Arran Cudbard-Bell [Sun, 24 May 2020 20:03:16 +0000 (15:03 -0500)]
Just clear the value, don't trash the metadata
Arran Cudbard-Bell [Sun, 24 May 2020 19:41:22 +0000 (14:41 -0500)]
dns: Remove direct assignment to box
Arran Cudbard-Bell [Sun, 24 May 2020 19:43:37 +0000 (14:43 -0500)]
Use box clearing function instead of direct assignment
Arran Cudbard-Bell [Sun, 24 May 2020 19:52:08 +0000 (14:52 -0500)]
value: fr_value_box_bstr_alloc, allocate enough memory for the terminating \0
Arran Cudbard-Bell [Sun, 24 May 2020 19:34:51 +0000 (14:34 -0500)]
value: Constify type field of value boxes
Arran Cudbard-Bell [Sun, 24 May 2020 19:24:08 +0000 (14:24 -0500)]
value: Fixup fr_value_box_cast_to_strvalue
Arran Cudbard-Bell [Sun, 24 May 2020 19:15:57 +0000 (14:15 -0500)]
value: Fix copy/paste error
Arran Cudbard-Bell [Sun, 24 May 2020 19:03:28 +0000 (14:03 -0500)]
value: Read from src not dst in hton
Arran Cudbard-Bell [Sun, 24 May 2020 18:58:36 +0000 (13:58 -0500)]
value: Fixup octets
Arran Cudbard-Bell [Sun, 24 May 2020 18:57:55 +0000 (13:57 -0500)]
value: Remove unecessary conditions
Arran Cudbard-Bell [Sun, 24 May 2020 18:53:38 +0000 (13:53 -0500)]
value: Make fr_value_box_hton initialise the destination box
Arran Cudbard-Bell [Sun, 24 May 2020 18:18:41 +0000 (13:18 -0500)]
value: Round out assignment API
Arran Cudbard-Bell [Sun, 24 May 2020 17:14:46 +0000 (12:14 -0500)]
value: Verb last
Arran Cudbard-Bell [Sun, 24 May 2020 16:52:58 +0000 (11:52 -0500)]
value: missed return
Arran Cudbard-Bell [Sun, 24 May 2020 16:50:28 +0000 (11:50 -0500)]
value: Use initialiser in IP casts
Arran Cudbard-Bell [Sun, 24 May 2020 16:01:25 +0000 (11:01 -0500)]
value: convert bool casting function to use initialiser
Arran Cudbard-Bell [Sun, 24 May 2020 15:48:40 +0000 (10:48 -0500)]
value: Use box initialiser for unsigned integer casts
Avoid initialising the box twice for string/octets types
Arran Cudbard-Bell [Sun, 24 May 2020 15:36:23 +0000 (10:36 -0500)]
pair: fr_pair_value_bstrnsteal use box stealing function
Arran Cudbard-Bell [Sun, 24 May 2020 15:27:57 +0000 (10:27 -0500)]
value: Use value box initialisers for assignment functions
Arran Cudbard-Bell [Sun, 24 May 2020 15:17:35 +0000 (10:17 -0500)]
value: Use box initialiser for value_box_from_network
Arran Cudbard-Bell [Sun, 24 May 2020 15:12:58 +0000 (10:12 -0500)]
value: Set macros to get private version of value.h
Arran Cudbard-Bell [Sun, 24 May 2020 15:12:18 +0000 (10:12 -0500)]
value: Use the init function to clear value boxes.
Arran Cudbard-Bell [Sun, 24 May 2020 15:04:40 +0000 (10:04 -0500)]
value: Always inline initialisation functions
Arran Cudbard-Bell [Sun, 24 May 2020 15:02:42 +0000 (10:02 -0500)]
value: Limit null arguments in value box from str
Arran Cudbard-Bell [Sun, 24 May 2020 15:02:02 +0000 (10:02 -0500)]
verb last...
Arran Cudbard-Bell [Sun, 24 May 2020 15:00:17 +0000 (10:00 -0500)]
fix typo
Arran Cudbard-Bell [Sun, 24 May 2020 14:54:44 +0000 (09:54 -0500)]
tmpl: Fix buffer allocations external to value boxes
In the majority of the cases where we use *steal functions, we can do this instead...
Arran Cudbard-Bell [Sun, 24 May 2020 14:45:32 +0000 (09:45 -0500)]
dns: Use box initialiser instead of doing it manually
Alan T. DeKok [Sun, 24 May 2020 13:23:31 +0000 (09:23 -0400)]
concatenate multiple results from child. Fixes #3466
Alan T. DeKok [Sun, 24 May 2020 12:53:16 +0000 (08:53 -0400)]
add test for things after the expansion
Alan T. DeKok [Sun, 24 May 2020 12:12:57 +0000 (08:12 -0400)]
initialize heap_id
Alan T. DeKok [Sun, 24 May 2020 12:11:20 +0000 (08:11 -0400)]
allow adding to an empty heap when heap_id==0
Alan T. DeKok [Sat, 23 May 2020 22:25:30 +0000 (18:25 -0400)]
initialize heap_id, and don't assert on cleanup
if we can't insert the ev into the heap, then _event_timer_free()
shouldn't assert that it is in the heap. We fix this by just
setting the talloc destructor to NULL.
Alan T. DeKok [Sat, 23 May 2020 22:02:35 +0000 (18:02 -0400)]
use struct initializers instead of manually setting fields
as this should ensure the other fields are NULL
Alan T. DeKok [Sat, 23 May 2020 20:18:55 +0000 (16:18 -0400)]
typo
Alan T. DeKok [Sat, 23 May 2020 18:57:29 +0000 (14:57 -0400)]
fix build rules
OUTPUT is only defined by $(eval $(call TEST_BOOTSTRAP)), so it
can't be used before that function is called. And it can't be
used if that function isn't called.
Hoist TEST definition to a place where it's available, even if
we're not running the tests.
Arran Cudbard-Bell [Sat, 23 May 2020 19:00:35 +0000 (14:00 -0500)]
tmpl: Fix direct box value assignments (for most cases)
Arran Cudbard-Bell [Sat, 23 May 2020 18:59:19 +0000 (13:59 -0500)]
conf: Initialise temporary boxes correctly/completely
Arran Cudbard-Bell [Sat, 23 May 2020 18:54:09 +0000 (13:54 -0500)]
value: Ensure talloc buffer types are always explicitly set
Arran Cudbard-Bell [Sat, 23 May 2020 17:16:21 +0000 (12:16 -0500)]
redis: Use boxing macros, and add support for 64bit signed types
Arran Cudbard-Bell [Sat, 23 May 2020 17:12:31 +0000 (12:12 -0500)]
ldap: Don't modify boxes directly, use assignment functions
Arran Cudbard-Bell [Sat, 23 May 2020 17:11:57 +0000 (12:11 -0500)]
cache-redis: Use value box assignment functions
Arran Cudbard-Bell [Sat, 23 May 2020 17:11:32 +0000 (12:11 -0500)]
cache: Remove unused type assignment
Arran Cudbard-Bell [Sat, 23 May 2020 17:11:20 +0000 (12:11 -0500)]
rlm_redis_ippool: Don't touch boxes directly, use assignment functions
Arran Cudbard-Bell [Sat, 23 May 2020 17:09:18 +0000 (12:09 -0500)]
rest: Don't touch intermediary boxes or martialed boxes directly, use the assignment functions
Arran Cudbard-Bell [Sat, 23 May 2020 17:04:28 +0000 (12:04 -0500)]
value: Allow bools to be boxed
Arran Cudbard-Bell [Sat, 23 May 2020 17:03:15 +0000 (12:03 -0500)]
json: Use VB boxing macros instead of doing assignment manually
Arran Cudbard-Bell [Sat, 23 May 2020 17:02:38 +0000 (12:02 -0500)]
Fix _CONST macro position in dict.h
Arran Cudbard-Bell [Sat, 23 May 2020 16:59:50 +0000 (11:59 -0500)]
more *cpy to *dup
Arran Cudbard-Bell [Sat, 23 May 2020 16:53:37 +0000 (11:53 -0500)]
global: Correct function names, should be *dup not *cpy as we allocate memory
Arran Cudbard-Bell [Sat, 23 May 2020 16:47:03 +0000 (11:47 -0500)]
pair: Remove more code by using the value box assignment functions instead of re-implementing them
Arran Cudbard-Bell [Sat, 23 May 2020 16:34:37 +0000 (11:34 -0500)]
pair: Make fr_pair_value_snprintf use our interanl fr_vasprintf function via the value box API
Arran Cudbard-Bell [Sat, 23 May 2020 16:33:58 +0000 (11:33 -0500)]
print: Fix the talloc buffer type emittted by fr_vasprintf
Arran Cudbard-Bell [Sat, 23 May 2020 16:07:47 +0000 (11:07 -0500)]
Fix const issues and initialisation issues in pair_legacy.c
Arran Cudbard-Bell [Sat, 23 May 2020 15:49:48 +0000 (10:49 -0500)]
Temporarily revert changes to remove strsteal functions
Alan T. DeKok [Sat, 23 May 2020 14:02:29 +0000 (10:02 -0400)]
remove fr_value_box_bstrsteal() and fr_value_box_bstrnsteal()
they are no longer used, needed, or wanted.
Alan T. DeKok [Sat, 23 May 2020 14:00:21 +0000 (10:00 -0400)]
switch to fr_value_box_bstrassign()
Alan T. DeKok [Sat, 23 May 2020 13:31:57 +0000 (09:31 -0400)]
switch to fr_value_box_bstrassign()
Alan T. DeKok [Sat, 23 May 2020 13:30:54 +0000 (09:30 -0400)]
switch to fr_value_box_bstrassign()
Alan T. DeKok [Sat, 23 May 2020 12:41:49 +0000 (08:41 -0400)]
allow for text immediately after expansion. Fixes #3466
Sometimes less code is better
Alan T. DeKok [Sat, 23 May 2020 12:30:12 +0000 (08:30 -0400)]
use fr_value_box_bstrassign()
which can be done with only minimal code rearrangements