]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agomake it "const", and non-null
Alan T. DeKok [Thu, 18 Apr 2019 14:57:15 +0000 (10:57 -0400)] 
make it "const", and non-null

7 years agorun sections for Acct-Status-Type
Alan T. DeKok [Thu, 18 Apr 2019 14:47:26 +0000 (10:47 -0400)] 
run sections for Acct-Status-Type

so that we can do different things in different circumstances

7 years agodoxygen
Alan T. DeKok [Thu, 18 Apr 2019 13:54:31 +0000 (09:54 -0400)] 
doxygen

7 years agoRemove irrelevant comments
Arran Cudbard-Bell [Thu, 18 Apr 2019 13:27:23 +0000 (09:27 -0400)] 
Remove irrelevant comments

7 years agomake unlang_compile_subsectio() take a CONF_SECTION
Alan T. DeKok [Thu, 18 Apr 2019 13:20:41 +0000 (09:20 -0400)] 
make unlang_compile_subsectio() take a CONF_SECTION

instead of name1/name2.

7 years agopass the process_app_cs config to the process function
Alan T. DeKok [Thu, 18 Apr 2019 13:19:56 +0000 (09:19 -0400)] 
pass the process_app_cs config to the process function

7 years agodict is vqp <sigh>
Alan T. DeKok [Thu, 18 Apr 2019 13:14:08 +0000 (09:14 -0400)] 
dict is vqp <sigh>

7 years agore-run autoconf
Alan T. DeKok [Thu, 18 Apr 2019 12:53:30 +0000 (08:53 -0400)] 
re-run autoconf

7 years agotypos. Closes #2614
Alan T. DeKok [Thu, 18 Apr 2019 12:47:53 +0000 (08:47 -0400)] 
typos.  Closes #2614

7 years agoMerge pull request #2618 from jpereira/v4/doc-spaces
Alan DeKok [Thu, 18 Apr 2019 12:55:06 +0000 (08:55 -0400)] 
Merge pull request #2618 from jpereira/v4/doc-spaces

two spaces after '#'. No spaces at the end of a line.

7 years agoAdd support for pushing modules onto the stack
Arran Cudbard-Bell [Thu, 18 Apr 2019 12:17:40 +0000 (08:17 -0400)] 
Add support for pushing modules onto the stack

7 years agoTypo
Arran Cudbard-Bell [Thu, 18 Apr 2019 12:09:44 +0000 (08:09 -0400)] 
Typo

7 years agoLast of the fixes to cleanup frame state correctly (hopefully)
Arran Cudbard-Bell [Thu, 18 Apr 2019 12:09:44 +0000 (08:09 -0400)] 
Last of the fixes to cleanup frame state correctly (hopefully)

7 years agocompile via MOD_AUTHENTICATE as it should be
Alan T. DeKok [Thu, 18 Apr 2019 11:10:23 +0000 (07:10 -0400)] 
compile via MOD_AUTHENTICATE as it should be

7 years agoInitialise subcs
Arran Cudbard-Bell [Thu, 18 Apr 2019 03:46:28 +0000 (23:46 -0400)] 
Initialise subcs

7 years agoUnused
Arran Cudbard-Bell [Thu, 18 Apr 2019 03:43:18 +0000 (23:43 -0400)] 
Unused

7 years agoTemporary hack to get EAP-TLS virtual server sections working again
Arran Cudbard-Bell [Thu, 18 Apr 2019 03:38:43 +0000 (23:38 -0400)] 
Temporary hack to get EAP-TLS virtual server sections working again

7 years agoonly test dependencies if it's a target that needs them
Matthew Newton [Thu, 18 Apr 2019 01:31:45 +0000 (02:31 +0100)] 
only test dependencies if it's a target that needs them

7 years agotwo spaces after '#'. No spaces at the end of a line. 2618/head
Jorge Pereira [Thu, 18 Apr 2019 01:10:40 +0000 (22:10 -0300)] 
two spaces after '#'. No spaces at the end of a line.

via:

perl -p -i -e 's/^# ([^ \t])/#  $1/;s/^([ \t]+)# ([^ \t])/$1#  $2/;s/[ \t]+$//' raddb/site-available/*

7 years agodon't compile sections manually
Alan T. DeKok [Thu, 18 Apr 2019 00:58:07 +0000 (20:58 -0400)] 
don't compile sections manually

we rely on the rest of the infrastructure to do that

7 years agoNo, we don't need this.
Alan T. DeKok [Thu, 18 Apr 2019 00:57:54 +0000 (20:57 -0400)] 
No, we don't need this.

7 years agouse new API for compiling processing sections
Alan T. DeKok [Thu, 18 Apr 2019 00:40:46 +0000 (20:40 -0400)] 
use new API for compiling processing sections

7 years agouse new API to compile subsections
Alan T. DeKok [Wed, 17 Apr 2019 15:24:18 +0000 (11:24 -0400)] 
use new API to compile subsections

7 years agouse new API to compile subsections of a virtual server
Alan T. DeKok [Wed, 17 Apr 2019 15:20:37 +0000 (11:20 -0400)] 
use new API to compile subsections of a virtual server

7 years agouse new API to compile processing sections in proto_radius
Alan T. DeKok [Wed, 17 Apr 2019 15:13:40 +0000 (11:13 -0400)] 
use new API to compile processing sections in proto_radius

7 years agoadded function to compile sections of a virtual server
Alan T. DeKok [Wed, 17 Apr 2019 15:11:43 +0000 (11:11 -0400)] 
added function to compile sections of a virtual server

so it's now table driven, instead of code all over the place

7 years agoMerge pull request #2617 from jpereira/v4/doc10
Matthew Newton [Thu, 18 Apr 2019 00:28:05 +0000 (01:28 +0100)] 
Merge pull request #2617 from jpereira/v4/doc10

Some updates

7 years agoMerge pull request #2616 from jpereira/v4/doc-check
Matthew Newton [Thu, 18 Apr 2019 00:26:20 +0000 (01:26 +0100)] 
Merge pull request #2616 from jpereira/v4/doc-check

doc: Check the dependencies

7 years agoUpdate trigger.conf 2617/head
Jorge Pereira [Thu, 18 Apr 2019 00:13:16 +0000 (21:13 -0300)] 
Update trigger.conf

7 years agoUpdate clients.conf
Jorge Pereira [Thu, 18 Apr 2019 00:13:16 +0000 (21:13 -0300)] 
Update clients.conf

7 years agoUpdate templates.conf
Jorge Pereira [Thu, 18 Apr 2019 00:10:05 +0000 (21:10 -0300)] 
Update templates.conf

7 years agoUpdate experimental.conf
Jorge Pereira [Thu, 18 Apr 2019 00:01:45 +0000 (21:01 -0300)] 
Update experimental.conf

7 years agoUpdate clients.conf
Jorge Pereira [Thu, 18 Apr 2019 00:01:45 +0000 (21:01 -0300)] 
Update clients.conf

7 years agoUpdate raddb/debug.conf
Jorge Pereira [Wed, 17 Apr 2019 23:48:31 +0000 (20:48 -0300)] 
Update raddb/debug.conf

7 years agoUpdate raddb/dictionary
Jorge Pereira [Wed, 17 Apr 2019 23:48:09 +0000 (20:48 -0300)] 
Update raddb/dictionary

7 years agodoc: Minor fixes
Jorge Pereira [Wed, 17 Apr 2019 23:34:10 +0000 (20:34 -0300)] 
doc: Minor fixes

7 years agodoc: Check the dependencies 2616/head
Jorge Pereira [Thu, 18 Apr 2019 00:19:10 +0000 (21:19 -0300)] 
doc: Check the dependencies

7 years agodoc: Fix the 'clean' target
Jorge Pereira [Wed, 17 Apr 2019 23:15:16 +0000 (20:15 -0300)] 
doc: Fix the 'clean' target

7 years agodoc: Clean up
Jorge Pereira [Wed, 17 Apr 2019 23:47:07 +0000 (20:47 -0300)] 
doc: Clean up

7 years agoSet max retransmission duration to indefinite too
Arran Cudbard-Bell [Wed, 17 Apr 2019 22:14:52 +0000 (18:14 -0400)] 
Set max retransmission duration to indefinite too

7 years agoSet default for detail file to retransmit indefinitely
Arran Cudbard-Bell [Wed, 17 Apr 2019 22:10:04 +0000 (18:10 -0400)] 
Set default for detail file to retransmit indefinitely

7 years agoRun the fail section is we fail...
Arran Cudbard-Bell [Wed, 17 Apr 2019 22:09:48 +0000 (18:09 -0400)] 
Run the fail section is we fail...

7 years agoRemove configure
Arran Cudbard-Bell [Wed, 17 Apr 2019 20:12:18 +0000 (16:12 -0400)] 
Remove configure

7 years agoInitialise RADIUS library
Arran Cudbard-Bell [Wed, 17 Apr 2019 20:09:47 +0000 (16:09 -0400)] 
Initialise RADIUS library

7 years agoFix xlat debug function
Arran Cudbard-Bell [Wed, 17 Apr 2019 19:54:22 +0000 (15:54 -0400)] 
Fix xlat debug function

7 years agoDon't need eap-pwd configure checks either
Arran Cudbard-Bell [Wed, 17 Apr 2019 19:28:26 +0000 (15:28 -0400)] 
Don't need eap-pwd configure checks either

7 years agoDon't need eap-fast configure script anymore
Arran Cudbard-Bell [Wed, 17 Apr 2019 19:03:40 +0000 (15:03 -0400)] 
Don't need eap-fast configure script anymore

Our minimum OpenSSL version is now 1.0.2

7 years agoClean up unlang interpreter src more...
Arran Cudbard-Bell [Wed, 17 Apr 2019 04:01:24 +0000 (00:01 -0400)] 
Clean up unlang interpreter src more...

7 years agoResult of ./autogen.sh #2500
Jorge Pereira [Wed, 17 Apr 2019 16:10:02 +0000 (13:10 -0300)] 
Result of ./autogen.sh #2500

7 years agorlm_perl: Fix m4 path #2500
Jorge Pereira [Wed, 17 Apr 2019 16:08:51 +0000 (13:08 -0300)] 
rlm_perl: Fix m4 path #2500

7 years agoFix typo in configure.ac #2500
Jorge Pereira [Wed, 17 Apr 2019 16:08:31 +0000 (13:08 -0300)] 
Fix typo in configure.ac #2500

7 years agoinsert struct, not pointer to struct
Alan T. DeKok [Wed, 17 Apr 2019 13:01:38 +0000 (09:01 -0400)] 
insert struct, not pointer to struct

7 years agouse correct parent
Alan T. DeKok [Wed, 17 Apr 2019 12:36:33 +0000 (08:36 -0400)] 
use correct parent

7 years agomove app_io_process bootstrap / instantiate
Alan T. DeKok [Wed, 17 Apr 2019 12:23:12 +0000 (08:23 -0400)] 
move app_io_process bootstrap / instantiate

to virtual_server.c  Which is really where it belongs

7 years agocast to (void const*) so that the caller doesn't have to
Alan T. DeKok [Wed, 17 Apr 2019 12:22:15 +0000 (08:22 -0400)] 
cast to (void const*) so that the caller doesn't have to

7 years agosave process && instance
Alan T. DeKok [Wed, 17 Apr 2019 12:10:41 +0000 (08:10 -0400)] 
save process && instance

so that we can better do virtual server calls

7 years agoregenerate
Alan T. DeKok [Tue, 16 Apr 2019 14:34:26 +0000 (10:34 -0400)] 
regenerate

7 years agotry to set kqueue include path
Alan T. DeKok [Tue, 16 Apr 2019 14:33:33 +0000 (10:33 -0400)] 
try to set kqueue include path

7 years agoremove duplicate check
Alan T. DeKok [Tue, 16 Apr 2019 14:30:52 +0000 (10:30 -0400)] 
remove duplicate check

7 years agomake directory, too
Alan T. DeKok [Tue, 16 Apr 2019 13:01:13 +0000 (09:01 -0400)] 
make directory, too

7 years agoSuppress type-limits warnings
Arran Cudbard-Bell [Mon, 15 Apr 2019 18:34:52 +0000 (14:34 -0400)] 
Suppress type-limits warnings

7 years agoregister the master sockets
Alan T. DeKok [Sun, 14 Apr 2019 16:31:47 +0000 (12:31 -0400)] 
register the master sockets

so we can tell when there are conflicts

7 years agoadd API to look up / add listeners
Alan T. DeKok [Sun, 14 Apr 2019 16:30:39 +0000 (12:30 -0400)] 
add API to look up / add listeners

so that we can track the master sockets.

Note that we're looking for conflicts, so the typical comparison
checks don't work here.

7 years agoalways set scope ID, even for IPv4 sockets
Alan T. DeKok [Sun, 14 Apr 2019 15:57:40 +0000 (11:57 -0400)] 
always set scope ID, even for IPv4 sockets

because we can find to an interface in IPv4, too

7 years agoadd machine-readable socket name functions
Alan T. DeKok [Sun, 14 Apr 2019 13:41:56 +0000 (09:41 -0400)] 
add machine-readable socket name functions

and use them in DHCPv4, RADIUS, and VQP.  So that we can
detect duplicate socket openings.

7 years agofix error message
Alan T. DeKok [Sun, 14 Apr 2019 12:18:23 +0000 (08:18 -0400)] 
fix error message

7 years agoRevert "'listen' sections can only be in a virtual server"
Alan T. DeKok [Sun, 14 Apr 2019 12:15:21 +0000 (08:15 -0400)] 
Revert "'listen' sections can only be in a virtual server"

This reverts commit 7eaadf3e64c1c19f1912ec310bf3ba0aaa11ddae.

the structure of the config parser `server` -> `listen` already
prevents this

7 years ago'listen' sections can only be in a virtual server
Alan T. DeKok [Sun, 14 Apr 2019 10:44:00 +0000 (06:44 -0400)] 
'listen' sections can only be in a virtual server

7 years agoRemove libressl version checks
Arran Cudbard-Bell [Fri, 12 Apr 2019 16:19:42 +0000 (18:19 +0200)] 
Remove libressl version checks

If someone wants to contribute checks which use actual LibreSSL version numbers, so we're not stuck supporting the initial API version of LibreSSL at the point it was forked from OpenSSL, then they're welcome to do so, otherwise we will not continue to support these lazy, short sighted hacks.

7 years agoAdd ubsan support
Arran Cudbard-Bell [Fri, 12 Apr 2019 13:25:02 +0000 (15:25 +0200)] 
Add ubsan support

7 years agoBuild sigtran configure
Arran Cudbard-Bell [Fri, 12 Apr 2019 13:24:54 +0000 (15:24 +0200)] 
Build sigtran configure

7 years agoFix lua tests on macOS
Arran Cudbard-Bell [Fri, 12 Apr 2019 13:24:43 +0000 (15:24 +0200)] 
Fix lua tests on macOS

7 years agoFixup error messages in EAP-PWD
Arran Cudbard-Bell [Fri, 12 Apr 2019 01:36:09 +0000 (03:36 +0200)] 
Fixup error messages in EAP-PWD

7 years agoFixup copyright notices in EAP-PWD
Arran Cudbard-Bell [Fri, 12 Apr 2019 01:35:48 +0000 (03:35 +0200)] 
Fixup copyright notices in EAP-PWD

7 years agoCleanups in EAP-PWD
Arran Cudbard-Bell [Fri, 12 Apr 2019 01:28:27 +0000 (03:28 +0200)] 
Cleanups in EAP-PWD

7 years agoEAP-pwd: validate received scalar and element
Mathy Vanhoef [Sat, 30 Mar 2019 17:54:47 +0000 (17:54 +0000)] 
EAP-pwd: validate received scalar and element

When processing an EAP-pwd Commit frame, the peer's scalar and elliptic curve
point were not validated. This allowed an adversary to bypass authentication,
and impersonate any user.

Fix this vulnerability by assuring the received scalar lies within the valid
range, and by checking that the received element is not the point at infinity
and lies on the elliptic curve being used.

7 years agolook in root for virtual server
Alan T. DeKok [Mon, 8 Apr 2019 20:31:42 +0000 (16:31 -0400)] 
look in root for virtual server

as virtual servers haven't been bootstrapped yet, so we can't
call virtual_server_find()

7 years agoMerge pull request #2605 from nchaigne/master-201904-man-unlang
Alan DeKok [Mon, 8 Apr 2019 17:18:21 +0000 (13:18 -0400)] 
Merge pull request #2605 from nchaigne/master-201904-man-unlang

Update man for randstr

7 years agodoxygen
Alan T. DeKok [Mon, 8 Apr 2019 17:17:26 +0000 (13:17 -0400)] 
doxygen

7 years agoUpdate man for randstr 2605/head
nchaigne [Mon, 8 Apr 2019 16:28:24 +0000 (18:28 +0200)] 
Update man for randstr

h/H have been replaced with b (binary data).
Also fixed a few typos.

7 years agorename "aux.c", as Windows still thinks it's 1982
Alan T. DeKok [Mon, 8 Apr 2019 16:17:39 +0000 (12:17 -0400)] 
rename "aux.c", as Windows still thinks it's 1982

7 years agohandle cases when TLV exactly fits parent option. Helps with #2601
Alan T. DeKok [Mon, 8 Apr 2019 13:07:51 +0000 (09:07 -0400)] 
handle cases when TLV exactly fits parent option.  Helps with #2601

7 years agohandle options with no data. Helps with #2601
Alan T. DeKok [Mon, 8 Apr 2019 12:29:48 +0000 (08:29 -0400)] 
handle options with no data. Helps with #2601

and add test cases

7 years agoset the correct size of the data returned
Alan T. DeKok [Mon, 8 Apr 2019 12:21:26 +0000 (08:21 -0400)] 
set the correct size of the data returned

7 years agoRework subrequest code to allow subrequests that persist and run through multiple...
Arran Cudbard-Bell [Sun, 7 Apr 2019 21:44:47 +0000 (17:44 -0400)] 
Rework subrequest code to allow subrequests that persist and run through multiple sections

7 years agoNot actually a bool...
Arran Cudbard-Bell [Sun, 7 Apr 2019 17:06:02 +0000 (13:06 -0400)] 
Not actually a bool...

7 years agoExpand interface for doing things with virtual servers
Arran Cudbard-Bell [Sun, 7 Apr 2019 17:04:36 +0000 (13:04 -0400)] 
Expand interface for doing things with virtual servers

7 years agorlm_sigtran: Mute error message
Jorge Pereira [Thu, 4 Apr 2019 16:42:27 +0000 (13:42 -0300)] 
rlm_sigtran: Mute error message

7 years agoAdd " to Line 143
mohammed059 [Sun, 7 Apr 2019 11:21:06 +0000 (14:21 +0300)] 
Add " to Line 143

7 years agoAdd interface spawning subrequests from modules
Arran Cudbard-Bell [Sun, 7 Apr 2019 02:21:32 +0000 (22:21 -0400)] 
Add interface spawning subrequests from modules

7 years agoFormatting
Arran Cudbard-Bell [Sun, 7 Apr 2019 02:07:58 +0000 (22:07 -0400)] 
Formatting

7 years agoCleanup frame state when processing siblings
Arran Cudbard-Bell [Sat, 6 Apr 2019 23:29:07 +0000 (19:29 -0400)] 
Cleanup frame state when processing siblings

7 years agoMore documentation
Arran Cudbard-Bell [Sat, 6 Apr 2019 16:25:26 +0000 (12:25 -0400)] 
More documentation

7 years agoDoxygen
Arran Cudbard-Bell [Sat, 6 Apr 2019 15:48:42 +0000 (11:48 -0400)] 
Doxygen

7 years agoprint out where the output differs
Alan T. DeKok [Sat, 6 Apr 2019 12:57:36 +0000 (08:57 -0400)] 
print out where the output differs

which helps with long output

7 years agofix TLV encoding
Alan T. DeKok [Sat, 6 Apr 2019 12:54:08 +0000 (08:54 -0400)] 
fix TLV encoding

by adding the current TLV header, which was missing in the
previous commit.

Also clean up the code and use extend_option() where the data
is more than 255 bytes.

We try to avoid splitting data across multiple options.  The result
is that the encoder may output multiple options of the same number,
BUT where the lengths are smaller than 255.  This means that any
decoder can just decode the data in-place most of the time.

We split data across multiple options ONLY when the encoded data
is more than 255 bytes.  And even then, we try to start that
encoding on a new option.

7 years agoCheck for errors when registering aux functions
Arran Cudbard-Bell [Sat, 6 Apr 2019 00:27:39 +0000 (20:27 -0400)] 
Check for errors when registering aux functions

7 years agoMove module event handling and declarations out of the various places they were scatt...
Arran Cudbard-Bell [Sat, 6 Apr 2019 00:24:46 +0000 (20:24 -0400)] 
Move module event handling and declarations out of the various places they were scattered, and into module.h, module_priv.h, and module.c in the unlang library

7 years agoFinish breaking keywords out into separate source files
Arran Cudbard-Bell [Fri, 5 Apr 2019 23:30:45 +0000 (19:30 -0400)] 
Finish breaking keywords out into separate source files

7 years agoTypo
Arran Cudbard-Bell [Fri, 5 Apr 2019 22:02:12 +0000 (18:02 -0400)] 
Typo