]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 years agoCall tmpl_dcursor_build_init with correct args
Nick Porter [Mon, 22 Aug 2022 14:24:29 +0000 (15:24 +0100)] 
Call tmpl_dcursor_build_init with correct args

3 years agoMake the tmpl_dcursor_tests macros slightly less obscure...
Arran Cudbard-Bell [Mon, 22 Aug 2022 14:00:55 +0000 (09:00 -0500)] 
Make the tmpl_dcursor_tests macros slightly less obscure...

3 years agoAdd TEST_CHECK_PAIR_NEQ
Arran Cudbard-Bell [Mon, 22 Aug 2022 12:54:38 +0000 (07:54 -0500)] 
Add TEST_CHECK_PAIR_NEQ

3 years agotemporarily use the old condition code
Alan T. DeKok [Sun, 21 Aug 2022 15:39:48 +0000 (11:39 -0400)] 
temporarily use the old condition code

because the new one (as yet) does not purify complex conditions.

We could call xlat_purify() from compile.c, or just manually
check the || and && when parsing in xlat_expr.c

3 years agoif we set use_new_conditions, don't even parse the old ones
Alan T. DeKok [Sun, 21 Aug 2022 14:23:51 +0000 (10:23 -0400)] 
if we set use_new_conditions, don't even parse the old ones

and remove the one test which no longer fails at load time.
The old code would check if the condition could at all be done,
such as assigning a value which is too large.

The old code would see that one side had a fixed data type, and
try to cast the other side to that data type.  The new code does not
(as yet) do this

3 years agocheck run-time variables for new conditions
Alan T. DeKok [Sun, 21 Aug 2022 13:46:31 +0000 (09:46 -0400)] 
check run-time variables for new conditions

and update the unit tests to use the new conditions, except for
a few cases which haven't yet been migrated.

3 years agoallow setting of options via the command line for migration
Alan T. DeKok [Sun, 21 Aug 2022 13:45:27 +0000 (09:45 -0400)] 
allow setting of options via the command line for migration

We need to have the variables set before parsing the configuration
files, so their configuration can't go into the files.

3 years agowe will need this after some cleanups
Alan T. DeKok [Sat, 20 Aug 2022 13:58:17 +0000 (09:58 -0400)] 
we will need this after some cleanups

3 years agotemporary migration tools
Alan T. DeKok [Sat, 20 Aug 2022 13:06:33 +0000 (09:06 -0400)] 
temporary migration tools

where we can enable / disable flatten / nested pairs at run time.

3 years agotests for flat / nested VSAs
Alan T. DeKok [Sat, 20 Aug 2022 13:02:42 +0000 (09:02 -0400)] 
tests for flat / nested VSAs

3 years agoadd fr_pair_dcursor_nested_init()
Alan T. DeKok [Wed, 17 Aug 2022 18:19:11 +0000 (14:19 -0400)] 
add fr_pair_dcursor_nested_init()

which takes a pair dcursor as input uctx, and iterates over that
to produce value-pairs.

This is needed by the xlat / edit code

3 years agoadd fr_pair_dcursor_value_init()
Alan T. DeKok [Wed, 17 Aug 2022 18:01:15 +0000 (14:01 -0400)] 
add fr_pair_dcursor_value_init()

which takes a pair_list_t, and then returns the relevant value-boxes

This is so that we can return the value-boxes to functions which
take a dcursor, and expect to see value-boxes out of it

3 years agoUse TEST_CHECK_PAIR to improve test output
Nick Porter [Fri, 19 Aug 2022 08:25:43 +0000 (09:25 +0100)] 
Use TEST_CHECK_PAIR to improve test output

3 years agoAdd tests for fr_pair_append_by_da_parent()
Nick Porter [Wed, 17 Aug 2022 18:10:38 +0000 (19:10 +0100)] 
Add tests for fr_pair_append_by_da_parent()

3 years agoDefine fr_pair_append_by_parent_da() for automatic creation of nested pairs
Nick Porter [Thu, 4 Aug 2022 10:42:26 +0000 (11:42 +0100)] 
Define fr_pair_append_by_parent_da() for automatic creation of nested pairs

plus macros for appending and populating pairs

3 years agoCast return value
Nick Porter [Thu, 18 Aug 2022 12:06:31 +0000 (13:06 +0100)] 
Cast return value

3 years agoPrint out more about what we expected in the test
Arran Cudbard-Bell [Thu, 18 Aug 2022 10:36:11 +0000 (17:36 +0700)] 
Print out more about what we expected in the test

3 years agoAdd inverse of fr_pair_list_to_dlist
Arran Cudbard-Bell [Thu, 18 Aug 2022 06:30:19 +0000 (13:30 +0700)] 
Add inverse of fr_pair_list_to_dlist

3 years agoAnnotate ifs that placate gcc but rile coverity (CID #1504005) (#4681)
James Jones [Wed, 17 Aug 2022 18:00:14 +0000 (13:00 -0500)] 
Annotate ifs that placate gcc but rile coverity (CID #1504005) (#4681)

unlang_function_clear() has the warn_unused_result attribute,
hence the seemingly pointless if statements about which
coverity complains. Annotation should silence coverity.

3 years agoallow for and test &Foo := &bar[*]
Alan T. DeKok [Wed, 17 Aug 2022 15:59:08 +0000 (11:59 -0400)] 
allow for and test &Foo := &bar[*]

3 years agoSet path to use homebrew clang rather than Apple's version
Nick Porter [Wed, 17 Aug 2022 14:04:08 +0000 (15:04 +0100)] 
Set path to use homebrew clang rather than Apple's version

3 years agoremove nested unions
Alan T. DeKok [Wed, 17 Aug 2022 12:41:55 +0000 (08:41 -0400)] 
remove nested unions

compilers are too dumb to notice that flexible array members
are fine when there is no field which follows them.

3 years agoNo need to output receipt files when debugging module tests
Nick Porter [Wed, 17 Aug 2022 09:35:43 +0000 (10:35 +0100)] 
No need to output receipt files when debugging module tests

3 years agoAdd fr_internal_decode_list_dbuff() to decode an entire list of attributes
Nick Porter [Thu, 4 Aug 2022 10:24:06 +0000 (11:24 +0100)] 
Add fr_internal_decode_list_dbuff() to decode an entire list of attributes

3 years agoInternal decoder should always build nested attribute structure for TLVs
Nick Porter [Thu, 4 Aug 2022 10:06:53 +0000 (11:06 +0100)] 
Internal decoder should always build nested attribute structure for TLVs

3 years agoAdd use of Protocol-Encapsulation attribute to internal encoder
Nick Porter [Thu, 4 Aug 2022 10:16:47 +0000 (11:16 +0100)] 
Add use of Protocol-Encapsulation attribute to internal encoder

3 years agoDefine fr_internal_encode_list() to internally encode a fr_pair_list_t
Nick Porter [Thu, 5 May 2022 10:46:04 +0000 (11:46 +0100)] 
Define fr_internal_encode_list() to internally encode a fr_pair_list_t

3 years agoTypos
Nick Porter [Wed, 17 Aug 2022 07:18:26 +0000 (08:18 +0100)] 
Typos

3 years agoRevert "we don't need to mash everything to strings."
Alan T. DeKok [Wed, 17 Aug 2022 01:11:52 +0000 (21:11 -0400)] 
Revert "we don't need to mash everything to strings."

This reverts commit 5d227175ad3cf99db16180abf6e93db48220c591.

until we get time to do a few more tests

3 years agoupdate after encoder change
Alan T. DeKok [Tue, 16 Aug 2022 23:59:42 +0000 (19:59 -0400)] 
update after encoder change

3 years agouse utility functions instead of memcpy()
Alan T. DeKok [Tue, 16 Aug 2022 22:19:05 +0000 (18:19 -0400)] 
use utility functions instead of memcpy()

3 years agomore documentation updates
Alan T. DeKok [Tue, 16 Aug 2022 21:55:03 +0000 (17:55 -0400)] 
more documentation updates

3 years agorename the alias files to something which isn't stupid
Alan T. DeKok [Tue, 16 Aug 2022 21:44:33 +0000 (17:44 -0400)] 
rename the alias files to something which isn't stupid

3 years agowe don't need to mash everything to strings.
Alan T. DeKok [Tue, 16 Aug 2022 21:31:00 +0000 (17:31 -0400)] 
we don't need to mash everything to strings.

v4 supports bare

%{foo...}

which is better than

"%{foo...}"

3 years agoMore "update {....}" to edit against raddb/mods-*
Jorge Pereira [Tue, 16 Aug 2022 00:55:17 +0000 (21:55 -0300)] 
More "update {....}" to edit against raddb/mods-*

3 years agoMore "update {....}" to edit against policy.d/*
Jorge Pereira [Tue, 16 Aug 2022 01:27:10 +0000 (22:27 -0300)] 
More "update {....}" to edit against policy.d/*

3 years agojust use a different method of initialization. Helps with #4674
Alan T. DeKok [Tue, 16 Aug 2022 20:41:02 +0000 (16:41 -0400)] 
just use a different method of initialization.  Helps with #4674

In all honesty, if there's no /dev/random on the system, we should
probably just call _exit(1).

3 years agofix use of arg_cnt vs arg_len
Alan T. DeKok [Tue, 16 Aug 2022 19:21:44 +0000 (15:21 -0400)] 
fix use of arg_cnt vs arg_len

3 years agoCatch NULL return from fr_value_box_alloc() (CID #1507889) (#4672)
James Jones [Tue, 16 Aug 2022 20:16:32 +0000 (15:16 -0500)] 
Catch NULL return from fr_value_box_alloc() (CID #1507889) (#4672)

3 years agoAnnotate false positive tainted_data on get_chunk() result (CIDs below) (#4671)
James Jones [Tue, 16 Aug 2022 20:10:59 +0000 (15:10 -0500)] 
Annotate false positive tainted_data on get_chunk() result (CIDs below) (#4671)

coverity doesn't realize the relation between node->bits and the
allocated space for node->trie.

CIDs: #1503960, #1503982, #1504064

3 years agoAnnotate false positive on NUL termination (CID #1504058) (#4669)
James Jones [Tue, 16 Aug 2022 20:10:39 +0000 (15:10 -0500)] 
Annotate false positive on NUL termination (CID #1504058) (#4669)

Coverity is faked out by check_library_exists(), which either
returns NULL (which the caller checks for) or returns a pointer
to a NUL-terminated string.

3 years agoAdd "flat list" nested attributes to tests of fr_pair_find_by_da_nested()
Nick Porter [Tue, 16 Aug 2022 14:33:18 +0000 (15:33 +0100)] 
Add "flat list" nested attributes to tests of fr_pair_find_by_da_nested()

3 years agoAdd basic tests for fr_pair_find_by_da_nested()
Nick Porter [Tue, 16 Aug 2022 10:46:32 +0000 (11:46 +0100)] 
Add basic tests for fr_pair_find_by_da_nested()

3 years agoAdd fr_pair_find_by_da_nested() to find pairs by their da structure
Nick Porter [Thu, 11 Aug 2022 11:11:15 +0000 (12:11 +0100)] 
Add fr_pair_find_by_da_nested() to find pairs by their da structure

3 years agoTypo
Nick Porter [Tue, 16 Aug 2022 15:56:00 +0000 (16:56 +0100)] 
Typo

3 years agodisallow !* and *= for new edit sections
Alan T. DeKok [Tue, 16 Aug 2022 15:34:19 +0000 (11:34 -0400)] 
disallow !* and *= for new edit sections

3 years agoAdd pair_inline.c
Arran Cudbard-Bell [Tue, 16 Aug 2022 13:22:20 +0000 (21:22 +0800)] 
Add pair_inline.c

3 years agoadd API to get parent VP from list.
Alan T. DeKok [Tue, 16 Aug 2022 13:12:36 +0000 (09:12 -0400)] 
add API to get parent VP from list.

3 years agoRemove horrible macro hacks in pair.c and replace them with a different set of horrib...
Arran Cudbard-Bell [Tue, 16 Aug 2022 09:14:18 +0000 (17:14 +0800)] 
Remove horrible macro hacks in pair.c and replace them with a different set of horrible hacks

3 years agonum always >= 1
Nick Porter [Tue, 16 Aug 2022 07:32:57 +0000 (08:32 +0100)] 
num always >= 1

3 years agoslen always < 0
Nick Porter [Tue, 16 Aug 2022 07:21:59 +0000 (08:21 +0100)] 
slen always < 0

3 years agoRemove UNUSED
Nick Porter [Tue, 16 Aug 2022 07:17:33 +0000 (08:17 +0100)] 
Remove UNUSED

3 years agoDon't link a shared library without a -rpath option
Tony Finch [Wed, 10 Aug 2022 12:16:24 +0000 (13:16 +0100)] 
Don't link a shared library without a -rpath option

A few of the BIND9 programs have common code that is statically
linked. For example `dighost.c` is used by both `dig` and `host`.
`libdighost.la` is specified to automake in noinst_LTLIBRARIES, which
eventually becomes a libtool --mode=link invocation without a -rpath
argument.

GNU libtool interprets a link invocation without -rpath this as an
instruction to make a static library only, which agrees with the
comment in `link_fixup()` in jlibtool. But when cmd->output ==
OUT_LIB, jlibtool still tries to build a dynamic library. This fails
on my Mac; if I remove ERROR("Installation mode requires -rpath")
it links dynamically and fails at runtime.

I am not sure if jlibtool should have worked out the correct
cmd->output mode earlier, but if so the comment would be in the wrong
place.

3 years agoDon't add an empty path to the command line
Tony Finch [Tue, 9 Aug 2022 19:26:12 +0000 (20:26 +0100)] 
Don't add an empty path to the command line

This change is a small cleanup to prepapare for the next commit.
No functional change except to add some debug logging.

3 years agoMore flexible library version number format
Tony Finch [Tue, 9 Aug 2022 19:18:56 +0000 (20:18 +0100)] 
More flexible library version number format

The BIND9 build system passes its complete version number to libtool
(e.g. 9.19.5-dev) which is not the format expected by jlibtool. This
change allows a wider range of punctuation between version numbers
so that jlibtool can parse out BIND's major and minor versions.

3 years agoA NOTICE() should be DEBUG()
Tony Finch [Wed, 10 Aug 2022 12:27:30 +0000 (13:27 +0100)] 
A NOTICE() should be DEBUG()

This is more consistent with other command arguments.

3 years agoCheck the return value from strdup()
Tony Finch [Tue, 9 Aug 2022 19:32:54 +0000 (20:32 +0100)] 
Check the return value from strdup()

Simlar to malloc()

3 years agoDiscard --tag options
Tony Finch [Tue, 9 Aug 2022 18:02:30 +0000 (19:02 +0100)] 
Discard --tag options

The BIND9 build system puts the --tag option at the start of the
libtool command-line. With jlibtool this resulted in the erroneous
command `sh -c "--tag=..."`.

The help text says that jlibtool ignores --tag; this commit changes
jlibtool to strip --tag rather than passing it through.

3 years ago%l can be uint64_t with no loss of generality.
Alan T. DeKok [Sun, 14 Aug 2022 20:37:54 +0000 (16:37 -0400)] 
%l can be uint64_t with no loss of generality.

CID #1508485

3 years agoadd flatten / unflatten API
Alan T. DeKok [Sat, 13 Aug 2022 15:30:21 +0000 (11:30 -0400)] 
add flatten / unflatten API

which convert pairs from a (mostly) flat list of leaves, to
a tree-like structure.

Many of the protocols alread decode/encode TLVs, so those are
left alone.  Groups are left alone, as DHCPv6 uses them a lot.

structs likely need more tests to be sure that they work in all
cases, including when structs contain structs

3 years agocond_eval returns bool so cannot be < 0
Nick Porter [Mon, 15 Aug 2022 13:24:21 +0000 (14:24 +0100)] 
cond_eval returns bool so cannot be < 0

3 years agocreate fr_pair_list_foreach()
Alan T. DeKok [Sat, 13 Aug 2022 13:50:08 +0000 (09:50 -0400)] 
create fr_pair_list_foreach()

which is also safe to use when deleting the iteration variable

3 years agofix leak / crash on error
Alan T. DeKok [Sat, 13 Aug 2022 13:14:22 +0000 (09:14 -0400)] 
fix leak / crash on error

don't free "&n" or "&vp".  They're just ponters.

Don't free "vp" on error, it wasn't allocated.  Free "n" instead,
as it was the recently allocated pair.

3 years agorearrange code and do some cleanups
Alan T. DeKok [Fri, 12 Aug 2022 23:20:25 +0000 (19:20 -0400)] 
rearrange code and do some cleanups

the internal functions randomly use public functions or internal
functions.  Instead of making everyone try to remember what's what,
we just let them use the public functions most of the time.

It also means that if we accidentally use the public function names,
we avoid a bounce through another function call

The fr_pair_order...() functions are now only used when absolutely
necessary.  Most basic used (head / prev / next / num_elements)
can just use the "public" APIs, and get the benefit of using
the internal functions

3 years agodon't call "find by index" with 0, when another API call would do
Alan T. DeKok [Fri, 12 Aug 2022 22:56:54 +0000 (18:56 -0400)] 
don't call "find by index" with 0, when another API call would do

All of these calls just find the first da, so fr_pair_find_by_da()
is the better choice.  The "find by index" calls shoud be used
when the index is either created at run-time, or is non-zero

3 years agouse new tmpl_dcursor_build_init() API
Alan T. DeKok [Fri, 12 Aug 2022 15:50:07 +0000 (11:50 -0400)] 
use new tmpl_dcursor_build_init() API

3 years agoremove unnecessary brackets
Alan T. DeKok [Fri, 12 Aug 2022 15:49:39 +0000 (11:49 -0400)] 
remove unnecessary brackets

3 years agodon't mash NUM_UNSPEC to NUM_ALL for edit lists
Alan T. DeKok [Fri, 12 Aug 2022 15:43:00 +0000 (11:43 -0400)] 
don't mash NUM_UNSPEC to NUM_ALL for edit lists

3 years agono need for an extra "if" statement
Alan T. DeKok [Thu, 11 Aug 2022 17:38:26 +0000 (13:38 -0400)] 
no need for an extra "if" statement

3 years agoonly groups can use "ref=".
Alan T. DeKok [Thu, 11 Aug 2022 15:31:11 +0000 (11:31 -0400)] 
only groups can use "ref=".

Perhaps when other things get fixed, we can have TLVs use
"ref=" instead of "clone="

3 years agoCorrect building of extents so that the last found parent is always returned
Nick Porter [Tue, 2 Aug 2022 15:16:51 +0000 (16:16 +0100)] 
Correct building of extents so that the last found parent is always returned

3 years agoMove ulang_subrequest_parent_resume() to use tmpl_dcursor for building pairs
Nick Porter [Thu, 11 Aug 2022 15:09:28 +0000 (16:09 +0100)] 
Move ulang_subrequest_parent_resume() to use tmpl_dcursor for building pairs

3 years agoMove pop of nested cursors to after new pairs have been added
Nick Porter [Thu, 11 Aug 2022 13:46:20 +0000 (14:46 +0100)] 
Move pop of nested cursors to after new pairs have been added

to avoid a use after free

3 years agoAdd callback to tmpl_dcursors to build out missing pairs (#4657)
Nick Porter [Thu, 11 Aug 2022 12:54:01 +0000 (13:54 +0100)] 
Add callback to tmpl_dcursors to build out missing pairs (#4657)

* Define callback routine to populate missing #fr_pair_t from #tmpl_dcursor_t

* Populate build callback when initialising #tmpl_dcursor_t

* When initialising a dcursor, always call fr_dcursor_next()

if the cursor is initialised with an itertator function - even with an
empty list, the iterator may be setting something up.

tmpl_cursors use this to potentially populate attributes into the list.

* If no vp is found, and a fill callback is defined call it

Only valid for attribute references with an unspecified number, [0] or
[n]

* Define simple pair building callback for tmpl_dcursors

* Add list debug output to tmpl_dcursor_tests for test failures.

* Add smaller copy of test pairs to tmpl_dcursor_tests

* Add tmpl_dcursor_tests which populate missing pairs

* Improve comments

Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
3 years agos/fr_pair_list_len/ff_pair_list_num_elements/ to be consistent with every other heap...
Arran Cudbard-Bell [Thu, 11 Aug 2022 11:15:46 +0000 (19:15 +0800)] 
s/fr_pair_list_len/ff_pair_list_num_elements/ to be consistent with every other heap and list in the server...

3 years agoOnly callbacks get the _ prefix
Arran Cudbard-Bell [Thu, 11 Aug 2022 11:07:56 +0000 (19:07 +0800)] 
Only callbacks get the _ prefix

3 years agov4: Further simplifications and fixes for tmpl_dcursors (#4651)
Nick Porter [Thu, 11 Aug 2022 11:03:56 +0000 (12:03 +0100)] 
v4: Further simplifications and fixes for tmpl_dcursors (#4651)

* Amalgamate child_eval functions for all tmpl types

* Remove unused list_head from eval function

* Define _tmpl_cursor_common_push

to clarify push / pop on the nested cursor stack

* Move matching of attribute da to dcursor iterator function

* Just use a single child cursor init function

The only difference between a leaf and intermediate node is allocation
of the #tmpl_cursor_nested_t

* Evaluation function no longer needed

3 years agoTest the fr_dbuff_out() for variable width (CID #1503985) (#4650)
James Jones [Thu, 11 Aug 2022 10:32:29 +0000 (05:32 -0500)] 
Test the fr_dbuff_out() for variable width (CID #1503985) (#4650)

3 years agoAnnotate uses of buffer after fr_base16_decode() (CIDs below) (#4662)
James Jones [Thu, 11 Aug 2022 10:32:07 +0000 (05:32 -0500)] 
Annotate uses of buffer after fr_base16_decode() (CIDs below) (#4662)

Coverity doesn't recognize that fr_base16_decode() fills in
the output buffer passed to it. (In CID 1503958, coverity
objects to the fr_base16_decode() call itself. Apparently the
buffer has to be initialized before it's initalized.)

CIDs: 150466, 15039581504041

3 years agoAnnotate use of buffer initialized by tmpl_print() (CID #1506690) (#4663)
James Jones [Thu, 11 Aug 2022 10:31:35 +0000 (05:31 -0500)] 
Annotate use of buffer initialized by tmpl_print() (CID #1506690) (#4663)

3 years agoFix error coverity detected in fr_exec_fork_wait() (CID #1503999) (#4665)
James Jones [Thu, 11 Aug 2022 10:31:06 +0000 (05:31 -0500)] 
Fix error coverity detected in fr_exec_fork_wait() (CID #1503999) (#4665)

stdin_fd's state shouldn't influence stdout_pipe.

3 years agocast values, not copy
Alan T. DeKok [Wed, 10 Aug 2022 13:26:09 +0000 (09:26 -0400)] 
cast values, not copy

which lets the parser return uint8, and then we assign that
value to a uint32 attribute.

3 years agohandle more data types than just attributes and strings
Alan T. DeKok [Wed, 10 Aug 2022 13:24:10 +0000 (09:24 -0400)] 
handle more data types than just attributes and strings

3 years agosimplifications
Alan T. DeKok [Tue, 9 Aug 2022 20:33:09 +0000 (16:33 -0400)] 
simplifications

3 years agoStop fr_dcursor_next() advancing before calling iterator (#4660)
Nick Porter [Wed, 10 Aug 2022 11:20:54 +0000 (12:20 +0100)] 
Stop fr_dcursor_next() advancing before calling iterator (#4660)

3 years agoAnnotate uses of buffers that really are initialized (CIDs listed below) (#4659)
James Jones [Tue, 9 Aug 2022 22:46:32 +0000 (17:46 -0500)] 
Annotate uses of buffers that really are initialized (CIDs listed below) (#4659)

Declaring a local buffer and passing the address of a temporary
sbuff created to use it is a common idiom, but coverity doesn't
recognize when the functions called always put something in the
buffer, if only a NUL terminator. We therefore annotate the first
use of such buffers.

CIDs affected:
15039181503925,153930, 1503945150396615040191504053,
1504067

3 years agoCorrect check for no extension in check_library_exists() (#4655)
James Jones [Tue, 9 Aug 2022 22:28:07 +0000 (17:28 -0500)] 
Correct check for no extension in check_library_exists() (#4655)

If libdircheck is true, add_dotlibs() will put .lib/ at the
start of newarg so that ext will never be NULL.

3 years agoMake memmove() copy terminating NUL in add_dotlibs() (#4656)
James Jones [Tue, 9 Aug 2022 22:27:52 +0000 (17:27 -0500)] 
Make memmove() copy terminating NUL in add_dotlibs() (#4656)

To end up with buffer holding a proper NUL-terminated
string in the common cases, memmove() must move the
name string and its terminating NUL. This may be the
cause underlying CID #1504058, so that it won't need
an annotation...or not.

3 years agoquiet clang scan
Alan T. DeKok [Tue, 9 Aug 2022 18:14:14 +0000 (14:14 -0400)] 
quiet clang scan

3 years agocleanups and comments
Alan T. DeKok [Tue, 9 Aug 2022 17:05:35 +0000 (13:05 -0400)] 
cleanups and comments

3 years agoallow &request -= "Tmp-String-0 == 'foo'"
Alan T. DeKok [Tue, 9 Aug 2022 16:35:23 +0000 (12:35 -0400)] 
allow &request -= "Tmp-String-0 == 'foo'"

for getting rid of pairs via things like SQL queries

3 years agominor cleanups, and allow &Foo += Bar[*]
Alan T. DeKok [Tue, 9 Aug 2022 15:24:33 +0000 (11:24 -0400)] 
minor cleanups, and allow &Foo += Bar[*]

3 years agoallow operations on groups (i.e. lists)
Alan T. DeKok [Tue, 9 Aug 2022 14:47:08 +0000 (10:47 -0400)] 
allow operations on groups (i.e. lists)

so foo += { 1, 3, 4 } will add "8" to the result

3 years agominor cleanups
Alan T. DeKok [Tue, 9 Aug 2022 11:41:51 +0000 (07:41 -0400)] 
minor cleanups

3 years agoUse default-libmysqlclient-dev first - will align with OS defaults
Nick Porter [Tue, 9 Aug 2022 09:39:30 +0000 (10:39 +0100)] 
Use default-libmysqlclient-dev first - will align with OS defaults

3 years agoSuppress GCC unknown pragma warnings
Nick Porter [Tue, 9 Aug 2022 10:08:23 +0000 (11:08 +0100)] 
Suppress GCC unknown pragma warnings

3 years agoAdd module tests to launch.json
Nick Porter [Mon, 1 Aug 2022 09:37:53 +0000 (10:37 +0100)] 
Add module tests to launch.json

3 years agoAdd bin tests to launch.lson
Nick Porter [Mon, 1 Aug 2022 09:27:10 +0000 (10:27 +0100)] 
Add bin tests to launch.lson

3 years agoAdd keyword tests to launch.json
Nick Porter [Mon, 1 Aug 2022 08:58:51 +0000 (09:58 +0100)] 
Add keyword tests to launch.json

3 years agoadd and use tmpl_rules_child_init()
Alan T. DeKok [Sun, 7 Aug 2022 20:44:34 +0000 (16:44 -0400)] 
add and use tmpl_rules_child_init()

which initializes a tmpl_rules_t from a parent tmpl_rules_t, and
a tmpl_t which is a structural attribute.  We want to be able to
parse child attributes in the context of the parent.  So that
the user doesn't have to specify the entire list