]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
James Jones [Fri, 29 Apr 2022 12:33:43 +0000 (07:33 -0500)]
silence coverity complaint about possible overflow (CID #
1469150 ) (#4474)
NotAProfessionalDeveloper [Fri, 29 Apr 2022 12:32:24 +0000 (14:32 +0200)]
Update link to Cisco website (#4473)
James Jones [Fri, 29 Apr 2022 12:32:12 +0000 (07:32 -0500)]
Correction to description of function return values (#4472)
Nick Porter [Fri, 29 Apr 2022 09:39:48 +0000 (10:39 +0100)]
Add ciena dictionary
Alan T. DeKok [Thu, 28 Apr 2022 15:39:22 +0000 (11:39 -0400)]
set head->flags correctly, and other minor cleanups
don't set the flags repeatedly in xlat_tokenize_argv()
merge head->flags into input flags
Alan T. DeKok [Thu, 28 Apr 2022 14:41:31 +0000 (10:41 -0400)]
just call flatten_argv()
and update it's API to re-parent the nodes and free the input
list, so that there's no confusion about who owns what.
Alan T. DeKok [Thu, 28 Apr 2022 14:41:04 +0000 (10:41 -0400)]
parent things properly
Nick Porter [Thu, 28 Apr 2022 08:04:37 +0000 (09:04 +0100)]
Add covaro dictionary
Jorge Pereira [Thu, 28 Apr 2022 00:37:23 +0000 (21:37 -0300)]
Fix potential leak (#4471)
Alan T. DeKok [Wed, 27 Apr 2022 22:37:03 +0000 (18:37 -0400)]
filter out for CFLAGS, too
Alan T. DeKok [Wed, 27 Apr 2022 22:07:37 +0000 (18:07 -0400)]
filter out warnings for local targets, we don't care
Alan T. DeKok [Wed, 27 Apr 2022 21:32:17 +0000 (17:32 -0400)]
use HOST_CC
Alan T. DeKok [Wed, 27 Apr 2022 21:31:08 +0000 (17:31 -0400)]
Revert "Don't try and build the make support libraries if this is a WASM build... we'll figure this out later"
This reverts commit
932bf41d78ab0c463446cdf46a8ac82812f0e2fc .
Alan T. DeKok [Wed, 27 Apr 2022 21:28:39 +0000 (17:28 -0400)]
use HOST_CC for jlibtool
as it's a local binary
Alan T. DeKok [Wed, 27 Apr 2022 17:18:22 +0000 (13:18 -0400)]
move xlat_exp_head_t to it's own data structure
fmt and flags are not yet filled out
Alan T. DeKok [Wed, 27 Apr 2022 15:52:45 +0000 (11:52 -0400)]
node->fmt is already set above. Re-setting it mangles things
Arran Cudbard-Bell [Wed, 27 Apr 2022 20:31:54 +0000 (15:31 -0500)]
Alternative source of sockaddr_ll for emscripten/musl
Arran Cudbard-Bell [Wed, 27 Apr 2022 20:30:43 +0000 (15:30 -0500)]
If we use the cache, then we don't populate CPPFLAGS on the cache run...
Arran Cudbard-Bell [Wed, 27 Apr 2022 19:48:15 +0000 (14:48 -0500)]
Ignore wasm build products
Arran Cudbard-Bell [Wed, 27 Apr 2022 19:48:05 +0000 (14:48 -0500)]
Add support to jlibtool for emscripten, it's basically the same as Linux, right?
Arran Cudbard-Bell [Wed, 27 Apr 2022 19:47:27 +0000 (14:47 -0500)]
Emscripten provides mallopt, but not the same knobs
Arran Cudbard-Bell [Wed, 27 Apr 2022 19:31:01 +0000 (14:31 -0500)]
Don't try and build the make support libraries if this is a WASM build... we'll figure this out later
It involves using two compilers in the build process, and as EMSCRIPTEN mostly uses static linking, using dlopen to figure out symbol presence probably isn't going to work. We'll need some higher level function that execs the wasm linker like configure does.
Arran Cudbard-Bell [Wed, 27 Apr 2022 19:29:20 +0000 (14:29 -0500)]
Minor fixes for emscripten
James Jones [Wed, 27 Apr 2022 19:17:12 +0000 (14:17 -0500)]
Remove needless check for NULL fp (CID #
1503900 ) (#4468)
Nick Porter [Wed, 27 Apr 2022 14:34:07 +0000 (15:34 +0100)]
Remove spurious debugging
Nick Porter [Wed, 27 Apr 2022 11:06:37 +0000 (12:06 +0100)]
Add simultaneous use queries for MS SQL
Nick Porter [Wed, 27 Apr 2022 06:47:41 +0000 (07:47 +0100)]
Fix decoding of single TLV
- use fr_dcursor_next_peek to check for multiple children so that the
cursor doesn't move
- extract the pair from the source list to append to the destination
Arran Cudbard-Bell [Tue, 26 Apr 2022 13:58:31 +0000 (08:58 -0500)]
New config.sub and config.guess
Alan T. DeKok [Tue, 26 Apr 2022 13:00:34 +0000 (09:00 -0400)]
fix locking. Helps with #4465
Alan T. DeKok [Tue, 26 Apr 2022 13:00:07 +0000 (09:00 -0400)]
release mutex before destroying it. Helps with #4465
Arran Cudbard-Bell [Mon, 25 Apr 2022 17:06:04 +0000 (12:06 -0500)]
Fix potential leak on error
James Jones [Mon, 25 Apr 2022 15:23:12 +0000 (10:23 -0500)]
Correct UB_EV_PERSIST check in _unbound_io_service_writable() (CID #
1469157 ) (#4466)
Matthew Newton [Sat, 23 Apr 2022 10:53:27 +0000 (11:53 +0100)]
crossbuild: update image prefix to remove clashes with v3
Matthew Newton [Sat, 23 Apr 2022 10:26:11 +0000 (11:26 +0100)]
docker: tidy unused jenkins dockerfiles
Arran Cudbard-Bell [Sat, 23 Apr 2022 02:25:30 +0000 (21:25 -0500)]
Add args back
Arran Cudbard-Bell [Sat, 23 Apr 2022 01:18:41 +0000 (20:18 -0500)]
Just use fopen...
Arran Cudbard-Bell [Fri, 22 Apr 2022 22:08:21 +0000 (17:08 -0500)]
radmin isn't thread safe
Arran Cudbard-Bell [Fri, 22 Apr 2022 21:38:42 +0000 (16:38 -0500)]
Passing back port via variables is not thread safe, so set a unique variable containing the port for a given test suite
Arran Cudbard-Bell [Fri, 22 Apr 2022 21:06:53 +0000 (16:06 -0500)]
MODULE_TEST_UNLANG is a path
Alan T. DeKok [Fri, 22 Apr 2022 20:53:46 +0000 (16:53 -0400)]
not yet for this
Arran Cudbard-Bell [Fri, 22 Apr 2022 20:49:05 +0000 (15:49 -0500)]
Horrible hacks to get EAPOL tests to run in parallel
Arran Cudbard-Bell [Fri, 22 Apr 2022 17:52:29 +0000 (12:52 -0500)]
Fix radclient tests for parallel execution
Arran Cudbard-Bell [Fri, 22 Apr 2022 17:26:56 +0000 (12:26 -0500)]
Allow the secret and base port to be overridden from the shell
Arran Cudbard-Bell [Fri, 22 Apr 2022 17:21:24 +0000 (12:21 -0500)]
Use the PID file to identify unique instances of FreeRADIUS if it's set
James Jones [Fri, 22 Apr 2022 20:23:51 +0000 (15:23 -0500)]
Get rid of superfluous test in loop in command_encode_dns_label (#4463)
By virtue of CC_HINT(nonnull), in, and hence p, will be non-NULL
the first time through the loop. To take another iteration, next
must be non-NULL, so that p, set to next + 1, will also be non-NULL;
hence the "while (p)" is effectively "while (true)".
Alan T. DeKok [Fri, 22 Apr 2022 20:21:41 +0000 (16:21 -0400)]
typo
Alan T. DeKok [Fri, 22 Apr 2022 19:37:17 +0000 (15:37 -0400)]
use correct data type
Alan T. DeKok [Fri, 22 Apr 2022 19:14:02 +0000 (15:14 -0400)]
move encode_array() to common function
which further shrinks and simplifies the protocol-specific
encoders.
Alan T. DeKok [Fri, 22 Apr 2022 18:58:58 +0000 (14:58 -0400)]
none of this is used, so change it to void*
Alan T. DeKok [Fri, 22 Apr 2022 14:49:21 +0000 (10:49 -0400)]
catch the case of zero returns
it's either allowed, and we do nothing, or it means that we didn't
decode any data, and the input is malformed
Alan T. DeKok [Fri, 22 Apr 2022 14:48:42 +0000 (10:48 -0400)]
options can have zero data
Alan T. DeKok [Thu, 21 Apr 2022 17:43:29 +0000 (13:43 -0400)]
add fake xlat_exp_head_t, which is just xlat_exp_t for now
and update function signatures, etc. to use it. In preparation
for moving to tlists
Alan T. DeKok [Thu, 21 Apr 2022 17:33:01 +0000 (13:33 -0400)]
don't do N^2 checks
we just need to check if it's a value box,
xlat_is_literal() will check all subsequent nodes, and we don't
want that.
Arran Cudbard-Bell [Fri, 22 Apr 2022 14:42:10 +0000 (09:42 -0500)]
Fix parallel tests for sqlite, and enable parallel testing
James Jones [Thu, 21 Apr 2022 19:18:38 +0000 (14:18 -0500)]
Check fr_event_fd_insert() return value. CID #
1469154 (#4461)
Arran Cudbard-Bell [Thu, 21 Apr 2022 16:48:10 +0000 (11:48 -0500)]
Add temporary thread local dbuff buffers too
Alan T. DeKok [Thu, 21 Apr 2022 13:56:28 +0000 (09:56 -0400)]
typo
Alan T. DeKok [Wed, 20 Apr 2022 21:16:13 +0000 (17:16 -0400)]
for length fields, just limit work_dbuff
instead of encoding "too much" and checking for it later
Alan T. DeKok [Wed, 20 Apr 2022 21:05:37 +0000 (17:05 -0400)]
don't need release if we also dump the parent dbuff
Arran Cudbard-Bell [Thu, 21 Apr 2022 13:41:53 +0000 (08:41 -0500)]
These are technically linker flags
Alan T. DeKok [Wed, 20 Apr 2022 20:30:56 +0000 (16:30 -0400)]
use marker instead of entire dbuff
Alan T. DeKok [Wed, 20 Apr 2022 20:22:12 +0000 (16:22 -0400)]
more cleanups to use macros instead of hard-coded fields
Alan T. DeKok [Wed, 20 Apr 2022 19:36:54 +0000 (15:36 -0400)]
move to macros for more things, instead of directly accessing fields
in preparation for moving to tlists.
Alan T. DeKok [Wed, 20 Apr 2022 16:09:57 +0000 (12:09 -0400)]
clean up and rename
Arran Cudbard-Bell [Wed, 20 Apr 2022 17:12:14 +0000 (12:12 -0500)]
Errant \
Arran Cudbard-Bell [Wed, 20 Apr 2022 16:58:10 +0000 (11:58 -0500)]
Always print out the config.log
Alan T. DeKok [Wed, 20 Apr 2022 15:17:51 +0000 (11:17 -0400)]
move function args and groups to their own members
in preparation for moving to tlists
Alan T. DeKok [Wed, 20 Apr 2022 14:47:22 +0000 (10:47 -0400)]
move XLAT_ALTERNATE children to type-specific fields
Alan T. DeKok [Wed, 20 Apr 2022 12:49:21 +0000 (08:49 -0400)]
check lengths, too
Alan T. DeKok [Tue, 19 Apr 2022 21:58:56 +0000 (17:58 -0400)]
add verify_tlvs() function
so we don't go crazy creating structures, only to throw them
away when we discover that something bad is going on
Alan T. DeKok [Tue, 19 Apr 2022 21:33:31 +0000 (17:33 -0400)]
minor cleanups
and create raw attributes, instead of just unknown ones for
things we don't understand
Alan T. DeKok [Tue, 19 Apr 2022 21:32:30 +0000 (17:32 -0400)]
add option to print out VPs it's decoded
Alan T. DeKok [Tue, 19 Apr 2022 18:46:23 +0000 (14:46 -0400)]
minor rearrangements
Alan T. DeKok [Tue, 19 Apr 2022 18:45:49 +0000 (14:45 -0400)]
remove unused assignments
Alan T. DeKok [Tue, 19 Apr 2022 18:38:41 +0000 (14:38 -0400)]
shut up compiler
Alan T. DeKok [Tue, 19 Apr 2022 18:07:59 +0000 (14:07 -0400)]
increase bounds
Alan T. DeKok [Tue, 19 Apr 2022 17:23:04 +0000 (13:23 -0400)]
initialize slen
Alan T. DeKok [Tue, 19 Apr 2022 16:25:35 +0000 (12:25 -0400)]
fix function signature to shut up compiler
Alan T. DeKok [Tue, 19 Apr 2022 15:40:44 +0000 (11:40 -0400)]
decode all extended attributes at the top level
Alan T. DeKok [Tue, 19 Apr 2022 15:31:15 +0000 (11:31 -0400)]
remove "concat" flag from Digest-Attributes
it's not really "concat" in the same way that EAP-Message is,
as we can't split it in the middle of sub TLVs.
Alan T. DeKok [Tue, 19 Apr 2022 15:29:05 +0000 (11:29 -0400)]
start of rewrite to be more like the other protocols
Alan T. DeKok [Tue, 19 Apr 2022 01:09:01 +0000 (21:09 -0400)]
add fr_pair_dns_labels_from_network()
and make various protocols call it.
Alan T. DeKok [Mon, 18 Apr 2022 21:24:25 +0000 (17:24 -0400)]
fix test.
When we encode something, the decoded version should NOT be "raw"
unless something has gone seriously wrong.
Alan T. DeKok [Mon, 18 Apr 2022 15:46:11 +0000 (11:46 -0400)]
move decode_tlvs to common API
with a flag to see if we decode the TLVs as nested (or not)
Alan T. DeKok [Mon, 18 Apr 2022 15:45:53 +0000 (11:45 -0400)]
add notes for DNS validation
Alan T. DeKok [Sun, 17 Apr 2022 23:24:08 +0000 (19:24 -0400)]
move to using fr_pair_raw_from_network()
Insted of multiple local functions
Alan T. DeKok [Sun, 17 Apr 2022 23:16:45 +0000 (19:16 -0400)]
make fr_pair_raw_from_network() closer to other decode functions
Alan T. DeKok [Sun, 17 Apr 2022 19:19:58 +0000 (15:19 -0400)]
move / rename "pair raw from network"
so that it's in a better place, with a better name
Alan T. DeKok [Sun, 17 Apr 2022 19:11:38 +0000 (15:11 -0400)]
break out some more test cases for clarity
Alan T. DeKok [Sun, 17 Apr 2022 18:37:37 +0000 (14:37 -0400)]
move decode_array() to generic fr_pair_array_from_network()
Alan T. DeKok [Sun, 17 Apr 2022 16:39:45 +0000 (12:39 -0400)]
align fr_value_box_network_length() with to/from-network code
Alan T. DeKok [Sun, 17 Apr 2022 16:34:54 +0000 (12:34 -0400)]
align encode_array() with other protocols
and remove yet another protocol-specific "get attr length" function
Alan T. DeKok [Sun, 17 Apr 2022 14:30:47 +0000 (10:30 -0400)]
clarify documention in to/from network functions
Alan T. DeKok [Sun, 17 Apr 2022 14:08:58 +0000 (10:08 -0400)]
remove attr_sizes table and usage
only the type-specific decoders need to care
Alan T. DeKok [Sun, 17 Apr 2022 13:45:12 +0000 (09:45 -0400)]
remove dead code. CID #
1469168
Alan T. DeKok [Sun, 17 Apr 2022 05:59:46 +0000 (01:59 -0400)]
try to shut up coverity
which thinks that fr_token_t can be between 0..63, instead of
0..48?
Alan T. DeKok [Sun, 17 Apr 2022 05:50:50 +0000 (01:50 -0400)]
remove fr_radius_attr_len() and related checks
we can just either (a) rely on the input dbuff to see when the
data is too long to encode, or (b) just check vp->vp_length
Alan T. DeKok [Sun, 17 Apr 2022 05:36:54 +0000 (01:36 -0400)]
just call fr_value_box_to_network()
Alan T. DeKok [Sun, 17 Apr 2022 05:28:54 +0000 (01:28 -0400)]
remove unused code
Alan T. DeKok [Sun, 17 Apr 2022 05:27:36 +0000 (01:27 -0400)]
no longer need these