]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
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

6 years agoReturn the correct length for quoted values in fr_value_box_snprint
Arran Cudbard-Bell [Wed, 9 Oct 2019 21:54:43 +0000 (17:54 -0400)] 
Return the correct length for quoted values in fr_value_box_snprint

6 years agoRemove invalid assert
Arran Cudbard-Bell [Wed, 9 Oct 2019 21:22:30 +0000 (17:22 -0400)] 
Remove invalid assert

6 years agoTidy up unit_test_attribute more
Arran Cudbard-Bell [Wed, 9 Oct 2019 21:04:29 +0000 (17:04 -0400)] 
Tidy up unit_test_attribute more

6 years agoDon't leak memory in cond_normalise_attribute
Arran Cudbard-Bell [Wed, 9 Oct 2019 20:58:44 +0000 (16:58 -0400)] 
Don't leak memory in cond_normalise_attribute

6 years agoIncluding sql.h causes conflicts on macos Catalina
Arran Cudbard-Bell [Wed, 9 Oct 2019 20:58:16 +0000 (16:58 -0400)] 
Including sql.h causes conflicts on macos Catalina

6 years agodon't print levels if we're doing syslog
Alan T. DeKok [Wed, 9 Oct 2019 21:43:18 +0000 (17:43 -0400)] 
don't print levels if we're doing syslog

6 years agoindent VPs we're printing.
Alan T. DeKok [Wed, 9 Oct 2019 21:22:51 +0000 (17:22 -0400)] 
indent VPs we're printing.

Which is only used by radsniff, radnsnmp, and radclient.
All of which need VP indentation for readability.

6 years agouse "const" and common functions for common work
Alan T. DeKok [Wed, 9 Oct 2019 21:21:10 +0000 (17:21 -0400)] 
use "const" and common functions for common work

6 years agolog functions should take const
Alan T. DeKok [Wed, 9 Oct 2019 21:20:07 +0000 (17:20 -0400)] 
log functions should take const

6 years agoadd ability to suppress level prefixes for log messages
Alan T. DeKok [Wed, 9 Oct 2019 21:13:17 +0000 (17:13 -0400)] 
add ability to suppress level prefixes for log messages

so that radclient, etc. debug output doesn't get messed up

6 years agoremove "test.eap" from the "test" target
Alan T. DeKok [Wed, 9 Oct 2019 20:52:22 +0000 (16:52 -0400)] 
remove "test.eap" from the "test" target

because pretty much all of the EAP tests are broken.  Once EAP
is fixed, we can re-enable it as part of the test framework

6 years agouctx may be NULL
Alan T. DeKok [Wed, 9 Oct 2019 19:47:15 +0000 (15:47 -0400)] 
uctx may be NULL

6 years agoremove debug message
Alan T. DeKok [Wed, 9 Oct 2019 19:41:47 +0000 (15:41 -0400)] 
remove debug message

6 years agomake the cert files depend on the openssl conf files
Alan T. DeKok [Wed, 9 Oct 2019 19:41:29 +0000 (15:41 -0400)] 
make the cert files depend on the openssl conf files

6 years agouse predefined TESTBIN instead of local magic
Alan T. DeKok [Wed, 9 Oct 2019 19:39:56 +0000 (15:39 -0400)] 
use predefined TESTBIN instead of local magic

6 years agoreorder included make files
Alan T. DeKok [Wed, 9 Oct 2019 19:37:53 +0000 (15:37 -0400)] 
reorder included make files

so that GENERATED_CERT_FILES is available for the tests

6 years agoreplace build with ${BUILD_DIR}. Fixes #3031
Alan T. DeKok [Wed, 9 Oct 2019 19:19:58 +0000 (15:19 -0400)] 
replace build with ${BUILD_DIR}.  Fixes #3031

6 years agouse cached CONF_SECTION
Alan T. DeKok [Wed, 9 Oct 2019 19:18:17 +0000 (15:18 -0400)] 
use cached CONF_SECTION

6 years agoadd base / offset to virtual server compilation
Alan T. DeKok [Wed, 9 Oct 2019 19:13:01 +0000 (15:13 -0400)] 
add base / offset to virtual server compilation

so that the CONF_SECTIONs can be cached somewhere

6 years agoallow unsigned types for time_delta
Alan T. DeKok [Wed, 9 Oct 2019 13:50:41 +0000 (09:50 -0400)] 
allow unsigned types for time_delta

6 years agoMerge pull request #3036 from jpereira/v4/tests1
Alan DeKok [Wed, 9 Oct 2019 18:42:39 +0000 (14:42 -0400)] 
Merge pull request #3036 from jpereira/v4/tests1

Keep the common test vars in single place

6 years agoKeep the common test vars in single place 3036/head
Jorge Pereira [Wed, 9 Oct 2019 18:22:32 +0000 (15:22 -0300)] 
Keep the common test vars in single place

so, let's keep PORT and SECRET declared once.

6 years agoPrint the used port
Jorge Pereira [Wed, 9 Oct 2019 18:22:15 +0000 (15:22 -0300)] 
Print the used port

6 years agomore reordering
Alan T. DeKok [Wed, 9 Oct 2019 12:33:41 +0000 (08:33 -0400)] 
more reordering

6 years agomove test rules into src/tests/all.mk
Alan T. DeKok [Wed, 9 Oct 2019 12:24:37 +0000 (08:24 -0400)] 
move test rules into src/tests/all.mk

and do minor cleanups

6 years agoMerge pull request #3035 from jpereira/v4/test-digest
Alan DeKok [Wed, 9 Oct 2019 12:11:43 +0000 (08:11 -0400)] 
Merge pull request #3035 from jpereira/v4/test-digest

Migrate the tests in src/tests/* to src/tests/digest

6 years agouse a common name
Alan T. DeKok [Wed, 9 Oct 2019 11:22:51 +0000 (07:22 -0400)] 
use a common name

6 years agoremove one more $(shell ...)
Alan T. DeKok [Wed, 9 Oct 2019 11:18:52 +0000 (07:18 -0400)] 
remove one more $(shell ...)

This is similar to commit 22e25aed

6 years agoMigrate digest tests to boiler scheme 3035/head
Jorge Pereira [Wed, 9 Oct 2019 00:56:57 +0000 (21:56 -0300)] 
Migrate digest tests to boiler scheme

6 years agoNot needed those files anymore
Jorge Pereira [Wed, 9 Oct 2019 00:56:42 +0000 (21:56 -0300)] 
Not needed those files anymore

6 years agoMigrate digest tests to boiler scheme
Jorge Pereira [Wed, 9 Oct 2019 00:56:29 +0000 (21:56 -0300)] 
Migrate digest tests to boiler scheme

6 years agodefine and use GNU Make functions which replace $(shell find ...)
Alan T. DeKok [Tue, 8 Oct 2019 22:22:28 +0000 (18:22 -0400)] 
define and use GNU Make functions which replace $(shell find ...)

6 years agoprint warnings only when asked. Fixes #3032
Alan T. DeKok [Tue, 8 Oct 2019 22:20:04 +0000 (18:20 -0400)] 
print warnings only when asked.  Fixes #3032

It will now ignore warnings in normal builds, and only them
when running:

    make check.configure

this change is because we can't control the timestamps on the
`configure` and `configure.ac` files on `git clone` or
`git checkout`.  The `git` program may write one file before
another, and not necessarily in any order we would like.

Since we can't fix that, we just suppress the warnings.

6 years agoremove one more $(shell ...)
Alan T. DeKok [Tue, 8 Oct 2019 21:40:02 +0000 (17:40 -0400)] 
remove one more $(shell ...)

6 years agoremove one use of $(shell ...)
Alan T. DeKok [Tue, 8 Oct 2019 21:28:41 +0000 (17:28 -0400)] 
remove one use of $(shell ...)

6 years agoMerge pull request #3033 from jpereira/v4/fix2
Alan DeKok [Tue, 8 Oct 2019 20:31:30 +0000 (16:31 -0400)] 
Merge pull request #3033 from jpereira/v4/fix2

Fix the radmin test dependency

6 years agosilence compuler warning. Fixes #3034
Alan T. DeKok [Tue, 8 Oct 2019 20:30:40 +0000 (16:30 -0400)] 
silence compuler warning.  Fixes #3034

6 years agoalso process CANCEL action in the main signal handler
Alan T. DeKok [Tue, 8 Oct 2019 12:56:51 +0000 (08:56 -0400)] 
also process CANCEL action in the main signal handler

which simplifies the keyword signal handlers.  All they have to do
is pass the signal to their children.

6 years agoFix the radmin test dependency 3033/head
Jorge Pereira [Tue, 8 Oct 2019 19:10:59 +0000 (16:10 -0300)] 
Fix the radmin test dependency

6 years agoGNU gmtime_r *still* uses the value of TZ when printing %Z even with gmtime_r which...
Arran Cudbard-Bell [Tue, 8 Oct 2019 17:32:19 +0000 (13:32 -0400)] 
GNU gmtime_r *still* uses the value of TZ when printing %Z even with gmtime_r which provides the time as UTC‽

6 years agoMerge pull request #3030 from jpereira/v4/tests3
Alan DeKok [Tue, 8 Oct 2019 11:54:39 +0000 (07:54 -0400)] 
Merge pull request #3030 from jpereira/v4/tests3

Some fixes for radmin tests

6 years agoFix travis build error
Arran Cudbard-Bell [Tue, 8 Oct 2019 01:14:37 +0000 (21:14 -0400)] 
Fix travis build error

6 years agoFix typo in $(TEST).radiusd_kill 3030/head
Jorge Pereira [Mon, 7 Oct 2019 19:29:24 +0000 (16:29 -0300)] 
Fix typo in $(TEST).radiusd_kill

We should remove the radiusd.pid

6 years agoif failed, show the last 100 entries
Jorge Pereira [Mon, 7 Oct 2019 19:10:02 +0000 (16:10 -0300)] 
if failed, show the last 100 entries

6 years agoBe sure to use the latest build of bin/radmin
Jorge Pereira [Mon, 7 Oct 2019 18:59:34 +0000 (15:59 -0300)] 
Be sure to use the latest build of bin/radmin

6 years agoIf informed 'RADIUSD_BIN', don't call 'jlibtool'
Jorge Pereira [Mon, 7 Oct 2019 16:51:37 +0000 (13:51 -0300)] 
If informed 'RADIUSD_BIN', don't call 'jlibtool'

6 years agoFix to call straight target name 'test.radmin.radiusd_kill'
Jorge Pereira [Mon, 7 Oct 2019 16:27:40 +0000 (13:27 -0300)] 
Fix to call straight target name 'test.radmin.radiusd_kill'

Instead of trough $(TEST) context.

6 years agoJust call the 'exit N' due to Make don't expand it correctly
Jorge Pereira [Mon, 7 Oct 2019 16:19:14 +0000 (13:19 -0300)] 
Just call the 'exit N' due to Make don't expand it correctly

The Make don't expand the '${ret}' inside the macros.

6 years agofix compile warnings
Alan T. DeKok [Mon, 7 Oct 2019 16:26:19 +0000 (12:26 -0400)] 
fix compile warnings

6 years agosync time periodically.
Alan T. DeKok [Mon, 7 Oct 2019 16:23:20 +0000 (12:23 -0400)] 
sync time periodically.

Which lets us catch time zone changes (e.g. daylight savings)
and clock drift

6 years agoMerge pull request #3026 from jpereira/v4/tests1
Alan DeKok [Mon, 7 Oct 2019 14:59:54 +0000 (10:59 -0400)] 
Merge pull request #3026 from jpereira/v4/tests1

Add capability to 'RADIUSD_SERVICE' share the exactly command.

6 years agofix arguments to localtime_r
Alan T. DeKok [Mon, 7 Oct 2019 14:42:18 +0000 (10:42 -0400)] 
fix arguments to localtime_r

6 years agoAdd capability to 'RADIUSD_SERVICE' share the exactly command. 3026/head
Jorge Pereira [Sun, 6 Oct 2019 14:59:20 +0000 (11:59 -0300)] 
Add capability to 'RADIUSD_SERVICE' share the exactly command.

* The macro 'RADIUSD_SERVICE' now is sharing the exactly command used to
start the radiusd during the tests.
* Also, we could inform which radiusd we want to use with 'RADIUSD_BIN'

6 years agotry to parse time zones.
Alan T. DeKok [Mon, 7 Oct 2019 13:04:36 +0000 (09:04 -0400)] 
try to parse time zones.

and if we can't, just pretend they're GMT

6 years agoadd function to get time_delta from time zone name
Alan T. DeKok [Mon, 7 Oct 2019 12:54:20 +0000 (08:54 -0400)] 
add function to get time_delta from time zone name

Note that we ONLY allow UTC / GMT and local time zone names.
It is impossible in general to parse time zone names to offsets
from GMT, as there are duplicates in the zone names.

6 years agoOne more
Arran Cudbard-Bell [Mon, 7 Oct 2019 05:43:51 +0000 (01:43 -0400)] 
One more

6 years agoMinor fixups
Arran Cudbard-Bell [Mon, 7 Oct 2019 05:42:28 +0000 (01:42 -0400)] 
Minor fixups

6 years agoAdd 'exit <num>' command to cause the process to exit, and full help text for all...
Arran Cudbard-Bell [Mon, 7 Oct 2019 05:39:04 +0000 (01:39 -0400)] 
Add 'exit <num>' command to cause the process to exit, and full help text for all supported commands

6 years agoRework unit_test_attribute to use standard logging macros, and add a command table...
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:13:13 +0000 (20:13 -0400)] 
Rework unit_test_attribute to use standard logging macros, and add a command table to simplify extending its functionality

6 years agoFix errors in table_sorted_value_by_longest_prefix
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:12:34 +0000 (20:12 -0400)] 
Fix errors in table_sorted_value_by_longest_prefix

6 years agoDict dump should take const dict
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:12:13 +0000 (20:12 -0400)] 
Dict dump should take const dict

6 years agoAlways print times as UTC
Arran Cudbard-Bell [Mon, 7 Oct 2019 00:11:53 +0000 (20:11 -0400)] 
Always print times as UTC