]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agolet's use unique names
Alan T. DeKok [Fri, 18 Oct 2019 11:10:18 +0000 (07:10 -0400)] 
let's use unique names

and update process STRUCT so that it adds the struct name to
the global namespace.  This lets us check for duplicate names,
and also address the struct by name.

6 years agoswap the order of fields in a STRUCT definition
Alan T. DeKok [Thu, 17 Oct 2019 23:59:10 +0000 (19:59 -0400)] 
swap the order of fields in a STRUCT definition

VALUE attr name value

means "define NAME with VALUE for ATTR"

STRUCT name attr value

means "define NAME struct when ATTR has VALUE"

6 years agoremove Client-ID tests. Client-Id is "struct" not "octets"
Alan T. DeKok [Thu, 17 Oct 2019 21:58:01 +0000 (17:58 -0400)] 
remove Client-ID tests.  Client-Id is "struct" not "octets"

6 years agoprint names of types, not numerical value
Alan T. DeKok [Thu, 17 Oct 2019 21:56:42 +0000 (17:56 -0400)] 
print names of types, not numerical value

6 years agoNUL terminate the result only if we should do it
Alan T. DeKok [Thu, 17 Oct 2019 21:51:48 +0000 (17:51 -0400)] 
NUL terminate the result only if we should do it

6 years agoallow naked STRUCT, as is done with dictionary.rfc6355
Alan T. DeKok [Thu, 17 Oct 2019 20:48:27 +0000 (16:48 -0400)] 
allow naked STRUCT, as is done with dictionary.rfc6355

6 years agotypo
Alan T. DeKok [Thu, 17 Oct 2019 20:36:10 +0000 (16:36 -0400)] 
typo

6 years agomore decode of structs for RFC 3315
Alan T. DeKok [Thu, 17 Oct 2019 20:03:18 +0000 (16:03 -0400)] 
more decode of structs for RFC 3315

6 years agouse keyed sub-structs
Alan T. DeKok [Thu, 17 Oct 2019 19:41:06 +0000 (15:41 -0400)] 
use keyed sub-structs

6 years agoAdd dhcpv6 dictionary.rfc6355 (#3054)
Jorge Pereira [Thu, 17 Oct 2019 18:10:48 +0000 (15:10 -0300)] 
Add dhcpv6 dictionary.rfc6355 (#3054)

6 years agoUpdate libfreeradius4 with latest library names
Arran Cudbard-Bell [Thu, 17 Oct 2019 13:05:30 +0000 (09:05 -0400)] 
Update libfreeradius4 with latest library names

6 years agoAccidentally comitted
Arran Cudbard-Bell [Thu, 17 Oct 2019 12:55:50 +0000 (08:55 -0400)] 
Accidentally comitted

6 years agoMinor formatting fixes
Arran Cudbard-Bell [Thu, 17 Oct 2019 12:50:26 +0000 (08:50 -0400)] 
Minor formatting fixes

mostly to kick jenkins

6 years agoPrint the destination list when printing parsed attributes
Arran Cudbard-Bell [Wed, 16 Oct 2019 19:27:35 +0000 (15:27 -0400)] 
Print the destination list when printing parsed attributes

6 years agoSet value to be the nested value array/field when the attribute is an object
Arran Cudbard-Bell [Wed, 16 Oct 2019 19:27:18 +0000 (15:27 -0400)] 
Set value to be the nested value array/field when the attribute is an object

6 years agoMake it clear what attributes we're setting
Arran Cudbard-Bell [Wed, 16 Oct 2019 19:26:28 +0000 (15:26 -0400)] 
Make it clear what attributes we're setting

6 years agoSkip xlat expansions unless the string being expanded contains '%'
Arran Cudbard-Bell [Wed, 16 Oct 2019 19:26:15 +0000 (15:26 -0400)] 
Skip xlat expansions unless the string being expanded contains '%'

6 years agoMerge pull request #3049 from jpereira/v4/typo1
Alan DeKok [Tue, 15 Oct 2019 12:17:59 +0000 (08:17 -0400)] 
Merge pull request #3049 from jpereira/v4/typo1

The 'RADIUSD_BIN' should be global

6 years agoThe 'RADIUSD_BIN' should be global 3049/head
Jorge Pereira [Tue, 15 Oct 2019 01:29:45 +0000 (22:29 -0300)] 
The 'RADIUSD_BIN' should be global

6 years agofix names for AKA'
Alan T. DeKok [Tue, 15 Oct 2019 00:36:16 +0000 (20:36 -0400)] 
fix names for AKA'

6 years agoRevert "Revert "use consistent names""
Alan T. DeKok [Mon, 14 Oct 2019 17:40:27 +0000 (13:40 -0400)] 
Revert "Revert "use consistent names""

This reverts commit 2d4f98866a5390ca7630912b9eb61bf252865c03.

one last try.

6 years agoset default_eap_type in methods-enabled file
Alan T. DeKok [Mon, 14 Oct 2019 17:19:06 +0000 (13:19 -0400)] 
set default_eap_type in methods-enabled file

It's not quite normal, but it is fine.

6 years agomove this, too
Alan T. DeKok [Mon, 14 Oct 2019 17:16:59 +0000 (13:16 -0400)] 
move this, too

6 years agoRevert "use consistent names"
Alan T. DeKok [Mon, 14 Oct 2019 16:50:54 +0000 (12:50 -0400)] 
Revert "use consistent names"

This reverts commit 9cf8cfcfc3e4d08a34e8590df098ce2d431308d1.

Nope.  Source code uses aka_prime, so we should use that, too

6 years agouse consistent names
Alan T. DeKok [Mon, 14 Oct 2019 16:50:12 +0000 (12:50 -0400)] 
use consistent names

6 years agoremove old dependency rules
Alan T. DeKok [Mon, 14 Oct 2019 16:23:06 +0000 (12:23 -0400)] 
remove old dependency rules

6 years agomove method tests to their own directory structure
Alan T. DeKok [Mon, 14 Oct 2019 15:19:13 +0000 (11:19 -0400)] 
move method tests to their own directory structure

to avoid stupid linking / enabling issues, and methods
interfering with each other.

6 years agotest depends on the output files
Alan T. DeKok [Mon, 14 Oct 2019 14:33:04 +0000 (10:33 -0400)] 
test depends on the output files

6 years agodictionaries are in `fr_dict_t *`, not `fr_dict_t
Alan T. DeKok [Mon, 14 Oct 2019 14:32:38 +0000 (10:32 -0400)] 
dictionaries are in `fr_dict_t *`, not `fr_dict_t

6 years agoFix NULL instance name in rlm_eap startup warnings
Arran Cudbard-Bell [Mon, 14 Oct 2019 03:08:12 +0000 (22:08 -0500)] 
Fix NULL instance name in rlm_eap startup warnings

6 years agoset -e interferes with failure?
Arran Cudbard-Bell [Mon, 14 Oct 2019 03:04:58 +0000 (22:04 -0500)] 
set -e interferes with failure?

6 years agoNo way to fix this currently
Arran Cudbard-Bell [Mon, 14 Oct 2019 02:08:04 +0000 (21:08 -0500)] 
No way to fix this currently

6 years agoMake namespace resolution failure a fatal error
Arran Cudbard-Bell [Sat, 12 Oct 2019 15:16:32 +0000 (10:16 -0500)] 
Make namespace resolution failure a fatal error

6 years agomanually start / stop radiusd
Alan T. DeKok [Sat, 12 Oct 2019 13:40:19 +0000 (09:40 -0400)] 
manually start / stop radiusd

6 years agoMerge pull request #3043 from jpereira/v4/test4
Alan DeKok [Sat, 12 Oct 2019 13:30:51 +0000 (09:30 -0400)] 
Merge pull request #3043 from jpereira/v4/test4

Fix typo

6 years agoFix typo 3043/head
Jorge Pereira [Sat, 12 Oct 2019 13:13:33 +0000 (10:13 -0300)] 
Fix typo

6 years agoshow errors, not logs of "freeing module"
Alan T. DeKok [Sat, 12 Oct 2019 12:30:48 +0000 (08:30 -0400)] 
show errors, not logs of "freeing module"

6 years agostop immediately if radiusd fails to start
Alan T. DeKok [Sat, 12 Oct 2019 12:26:07 +0000 (08:26 -0400)] 
stop immediately if radiusd fails to start

6 years agoerroneously committed
Alan T. DeKok [Sat, 12 Oct 2019 12:22:06 +0000 (08:22 -0400)] 
erroneously committed

6 years agomake sure that these directories always exist
Alan T. DeKok [Fri, 11 Oct 2019 22:23:51 +0000 (18:23 -0400)] 
make sure that these directories always exist

6 years agotry to automagically enable tests
Alan T. DeKok [Fri, 11 Oct 2019 21:54:11 +0000 (17:54 -0400)] 
try to automagically enable tests

6 years agooutput directories aren't phony
Alan T. DeKok [Fri, 11 Oct 2019 21:44:35 +0000 (17:44 -0400)] 
output directories aren't phony

6 years agoadd dependencies on enabling the modules
Alan T. DeKok [Fri, 11 Oct 2019 20:44:36 +0000 (16:44 -0400)] 
add dependencies on enabling the modules

6 years agoRevert "Revert "if we dereference it as a group, it has to be defined as a group""
Alan T. DeKok [Fri, 11 Oct 2019 19:27:21 +0000 (15:27 -0400)] 
Revert "Revert "if we dereference it as a group, it has to be defined as a group""

This reverts commit a9a5673db02bda73b72ca25ed5f1ebe95205299d.

and we need this.

6 years agoRevert "if we dereference it as a group, it has to be defined as a group"
Alan T. DeKok [Fri, 11 Oct 2019 18:51:25 +0000 (14:51 -0400)] 
Revert "if we dereference it as a group, it has to be defined as a group"

This reverts commit 1469c414c666850bfacbf39b284f4ccd74f049fc.

6 years agoRemove redundant check that also breaks subrequests used to call submodules
Arran Cudbard-Bell [Fri, 11 Oct 2019 18:32:34 +0000 (13:32 -0500)] 
Remove redundant check that also breaks subrequests used to call submodules

6 years agoComment
Arran Cudbard-Bell [Fri, 11 Oct 2019 18:26:20 +0000 (13:26 -0500)] 
Comment

6 years agoTest server needs to run in foreground mode and log to stdout
Arran Cudbard-Bell [Fri, 11 Oct 2019 18:11:24 +0000 (13:11 -0500)] 
Test server needs to run in foreground mode and log to stdout

6 years agoNow we have frequently firing events in the main loop, don't print "Waking up" at...
Arran Cudbard-Bell [Fri, 11 Oct 2019 18:08:57 +0000 (13:08 -0500)] 
Now we have frequently firing events in the main loop, don't print "Waking up" at DEBUG 1

6 years agoremove erroneously committed structs
Alan T. DeKok [Fri, 11 Oct 2019 18:03:49 +0000 (14:03 -0400)] 
remove erroneously committed structs

6 years agoif we dereference it as a group, it has to be defined as a group
Alan T. DeKok [Fri, 11 Oct 2019 17:56:29 +0000 (13:56 -0400)] 
if we dereference it as a group, it has to be defined as a group

6 years agoWhitespace
Arran Cudbard-Bell [Fri, 11 Oct 2019 17:45:14 +0000 (12:45 -0500)] 
Whitespace

6 years agoFix log message
Arran Cudbard-Bell [Fri, 11 Oct 2019 17:43:47 +0000 (12:43 -0500)] 
Fix log message

6 years agoclean up makefile
Alan T. DeKok [Fri, 11 Oct 2019 17:38:04 +0000 (13:38 -0400)] 
clean up makefile

print out the commands that failed, and fail if we fail running
eapol_test

6 years agoadd --silent to jlibtool
Alan T. DeKok [Fri, 11 Oct 2019 17:30:30 +0000 (13:30 -0400)] 
add --silent to jlibtool

and don't print out "running radius".  We don't really care unless
something goes wrong.  This makes the tests easier to understand.

6 years agoclean up makefile
Alan T. DeKok [Fri, 11 Oct 2019 17:28:01 +0000 (13:28 -0400)] 
clean up makefile

formatting, and print out commands that should be run when a
test fails

6 years agonew airespace dictionaries. Ported from v3
Alan T. DeKok [Fri, 11 Oct 2019 16:24:31 +0000 (12:24 -0400)] 
new airespace dictionaries.  Ported from v3

6 years agoadd "fail" command
Alan T. DeKok [Fri, 11 Oct 2019 14:27:40 +0000 (10:27 -0400)] 
add "fail" command

for tests where we know the expected output, but which don't yet
work. It's better to have known failures than results which are
commented out

6 years agoremove unnecessary wrapper function
Alan T. DeKok [Thu, 10 Oct 2019 18:06:16 +0000 (14:06 -0400)] 
remove unnecessary wrapper function

6 years agouse unlang ops table instead of compile table
Alan T. DeKok [Thu, 10 Oct 2019 17:58:22 +0000 (13:58 -0400)] 
use unlang ops table instead of compile table

6 years agoMerge pull request #3037 from jpereira/v4/test-eap
Alan DeKok [Fri, 11 Oct 2019 16:31:36 +0000 (12:31 -0400)] 
Merge pull request #3037 from jpereira/v4/test-eap

Move eap test to boiler.mk scheme

6 years agoAdd 'ignored list' to EAP test suite 3037/head
Jorge Pereira [Fri, 11 Oct 2019 01:19:04 +0000 (22:19 -0300)] 
Add 'ignored list' to EAP test suite

6 years agoEnable 'test.eap' to the 'make test' pipeline
Jorge Pereira [Fri, 11 Oct 2019 01:18:26 +0000 (22:18 -0300)] 
Enable 'test.eap' to the 'make test' pipeline

6 years agoMove EAP test to boiler.mk scheme
Jorge Pereira [Wed, 9 Oct 2019 18:26:51 +0000 (15:26 -0300)] 
Move EAP test to boiler.mk scheme

Pretty simple, less code and reuse the same mechanism
to start/stop the radiusd service.

6 years agoMute the 'openssl' warnings complaining about the missing openssl.cnf (#3041)
Jorge Pereira [Thu, 10 Oct 2019 23:15:28 +0000 (20:15 -0300)] 
Mute the 'openssl' warnings complaining about the missing openssl.cnf (#3041)

6 years agovarious fixes to allow tests to pass
Alan T. DeKok [Thu, 10 Oct 2019 17:14:58 +0000 (13:14 -0400)] 
various fixes to allow tests to pass

empty sections are now allowed.  Interpreter functions now
have to check for empty sections

6 years agotypos - names were reversed
Alan T. DeKok [Thu, 10 Oct 2019 17:01:45 +0000 (13:01 -0400)] 
typos - names were reversed

6 years agoset name / debug_name
Alan T. DeKok [Thu, 10 Oct 2019 17:01:36 +0000 (13:01 -0400)] 
set name / debug_name

6 years agouse mod_type for empty keywords if they're not a group
Alan T. DeKok [Thu, 10 Oct 2019 17:01:00 +0000 (13:01 -0400)] 
use mod_type for empty keywords if they're not a group

6 years agoone more unused variable
Alan T. DeKok [Thu, 10 Oct 2019 16:28:08 +0000 (12:28 -0400)] 
one more unused variable

6 years agodoxygen
Alan T. DeKok [Thu, 10 Oct 2019 16:20:26 +0000 (12:20 -0400)] 
doxygen

6 years agoremove last vestiges of modcall
Alan T. DeKok [Thu, 10 Oct 2019 16:18:40 +0000 (12:18 -0400)] 
remove last vestiges of modcall

6 years agoremove unused variable
Alan T. DeKok [Thu, 10 Oct 2019 16:04:14 +0000 (12:04 -0400)] 
remove unused variable

6 years agoremove set / reset of names
Alan T. DeKok [Thu, 10 Oct 2019 15:20:11 +0000 (11:20 -0400)] 
remove set / reset of names

just set it once and leave it
and now that it's not reset, use less memory allocation

6 years agoallow empty groups everywhere
Alan T. DeKok [Thu, 10 Oct 2019 15:12:02 +0000 (11:12 -0400)] 
allow empty groups everywhere

if any keyword takes a section but that section is empty,
the compiler will now create an empty UNLANG_TYPE_GROUP, with
the name / debug_name set from the CONF_SECTION names

Also, use talloc for all names, as they are sometimes freed.

6 years agoremove mod_type argument from compile_foo()
Alan T. DeKok [Thu, 10 Oct 2019 14:31:38 +0000 (10:31 -0400)] 
remove mod_type argument from compile_foo()

6 years agoDocument session
Arran Cudbard-Bell [Thu, 10 Oct 2019 15:23:39 +0000 (11:23 -0400)] 
Document session

6 years agoDon't leak our_name if we're not loading an EAP method
Arran Cudbard-Bell [Thu, 10 Oct 2019 14:20:57 +0000 (10:20 -0400)] 
Don't leak our_name if we're not loading an EAP method

6 years agoFixup return types for encoding functions
Arran Cudbard-Bell [Thu, 10 Oct 2019 14:16:05 +0000 (10:16 -0400)] 
Fixup return types for encoding functions

6 years agoquiet clang analyzer for non-debug builds, too
Alan T. DeKok [Thu, 10 Oct 2019 13:52:30 +0000 (09:52 -0400)] 
quiet clang analyzer for non-debug builds, too

where rad_assert() doesn't exist.

6 years agotry to shut clang analyzer
Alan T. DeKok [Thu, 10 Oct 2019 13:17:35 +0000 (09:17 -0400)] 
try to shut clang analyzer

which tells us *where* the issue occurs, but not *why* it occurs

6 years agocheck for errors <=0, not just ==0
Alan T. DeKok [Thu, 10 Oct 2019 12:59:23 +0000 (08:59 -0400)] 
check for errors <=0, not just ==0

6 years agofix names for dependencies
Alan T. DeKok [Thu, 10 Oct 2019 12:48:22 +0000 (08:48 -0400)] 
fix names for dependencies

6 years agowe don't echo the commands when reading from a file
Alan T. DeKok [Thu, 10 Oct 2019 11:35:10 +0000 (07:35 -0400)] 
we don't echo the commands when reading from a file

6 years agoclean up to make it easier to use
Alan T. DeKok [Thu, 10 Oct 2019 11:34:06 +0000 (07:34 -0400)] 
clean up to make it easier to use

* put output redirection last, so it can easily be deleted
* print out which command was used to run radiusd / radmin
* kill radiusd when diffs fail, too
* diffs are FROM expected TO actual, not the other way around

6 years agoset -l last, so it's easier to edit when running manually
Alan T. DeKok [Thu, 10 Oct 2019 11:33:45 +0000 (07:33 -0400)] 
set -l last, so it's easier to edit when running manually

6 years agoSilence spurious warning
Arran Cudbard-Bell [Thu, 10 Oct 2019 04:31:51 +0000 (00:31 -0400)] 
Silence spurious warning

6 years ago???
Arran Cudbard-Bell [Thu, 10 Oct 2019 04:16:47 +0000 (00:16 -0400)] 
???

6 years agoJust an overflow issue?
Arran Cudbard-Bell [Thu, 10 Oct 2019 04:03:53 +0000 (00:03 -0400)] 
Just an overflow issue?

6 years agoShut up clang analyzer
Arran Cudbard-Bell [Thu, 10 Oct 2019 03:49:13 +0000 (23:49 -0400)] 
Shut up clang analyzer

6 years agoDon't install Antora if we're not building the docs
Arran Cudbard-Bell [Thu, 10 Oct 2019 03:39:30 +0000 (23:39 -0400)] 
Don't install Antora if we're not building the docs

6 years agoNegative offsets are errors
Arran Cudbard-Bell [Thu, 10 Oct 2019 03:27:38 +0000 (23:27 -0400)] 
Negative offsets are errors

6 years agoCleanup overly complex hex_to_bin function
Arran Cudbard-Bell [Thu, 10 Oct 2019 03:27:14 +0000 (23:27 -0400)] 
Cleanup overly complex hex_to_bin function

6 years agoprint levels as the tests need them for error catching
Alan T. DeKok [Wed, 9 Oct 2019 23:11:39 +0000 (19:11 -0400)] 
print levels as the tests need them for error catching

6 years agoused / unused compiler issues
Alan T. DeKok [Wed, 9 Oct 2019 23:00:29 +0000 (19:00 -0400)] 
used / unused compiler issues

6 years agoorder tests
Alan T. DeKok [Wed, 9 Oct 2019 22:10:14 +0000 (18:10 -0400)] 
order tests

6 years agoallow comments in input files
Alan T. DeKok [Wed, 9 Oct 2019 22:09:37 +0000 (18:09 -0400)] 
allow comments in input files

and don't add lines to the history if they're being read from
a file.

6 years agogrammar and spelling fixes for modules (#3020)
Alan Buxey [Wed, 9 Oct 2019 21:58:01 +0000 (22:58 +0100)] 
grammar and spelling fixes for modules (#3020)

6 years agoMute the 'openssl' warnings complaining about the missing openssl.cnf (#3038)
Jorge Pereira [Wed, 9 Oct 2019 21:57:41 +0000 (18:57 -0300)] 
Mute the 'openssl' warnings complaining about the missing openssl.cnf (#3038)

6 years agoUse "inlen" in command_data
Arran Cudbard-Bell [Wed, 9 Oct 2019 21:56:31 +0000 (17:56 -0400)] 
Use "inlen" in command_data