]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
6 years agopreliminary work to make various fields configurable
Alan T. DeKok [Tue, 21 Apr 2020 19:08:10 +0000 (15:08 -0400)] 
preliminary work to make various fields configurable

6 years agoBetter debugging
Arran Cudbard-Bell [Tue, 21 Apr 2020 18:55:18 +0000 (13:55 -0500)] 
Better debugging

6 years agoinclude src/build earlier in the process
Alan T. DeKok [Tue, 21 Apr 2020 12:53:39 +0000 (08:53 -0400)] 
include src/build earlier in the process

6 years agoonly build if we have gnumake.h
Alan T. DeKok [Tue, 21 Apr 2020 12:51:50 +0000 (08:51 -0400)] 
only build if we have gnumake.h

6 years agohoist autoconf.mk rules higher
Alan T. DeKok [Tue, 21 Apr 2020 12:48:16 +0000 (08:48 -0400)] 
hoist autoconf.mk rules higher

so that they are accessible to the entire build system

6 years agoadd tests for <gnumake.h>, and regenerate
Alan T. DeKok [Tue, 21 Apr 2020 12:47:01 +0000 (08:47 -0400)] 
add tests for <gnumake.h>, and regenerate

6 years agoremove old mingw / windows stuff.
Alan T. DeKok [Tue, 21 Apr 2020 12:40:51 +0000 (08:40 -0400)] 
remove old mingw / windows stuff.

we don't need it

6 years agorlm_radius: Unused
Arran Cudbard-Bell [Tue, 21 Apr 2020 02:32:37 +0000 (21:32 -0500)] 
rlm_radius: Unused

6 years agoFix call to rad_assert
Arran Cudbard-Bell [Tue, 21 Apr 2020 01:31:23 +0000 (20:31 -0500)] 
Fix call to rad_assert

6 years agorlm_radius: Do less work when replicating
Arran Cudbard-Bell [Tue, 21 Apr 2020 01:17:25 +0000 (20:17 -0500)] 
rlm_radius: Do less work when replicating

6 years agoh->tt may be NULL, to match conn_close()
Alan T. DeKok [Tue, 21 Apr 2020 00:31:41 +0000 (20:31 -0400)] 
h->tt may be NULL, to match conn_close()

6 years agocomment out things we don't need
Alan T. DeKok [Tue, 21 Apr 2020 00:10:33 +0000 (20:10 -0400)] 
comment out things we don't need

6 years agorlm_radius/test_plan: Fix typo (#3395)
Jorge Pereira [Mon, 20 Apr 2020 22:47:41 +0000 (19:47 -0300)] 
rlm_radius/test_plan: Fix typo (#3395)

6 years agorework to cache handles
Alan T. DeKok [Mon, 20 Apr 2020 20:46:35 +0000 (16:46 -0400)] 
rework to cache handles

and simplify the pathname finding

6 years agowe don't need a configuration flag for use_delta
Alan T. DeKok [Mon, 20 Apr 2020 20:35:56 +0000 (16:35 -0400)] 
we don't need a configuration flag for use_delta

it's safe to always set it

6 years agoRevert "Add documentation for 'use_deltas'. ref #3390 (#3392)"
Alan T. DeKok [Mon, 20 Apr 2020 20:32:00 +0000 (16:32 -0400)] 
Revert "Add documentation for 'use_deltas'. ref #3390 (#3392)"

This reverts commit 3b7e93ac6a6f159adabda8285b1a4eaefebe5c2c.

after some investigation, this doesn't need to be a user-configurable
flag.

6 years agotypo
Alan T. DeKok [Fri, 17 Apr 2020 21:40:22 +0000 (17:40 -0400)] 
typo

6 years agoadd 'make doc'
Alan T. DeKok [Fri, 17 Apr 2020 21:35:58 +0000 (17:35 -0400)] 
add 'make doc'

because I can't remember anything more complex, and I keep
typing "make doc" which doesn't work.

So if it's the first thing I type, it should work.

6 years agoAdd initial code for dlopen() from within make. (#3380)
James Jones [Mon, 20 Apr 2020 19:26:44 +0000 (14:26 -0500)] 
Add initial code for dlopen() from within make. (#3380)

* Add code to get absolute path of dynamic library files from within make.

* Add extern declaration to make -Wmissing-variable-declarations happy.

6 years agoAdd documentation for 'use_deltas'. ref #3390 (#3392)
Jorge Pereira [Mon, 20 Apr 2020 19:25:04 +0000 (16:25 -0300)] 
Add documentation for 'use_deltas'. ref #3390 (#3392)

6 years agoEnable support for delta CRLs (#3390)
robober [Mon, 20 Apr 2020 12:46:28 +0000 (19:46 +0700)] 
Enable support for delta CRLs (#3390)

Co-authored-by: Pavel Istomin <pavel.istomin@eltex.loc>
6 years agoTypo
Arran Cudbard-Bell [Sun, 19 Apr 2020 02:08:31 +0000 (21:08 -0500)] 
Typo

6 years agotrunk: Add triggers for request state transitions in debug builds
Arran Cudbard-Bell [Sun, 19 Apr 2020 01:56:08 +0000 (20:56 -0500)] 
trunk: Add triggers for request state transitions in debug builds

6 years agoFix order
Arran Cudbard-Bell [Sun, 19 Apr 2020 01:42:58 +0000 (20:42 -0500)] 
Fix order

6 years agotypo
Arran Cudbard-Bell [Sun, 19 Apr 2020 01:33:10 +0000 (20:33 -0500)] 
typo

6 years agoconnection: Use lookup table for connection names
Arran Cudbard-Bell [Sat, 18 Apr 2020 20:51:51 +0000 (15:51 -0500)] 
connection: Use lookup table for connection names

6 years agotrunk: fr_dlist_remove returns NULL when removing the list head
Arran Cudbard-Bell [Sat, 18 Apr 2020 20:30:15 +0000 (15:30 -0500)] 
trunk: fr_dlist_remove returns NULL when removing the list head

6 years agotrunk: Asserts around log entry removal
Arran Cudbard-Bell [Sat, 18 Apr 2020 20:20:55 +0000 (15:20 -0500)] 
trunk: Asserts around log entry removal

6 years agotable: Add table indexed by numeric value
Arran Cudbard-Bell [Sat, 18 Apr 2020 20:21:32 +0000 (15:21 -0500)] 
table: Add table indexed by numeric value

i.e. an array lookup...

# Conflicts:
# src/lib/util/table.c

6 years agoFix typo (#3383)
Jorge Pereira [Fri, 17 Apr 2020 18:44:12 +0000 (15:44 -0300)] 
Fix typo (#3383)

6 years agotrunk: Allow INIT -> CLOSED
Arran Cudbard-Bell [Fri, 17 Apr 2020 18:39:54 +0000 (13:39 -0500)] 
trunk: Allow INIT -> CLOSED

6 years agotrunk: Don't double remove log entries, reduce memory churn in log entries by re...
Arran Cudbard-Bell [Fri, 17 Apr 2020 18:36:46 +0000 (13:36 -0500)] 
trunk: Don't double remove log entries, reduce memory churn in log entries by re-using old entries.  Re-use the oldest entry.

6 years agotrunk: Correct size for trigger table
Arran Cudbard-Bell [Fri, 17 Apr 2020 18:34:51 +0000 (13:34 -0500)] 
trunk: Correct size for trigger table

6 years agoRPM spec dependencies for RHEL8 (#3384)
Terry Burton [Fri, 17 Apr 2020 18:19:18 +0000 (19:19 +0100)] 
RPM spec dependencies for RHEL8 (#3384)

Co-authored-by: Matthew Newton <matthew-git@newtoncomputing.co.uk>
6 years agotrunk: Use lookup table for trigger names
Arran Cudbard-Bell [Fri, 17 Apr 2020 17:20:25 +0000 (12:20 -0500)] 
trunk: Use lookup table for trigger names

6 years agomisc: Better docs for fr_high_bit_pos_uint64 and strip uint64_t.
Arran Cudbard-Bell [Fri, 17 Apr 2020 17:20:07 +0000 (12:20 -0500)] 
misc: Better docs for fr_high_bit_pos_uint64 and strip uint64_t.

We can just use the same function for all unsigned integers

6 years agotable: Add O(1) lookups for bitfield flag to string identifiers
Arran Cudbard-Bell [Fri, 17 Apr 2020 17:19:00 +0000 (12:19 -0500)] 
table: Add O(1) lookups for bitfield flag to string identifiers

6 years agoHowto for ODBC (#3381)
Terry Burton [Fri, 17 Apr 2020 16:43:29 +0000 (17:43 +0100)] 
Howto for ODBC (#3381)

* Howto for ODBC

6 years agodlist: reorder checks
Arran Cudbard-Bell [Fri, 17 Apr 2020 14:39:03 +0000 (09:39 -0500)] 
dlist: reorder checks

6 years agodlist: Try and prevent erroneous removals from a dlist
Arran Cudbard-Bell [Fri, 17 Apr 2020 14:10:27 +0000 (09:10 -0500)] 
dlist: Try and prevent erroneous removals from a dlist

6 years agotrunk: Fix bad INIT->INIT transition on init failure.
Arran Cudbard-Bell [Fri, 17 Apr 2020 02:56:23 +0000 (21:56 -0500)] 
trunk: Fix bad INIT->INIT transition on init failure.

6 years agosbuff: Simplify
Arran Cudbard-Bell [Fri, 17 Apr 2020 02:20:33 +0000 (21:20 -0500)] 
sbuff: Simplify

6 years agosbuff: Another copy function
Arran Cudbard-Bell [Fri, 17 Apr 2020 01:53:39 +0000 (20:53 -0500)] 
sbuff: Another copy function

Should be enough to be useful now...

6 years agotrigger: Fix wrong return (#3382)
Jorge Pereira [Fri, 17 Apr 2020 01:33:22 +0000 (22:33 -0300)] 
trigger: Fix wrong return (#3382)

6 years agotrunk: We can hit the trunk_request_check_enqueue limit or the alloc one depending...
Arran Cudbard-Bell [Thu, 16 Apr 2020 22:11:41 +0000 (17:11 -0500)] 
trunk: We can hit the trunk_request_check_enqueue limit or the alloc one depending on how the trunk is used

6 years agotrunk: Enforce max requests at alloc time
Arran Cudbard-Bell [Thu, 16 Apr 2020 21:56:27 +0000 (16:56 -0500)] 
trunk: Enforce max requests at alloc time

6 years agorlm_radius: Remove no_connection_fail
Arran Cudbard-Bell [Thu, 16 Apr 2020 21:55:46 +0000 (16:55 -0500)] 
rlm_radius: Remove no_connection_fail

This is already implemented by the trunk

6 years agotrunk: Update copyrights
Arran Cudbard-Bell [Thu, 16 Apr 2020 19:02:57 +0000 (14:02 -0500)] 
trunk: Update copyrights

6 years agotrunk: Add a hard limit on the number of state entries per request
Arran Cudbard-Bell [Thu, 16 Apr 2020 18:47:49 +0000 (13:47 -0500)] 
trunk: Add a hard limit on the number of state entries per request

6 years agosbuff: Quiet gcc
Arran Cudbard-Bell [Thu, 16 Apr 2020 16:29:03 +0000 (11:29 -0500)] 
sbuff: Quiet gcc

6 years agotrunk: Add asserts to ensure log entries are freed
Arran Cudbard-Bell [Thu, 16 Apr 2020 16:14:27 +0000 (11:14 -0500)] 
trunk: Add asserts to ensure log entries are freed

6 years agoassert: Add fr_assert_msg
Arran Cudbard-Bell [Thu, 16 Apr 2020 16:13:58 +0000 (11:13 -0500)] 
assert: Add fr_assert_msg

6 years agoring_buffer: Fix memory leak (#3378)
Jorge Pereira [Thu, 16 Apr 2020 14:48:18 +0000 (11:48 -0300)] 
ring_buffer: Fix memory leak (#3378)

6 years agowhoops, need this, too
Alan T. DeKok [Thu, 16 Apr 2020 14:43:55 +0000 (10:43 -0400)] 
whoops, need this, too

6 years agoadd triggers for the trunk code
Alan T. DeKok [Thu, 16 Apr 2020 14:23:53 +0000 (10:23 -0400)] 
add triggers for the trunk code

6 years agoFix memory leak in rlm_exec
Jorge Pereira [Wed, 15 Apr 2020 22:32:57 +0000 (19:32 -0300)] 
Fix memory leak in rlm_exec

6 years agoremove one more PRE
Alan T. DeKok [Wed, 15 Apr 2020 23:57:13 +0000 (19:57 -0400)] 
remove one more PRE

6 years agoAdd start of new tokenization API
Arran Cudbard-Bell [Wed, 15 Apr 2020 22:50:01 +0000 (17:50 -0500)] 
Add start of new tokenization API

6 years agoFix other stupidity...
Arran Cudbard-Bell [Wed, 15 Apr 2020 22:40:34 +0000 (17:40 -0500)] 
Fix other stupidity...

6 years agoTypo
Arran Cudbard-Bell [Wed, 15 Apr 2020 21:46:20 +0000 (16:46 -0500)] 
Typo

6 years agoadd provisions for running triggers
Alan T. DeKok [Wed, 15 Apr 2020 21:00:44 +0000 (17:00 -0400)] 
add provisions for running triggers

6 years agoprint: Fix fr_utf8_strchr to take a length
Arran Cudbard-Bell [Wed, 15 Apr 2020 21:43:31 +0000 (16:43 -0500)] 
print: Fix fr_utf8_strchr to take a length

6 years agoUse the token not the char
Arran Cudbard-Bell [Wed, 15 Apr 2020 19:50:04 +0000 (14:50 -0500)] 
Use the token not the char

6 years agonothing uses this.
Alan T. DeKok [Wed, 15 Apr 2020 19:45:39 +0000 (15:45 -0400)] 
nothing uses this.

all of the dynamic client code is handled in src/lib/io/master.c

6 years agoCan't have non-null for REQUEST *
Arran Cudbard-Bell [Wed, 15 Apr 2020 19:41:42 +0000 (14:41 -0500)] 
Can't have non-null for REQUEST *

6 years agorest: Use common functions for parsing TLS options
Arran Cudbard-Bell [Wed, 15 Apr 2020 19:31:29 +0000 (14:31 -0500)] 
rest: Use common functions for parsing TLS options

6 years agocurl: Minor fixes for common functions
Arran Cudbard-Bell [Wed, 15 Apr 2020 19:29:25 +0000 (14:29 -0500)] 
curl: Minor fixes for common functions

6 years agoreturn only for non-debug builds...
Arran Cudbard-Bell [Wed, 15 Apr 2020 19:25:30 +0000 (14:25 -0500)] 
return only for non-debug builds...

6 years agomake exec no-wait fully async
Alan T. DeKok [Wed, 15 Apr 2020 18:22:37 +0000 (14:22 -0400)] 
make exec no-wait fully async

6 years agofinalize async exec
Alan T. DeKok [Wed, 15 Apr 2020 18:06:29 +0000 (14:06 -0400)] 
finalize async exec

this is really just for tests, but it may be useful to have for now.
Once the whole module is async, this method should be deleted.

6 years agoshow that we're running the test
Alan T. DeKok [Wed, 15 Apr 2020 18:05:13 +0000 (14:05 -0400)] 
show that we're running the test

6 years agoremove things which are no longer rleevant
Alan T. DeKok [Wed, 15 Apr 2020 16:26:34 +0000 (12:26 -0400)] 
remove things which are no longer rleevant

6 years agorest: Move more calls to the libfreeradius-curl library
Arran Cudbard-Bell [Wed, 15 Apr 2020 19:10:06 +0000 (14:10 -0500)] 
rest: Move more calls to the libfreeradius-curl library

6 years agoFormatting
Arran Cudbard-Bell [Wed, 15 Apr 2020 18:59:16 +0000 (13:59 -0500)] 
Formatting

6 years agoradsniff: Remove pktap interfaces from the default interface list. Closes #3364
Arran Cudbard-Bell [Wed, 15 Apr 2020 18:59:07 +0000 (13:59 -0500)] 
radsniff: Remove pktap interfaces from the default interface list.  Closes #3364

6 years agoadd missing "return"
Alan T. DeKok [Wed, 15 Apr 2020 12:52:56 +0000 (08:52 -0400)] 
add missing "return"

to avoid messages being printed twice.

6 years agoAdded tls functionality to curl and a SET_OPTION macro (#3376)
Stephen Blackwell [Wed, 15 Apr 2020 01:36:30 +0000 (21:36 -0400)] 
Added tls functionality to curl and a SET_OPTION macro (#3376)

* Added fr_curl_easy_tls_init and fr_curl_response_certinfo to src/lib/curl/base.c and FR_CURL_SET_OPTION and fr_curl_tls_config to src/lib/curl/base.h

* Fix whitespace

Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
6 years agomore "fix stupid analyzer" changes
Alan T. DeKok [Wed, 15 Apr 2020 00:22:07 +0000 (20:22 -0400)] 
more "fix stupid analyzer" changes

6 years agoasserts for static analyzer
Alan T. DeKok [Wed, 15 Apr 2020 00:09:25 +0000 (20:09 -0400)] 
asserts for static analyzer

6 years agoglue triggers to workers at run time
Alan T. DeKok [Tue, 14 Apr 2020 23:40:08 +0000 (19:40 -0400)] 
glue triggers to workers at run time

and only if we have workers.  This is a bit of a hack for now,
until such time as we have a better solution.

6 years agoUpdate misc test to use the test's API
Jorge Pereira [Tue, 14 Apr 2020 21:47:07 +0000 (18:47 -0300)] 
Update misc test to use the test's API

6 years agoFix misc tests
Jorge Pereira [Tue, 14 Apr 2020 21:14:24 +0000 (18:14 -0300)] 
Fix misc tests

6 years agoFix typo
Jorge Pereira [Tue, 14 Apr 2020 20:26:00 +0000 (17:26 -0300)] 
Fix typo

6 years agoFix minor memory leak
Jorge Pereira [Tue, 14 Apr 2020 19:58:55 +0000 (16:58 -0300)] 
Fix minor memory leak

6 years agolet's run the interpreter in order to expand the xlat string...
Alan T. DeKok [Tue, 14 Apr 2020 18:55:29 +0000 (14:55 -0400)] 
let's run the interpreter in order to expand the xlat string...

6 years agodebug argv for fr_exec_nowait(), too
Alan T. DeKok [Tue, 14 Apr 2020 18:41:09 +0000 (14:41 -0400)] 
debug argv for fr_exec_nowait(), too

6 years agomake asynchronous triggers which run exec no-wait
Alan T. DeKok [Tue, 14 Apr 2020 18:32:28 +0000 (14:32 -0400)] 
make asynchronous triggers which run exec no-wait

6 years agovarious fixes to get fake requests to work better
Alan T. DeKok [Tue, 14 Apr 2020 18:17:55 +0000 (14:17 -0400)] 
various fixes to get fake requests to work better

6 years agodon't touch request->async->listen for fake requests
Alan T. DeKok [Tue, 14 Apr 2020 17:51:37 +0000 (13:51 -0400)] 
don't touch request->async->listen for fake requests

6 years agoadd API to asynchronously schedule a REQUEST
Alan T. DeKok [Tue, 14 Apr 2020 15:43:39 +0000 (11:43 -0400)] 
add API to asynchronously schedule a REQUEST

using thread-local storage

6 years agorearrange code in preparation for asynchronously adding REQUESTs
Alan T. DeKok [Tue, 14 Apr 2020 15:35:42 +0000 (11:35 -0400)] 
rearrange code in preparation for asynchronously adding REQUESTs

6 years agoremove ev from request_data in talloc destructor
Alan T. DeKok [Tue, 14 Apr 2020 14:51:18 +0000 (10:51 -0400)] 
remove ev from request_data in talloc destructor

6 years agomake TMPL_TYPE_EXEC us pass2_fixup_tmpl()
Alan T. DeKok [Tue, 14 Apr 2020 14:26:24 +0000 (10:26 -0400)] 
make TMPL_TYPE_EXEC us pass2_fixup_tmpl()

instead of pass2_fixup_xlat(), which was only a temporary hack

6 years agocorrectly compile TMPL_TYPE_EXEC in pass2_fixup_tmpl()
Alan T. DeKok [Tue, 14 Apr 2020 14:24:25 +0000 (10:24 -0400)] 
correctly compile TMPL_TYPE_EXEC in pass2_fixup_tmpl()

6 years agocall tokenize_argv, not tokenize
Alan T. DeKok [Tue, 14 Apr 2020 13:41:44 +0000 (09:41 -0400)] 
call tokenize_argv, not tokenize

so that the individual arguments are split into groups

6 years agoremove trailing CR / LF from output buffer
Alan T. DeKok [Tue, 14 Apr 2020 13:39:34 +0000 (09:39 -0400)] 
remove trailing CR / LF from output buffer

If there are intermediate ones, well, too bad.

6 years agoprint out actual exit status
Alan T. DeKok [Tue, 14 Apr 2020 13:39:14 +0000 (09:39 -0400)] 
print out actual exit status

6 years agoprint out arguments we are using for exec
Alan T. DeKok [Tue, 14 Apr 2020 13:26:50 +0000 (09:26 -0400)] 
print out arguments we are using for exec

6 years ago_fr_exit_now removed
Arran Cudbard-Bell [Tue, 14 Apr 2020 02:28:17 +0000 (21:28 -0500)] 
_fr_exit_now removed

6 years ago*sigh*
Arran Cudbard-Bell [Tue, 14 Apr 2020 01:53:20 +0000 (20:53 -0500)] 
*sigh*