]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
14 months agoDefine XS_pairs_FETCH
Nick Porter [Thu, 15 May 2025 14:22:25 +0000 (15:22 +0100)] 
Define XS_pairs_FETCH

Perl tied array function for fetching instances of an attribute.

14 months agoDefine C structure to associate with tied Perl hash / array
Nick Porter [Thu, 15 May 2025 14:13:17 +0000 (15:13 +0100)] 
Define C structure to associate with tied Perl hash / array

14 months agoif the cursor is const, don't set insert / remove
Alan T. DeKok [Sun, 18 May 2025 19:12:01 +0000 (15:12 -0400)] 
if the cursor is const, don't set insert / remove

14 months agothe first pair returned from the cursor might be structural
Alan T. DeKok [Sun, 18 May 2025 18:39:07 +0000 (14:39 -0400)] 
the first pair returned from the cursor might be structural

i.e. if the check for "is leaf" is needed for the subsequent
dcursor operations, then it should be needed for the first one, too

14 months agoremove unused functions
Alan T. DeKok [Sun, 18 May 2025 18:31:09 +0000 (14:31 -0400)] 
remove unused functions

14 months agoremove unused functions
Alan T. DeKok [Sun, 18 May 2025 18:30:52 +0000 (14:30 -0400)] 
remove unused functions

14 months agoremove references to function which doesn't exist
Alan T. DeKok [Sun, 18 May 2025 00:20:03 +0000 (20:20 -0400)] 
remove references to function which doesn't exist

14 months agomove to fr_dcursor_iter_init()
Alan T. DeKok [Sun, 18 May 2025 00:18:42 +0000 (20:18 -0400)] 
move to fr_dcursor_iter_init()

14 months agomove cursor callbacks to using fr_dcursor_t*
Alan T. DeKok [Sat, 17 May 2025 19:27:19 +0000 (15:27 -0400)] 
move cursor callbacks to using fr_dcursor_t*

instead of fr_dlist_head_t*.  This lets us change the underlying
cursor implementation.  i.e. to use chains of cursor

14 months agopass the right pointer to the function
Alan T. DeKok [Sat, 17 May 2025 15:59:55 +0000 (11:59 -0400)] 
pass the right pointer to the function

14 months agoadd ctx to tmpl_dcursor_value_box_init()
Alan T. DeKok [Sat, 17 May 2025 14:39:09 +0000 (10:39 -0400)] 
add ctx to tmpl_dcursor_value_box_init()

in preparation for adding FR_TYPE_PAIR_CURSOR to fr_pair_t

14 months agodocument common v3 pattern of ":=" followed by "+="
Alan T. DeKok [Sat, 17 May 2025 12:16:05 +0000 (08:16 -0400)] 
document common v3 pattern of ":=" followed by "+="

14 months agoTLS 1.3 support for LDAP module #5583
Alan T. DeKok [Sat, 17 May 2025 12:08:00 +0000 (08:08 -0400)] 
TLS 1.3 support for LDAP module #5583

14 months agono need to call a function for ptr comparison
Alan T. DeKok [Sat, 17 May 2025 12:07:44 +0000 (08:07 -0400)] 
no need to call a function for ptr comparison

14 months agoadd assertions
Alan T. DeKok [Sat, 17 May 2025 01:02:44 +0000 (21:02 -0400)] 
add assertions

in preparation for nested dcursors

14 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar
github-actions[bot] [Sat, 17 May 2025 04:27:04 +0000 (04:27 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/cbor.tar

14 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar
github-actions[bot] [Sat, 17 May 2025 04:26:01 +0000 (04:26 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/der.tar

14 months agoThese are being added to the reply
Nick Porter [Fri, 16 May 2025 15:56:38 +0000 (16:56 +0100)] 
These are being added to the reply

14 months agoallow list assignment to leaf attributes in nested sections
Alan T. DeKok [Fri, 16 May 2025 11:37:59 +0000 (07:37 -0400)] 
allow list assignment to leaf attributes in nested sections

14 months agoquiet coverity. CID #1409865
Alan T. DeKok [Thu, 15 May 2025 20:43:46 +0000 (16:43 -0400)] 
quiet coverity.  CID #1409865

14 months agouse int for memcmp results. CID #1646825
Alan T. DeKok [Thu, 15 May 2025 20:37:56 +0000 (16:37 -0400)] 
use int for memcmp results.  CID #1646825

14 months agoadd test which currently returns an error
Alan T. DeKok [Thu, 15 May 2025 19:38:21 +0000 (15:38 -0400)] 
add test which currently returns an error

so we have some notes for conditions in tmpl_dcursors

14 months agoAlign test with revised enum name
Nick Porter [Fri, 16 May 2025 08:21:34 +0000 (09:21 +0100)] 
Align test with revised enum name

14 months agoRename ARP packet types to avoid confict
Nick Porter [Fri, 16 May 2025 08:05:01 +0000 (09:05 +0100)] 
Rename ARP packet types to avoid confict

We need to be able to use ARP from DHCPv4, and with both protocols
having a packet type of "Request", both got an auto-generated `#define
FR_PACKET_TYPE_VALUE_REQUEST` but with different values.

14 months agoRemove stray policy
Nick Porter [Fri, 16 May 2025 07:20:43 +0000 (08:20 +0100)] 
Remove stray policy

14 months agoAdd header to give access to `fr_arp_entry_add`
Nick Porter [Thu, 15 May 2025 19:03:05 +0000 (20:03 +0100)] 
Add header to give access to `fr_arp_entry_add`

So that broadcast requests without the broadcast flag set can be
responded to correctly.

14 months agoToo many dots
Nick Porter [Thu, 15 May 2025 17:03:22 +0000 (18:03 +0100)] 
Too many dots

14 months agoanother step to allowing conditions in array refs
Alan T. DeKok [Thu, 15 May 2025 16:22:02 +0000 (12:22 -0400)] 
another step to allowing conditions in array refs

we don't yet have a syntax for "the current cursor position",
but the basics seems to be OK

14 months agoclean up error message
Alan T. DeKok [Thu, 15 May 2025 15:43:27 +0000 (11:43 -0400)] 
clean up error message

14 months agomove fr_skip* to their own C file and header
Alan T. DeKok [Thu, 15 May 2025 13:42:45 +0000 (09:42 -0400)] 
move fr_skip* to their own C file and header

as they are (and will be) used in many places

14 months agoquiet static analyzer
Alan T. DeKok [Thu, 15 May 2025 14:45:23 +0000 (10:45 -0400)] 
quiet static analyzer

14 months agoparse array things only when the quote is array
Alan T. DeKok [Thu, 15 May 2025 12:24:31 +0000 (08:24 -0400)] 
parse array things only when the quote is array

14 months agothe ar is already freed on error
Alan T. DeKok [Thu, 15 May 2025 12:24:03 +0000 (08:24 -0400)] 
the ar is already freed on error

14 months agoupdate notes now that we have FR_TYPE_PAIR_CURSOR
Alan T. DeKok [Thu, 15 May 2025 11:01:46 +0000 (07:01 -0400)] 
update notes now that we have FR_TYPE_PAIR_CURSOR

14 months agomight as well list dictionary things here, too
Alan T. DeKok [Thu, 15 May 2025 10:20:33 +0000 (06:20 -0400)] 
might as well list dictionary things here, too

14 months agomove pairs to its own directory
Alan T. DeKok [Thu, 15 May 2025 10:15:46 +0000 (06:15 -0400)] 
move pairs to its own directory

14 months agoupdates, corrections, and clarifications
Alan T. DeKok [Thu, 15 May 2025 09:59:33 +0000 (05:59 -0400)] 
updates, corrections, and clarifications

14 months agotweaks for v4
Alan T. DeKok [Thu, 15 May 2025 09:31:20 +0000 (05:31 -0400)] 
tweaks for v4

14 months agouse more of v4 syntax
Alan T. DeKok [Thu, 15 May 2025 09:23:45 +0000 (05:23 -0400)] 
use more of v4 syntax

14 months agomove functions to using a cursor argument
Alan T. DeKok [Wed, 14 May 2025 14:23:08 +0000 (10:23 -0400)] 
move functions to using a cursor argument

14 months agodon't print "WARN WARN"
Alan T. DeKok [Wed, 14 May 2025 19:10:27 +0000 (15:10 -0400)] 
don't print "WARN WARN"

14 months agocorrect check for tmpl_dcursor_value_box_init()
Alan T. DeKok [Wed, 14 May 2025 19:18:38 +0000 (15:18 -0400)] 
correct check for tmpl_dcursor_value_box_init()

-1 is "no cursor", too

14 months agoCorrect adding 2 DNS servers to DHCP reply
Nick Porter [Wed, 14 May 2025 18:08:59 +0000 (19:08 +0100)] 
Correct adding 2 DNS servers to DHCP reply

14 months agoUpdate DHCP docs for v4
Nick Porter [Wed, 14 May 2025 18:08:27 +0000 (19:08 +0100)] 
Update DHCP docs for v4

A quick pass updating
 - option names don't have `DHCP-` prefix
 - remove `update` sections
 - xlat syntax fixes

14 months agoUpdate rlm_sqlippool_tool for v4 fr_ippool schema
Nick Porter [Wed, 14 May 2025 16:25:29 +0000 (17:25 +0100)] 
Update rlm_sqlippool_tool for v4 fr_ippool schema

14 months agoadd notes on future functionality
Alan T. DeKok [Wed, 14 May 2025 11:15:14 +0000 (07:15 -0400)] 
add notes on future functionality

14 months agoadd test where LHS fails expansion, but the RHS exists
Alan T. DeKok [Wed, 14 May 2025 11:14:59 +0000 (07:14 -0400)] 
add test where LHS fails expansion, but the RHS exists

14 months agoCheck for policy foo.baa when foo.baa is called
Nick Porter [Wed, 14 May 2025 07:45:14 +0000 (08:45 +0100)] 
Check for policy foo.baa when foo.baa is called

14 months agoUse section name1/name2 when looking for override policies
Nick Porter [Wed, 14 May 2025 07:16:52 +0000 (08:16 +0100)] 
Use section name1/name2 when looking for override policies

First checking for `foo.name1.name2`, then `foo.name1` and finally just
`foo`

14 months agoallow attribute references as cursors for function arguments
Alan T. DeKok [Tue, 13 May 2025 18:26:53 +0000 (14:26 -0400)] 
allow attribute references as cursors for function arguments

via the somewhat bad hack of adding a flag to xlat_exp_head_t,
because it's too hard to pass in the xlat_arg_parser_t to the
xlat evaluation function

14 months agomove init FR_TYPE_PAIR_CURSOR dcursor into tmpl_dcursor.c
Alan T. DeKok [Tue, 13 May 2025 17:54:47 +0000 (13:54 -0400)] 
move init FR_TYPE_PAIR_CURSOR dcursor into tmpl_dcursor.c

14 months agoclear cursor values, too
Alan T. DeKok [Tue, 13 May 2025 17:54:18 +0000 (13:54 -0400)] 
clear cursor values, too

14 months agomove to use FR_TYPE_PAIR_CURSOR in xlat, and away from FR_TYPE_VOID
Alan T. DeKok [Tue, 13 May 2025 16:01:01 +0000 (12:01 -0400)] 
move to use FR_TYPE_PAIR_CURSOR in xlat, and away from FR_TYPE_VOID

and remove now redundant destructor for tmpl_dcursor_ctx_t

14 months agoproxy_request and proxy_reply no longer exist
Nick Porter [Tue, 13 May 2025 15:23:41 +0000 (16:23 +0100)] 
proxy_request and proxy_reply no longer exist

14 months agoWindows 7 is very EoL
Nick Porter [Tue, 13 May 2025 14:21:25 +0000 (15:21 +0100)] 
Windows 7 is very EoL

14 months agoAdd enum prefix for DHCP Message-Type values
Nick Porter [Tue, 13 May 2025 14:19:51 +0000 (15:19 +0100)] 
Add enum prefix for DHCP Message-Type values

14 months agoUpdate sample mruby script with correct log function call
Nick Porter [Tue, 13 May 2025 14:10:12 +0000 (15:10 +0100)] 
Update sample mruby script with correct log function call

14 months agoCheck that mruby functions exist
Nick Porter [Tue, 13 May 2025 13:43:40 +0000 (14:43 +0100)] 
Check that mruby functions exist

14 months agodefine and use new FR_TYPE_PAIR_CURSOR
Alan T. DeKok [Mon, 12 May 2025 19:30:49 +0000 (15:30 -0400)] 
define and use new FR_TYPE_PAIR_CURSOR

14 months agoadd FR_TYPE_INTERNAL
Alan T. DeKok [Mon, 12 May 2025 18:31:45 +0000 (14:31 -0400)] 
add FR_TYPE_INTERNAL

to hold multiple types which aren't leaf types, and which aren't
structural types.  But which are internal types that nothing
else should use

14 months agoif it's not a leaf type, ensure it's a structural one
Alan T. DeKok [Mon, 12 May 2025 16:33:40 +0000 (12:33 -0400)] 
if it's not a leaf type, ensure it's a structural one

so that the code behaves sanely or at least asserts, if passed
another type

14 months agoremove debugging information
Alan T. DeKok [Mon, 12 May 2025 12:53:02 +0000 (08:53 -0400)] 
remove debugging information

14 months agodefine macro for dcursor arguments
Alan T. DeKok [Mon, 12 May 2025 12:50:43 +0000 (08:50 -0400)] 
define macro for dcursor arguments

14 months agoallow tmpl_dcursor as function arguments
Alan T. DeKok [Sun, 11 May 2025 23:27:35 +0000 (19:27 -0400)] 
allow tmpl_dcursor as function arguments

with some limitations - only strings are allowed for now :(

14 months agoonly set safe_for if the data was escaped
Alan T. DeKok [Sun, 11 May 2025 22:07:32 +0000 (18:07 -0400)] 
only set safe_for if the data was escaped

this shouldn't have any practical difference, as the argument
parser sets t_rules->literals_safe_for = arg->safe_for.  So literals
are already marked up as safe.

Arguably that function shouldn't do that, either.

14 months agofunctions to get / set typed data into FR_TYPE_VOID
Alan T. DeKok [Sun, 11 May 2025 22:02:41 +0000 (18:02 -0400)] 
functions to get / set typed data into FR_TYPE_VOID

14 months agoadd destructor wrapper for freeing tmpl_dcursor_t
Alan T. DeKok [Sun, 11 May 2025 22:01:55 +0000 (18:01 -0400)] 
add destructor wrapper for freeing tmpl_dcursor_t

14 months agomove bools to 1-bit fields
Alan T. DeKok [Sun, 11 May 2025 13:29:07 +0000 (09:29 -0400)] 
move bools to 1-bit fields

14 months agothe protocol encode xlat can't actually take a quoted string
Alan T. DeKok [Sun, 11 May 2025 13:22:37 +0000 (09:22 -0400)] 
the protocol encode xlat can't actually take a quoted string

it has to take an attribute reference, because it manually parses
the input as a tmpl_attr.

We arguably need to update the xlat function arguments to indicate
whether or not the argument expects to see a cursor.  And if so,
perhaps put a pointer to the cursor into a box of FR_TYPE_VOID.

which then lets functions like this either take a cursor of things
to encode, OR a string which is then parsed into a list of things
to encode.

14 months agoadd original xlat to function call
Alan T. DeKok [Sun, 11 May 2025 13:21:18 +0000 (09:21 -0400)] 
add original xlat to function call

so we can see not just what the function is, but also what the
arguments are.  This change helps the called function know whether
or not the string it received was originally a bare word, or else
if it was quoted.

14 months agomove hmac to its own file
Alan T. DeKok [Sun, 11 May 2025 13:03:54 +0000 (09:03 -0400)] 
move hmac to its own file

14 months agosplit time functions into separate files
Alan T. DeKok [Sun, 11 May 2025 12:52:48 +0000 (08:52 -0400)] 
split time functions into separate files

14 months agoUpdate debug message to give correct context
Gerald Vogt [Fri, 9 May 2025 05:52:26 +0000 (07:52 +0200)] 
Update debug message to give correct context

14 months agofix xrefs
Alan T. DeKok [Fri, 9 May 2025 19:51:12 +0000 (15:51 -0400)] 
fix xrefs

14 months agodocs: added xlat summary file
nolade [Fri, 9 May 2025 18:16:43 +0000 (14:16 -0400)] 
docs: added  xlat summary file

14 months agodocs: updated miscelleneous functions
Alan T. DeKok [Fri, 9 May 2025 19:40:58 +0000 (15:40 -0400)] 
docs: updated miscelleneous functions

14 months agodocs: updated miscelleneous functions
nolade [Fri, 9 May 2025 18:06:38 +0000 (14:06 -0400)] 
docs: updated miscelleneous functions

14 months agodocs: xlat string functions reorganized into sub-dir `str`. Updated nav file links...
nolade [Fri, 9 May 2025 17:05:32 +0000 (13:05 -0400)] 
docs: xlat string functions reorganized into sub-dir `str`. Updated nav file links and added ./string/index.adoc file and relevant links to sub-sections.

14 months agothis test depends on rlm_radius, too
Alan T. DeKok [Fri, 9 May 2025 19:11:10 +0000 (15:11 -0400)] 
this test depends on rlm_radius, too

14 months agodocs: xlat file handling functions reorganized into sub-dir `file`. Updated nav file...
nolade [Thu, 8 May 2025 20:25:05 +0000 (16:25 -0400)] 
docs: xlat file handling functions reorganized into sub-dir `file`. Updated nav file link and added ./file/index.adoc file and relevant links to sub-sections.

14 months agoalways do packet verification via the memory BIO
Alan T. DeKok [Fri, 9 May 2025 18:30:59 +0000 (14:30 -0400)] 
always do packet verification via the memory BIO

enforces checks which were changed in c60f89b45

14 months agoallow memory bios to have no read buffer
Alan T. DeKok [Fri, 9 May 2025 18:29:36 +0000 (14:29 -0400)] 
allow memory bios to have no read buffer

in which case they are verification-only BIOs.

and do other associated cleanups, to catch corner cases, comments,
and error messages.

14 months agowe need separate discard functions for UDP and TCP
Alan T. DeKok [Fri, 9 May 2025 17:33:45 +0000 (13:33 -0400)] 
we need separate discard functions for UDP and TCP

read of 0 is OK for UDP, and is EOF for TCP

14 months agoAdd query_number_attribute to SQL tests
Nick Porter [Fri, 9 May 2025 13:13:22 +0000 (14:13 +0100)] 
Add query_number_attribute to SQL tests

14 months agoSQL tests are independent
Nick Porter [Fri, 9 May 2025 13:14:14 +0000 (14:14 +0100)] 
SQL tests are independent

So the PRE entry won't actually insert the record which we want to
update.

14 months agoAdd query_number_attribute option to rlm_sql
Nick Porter [Fri, 9 May 2025 12:39:33 +0000 (13:39 +0100)] 
Add query_number_attribute option to rlm_sql

An optional attribute which can be used to record which out of a series
of queries updated records.

14 months agoa virtual server needs at least one processing section
Alan T. DeKok [Fri, 9 May 2025 13:16:35 +0000 (09:16 -0400)] 
a virtual server needs at least one processing section

or else we fail with a descriptive error.  This won't catch all
cases where people butcher the configuration, but it will catch
most of them.

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Fri, 9 May 2025 04:26:55 +0000 (04:26 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 9 May 2025 04:26:19 +0000 (04:26 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar
github-actions[bot] [Fri, 9 May 2025 04:26:10 +0000 (04:26 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/bfd.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Fri, 9 May 2025 04:24:56 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Fri, 9 May 2025 04:24:49 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Fri, 9 May 2025 04:24:46 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Fri, 9 May 2025 04:24:28 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Fri, 9 May 2025 04:24:25 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar

15 months agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Fri, 9 May 2025 04:24:19 +0000 (04:24 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

15 months agoFix comment
Arran Cudbard-Bell [Fri, 9 May 2025 03:36:44 +0000 (21:36 -0600)] 
Fix comment

15 months agoAdd tests for cancelling subrequests and parallels that timeout in a middle request
Arran Cudbard-Bell [Fri, 9 May 2025 02:37:57 +0000 (20:37 -0600)] 
Add tests for cancelling subrequests and parallels that timeout in a middle request

15 months agoFix weirdly common typo
Arran Cudbard-Bell [Fri, 9 May 2025 01:38:17 +0000 (19:38 -0600)] 
Fix weirdly common typo

15 months ago...and more
Arran Cudbard-Bell [Fri, 9 May 2025 01:36:12 +0000 (19:36 -0600)] 
...and more