]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
4 years agoPython v4 nesting python-v4-rework
Arran Cudbard-Bell [Thu, 4 Feb 2021 10:57:40 +0000 (10:57 +0000)] 
Python v4 nesting

4 years agoWhitespace
Arran Cudbard-Bell [Thu, 4 Feb 2021 10:50:54 +0000 (10:50 +0000)] 
Whitespace

4 years agoRename fr_dict_attr_enum functions to fr_dict_enum
Arran Cudbard-Bell [Wed, 3 Feb 2021 20:12:36 +0000 (20:12 +0000)] 
Rename fr_dict_attr_enum functions to fr_dict_enum

4 years agoUnused
Arran Cudbard-Bell [Wed, 3 Feb 2021 14:34:47 +0000 (14:34 +0000)] 
Unused

4 years agoCheck if we have a trigger args list
Arran Cudbard-Bell [Tue, 2 Feb 2021 18:50:16 +0000 (18:50 +0000)] 
Check if we have  a trigger args list

4 years agoAdd fr_rb_node_t fields to structures that are inserted into rbtrees
Arran Cudbard-Bell [Tue, 2 Feb 2021 18:49:04 +0000 (18:49 +0000)] 
Add fr_rb_node_t fields to structures that are inserted into rbtrees

This is being done ahead of removing malloc calls in the rbtree.

4 years agoUse names field initialisers
Arran Cudbard-Bell [Tue, 2 Feb 2021 17:32:24 +0000 (17:32 +0000)] 
Use names field initialisers

4 years agoMove shellcheck RC from root to workflow config; disable JSCPD (#3904)
Terry Burton [Tue, 2 Feb 2021 17:13:50 +0000 (17:13 +0000)] 
Move shellcheck RC from root to workflow config; disable JSCPD (#3904)

4 years agoFuzzer artifact fetcher (#3893)
Terry Burton [Tue, 2 Feb 2021 14:57:03 +0000 (14:57 +0000)] 
Fuzzer artifact fetcher (#3893)

* Fuzzer: Make sure that the fuzzer is built before attempting to run it

* Fuzzer: Script to fetch fuzzing artifacts from GH Actions workflows

Requires a Personal Access Token with "repo:public_repo" scope to be set in
GITHUB_TOKEN environment variable to download artifacts.

* Shut up linter

POSIX-compliant methods of getting around this are fugly.

4 years agoRevise dbuff_tests to avoid provoking jscpd (#3902)
James Jones [Tue, 2 Feb 2021 14:56:23 +0000 (08:56 -0600)] 
Revise dbuff_tests to avoid provoking jscpd (#3902)

4 years agoOnly run the free walker if we have a free callback
Arran Cudbard-Bell [Tue, 2 Feb 2021 11:52:17 +0000 (11:52 +0000)] 
Only run the free walker if we have a free callback

The rest of the nodes are parented off the tree

4 years agoMore rbmonkey fixes
Arran Cudbard-Bell [Tue, 2 Feb 2021 11:51:11 +0000 (11:51 +0000)] 
More rbmonkey fixes

4 years agoDelete data as the _last_ step when removing or inserting a node
Arran Cudbard-Bell [Mon, 1 Feb 2021 20:06:46 +0000 (20:06 +0000)] 
Delete data as the _last_ step when removing or inserting a node

4 years agoLLVM snapshot repository is broken; switch to LLVM 10 for now
Terry Burton [Mon, 1 Feb 2021 20:11:08 +0000 (20:11 +0000)] 
LLVM snapshot repository is broken; switch to LLVM 10 for now

4 years agoAdd Arista Captive-Portal and fix WebAuth start/complete values (#3900)
Hua Zhong [Mon, 1 Feb 2021 20:15:54 +0000 (12:15 -0800)] 
Add Arista Captive-Portal and fix WebAuth start/complete values (#3900)

* Fix WebAuth start/complete values

* Add Arista-Captive-Portal

* Remove Arista- prefix

4 years agoTypo
Terry Burton [Sun, 31 Jan 2021 20:28:03 +0000 (20:28 +0000)] 
Typo

4 years agolook at listener only if it exists
Alan T. DeKok [Fri, 29 Jan 2021 19:47:58 +0000 (14:47 -0500)] 
look at listener only if it exists

by pushing checks for size to code where it exists

4 years agoFix condition
Arran Cudbard-Bell [Fri, 29 Jan 2021 19:34:51 +0000 (19:34 +0000)] 
Fix condition

4 years agoDon't crash if env_pairs are NULL
Arran Cudbard-Bell [Fri, 29 Jan 2021 19:24:45 +0000 (19:24 +0000)] 
Don't crash if env_pairs are NULL

4 years agoAdd Hitron dictionary
Arran Cudbard-Bell [Fri, 29 Jan 2021 18:57:26 +0000 (18:57 +0000)] 
Add Hitron dictionary

4 years agosqlcounter: fixed configuration for PostgreSQL #3867
Federico Capoano [Sun, 24 Jan 2021 23:35:04 +0000 (18:35 -0500)] 
sqlcounter: fixed configuration for PostgreSQL #3867

ABSTIME is deprecated since PostgreSQL 7.0 and removed in PostgreSQL 12.
GREATER doesn't seem to be documented, but GREATEST is available
since PostgreSQL 9.

4 years agoAdd inverse type mappings for bool
Arran Cudbard-Bell [Fri, 29 Jan 2021 18:08:59 +0000 (18:08 +0000)] 
Add inverse type mappings for bool

4 years agoMore helpful error messages
Arran Cudbard-Bell [Fri, 29 Jan 2021 17:44:01 +0000 (17:44 +0000)] 
More helpful error messages

4 years agorlm_python: The detach() function in example.py expects parameter
Jorge Pereira [Tue, 12 Jan 2021 14:12:41 +0000 (11:12 -0300)] 
rlm_python: The detach() function in example.py expects parameter

4 years agoAdd extra tests to rlm_attr_filter to exercise the different operators
Nick Porter [Thu, 28 Jan 2021 16:28:27 +0000 (16:28 +0000)] 
Add extra tests to rlm_attr_filter to exercise the different operators

4 years agoradclient: Fix 'invalid attribute' test
Jorge Pereira [Thu, 28 Jan 2021 20:55:19 +0000 (17:55 -0300)] 
radclient: Fix 'invalid attribute' test

It is necessary to match the output files built with/without -NDEBUG

4 years agoChanged prematurely
Arran Cudbard-Bell [Thu, 28 Jan 2021 18:13:47 +0000 (18:13 +0000)] 
Changed prematurely

4 years agothresh should be an fr_rb_test_node_t
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:51:22 +0000 (16:51 +0000)] 
thresh should be an fr_rb_test_node_t

4 years agoGrr stupid generics
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:18:25 +0000 (16:18 +0000)] 
Grr stupid generics

4 years agoAvoid type conflicts in fr_dbuff_advance
Arran Cudbard-Bell [Thu, 28 Jan 2021 16:04:47 +0000 (16:04 +0000)] 
Avoid type conflicts in fr_dbuff_advance

4 years agoradclient: Add tests validating invalid attributes
Jorge Pereira [Tue, 26 Jan 2021 20:34:30 +0000 (17:34 -0300)] 
radclient: Add tests validating invalid attributes

4 years agotest: Add 'IGNORE_ERROR' option for radclient tests
Jorge Pereira [Tue, 26 Jan 2021 21:17:39 +0000 (18:17 -0300)] 
test: Add 'IGNORE_ERROR' option for radclient tests

4 years agoAvoid backing up markers and make naming and usage consistent.
James Jones [Tue, 26 Jan 2021 14:40:53 +0000 (08:40 -0600)] 
Avoid backing up markers and make naming and usage consistent.

4 years agoModernize and clean up dhcpv4 encoding code to make better use of dbuffs and markers
James Jones [Mon, 18 Jan 2021 21:45:45 +0000 (15:45 -0600)] 
Modernize and clean up dhcpv4 encoding code to make better use of dbuffs and markers

4 years agoDon't allow the length argument of fr_dbuff_advance to be a signed integer
Arran Cudbard-Bell [Thu, 28 Jan 2021 15:00:00 +0000 (15:00 +0000)] 
Don't allow the length argument of fr_dbuff_advance to be a signed integer

4 years agoRemove FR_DBUFF_RESERVE*() now that nothing uses it.
James Jones [Tue, 26 Jan 2021 20:52:42 +0000 (14:52 -0600)] 
Remove FR_DBUFF_RESERVE*() now that nothing uses it.

This allows a simpler, more direct expression of FR_DBUFF_MAX*()
(for now, at least; things will get interesting again when we
let FR_DBUFF_MAX*() take advantage of extensibility)

4 years agoFixup rbmonkey so it does not duplicate private structs
Arran Cudbard-Bell [Thu, 28 Jan 2021 13:42:39 +0000 (13:42 +0000)] 
Fixup rbmonkey so it does not duplicate private structs

- Use a test structure with room for an rb node instead of just an integer.
- Minor style corrections.

4 years agoensure that we do adoc -> man conversions, too
Alan T. DeKok [Thu, 28 Jan 2021 13:32:10 +0000 (08:32 -0500)] 
ensure that we do adoc -> man conversions, too

because $(wildcard ...) will only pick up files which exist
in the directory.  the auto-generated "man" files might not,
so we need to add a dependency so that they are created, too

4 years agoCorrect path for man pages made from adoc files
Nick Porter [Thu, 28 Jan 2021 09:03:29 +0000 (09:03 +0000)] 
Correct path for man pages made from adoc files

4 years agoWe should always have list head pointer values now Closes #3889
Arran Cudbard-Bell [Thu, 28 Jan 2021 10:40:00 +0000 (10:40 +0000)] 
We should always have list head pointer values now Closes #3889

4 years agoCan't write to a const
Nick Porter [Thu, 28 Jan 2021 10:08:29 +0000 (10:08 +0000)] 
Can't write to a const

4 years agoCI: Allow one-off fuzzing runtime to be specified in the branch name
Terry Burton [Wed, 27 Jan 2021 22:01:16 +0000 (22:01 +0000)] 
CI: Allow one-off fuzzing runtime to be specified in the branch name

4 years agoCI: Set explicit retention days for uploaded assets; name fixes
Terry Burton [Wed, 27 Jan 2021 15:54:23 +0000 (15:54 +0000)] 
CI: Set explicit retention days for uploaded assets; name fixes

Default retention period is 90 days which is excessive for large
artifacts, especially now that this can be controlled.

Do not retain the packages built for post-install testing. We limit to
the minimum of 1 day. These assets are large and we don't want people to
use them.

4 years agoMake attr_filter test pass
Nick Porter [Wed, 27 Jan 2021 20:38:10 +0000 (20:38 +0000)] 
Make attr_filter test pass

4 years agoRemove pair from temporary list before adding to correct list
Nick Porter [Wed, 27 Jan 2021 20:33:56 +0000 (20:33 +0000)] 
Remove pair from temporary list before adding to correct list

4 years agounify checks for buffer_len==1 and do_not_respond
Alan T. DeKok [Wed, 27 Jan 2021 19:42:58 +0000 (14:42 -0500)] 
unify checks for buffer_len==1 and do_not_respond

4 years agoalways use protocol size, even for do_not_respond
Alan T. DeKok [Wed, 27 Jan 2021 19:34:49 +0000 (14:34 -0500)] 
always use protocol size, even for do_not_respond

we rely on proto_foo encode() to look at request->reply->code,
and then do "the right thing" to signal it's own write() layer
that we're not replying.

4 years agotell the IO handler that we're done
Alan T. DeKok [Wed, 27 Jan 2021 19:28:46 +0000 (14:28 -0500)] 
tell the IO handler that we're done

4 years agoDHCPv4: Still need to copy pairs to a local list so we can search for options
Arran Cudbard-Bell [Wed, 27 Jan 2021 18:56:40 +0000 (18:56 +0000)] 
DHCPv4: Still need to copy pairs to a local list so we can search for options

4 years agoadd flag / assertion for request is finished
Alan T. DeKok [Wed, 27 Jan 2021 15:51:06 +0000 (10:51 -0500)] 
add flag / assertion for request is finished

so that we don't erroneously refuse to clean it up

4 years agoUse a local var for easier debugging
Arran Cudbard-Bell [Wed, 27 Jan 2021 15:43:42 +0000 (15:43 +0000)] 
Use a local var for easier debugging

4 years agotests for the attr_filter module
Alan T. DeKok [Wed, 27 Jan 2021 15:38:52 +0000 (10:38 -0500)] 
tests for the attr_filter module

4 years agoprint out when we're cleaning up the packet
Alan T. DeKok [Wed, 27 Jan 2021 15:30:29 +0000 (10:30 -0500)] 
print out when we're cleaning up the packet

4 years agotypo
Arran Cudbard-Bell [Wed, 27 Jan 2021 15:14:33 +0000 (15:14 +0000)] 
typo

4 years agoman files are built on "make install", not "make"
Alan T. DeKok [Wed, 27 Jan 2021 15:11:26 +0000 (10:11 -0500)] 
man files are built on "make install", not "make"

4 years agoFix issue with TLV presence checks for attribute resolved during pass2
Arran Cudbard-Bell [Wed, 27 Jan 2021 15:11:03 +0000 (15:11 +0000)] 
Fix issue with TLV presence checks for attribute resolved during pass2

4 years agoPrefix rbtree types with fr_
Arran Cudbard-Bell [Wed, 27 Jan 2021 02:12:58 +0000 (02:12 +0000)] 
Prefix rbtree types with fr_

Expose rbnode_t in public headers

4 years agoAvoid zeroing out memory and then filling it with data
Arran Cudbard-Bell [Wed, 27 Jan 2021 02:03:43 +0000 (02:03 +0000)] 
Avoid zeroing out memory and then filling it with data

4 years agoSimplify uses of rbtrees in radclient/packet list tracking code
Arran Cudbard-Bell [Wed, 27 Jan 2021 01:55:10 +0000 (01:55 +0000)] 
Simplify uses of rbtrees in radclient/packet list tracking code

4 years agoDeal with error paths in callers of dict_attr_alloc_null
Arran Cudbard-Bell [Tue, 26 Jan 2021 21:52:32 +0000 (21:52 +0000)] 
Deal with error paths in callers of dict_attr_alloc_null

4 years agoUpdate license
D. Domig [Tue, 26 Jan 2021 16:47:10 +0000 (17:47 +0100)] 
Update license

4 years agoCI: Fix fuzzer asset naming
Terry Burton [Tue, 26 Jan 2021 14:25:55 +0000 (14:25 +0000)] 
CI: Fix fuzzer asset naming

4 years agoScheduled fuzzing improvements
Terry Burton [Tue, 26 Jan 2021 12:23:39 +0000 (12:23 +0000)] 
Scheduled fuzzing improvements

Change scheduled fuzzing to a matrix workflow so that we fuzz protocols in separate
jobs: More CPUs; less context switching.

If HEAD doesn't build then walk up the tree until we find something that does,
then fuzz that.

Set the runtime based on the calculated time remaining in the job since we
don't know ahead of time how much time we will spend walking the tree to find a
working build.

Name assests after "<commit>:<protocol>"

Copy the job output text into the asset that is uploaded when there are fuzzing
failures.

4 years agoRename parameters of fr_dbuff_in_bytes() and FR_DBUFF_IN_BYTES_RETURN()
James Jones [Mon, 25 Jan 2021 19:29:59 +0000 (13:29 -0600)] 
Rename parameters of fr_dbuff_in_bytes() and FR_DBUFF_IN_BYTES_RETURN()

Though they could be either dbufs or markers, the parameter names
suggested that only dbuffs would do. They now follow the convention
of "_dbuff_or_marker" to indicate their possible use. There was
already an fr_dbuff_in() call in dbuff_tests using a marker, but
none for fr_dbuff_in_bytes(), dbuff or marker; the latter is now
present, and both include tests to explicitly test cases in which
fr_dbuff_used(dbuff) and fr_dbuff_used(marker) differ.

4 years agoRename dpair_legacy.c to pair_legacy.c
Nick Porter [Mon, 25 Jan 2021 16:54:10 +0000 (16:54 +0000)] 
Rename dpair_legacy.c to pair_legacy.c

4 years agoRename dpair.c to pair.c
Nick Porter [Mon, 25 Jan 2021 16:52:52 +0000 (16:52 +0000)] 
Rename dpair.c to pair.c

4 years agotry to shut up the linter.
Alan T. DeKok [Tue, 26 Jan 2021 12:23:43 +0000 (07:23 -0500)] 
try to shut up the linter.

4 years agodocs, and provisions for lldb
Alan T. DeKok [Tue, 26 Jan 2021 12:20:58 +0000 (07:20 -0500)] 
docs, and provisions for lldb

4 years agowrapper script so we don't need to remember anything
Alan T. DeKok [Tue, 26 Jan 2021 12:11:44 +0000 (07:11 -0500)] 
wrapper script so we don't need to remember anything

4 years agoclean up tags on fail, too
Alan T. DeKok [Tue, 26 Jan 2021 11:45:27 +0000 (06:45 -0500)] 
clean up tags on fail, too

4 years agoGCC doesn't deal with multiple pragmas in the same line correctly
Arran Cudbard-Bell [Mon, 25 Jan 2021 23:36:15 +0000 (23:36 +0000)] 
GCC doesn't deal with multiple pragmas in the same line correctly

4 years agoMissing inline
Arran Cudbard-Bell [Mon, 25 Jan 2021 22:52:44 +0000 (22:52 +0000)] 
Missing inline

4 years agoFix various build issues
Arran Cudbard-Bell [Mon, 25 Jan 2021 22:47:42 +0000 (22:47 +0000)] 
Fix various build issues

4 years agoCan't warn about unused results when there's no result
Arran Cudbard-Bell [Mon, 25 Jan 2021 22:17:38 +0000 (22:17 +0000)] 
Can't warn about unused results when there's no result

4 years agoFormat build deps correctly
Arran Cudbard-Bell [Mon, 25 Jan 2021 20:51:19 +0000 (20:51 +0000)] 
Format build deps correctly

4 years agoMark up return values of pair allocation functions as needing to be assigned
Arran Cudbard-Bell [Mon, 25 Jan 2021 19:48:15 +0000 (19:48 +0000)] 
Mark up return values of pair allocation functions as needing to be assigned

4 years agoNote used
Arran Cudbard-Bell [Mon, 25 Jan 2021 19:47:42 +0000 (19:47 +0000)] 
Note used

4 years agoRework DIAG_ON and DIAG_OFF macros to behave consistently.
Arran Cudbard-Bell [Mon, 25 Jan 2021 17:16:16 +0000 (17:16 +0000)] 
Rework DIAG_ON and DIAG_OFF macros to behave consistently.

Add DIAG_OFF_OPTIONAL and DIAG_ON_OPTIONAL which ignore unknown pragmas

4 years agoCI: Activate tmate on failure when pushing to the ci-debug branch
Terry Burton [Mon, 25 Jan 2021 01:52:52 +0000 (01:52 +0000)] 
CI: Activate tmate on failure when pushing to the ci-debug branch

4 years agoUse new function for clearing error stack
Arran Cudbard-Bell [Mon, 25 Jan 2021 16:17:30 +0000 (16:17 +0000)] 
Use new function for clearing error stack

4 years agoCI: Rework package installation for on-push CI and scheduled fuzzing
Terry Burton [Sun, 24 Jan 2021 20:56:38 +0000 (20:56 +0000)] 
CI: Rework package installation for on-push CI and scheduled fuzzing

Install packages from debian/control file.

Install extra CI-specific packages from new scripts/ci/extra
packages.control file

Defer fixture package installation until after build.

Disable rebuild of initramfs to optimise runtime.

4 years agoRemove util/pair.c and util/pair_legacy.c
Nick Porter [Mon, 25 Jan 2021 11:46:26 +0000 (11:46 +0000)] 
Remove util/pair.c and util/pair_legacy.c

4 years agoRemove USE_DOUBLE_LIST from build options
Nick Porter [Mon, 25 Jan 2021 11:33:13 +0000 (11:33 +0000)] 
Remove USE_DOUBLE_LIST from build options

4 years agoSet correct function type for eval function in protocol test points.
Nick Porter [Mon, 25 Jan 2021 11:30:10 +0000 (11:30 +0000)] 
Set correct function type for eval function in protocol test points.

4 years agoReplace references to cursor.h with dcursor.h
Nick Porter [Mon, 25 Jan 2021 11:29:07 +0000 (11:29 +0000)] 
Replace references to cursor.h with dcursor.h

and remove un-used references to cursor.h

4 years agoReplace util/pair_legacy.h with util/dpair_legacy.h
Nick Porter [Mon, 25 Jan 2021 10:30:47 +0000 (10:30 +0000)] 
Replace util/pair_legacy.h with util/dpair_legacy.h

4 years agoReplace util/pair.h with util/dpair.h
Nick Porter [Mon, 25 Jan 2021 10:21:50 +0000 (10:21 +0000)] 
Replace util/pair.h with util/dpair.h

4 years agoAdd build dependency for deb packages on Perl
Arran Cudbard-Bell [Mon, 25 Jan 2021 16:11:50 +0000 (16:11 +0000)] 
Add build dependency for deb packages on Perl

4 years agoRun fuzzer.c through the formatter
Arran Cudbard-Bell [Mon, 25 Jan 2021 16:01:51 +0000 (16:01 +0000)] 
Run fuzzer.c through the formatter

4 years agows
Arran Cudbard-Bell [Mon, 25 Jan 2021 15:59:17 +0000 (15:59 +0000)] 
ws

4 years agoAdd function for explicitly clearing outstanding messages
Arran Cudbard-Bell [Mon, 25 Jan 2021 14:33:50 +0000 (14:33 +0000)] 
Add function for explicitly clearing outstanding messages

4 years agotypo
Alan T. DeKok [Sun, 24 Jan 2021 19:09:23 +0000 (14:09 -0500)] 
typo

4 years agowe have one byte of option length, too
Alan T. DeKok [Sun, 24 Jan 2021 13:09:13 +0000 (08:09 -0500)] 
we have one byte of option length, too

4 years agouse p / end, and data / data_len
Alan T. DeKok [Sun, 24 Jan 2021 13:06:51 +0000 (08:06 -0500)] 
use p / end, and data / data_len

mixing and matching is a bad idea

4 years agoensure variables are initialized
Alan T. DeKok [Sun, 24 Jan 2021 12:51:19 +0000 (07:51 -0500)] 
ensure variables are initialized

4 years agoclear errors after every run.
Alan T. DeKok [Sun, 24 Jan 2021 12:45:37 +0000 (07:45 -0500)] 
clear errors after every run.

4 years agoFiz various issues with fuzzer.c
Arran Cudbard-Bell [Sat, 23 Jan 2021 15:36:31 +0000 (15:36 +0000)] 
Fiz various issues with fuzzer.c

- Initialise the atexit handlers
- Initialise error pools before starting to fuzz
- Use fr_perror() so errors get printed correctly
- Use macros when calling failure functions

4 years agoRevert "just call printf, not push"
Arran Cudbard-Bell [Sat, 23 Jan 2021 14:37:51 +0000 (14:37 +0000)] 
Revert "just call printf, not push"

This reverts commit 02209ba71c112c9f72dc0e6b9304dd2bdfb222e9.

4 years agojust call printf, not push
Alan T. DeKok [Sat, 23 Jan 2021 14:26:20 +0000 (09:26 -0500)] 
just call printf, not push

4 years agoinclude stdbool
Arran Cudbard-Bell [Sat, 23 Jan 2021 13:04:51 +0000 (13:04 +0000)] 
include stdbool