]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agorlm_dict: fix unmerged comments 2009/head
Matthew Newton [Wed, 19 Jul 2017 11:56:22 +0000 (12:56 +0100)] 
rlm_dict: fix unmerged comments

9 years agoEvent list first to match the I/O callbacks
Arran Cudbard-Bell [Tue, 18 Jul 2017 16:58:58 +0000 (12:58 -0400)] 
Event list first to match the I/O callbacks

9 years agoDict is used
Arran Cudbard-Bell [Sat, 15 Jul 2017 14:57:26 +0000 (10:57 -0400)] 
Dict is used

9 years agoFixes for super pedantic compilers
Arran Cudbard-Bell [Sat, 15 Jul 2017 14:46:49 +0000 (10:46 -0400)] 
Fixes for super pedantic compilers

9 years agoFixes for pedantic compilers
Arran Cudbard-Bell [Sat, 15 Jul 2017 14:35:51 +0000 (10:35 -0400)] 
Fixes for pedantic compilers

9 years agoRemove boxing for size_t, conflicts with uint64
Arran Cudbard-Bell [Fri, 14 Jul 2017 19:13:21 +0000 (15:13 -0400)] 
Remove boxing for size_t, conflicts with uint64

9 years agoAdd ethernet attributes
Arran Cudbard-Bell [Thu, 13 Jul 2017 22:00:51 +0000 (18:00 -0400)] 
Add ethernet attributes

9 years agoAllow unit_test_attribute to dynamically load proto libraries
Arran Cudbard-Bell [Thu, 13 Jul 2017 20:50:53 +0000 (16:50 -0400)] 
Allow unit_test_attribute to dynamically load proto libraries

In the (very near) future this will mean encode/decode tacacs and DHCP can go away, and encode/decode will become encode/decode radius.

9 years agoExpose dl_by_name
Arran Cudbard-Bell [Thu, 13 Jul 2017 20:49:44 +0000 (16:49 -0400)] 
Expose dl_by_name

9 years ago...and another one
Arran Cudbard-Bell [Thu, 13 Jul 2017 19:50:13 +0000 (15:50 -0400)] 
...and another one

9 years agoShhhh
Arran Cudbard-Bell [Thu, 13 Jul 2017 19:38:32 +0000 (15:38 -0400)] 
Shhhh

9 years agoCopy test_type to a buffer so we don't need to manually count chars, and we can easil...
Arran Cudbard-Bell [Thu, 13 Jul 2017 19:23:55 +0000 (15:23 -0400)] 
Copy test_type to a buffer so we don't need to manually count chars, and we can easily do wildcard matches

9 years agoFix and build ethernet protocol encoder/decoder
Arran Cudbard-Bell [Thu, 13 Jul 2017 19:08:37 +0000 (15:08 -0400)] 
Fix and build ethernet protocol encoder/decoder

9 years agoFix proto.h so it builds
Arran Cudbard-Bell [Thu, 13 Jul 2017 19:08:05 +0000 (15:08 -0400)] 
Fix proto.h so it builds

9 years agoAdd IP address type group
Arran Cudbard-Bell [Thu, 13 Jul 2017 19:07:52 +0000 (15:07 -0400)] 
Add IP address type group

9 years agoAdd unboxing macro
Arran Cudbard-Bell [Thu, 13 Jul 2017 19:07:38 +0000 (15:07 -0400)] 
Add unboxing macro

Move some functions to static inline

Remove 'from' from some functions names (box is a verb).

9 years agoProvide functions for value box assignments from C types
Arran Cudbard-Bell [Thu, 13 Jul 2017 01:37:29 +0000 (21:37 -0400)] 
Provide functions for value box assignments from C types

9 years agoadded tracking and allocation for outbound RADIUS packets
Alan T. DeKok [Thu, 13 Jul 2017 16:48:42 +0000 (12:48 -0400)] 
added tracking and allocation for outbound RADIUS packets

9 years agoProvide functions for value box assignments from C types
Arran Cudbard-Bell [Thu, 13 Jul 2017 01:37:29 +0000 (21:37 -0400)] 
Provide functions for value box assignments from C types

9 years agoIgnore cert index files?
Arran Cudbard-Bell [Thu, 13 Jul 2017 01:24:44 +0000 (21:24 -0400)] 
Ignore cert index files?

9 years agoStart of another _Generic macro to fill in value boxes from C vars
Arran Cudbard-Bell [Wed, 12 Jul 2017 22:29:20 +0000 (18:29 -0400)] 
Start of another _Generic macro to fill in value boxes from C vars

9 years agoGeneric I/O framework headers, and example ethernet encoder/decoder
Arran Cudbard-Bell [Wed, 12 Jul 2017 22:21:44 +0000 (18:21 -0400)] 
Generic I/O framework headers, and example ethernet encoder/decoder

9 years agounused variable
Alan T. DeKok [Wed, 12 Jul 2017 21:01:07 +0000 (17:01 -0400)] 
unused variable

9 years agotodo notes for the module
Alan T. DeKok [Wed, 12 Jul 2017 19:48:40 +0000 (15:48 -0400)] 
todo notes for the module

9 years agobind to outbound socket, and start of write()
Alan T. DeKok [Wed, 12 Jul 2017 19:03:07 +0000 (15:03 -0400)] 
bind to outbound socket, and start of write()

9 years agofix names
Alan T. DeKok [Wed, 12 Jul 2017 18:44:04 +0000 (14:44 -0400)] 
fix names

9 years agoadd rlm_radius_udp
Alan T. DeKok [Wed, 12 Jul 2017 18:29:05 +0000 (14:29 -0400)] 
add rlm_radius_udp

9 years agoupdate API
Alan T. DeKok [Wed, 12 Jul 2017 18:28:51 +0000 (14:28 -0400)] 
update API

9 years agoasn1 times can be truncated
Alan T. DeKok [Wed, 12 Jul 2017 15:52:41 +0000 (11:52 -0400)] 
asn1 times can be truncated

9 years agodon't call write() if there's no data in the message
Alan T. DeKok [Wed, 12 Jul 2017 15:43:12 +0000 (11:43 -0400)] 
don't call write() if there's no data in the message

9 years agodon't check for >=0 on uint
Alan T. DeKok [Wed, 12 Jul 2017 11:52:06 +0000 (07:52 -0400)] 
don't check for >=0 on uint

9 years agoallow mrc=mrt=mrd=0 for accounting packets
Alan T. DeKok [Tue, 11 Jul 2017 19:43:21 +0000 (15:43 -0400)] 
allow mrc=mrt=mrd=0 for accounting packets

the REQUEST will be automatically cleaned up at max_request_time
anyways...

9 years agoallow for multiple packets in one read
Alan T. DeKok [Tue, 11 Jul 2017 18:08:01 +0000 (14:08 -0400)] 
allow for multiple packets in one read

9 years agoprovisions for trailing data after read()
Alan T. DeKok [Tue, 11 Jul 2017 17:56:23 +0000 (13:56 -0400)] 
provisions for trailing data after read()

9 years agoset / check types on client_io_ctx
Alan T. DeKok [Tue, 11 Jul 2017 15:50:04 +0000 (11:50 -0400)] 
set / check types on client_io_ctx

9 years agoadded API to calculate delays
Alan T. DeKok [Tue, 11 Jul 2017 15:12:26 +0000 (11:12 -0400)] 
added API to calculate delays

9 years agoadd irt, mrc, mrt, and mrd for outgoing packets
Alan T. DeKok [Tue, 11 Jul 2017 14:20:33 +0000 (10:20 -0400)] 
add irt, mrc, mrt, and mrd for outgoing packets

9 years agotry to call write() immediately. If it works, we're fine
Alan T. DeKok [Tue, 11 Jul 2017 13:08:33 +0000 (09:08 -0400)] 
try to call write() immediately.  If it works, we're fine

This avoids a lot of overhead in updating the event list,
and doing lots of callbacks.

9 years agocheck for certificate expiry before running EAP tests
Alan T. DeKok [Tue, 11 Jul 2017 12:59:52 +0000 (08:59 -0400)] 
check for certificate expiry before running EAP tests

9 years agoregenerated test certificates
Alan T. DeKok [Tue, 11 Jul 2017 12:55:43 +0000 (08:55 -0400)] 
regenerated test certificates

9 years agoupdate expiry for client and OCSP certs, too
Alan T. DeKok [Tue, 11 Jul 2017 12:55:25 +0000 (08:55 -0400)] 
update expiry for client and OCSP certs, too

9 years agotargets to print / verify certificates
Alan T. DeKok [Tue, 11 Jul 2017 12:50:30 +0000 (08:50 -0400)] 
targets to print / verify certificates

9 years agotrack sent / recv times
Alan T. DeKok [Tue, 11 Jul 2017 12:47:40 +0000 (08:47 -0400)] 
track sent / recv times

9 years agodon't call write() in mod_add. Just add it to the queue.
Alan T. DeKok [Tue, 11 Jul 2017 12:47:19 +0000 (08:47 -0400)] 
don't call write() in mod_add.  Just add it to the queue.

9 years agomore clear backlog
Alan T. DeKok [Mon, 10 Jul 2017 19:44:59 +0000 (15:44 -0400)] 
more clear backlog

9 years agocheck return code from transport write()
Alan T. DeKok [Mon, 10 Jul 2017 19:25:28 +0000 (15:25 -0400)] 
check return code from transport write()

9 years agomake write() work
Alan T. DeKok [Mon, 10 Jul 2017 18:30:07 +0000 (14:30 -0400)] 
make write() work

and add flush, for cases like TLS, where there's data to be
written to the socket even when there's no REQUEST

9 years agomake read() work
Alan T. DeKok [Mon, 10 Jul 2017 18:15:25 +0000 (14:15 -0400)] 
make read() work

9 years agomore progress on rlm_radius
Alan T. DeKok [Mon, 10 Jul 2017 17:57:55 +0000 (13:57 -0400)] 
more progress on rlm_radius

write callbacks are defined.  fd active / idle callbacks are defined.

9 years agotypo
Alan T. DeKok [Sat, 8 Jul 2017 16:58:56 +0000 (12:58 -0400)] 
typo

9 years agoadd memcpy_bounded()
Alan T. DeKok [Sat, 8 Jul 2017 14:45:08 +0000 (10:45 -0400)] 
add memcpy_bounded()

which takes an "end" pointer.  It won't read past that.

9 years agofix typo
Alan T. DeKok [Fri, 7 Jul 2017 19:35:29 +0000 (15:35 -0400)] 
fix typo

9 years agouse failed callback
Alan T. DeKok [Fri, 7 Jul 2017 18:36:45 +0000 (14:36 -0400)] 
use failed callback

9 years agoAnother minor hack
Arran Cudbard-Bell [Fri, 7 Jul 2017 18:09:11 +0000 (14:09 -0400)] 
Another minor hack

9 years agoCan't set state in freed connection
Arran Cudbard-Bell [Fri, 7 Jul 2017 17:51:13 +0000 (13:51 -0400)] 
Can't set state in freed connection

9 years agouctx is used...
Arran Cudbard-Bell [Fri, 7 Jul 2017 16:42:25 +0000 (12:42 -0400)] 
uctx is used...

9 years agoMake the 'timeout' callback, a generic failure callback
Arran Cudbard-Bell [Fri, 7 Jul 2017 16:27:31 +0000 (12:27 -0400)] 
Make the 'timeout' callback, a generic failure callback

The issue is the connection attempt might explicitly fail, not just timeout.

9 years agoBind fd I/O events to the connection in rlm_radius
Arran Cudbard-Bell [Fri, 7 Jul 2017 16:23:54 +0000 (12:23 -0400)] 
Bind fd I/O events to the connection in rlm_radius

9 years agoBe nice...
Arran Cudbard-Bell [Fri, 7 Jul 2017 16:07:21 +0000 (12:07 -0400)] 
Be nice...

9 years agoAdd new 'halted' state to make the state machine saner
Arran Cudbard-Bell [Fri, 7 Jul 2017 16:06:22 +0000 (12:06 -0400)] 
Add new 'halted' state to make the state machine saner

Add timeout callback

9 years agoMore cleanups and fixes for rlm_radius
Alan T. DeKok [Fri, 7 Jul 2017 15:52:45 +0000 (11:52 -0400)] 
More cleanups and fixes for rlm_radius

9 years agomore progress on getting RADIUS packets out of the server again
Alan T. DeKok [Fri, 7 Jul 2017 13:58:15 +0000 (09:58 -0400)] 
more progress on getting RADIUS packets out of the server again

9 years agomake notes about better load balancing of workers
Alan T. DeKok [Fri, 7 Jul 2017 13:57:59 +0000 (09:57 -0400)] 
make notes about better load balancing of workers

9 years agocorrect documentation
Alan T. DeKok [Thu, 6 Jul 2017 21:37:40 +0000 (17:37 -0400)] 
correct documentation

9 years agostart of provisions for submodules
Alan T. DeKok [Thu, 6 Jul 2017 18:06:56 +0000 (14:06 -0400)] 
start of provisions for submodules

9 years agoMore unlikely events
Arran Cudbard-Bell [Fri, 7 Jul 2017 15:05:14 +0000 (11:05 -0400)] 
More unlikely events

9 years agoIdentify another unlikely path
Arran Cudbard-Bell [Fri, 7 Jul 2017 11:50:00 +0000 (07:50 -0400)] 
Identify another unlikely path

9 years agoBoth a->symbol and b->symbol are nonnull
Arran Cudbard-Bell [Fri, 7 Jul 2017 01:45:54 +0000 (21:45 -0400)] 
Both a->symbol and b->symbol are nonnull

9 years agoHelp the compiler out with branch prediction in hot code paths
Arran Cudbard-Bell [Fri, 7 Jul 2017 01:40:52 +0000 (21:40 -0400)] 
Help the compiler out with branch prediction in hot code paths

9 years agoUse same format
Arran Cudbard-Bell [Fri, 7 Jul 2017 01:11:52 +0000 (21:11 -0400)] 
Use same format

9 years agoReduce branches in comparators
Arran Cudbard-Bell [Fri, 7 Jul 2017 01:09:23 +0000 (21:09 -0400)] 
Reduce branches in comparators

9 years agoFix comment
Arran Cudbard-Bell [Thu, 6 Jul 2017 20:18:59 +0000 (16:18 -0400)] 
Fix comment

9 years agoConvert file descriptor and event timer comparators to something less branchy
Arran Cudbard-Bell [Thu, 6 Jul 2017 20:00:16 +0000 (16:00 -0400)] 
Convert file descriptor and event timer comparators to something less branchy

9 years agoMinor formatting and doxygen
Arran Cudbard-Bell [Thu, 6 Jul 2017 19:13:36 +0000 (15:13 -0400)] 
Minor formatting and doxygen

9 years agoWhere are you symbolizer...
Arran Cudbard-Bell [Thu, 6 Jul 2017 18:27:00 +0000 (14:27 -0400)] 
Where are you symbolizer...

9 years agoStupid comments
Arran Cudbard-Bell [Thu, 6 Jul 2017 18:16:44 +0000 (14:16 -0400)] 
Stupid comments

9 years agoTry 3.9
Arran Cudbard-Bell [Thu, 6 Jul 2017 18:14:45 +0000 (14:14 -0400)] 
Try 3.9

9 years agoMaybe this will work?
Arran Cudbard-Bell [Thu, 6 Jul 2017 18:07:46 +0000 (14:07 -0400)] 
Maybe this will work?

9 years agoAdd repo for shiny new compilers
Arran Cudbard-Bell [Thu, 6 Jul 2017 17:39:40 +0000 (13:39 -0400)] 
Add repo for shiny new compilers

9 years agoTry 4
Arran Cudbard-Bell [Thu, 6 Jul 2017 17:38:02 +0000 (13:38 -0400)] 
Try 4

9 years agoTry bumping clang, llvm versions
Arran Cudbard-Bell [Thu, 6 Jul 2017 17:36:02 +0000 (13:36 -0400)] 
Try bumping clang, llvm versions

9 years agoSet environmental variables in the right place
Arran Cudbard-Bell [Thu, 6 Jul 2017 17:22:45 +0000 (13:22 -0400)] 
Set environmental variables in the right place

9 years agoTry a different way of ignoring "leaks"
Arran Cudbard-Bell [Thu, 6 Jul 2017 16:49:12 +0000 (12:49 -0400)] 
Try a different way of ignoring "leaks"

9 years agoAdd talloc context bindings for file descriptor based events
Arran Cudbard-Bell [Thu, 6 Jul 2017 15:50:15 +0000 (11:50 -0400)] 
Add talloc context bindings for file descriptor based events

9 years agoConstify the event structures we return
Arran Cudbard-Bell [Thu, 6 Jul 2017 15:49:48 +0000 (11:49 -0400)] 
Constify the event structures we return

We really don't want anyone mucking with them at all. Protection mainly to prevent talloc context being changed.

9 years agoDisable leak detection as we can't reproduce the leaks locally to debug
Arran Cudbard-Bell [Thu, 6 Jul 2017 15:44:51 +0000 (11:44 -0400)] 
Disable leak detection as we can't reproduce the leaks locally to debug

9 years agofix unused variables and type casts in rlm_radius
Arran Cudbard-Bell [Thu, 6 Jul 2017 15:17:14 +0000 (11:17 -0400)] 
fix unused variables and type casts in rlm_radius

9 years agoShould be a check in non-debugging builds too
Arran Cudbard-Bell [Thu, 6 Jul 2017 15:14:24 +0000 (11:14 -0400)] 
Should be a check in non-debugging builds too

9 years agoFree more memory on exit, and use talloc's memory report (enabled NULL ctx tracking)
Arran Cudbard-Bell [Thu, 6 Jul 2017 15:08:51 +0000 (11:08 -0400)] 
Free more memory on exit, and use talloc's memory report (enabled NULL ctx tracking)

9 years agoPrevent eapol_test from running repeatedly (again)
Arran Cudbard-Bell [Thu, 6 Jul 2017 14:57:15 +0000 (10:57 -0400)] 
Prevent eapol_test from running repeatedly (again)

This was broken during the conversion to boilermake

9 years agoAllow searches before xlat_root has been initialised
Arran Cudbard-Bell [Thu, 6 Jul 2017 14:33:11 +0000 (10:33 -0400)] 
Allow searches before xlat_root has been initialised

9 years agoneed this, too
Alan T. DeKok [Thu, 6 Jul 2017 14:29:48 +0000 (10:29 -0400)] 
need this, too

9 years agoAdd event/talloc_ctx binding argument
Arran Cudbard-Bell [Thu, 6 Jul 2017 02:31:21 +0000 (22:31 -0400)] 
Add event/talloc_ctx binding argument

Reorder fr_event_timer_insert arguments to be consistent with other event

9 years agoFree xlat_root when there are no registrations left
Arran Cudbard-Bell [Wed, 5 Jul 2017 20:23:29 +0000 (16:23 -0400)] 
Free xlat_root when there are no registrations left

9 years agoUse normal talloc memory report
Arran Cudbard-Bell [Wed, 5 Jul 2017 20:10:49 +0000 (16:10 -0400)] 
Use normal talloc memory report

9 years agoTry and track down leak
Arran Cudbard-Bell [Wed, 5 Jul 2017 20:06:38 +0000 (16:06 -0400)] 
Try and track down leak

9 years agomove fr_client_io_t to rlm_radius.
Alan T. DeKok [Wed, 5 Jul 2017 19:37:19 +0000 (15:37 -0400)] 
move fr_client_io_t to rlm_radius.

and start on transport back-end

9 years agoEnable ASAN_OPTIONS=detect_stack_use_after_return=1
Arran Cudbard-Bell [Wed, 5 Jul 2017 19:34:45 +0000 (15:34 -0400)] 
Enable ASAN_OPTIONS=detect_stack_use_after_return=1

9 years agoCheck if sanitize-address-use-after-scope is support
Arran Cudbard-Bell [Wed, 5 Jul 2017 19:23:49 +0000 (15:23 -0400)] 
Check if sanitize-address-use-after-scope is support

9 years agochange scope of buffer
Alan T. DeKok [Wed, 5 Jul 2017 18:57:45 +0000 (14:57 -0400)] 
change scope of buffer

and expand variables only if there's a ${...