]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
5 years agocheck if the clone ref exists before loading it
Alan T. DeKok [Thu, 17 Jun 2021 14:52:41 +0000 (10:52 -0400)] 
check if the clone ref exists before loading it

and also check that a clone ref cannot refer to a parent. otherwise
we have recursive clones, and that's bad.

5 years agoincrement line BEFORE writing to ctx line
Alan T. DeKok [Thu, 17 Jun 2021 14:51:00 +0000 (10:51 -0400)] 
increment line BEFORE writing to ctx line

because the local error messages use the local variable "line",
but when we call other functions, they use the parsing ctx "line"

So those two variables need to be the same.

5 years agoprevent recursive includes
Alan T. DeKok [Thu, 17 Jun 2021 13:59:20 +0000 (09:59 -0400)] 
prevent recursive includes

5 years agoDon't print errors when hostinfo not present
Nick Porter [Thu, 17 Jun 2021 10:28:35 +0000 (11:28 +0100)] 
Don't print errors when hostinfo not present

5 years agoRPM build needs Make.inc up front to set top_srcdir
Nick Porter [Thu, 17 Jun 2021 10:28:12 +0000 (11:28 +0100)] 
RPM build needs Make.inc up front to set top_srcdir

5 years agoInstall libfreeradius-internal
Nick Porter [Thu, 17 Jun 2021 08:25:02 +0000 (09:25 +0100)] 
Install libfreeradius-internal

5 years agoEnsure all data types are handled
Nick Porter [Thu, 17 Jun 2021 07:45:27 +0000 (08:45 +0100)] 
Ensure all data types are handled

5 years agopair_list_perf_test doesn't need LIBFREERADIUS_SERVER
Nick Porter [Thu, 17 Jun 2021 07:44:04 +0000 (08:44 +0100)] 
pair_list_perf_test doesn't need LIBFREERADIUS_SERVER

5 years agolibfreeradius-tls requires libfreeradius-internal
Alan T. DeKok [Wed, 16 Jun 2021 20:08:30 +0000 (16:08 -0400)] 
libfreeradius-tls requires libfreeradius-internal

5 years agotypo
Alan T. DeKok [Wed, 16 Jun 2021 16:46:32 +0000 (12:46 -0400)] 
typo

5 years agouse libfreeradius-server, and not LIBFREERADIUS_SERVER
Alan T. DeKok [Wed, 16 Jun 2021 14:48:35 +0000 (10:48 -0400)] 
use libfreeradius-server, and not LIBFREERADIUS_SERVER

which adds in more things that break the build

5 years agoRevert "add explicit dependency, because ????"
Alan T. DeKok [Wed, 16 Jun 2021 14:46:49 +0000 (10:46 -0400)] 
Revert "add explicit dependency, because ????"

This reverts commit ef3134512165cf9fc325751506b4dac2e2cb18ad.

nope.  Doesn't help

5 years agoadd explicit dependency, because ????
Alan T. DeKok [Wed, 16 Jun 2021 14:33:01 +0000 (10:33 -0400)] 
add explicit dependency, because ????

5 years agoInvert prereq order
Arran Cudbard-Bell [Wed, 16 Jun 2021 12:55:55 +0000 (07:55 -0500)] 
Invert prereq order

5 years agoMaybe fix linker issue?
Arran Cudbard-Bell [Wed, 16 Jun 2021 12:50:28 +0000 (07:50 -0500)] 
Maybe fix linker issue?

5 years agodbuff_init inputs should be non-null
Arran Cudbard-Bell [Wed, 16 Jun 2021 12:41:43 +0000 (07:41 -0500)] 
dbuff_init inputs should be non-null

5 years agoQuiet clang analyzer
Arran Cudbard-Bell [Wed, 16 Jun 2021 12:41:28 +0000 (07:41 -0500)] 
Quiet clang analyzer

5 years agoDeal with null request
Arran Cudbard-Bell [Wed, 16 Jun 2021 12:27:22 +0000 (07:27 -0500)] 
Deal with null request

5 years agoBetter message
Arran Cudbard-Bell [Wed, 16 Jun 2021 02:28:32 +0000 (21:28 -0500)] 
Better message

5 years agoremove global settings from suse logrotate, for what it's worth
Matthew Newton [Wed, 16 Jun 2021 11:01:20 +0000 (12:01 +0100)] 
remove global settings from suse logrotate, for what it's worth

5 years agoUse the same terminology for stateless and stateful tickets
Arran Cudbard-Bell [Wed, 16 Jun 2021 02:25:11 +0000 (21:25 -0500)] 
Use the same terminology for stateless and stateful tickets

5 years agoStore and restore session-state pairs in session-tickets
Arran Cudbard-Bell [Wed, 16 Jun 2021 02:22:04 +0000 (21:22 -0500)] 
Store and restore session-state pairs in session-tickets

5 years agoIgnore conf.h
Arran Cudbard-Bell [Wed, 16 Jun 2021 02:21:03 +0000 (21:21 -0500)] 
Ignore conf.h

5 years agoUse the same session-ticket keys across all threads
Arran Cudbard-Bell [Wed, 16 Jun 2021 02:20:34 +0000 (21:20 -0500)] 
Use the same session-ticket keys across all threads

5 years agoFix internal attribute encoding and decoding
Arran Cudbard-Bell [Wed, 16 Jun 2021 02:15:52 +0000 (21:15 -0500)] 
Fix internal attribute encoding and decoding

5 years agoPrint quotes around quoted strings
Arran Cudbard-Bell [Wed, 16 Jun 2021 02:15:02 +0000 (21:15 -0500)] 
Print quotes around quoted strings

5 years agov4: Amend async exec calls to ensure both child process exited and fd callbacks have...
Nick Porter [Tue, 15 Jun 2021 21:24:28 +0000 (22:24 +0100)] 
v4: Amend async exec calls to ensure both child process exited and fd callbacks have completed (#4113)

* Improve debug message - program has exited, not necessarily failed

* Report all output from exec

* Only resume unlang execution when both the child process has...

... exited and the fd event has seen an EOF

5 years agolist LIBFREERADIUS_SERVER in PREREQS
Alan T. DeKok [Tue, 15 Jun 2021 13:53:38 +0000 (09:53 -0400)] 
list LIBFREERADIUS_SERVER in PREREQS

5 years agocopied from process_radius
Alan T. DeKok [Tue, 15 Jun 2021 13:50:36 +0000 (09:50 -0400)] 
copied from process_radius

with and removed pretty much everything other than Access-Request
and replies.  The inner tunnel for TTLS doesn't do accounting,
CoA, etc.

5 years agojust load dictionaries from process_foo dict ptr
Alan T. DeKok [Tue, 15 Jun 2021 13:41:53 +0000 (09:41 -0400)] 
just load dictionaries from process_foo dict ptr

5 years agoreorder for consistency
Alan T. DeKok [Tue, 15 Jun 2021 13:38:47 +0000 (09:38 -0400)] 
reorder for consistency

5 years agotypo
Alan T. DeKok [Tue, 15 Jun 2021 13:35:18 +0000 (09:35 -0400)] 
typo

5 years agoorder library builds
Alan T. DeKok [Tue, 15 Jun 2021 12:01:04 +0000 (08:01 -0400)] 
order library builds

5 years agoCompile the accounting sections in process_radius
Arran Cudbard-Bell [Mon, 14 Jun 2021 23:54:24 +0000 (18:54 -0500)] 
Compile the accounting sections in process_radius

5 years agoclean up make files
Alan T. DeKok [Mon, 14 Jun 2021 21:14:27 +0000 (17:14 -0400)] 
clean up make files

there's no need to use "+=" where a variable is not previously set.

consistent layout is better than random layout.

5 years agoadd back a few more dependencies
Alan T. DeKok [Mon, 14 Jun 2021 21:09:34 +0000 (17:09 -0400)] 
add back a few more dependencies

thing in src/lib which need libraries from src/protocols should
still manually add libfreeradius-util.la

5 years agoRevert "Revert "clean up TGT_PREREQS""
Alan T. DeKok [Mon, 14 Jun 2021 20:41:09 +0000 (16:41 -0400)] 
Revert "Revert "clean up TGT_PREREQS""

This reverts commit b43d42cff2c7228b784924245908fa04dc36430d.

should work now

5 years agomake PRLIBS depend on the transitive libraries, too
Alan T. DeKok [Mon, 14 Jun 2021 20:23:31 +0000 (16:23 -0400)] 
make PRLIBS depend on the transitive libraries, too

5 years agoRevert "clean up TGT_PREREQS"
Alan T. DeKok [Mon, 14 Jun 2021 20:09:26 +0000 (16:09 -0400)] 
Revert "clean up TGT_PREREQS"

This reverts commit 15334e6f4f40681fa35c35682ad13aff4434bbc5.

We'll try this on a separate branch until CI passes

5 years agoadd flags to allow TLS 1.3 and 0x00 application data.
Alan T. DeKok [Mon, 14 Jun 2021 20:06:44 +0000 (16:06 -0400)] 
add flags to allow TLS 1.3 and 0x00 application data.

Looks OK, but testing would be nice.

5 years agomove bools/uint8 closer together
Alan T. DeKok [Mon, 14 Jun 2021 19:49:23 +0000 (15:49 -0400)] 
move bools/uint8 closer together

so struct packing is happier

5 years agoclean up TGT_PREREQS
Alan T. DeKok [Mon, 14 Jun 2021 19:46:56 +0000 (15:46 -0400)] 
clean up TGT_PREREQS

now that we transitive linking, we don't need to specify as many
libraries.

5 years agorecursively link in TGT_PREREQS
Alan T. DeKok [Mon, 14 Jun 2021 19:04:08 +0000 (15:04 -0400)] 
recursively link in TGT_PREREQS

5 years agomove binaries to the end of the include list
Alan T. DeKok [Mon, 14 Jun 2021 18:48:26 +0000 (14:48 -0400)] 
move binaries to the end of the include list

so that all pre-requisite libraries are included before the binaries.
This change helps us do automatic recursive resolution.

5 years agoInstall the tls dictionary?
Arran Cudbard-Bell [Mon, 14 Jun 2021 19:14:28 +0000 (14:14 -0500)] 
Install the tls dictionary?

5 years agoFix spurious dictionary errors
Arran Cudbard-Bell [Mon, 14 Jun 2021 18:57:05 +0000 (13:57 -0500)] 
Fix spurious dictionary errors

5 years agoMore minor fixes
Arran Cudbard-Bell [Mon, 14 Jun 2021 18:02:56 +0000 (13:02 -0500)] 
More minor fixes

5 years agoQuiet complaints about non-bools
Arran Cudbard-Bell [Mon, 14 Jun 2021 17:59:17 +0000 (12:59 -0500)] 
Quiet complaints about non-bools

5 years agoUnused label
Arran Cudbard-Bell [Mon, 14 Jun 2021 17:31:12 +0000 (12:31 -0500)] 
Unused label

5 years agoInstead of half-assing lock contention reduction using multiple SSL_CTXs, create...
Arran Cudbard-Bell [Sat, 12 Jun 2021 02:49:21 +0000 (21:49 -0500)] 
Instead of half-assing lock contention reduction using multiple SSL_CTXs, create one ctx per thread

5 years agoRe-arrange TLS code to make it more asynchronous
Arran Cudbard-Bell [Sat, 12 Jun 2021 01:46:34 +0000 (20:46 -0500)] 
Re-arrange TLS code to make it more asynchronous

- Use SSL_trace() to provide detailed tracing of handshake messages
- Add distinct cache modes (disabled, statefull, stateless, auto).
- Split more function declarations/structs out of tls/base.h to avoid circuclar dependencies.
- Add the start of process_tls which will hold caching and validation sections.
- Temporarily disable OCSP
- Split session-data and session-id attributes into EAP-SIM-AKA specific and EAP-TLS specific.
- Do async cache calls after the handshake has completed and as a separate distinct step.
- Mark TLS sessions as async, so OpenSSL does the setup correctly

5 years agoFix virtual_servers declaration
Arran Cudbard-Bell [Fri, 11 Jun 2021 17:31:10 +0000 (12:31 -0500)] 
Fix virtual_servers declaration

5 years agoFix range error
Arran Cudbard-Bell [Fri, 11 Jun 2021 16:43:10 +0000 (11:43 -0500)] 
Fix range error

5 years agoGuard OCSP code in ctx.c
Arran Cudbard-Bell [Fri, 11 Jun 2021 16:21:15 +0000 (11:21 -0500)] 
Guard OCSP code in ctx.c

5 years agoremove centos6 / ubuntu14 / ubuntu16 (EOL)
Matthew Newton [Fri, 11 Jun 2021 15:12:55 +0000 (16:12 +0100)] 
remove centos6 / ubuntu14 / ubuntu16 (EOL)

5 years agoadd libidn11-dev to debian build deps
Matthew Newton [Fri, 11 Jun 2021 15:02:42 +0000 (16:02 +0100)] 
add libidn11-dev to debian build deps

5 years agocrossbuild: pass --no-cache to docker build if asked
Matthew Newton [Fri, 11 Jun 2021 14:54:18 +0000 (15:54 +0100)] 
crossbuild: pass --no-cache to docker build if asked

5 years agoFix init/free callback priority sorting
Arran Cudbard-Bell [Fri, 11 Jun 2021 16:10:56 +0000 (11:10 -0500)] 
Fix init/free callback priority sorting

5 years agoAdd debug function for dl_loader
Arran Cudbard-Bell [Fri, 11 Jun 2021 15:50:21 +0000 (10:50 -0500)] 
Add debug function for dl_loader

5 years agoAdd fr_dlist_foreach
Arran Cudbard-Bell [Fri, 11 Jun 2021 15:49:10 +0000 (10:49 -0500)] 
Add fr_dlist_foreach

5 years agoInclude tls/log.h
Arran Cudbard-Bell [Fri, 11 Jun 2021 15:48:30 +0000 (10:48 -0500)] 
Include tls/log.h

5 years agoFix redundant declarations
Arran Cudbard-Bell [Fri, 11 Jun 2021 15:32:06 +0000 (10:32 -0500)] 
Fix redundant declarations

5 years agoMark up virtual_server API as nonnull
Arran Cudbard-Bell [Fri, 11 Jun 2021 15:12:10 +0000 (10:12 -0500)] 
Mark up virtual_server API as nonnull

5 years agoencode/decode function signatures relate to the nested attribute work and shouldn...
Arran Cudbard-Bell [Fri, 11 Jun 2021 15:01:08 +0000 (10:01 -0500)] 
encode/decode function signatures relate to the nested attribute work and shouldn't be changed yet

This reverts commit e86b4d53c4a8a37d75c2e5e46edb9f972bddfbfe.

5 years ago...and another
Arran Cudbard-Bell [Fri, 11 Jun 2021 03:35:30 +0000 (22:35 -0500)] 
...and another

5 years agoTypo
Arran Cudbard-Bell [Fri, 11 Jun 2021 03:26:19 +0000 (22:26 -0500)] 
Typo

5 years agoFix session handshake debugging
Arran Cudbard-Bell [Thu, 10 Jun 2021 23:38:39 +0000 (18:38 -0500)] 
Fix session handshake debugging

5 years agoImprove debugging in interpret.c
Arran Cudbard-Bell [Mon, 7 Jun 2021 00:40:35 +0000 (19:40 -0500)] 
Improve debugging in interpret.c

5 years agoNo need to set frame->process again here...
Arran Cudbard-Bell [Mon, 7 Jun 2021 00:40:20 +0000 (19:40 -0500)] 
No need to set frame->process again here...

5 years agoAdd typed memdup function
Arran Cudbard-Bell [Mon, 7 Jun 2021 00:39:36 +0000 (19:39 -0500)] 
Add typed memdup function

5 years agoHave unlang_call_push return an unlang_action_t
Arran Cudbard-Bell [Mon, 7 Jun 2021 00:39:22 +0000 (19:39 -0500)] 
Have unlang_call_push return an unlang_action_t

5 years agoAdd OpenSSL BIOs that are plumbed into our logging system
Arran Cudbard-Bell [Mon, 7 Jun 2021 00:37:22 +0000 (19:37 -0500)] 
Add OpenSSL BIOs that are plumbed into our logging system

5 years agoSync up dbuff/sbuff shift and update
Arran Cudbard-Bell [Thu, 10 Jun 2021 20:20:53 +0000 (15:20 -0500)] 
Sync up dbuff/sbuff shift and update

Make shift more efficient by avoiding memmove if the entire contents of the buffer is shifted.

Fix sbuff shift so it's not broken.

5 years agocleanups as lerned from dhcpv6
Alan T. DeKok [Wed, 9 Jun 2021 10:42:16 +0000 (06:42 -0400)] 
cleanups as lerned from dhcpv6

5 years agoadd encode_option_data(), as with dhcpv4
Alan T. DeKok [Wed, 9 Jun 2021 10:25:30 +0000 (06:25 -0400)] 
add encode_option_data(), as with dhcpv4

and test cases

5 years agov4: Convert %(exec: ) to new xlat API (#4106)
Nick Porter [Wed, 9 Jun 2021 01:31:32 +0000 (02:31 +0100)] 
v4: Convert %(exec: ) to new xlat API (#4106)

* Define fr_exec_state_t for tracking the state of exec calls

Taken from unlang_frame_state_tmpl_t

* Define fr_exec_wait_start_io() for calling child processes

* Define callbacks for use with fr_exec_wait_start_io

* Convert %(exec: ) to new xlat API and make async

* Correct exec module tests and convert to new syntax

* Add test for exec with string argument containing special chars

* Convert unlang_tmpl_exec_wait_resume() to use fr_exec_wait_start_io()

* Remove unused unlang_tmpl_exec_timeout()

Functionality now in exec.c

* Remove unused unlang_tmpl_exec_stdout_read()

Functionality now in exec.c

* Remove unused unlang_tmpl_exec_waitpid()

Functionality now in exec.c

* Exec exit status codes are now parsed in exec.c

* Update documentation for new %(exec: ) syntax

* Always store status code back in the provided pointer

* Add a test which reads command line expanded args and env variables

* Add tests with a non-zero exit code from the child process

* Amend documentation for echo module so it makes more sense

5 years agonon-structural types must exist
Alan T. DeKok [Tue, 8 Jun 2021 19:21:13 +0000 (15:21 -0400)] 
non-structural types must exist

5 years agoadd more scan targets, so we don't have to re-build everything
Alan T. DeKok [Tue, 8 Jun 2021 19:16:51 +0000 (15:16 -0400)] 
add more scan targets, so we don't have to re-build everything

5 years agothese encode/decode funcs are only used for test points
Alan T. DeKok [Tue, 8 Jun 2021 18:55:35 +0000 (14:55 -0400)] 
these encode/decode funcs are only used for test points

we'll gradually move everything to a new API

5 years agoupdate comments
Alan T. DeKok [Tue, 8 Jun 2021 17:09:48 +0000 (13:09 -0400)] 
update comments

5 years agomove label
Alan T. DeKok [Tue, 8 Jun 2021 15:32:13 +0000 (11:32 -0400)] 
move label

5 years agomake everything in DHCPv4 handle nested pairs
Alan T. DeKok [Tue, 8 Jun 2021 14:47:42 +0000 (10:47 -0400)] 
make everything in DHCPv4 handle nested pairs

5 years agofix tests
Alan T. DeKok [Tue, 8 Jun 2021 14:06:49 +0000 (10:06 -0400)] 
fix tests

5 years agouse correct names
Alan T. DeKok [Tue, 8 Jun 2021 13:51:03 +0000 (09:51 -0400)] 
use correct names

5 years agolet's use the v4 APIs instead of just copying code from v3
Alan T. DeKok [Tue, 8 Jun 2021 13:49:35 +0000 (09:49 -0400)] 
let's use the v4 APIs instead of just copying code from v3

5 years agoupdate docs and fixes
Alan T. DeKok [Tue, 8 Jun 2021 13:23:33 +0000 (09:23 -0400)] 
update docs and fixes

5 years agoallow for nested VPs in one place
Alan T. DeKok [Tue, 8 Jun 2021 13:25:01 +0000 (09:25 -0400)] 
allow for nested VPs in one place

5 years agoAdd %{mschap:Domain-Name}. Fixes #3944 (#4104)
Jorge Pereira [Tue, 8 Jun 2021 13:15:19 +0000 (10:15 -0300)] 
Add %{mschap:Domain-Name}. Fixes #3944 (#4104)

5 years ago"NOT_SET" is more descriptive than "UNKNOWN"
Arran Cudbard-Bell [Sun, 6 Jun 2021 02:14:11 +0000 (21:14 -0500)] 
"NOT_SET" is more descriptive than "UNKNOWN"

Frame rcodes are also allowed to be "NOT_SET" so don't assert

5 years agoAdd UNLANG_ACTION_FAIL to make it easier to deal with common unlang functions failing
Arran Cudbard-Bell [Sun, 6 Jun 2021 00:27:24 +0000 (19:27 -0500)] 
Add UNLANG_ACTION_FAIL to make it easier to deal with common unlang functions failing

It lets us return an unlang_action_t from push functions, which results in less boilerplate.

5 years agoAdd fr_debug_get_state() that works on recent versions of macOS
Arran Cudbard-Bell [Sun, 6 Jun 2021 00:24:50 +0000 (19:24 -0500)] 
Add fr_debug_get_state() that works on recent versions of macOS

5 years agoUse correct table parse function
Arran Cudbard-Bell [Sat, 5 Jun 2021 20:28:02 +0000 (15:28 -0500)] 
Use correct table parse function

5 years agoMore EAP-AKA-SIM docs
Arran Cudbard-Bell [Sat, 5 Jun 2021 20:21:44 +0000 (15:21 -0500)] 
More EAP-AKA-SIM docs

5 years agotypo
Arran Cudbard-Bell [Fri, 4 Jun 2021 00:53:40 +0000 (19:53 -0500)] 
typo

5 years agoplace-holder for TLS 1.3 updates
Alan T. DeKok [Fri, 4 Jun 2021 15:02:23 +0000 (11:02 -0400)] 
place-holder for TLS 1.3 updates

5 years agoOnly one declaration for fr_tls_session_async_handshake() (#4102)
James Jones [Fri, 4 Jun 2021 14:02:38 +0000 (09:02 -0500)] 
Only one declaration for fr_tls_session_async_handshake() (#4102)

Removed the one inconsistent with uses.

5 years agoStart of EAP-TLS async handshake support
Arran Cudbard-Bell [Fri, 4 Jun 2021 00:51:01 +0000 (19:51 -0500)] 
Start of EAP-TLS async handshake support

This is needed to support async cache calls, and certificate validation

5 years agoCall module resume functions if set and UNLANG_ACTION_CALCULATE_RESULT is returned
Arran Cudbard-Bell [Fri, 4 Jun 2021 00:49:44 +0000 (19:49 -0500)] 
Call module resume functions if set and UNLANG_ACTION_CALCULATE_RESULT is returned

5 years agoCall the repeat function if the initial function returned UNLANG_ACTION_CALCULATE_RES...
Arran Cudbard-Bell [Fri, 4 Jun 2021 00:48:58 +0000 (19:48 -0500)] 
Call the repeat function if the initial function returned UNLANG_ACTION_CALCULATE_RESULT and we have one set

This is identical behaviour to the modcall code

5 years agoFix multiple issues with unlang function calls and make the code a bit more understan...
Arran Cudbard-Bell [Thu, 3 Jun 2021 23:23:11 +0000 (18:23 -0500)] 
Fix multiple issues with unlang function calls and make the code a bit more understandable