]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Herwin Weststrate [Wed, 16 Nov 2016 15:27:32 +0000 (16:27 +0100)]
Use const consistently in rlm_winbind
This saves us a compiler warning.
Alan T. DeKok [Wed, 16 Nov 2016 14:59:13 +0000 (09:59 -0500)]
s/tmpl_data_value/tmpl_data_box/g
Alan T. DeKok [Tue, 15 Nov 2016 22:52:06 +0000 (17:52 -0500)]
doxygen
Alan T. DeKok [Tue, 15 Nov 2016 21:22:58 +0000 (16:22 -0500)]
add context pointer to event list status function
In preparation for scheduler idle loop work.
Arran Cudbard-Bell [Tue, 15 Nov 2016 21:27:43 +0000 (16:27 -0500)]
Rename value_data_t to value_box_t
Alan T. DeKok [Tue, 15 Nov 2016 20:44:19 +0000 (15:44 -0500)]
value_data_hton() should take value_data_t for src
Alan T. DeKok [Tue, 15 Nov 2016 20:20:17 +0000 (15:20 -0500)]
add priority to request messages
so that the worker knows how to prioritize them
Alan T. DeKok [Tue, 15 Nov 2016 20:18:07 +0000 (15:18 -0500)]
move the union back to the start of value_data_t
because it's just too hard to separate the pointers to the data
from the pointers to the value_data_t.
Alan T. DeKok [Tue, 15 Nov 2016 20:16:10 +0000 (15:16 -0500)]
use union.datum as a generic pointer
Alan T. DeKok [Tue, 15 Nov 2016 20:15:50 +0000 (15:15 -0500)]
track pointer instead of complex struct
Alan T. DeKok [Tue, 15 Nov 2016 19:28:43 +0000 (14:28 -0500)]
pass the contents, not the value_data_t
Alan T. DeKok [Tue, 15 Nov 2016 19:25:28 +0000 (14:25 -0500)]
mark value_data as tainted on copy / steal
Alan T. DeKok [Tue, 15 Nov 2016 19:21:38 +0000 (14:21 -0500)]
don't assume that the struct is packed in any particular order
Part 2.
LOTS of references to &vp->data. Some of which are to the union,
and some of which are to the data inside of the union.
Separating them isn't trivial.
Alan T. DeKok [Tue, 15 Nov 2016 19:10:25 +0000 (14:10 -0500)]
include linked list and worker stats into time tracking.
So we have one API call to track time && yielded list,
instead of two.
Alan T. DeKok [Tue, 15 Nov 2016 18:35:44 +0000 (13:35 -0500)]
don't assume that the struct is packed in any particular order
i.e. if we need sub-element "foo", refer to sub-element "foo".
Alan T. DeKok [Tue, 15 Nov 2016 18:32:48 +0000 (13:32 -0500)]
filters might as well be uint8_t.
We don't access them as anything else.
Alan T. DeKok [Tue, 15 Nov 2016 17:31:20 +0000 (12:31 -0500)]
pass the correct length to hex2bin
Alan T. DeKok [Tue, 15 Nov 2016 16:24:54 +0000 (11:24 -0500)]
set all of the message to zero on allocation
Alan T. DeKok [Tue, 15 Nov 2016 16:11:55 +0000 (11:11 -0500)]
Don't create the symlink every time we run make
Alan T. DeKok [Tue, 15 Nov 2016 16:11:40 +0000 (11:11 -0500)]
mark User-Name from EAP packets as tainted
Alan T. DeKok [Tue, 15 Nov 2016 15:56:52 +0000 (10:56 -0500)]
VPs coming from packets are tainted
Alan T. DeKok [Tue, 15 Nov 2016 15:56:44 +0000 (10:56 -0500)]
VPs coming from packets are tainted
Alan T. DeKok [Tue, 15 Nov 2016 15:49:52 +0000 (10:49 -0500)]
VPs coming from external programs are tainted.
Alan T. DeKok [Tue, 15 Nov 2016 15:49:36 +0000 (10:49 -0500)]
VPs coming from packets are tainted
Alan T. DeKok [Tue, 15 Nov 2016 15:49:22 +0000 (10:49 -0500)]
function to mark VPs as tainted
Alan T. DeKok [Tue, 15 Nov 2016 15:41:08 +0000 (10:41 -0500)]
Move fields around, and add "type" and "tainted" flags.
So that value_data_t becomes a bit more like a real boxed value
structure
Alan DeKok [Tue, 15 Nov 2016 15:50:18 +0000 (10:50 -0500)]
Merge pull request #1844 from herwinw/rlm_rest_json_prefix_buf
Use stack based char array to generate JSON keys
Herwin Weststrate [Sat, 12 Nov 2016 17:02:19 +0000 (18:02 +0100)]
Use stack based char array to generate JSON keys
This saves us from having to allocate memory in a loop. It simplifies
the code a little bit too, by removing an if statement that was far away
from the code that generated the requirement to call it.
Alan T. DeKok [Mon, 14 Nov 2016 21:46:28 +0000 (16:46 -0500)]
allow us to put the channel into the message
Alan T. DeKok [Mon, 14 Nov 2016 21:41:34 +0000 (16:41 -0500)]
clean up link and order dependencies
Arran Cudbard-Bell [Mon, 14 Nov 2016 21:19:36 +0000 (16:19 -0500)]
Case
Alan T. DeKok [Mon, 14 Nov 2016 19:30:10 +0000 (14:30 -0500)]
NO is 0. YES is 1.
Alan T. DeKok [Mon, 14 Nov 2016 19:29:50 +0000 (14:29 -0500)]
return good value
Alan T. DeKok [Mon, 14 Nov 2016 19:08:44 +0000 (14:08 -0500)]
preliminary code for new / close channel
Alan T. DeKok [Mon, 14 Nov 2016 18:05:10 +0000 (13:05 -0500)]
return which channel needs servicing
Alan T. DeKok [Mon, 14 Nov 2016 17:57:31 +0000 (12:57 -0500)]
names are better than magic numbers
Alan T. DeKok [Mon, 14 Nov 2016 17:54:34 +0000 (12:54 -0500)]
errno is already defined, and CANNOT be re-defined
Alan T. DeKok [Mon, 14 Nov 2016 17:54:02 +0000 (12:54 -0500)]
don't put business logic into an assertion
Alan T. DeKok [Mon, 14 Nov 2016 17:37:59 +0000 (12:37 -0500)]
tweak signal logic
Alan T. DeKok [Mon, 14 Nov 2016 17:36:34 +0000 (12:36 -0500)]
travis fix
Alan T. DeKok [Mon, 14 Nov 2016 15:59:48 +0000 (10:59 -0500)]
try to build rlm_lua, too
Alan DeKok [Mon, 14 Nov 2016 15:35:59 +0000 (10:35 -0500)]
Merge pull request #1842 from herwinw/gendh_dhparam
Use 'openssl dhparam' to create DH-params
Alan T. DeKok [Mon, 14 Nov 2016 15:32:04 +0000 (10:32 -0500)]
const-ify it
Alan T. DeKok [Mon, 14 Nov 2016 13:49:38 +0000 (08:49 -0500)]
don't need this
Herwin Weststrate [Sat, 12 Nov 2016 15:13:50 +0000 (16:13 +0100)]
Use 'openssl dhparam' to create DH-params
'openssl gendh' is removed in newer version of OpenSSL, and using
dhparam appears to work since at least release 0.9.8
Arran Cudbard-Bell [Sun, 13 Nov 2016 13:25:13 +0000 (08:25 -0500)]
Link libfreeradius-util to dependencies
Else it doesn't link to kevent
Arran Cudbard-Bell [Sat, 12 Nov 2016 20:34:11 +0000 (15:34 -0500)]
Fix doxygen and argument order for module_find_with_method
Arran Cudbard-Bell [Sat, 12 Nov 2016 20:27:50 +0000 (15:27 -0500)]
Split out virtual_server functions from modules.c
Arran Cudbard-Bell [Sat, 12 Nov 2016 15:02:53 +0000 (10:02 -0500)]
Constify more inst and ctx pointers
Add thread pointer for thread specific instances
Alan T. DeKok [Sat, 12 Nov 2016 15:14:30 +0000 (10:14 -0500)]
doxygen for kev
Alan T. DeKok [Sat, 12 Nov 2016 14:53:13 +0000 (09:53 -0500)]
comments
Alan DeKok [Sat, 12 Nov 2016 14:48:55 +0000 (09:48 -0500)]
Merge pull request #1841 from herwinw/cppcheck
Fixed some cppcheck warnings
Herwin Weststrate [Sat, 12 Nov 2016 13:12:02 +0000 (14:12 +0100)]
fr_redis_cluster_node_addr_by_role returns an ssize_t
Herwin Weststrate [Sat, 12 Nov 2016 13:10:35 +0000 (14:10 +0100)]
Removed impossible to reach else statements
We had "if (<int> < 0)" else "else if (<int> >= 0)", which cover all
possibilities
Herwin Weststrate [Sat, 12 Nov 2016 13:09:46 +0000 (14:09 +0100)]
Use %u in printf-like construct for unsigned ints
Alan T. DeKok [Fri, 11 Nov 2016 19:04:20 +0000 (14:04 -0500)]
comments
Alan T. DeKok [Fri, 11 Nov 2016 18:47:57 +0000 (13:47 -0500)]
remove unused macro
Alan T. DeKok [Fri, 11 Nov 2016 18:47:03 +0000 (13:47 -0500)]
add worker sleeping / service kevent functions
Alan T. DeKok [Fri, 11 Nov 2016 18:13:06 +0000 (13:13 -0500)]
API cleanups.
Ensure that the callers cannot avoid the assumption that every
write to one end of the channel is also a read of the other end.
Alan T. DeKok [Fri, 11 Nov 2016 17:57:36 +0000 (12:57 -0500)]
update copyright
Alan T. DeKok [Fri, 11 Nov 2016 17:41:23 +0000 (12:41 -0500)]
Added channel API
Alan T. DeKok [Fri, 11 Nov 2016 16:37:34 +0000 (11:37 -0500)]
rename xlat to xlat_inline
in preparation for including xlats into the unlang interpreter
Alan T. DeKok [Fri, 11 Nov 2016 16:32:25 +0000 (11:32 -0500)]
formatting
Alan T. DeKok [Fri, 11 Nov 2016 16:29:51 +0000 (11:29 -0500)]
don't gratuitously rename functions
Alan T. DeKok [Fri, 11 Nov 2016 11:56:23 +0000 (06:56 -0500)]
from Microsemi
Alan T. DeKok [Fri, 11 Nov 2016 00:26:45 +0000 (19:26 -0500)]
so the file doesn't re-appear with bad commits
Alan T. DeKok [Fri, 11 Nov 2016 00:26:11 +0000 (19:26 -0500)]
no, we don't need this.
"git commit -a" is retarded
Alan T. DeKok [Fri, 11 Nov 2016 00:19:19 +0000 (19:19 -0500)]
move time things around
Alan T. DeKok [Fri, 11 Nov 2016 00:19:05 +0000 (19:19 -0500)]
make correct soft links
Alan DeKok [Thu, 10 Nov 2016 15:20:04 +0000 (10:20 -0500)]
Merge pull request #1826 from stapelberg/patch-4
Use -h to check for symlink existance
Michael Stapelberg [Fri, 4 Nov 2016 21:52:19 +0000 (22:52 +0100)]
Use -h and -e to check for symlink existance
-e dereferences symlinks, making the package installation fail when the target does not exist.
Arran Cudbard-Bell [Wed, 9 Nov 2016 23:02:29 +0000 (18:02 -0500)]
Now fr_json_afrom_pair_list
Arran Cudbard-Bell [Wed, 9 Nov 2016 21:11:11 +0000 (16:11 -0500)]
Simplify and cleanup fr_json_afrom_pair_list
Arran Cudbard-Bell [Wed, 9 Nov 2016 21:01:58 +0000 (16:01 -0500)]
Merge pull request #1837 from lytboris/freebsd-realine-buildfix-v4.0.x
fix build on FreeBSD: readline headers imply stdio.h is included
Arran Cudbard-Bell [Wed, 9 Nov 2016 21:01:16 +0000 (16:01 -0500)]
Merge pull request #1827 from herwinw/ssl11
Allow build with openssl 1.1.0b-2
Herwin Weststrate [Wed, 9 Nov 2016 20:00:09 +0000 (21:00 +0100)]
Move OPENSSL_config call to block for version < 1.1
This function is deprecated in OpenSSL 1.1, in favour of
OPENSSL_init_crypto. Just call it at the same place as we would call
that new function.
Herwin Weststrate [Wed, 9 Nov 2016 19:58:44 +0000 (20:58 +0100)]
Make the code compile with OpenSSL 1.1
Some functions are renamed, some are introduced, some have changed
prototypes (mainly adding const).
Boris Lytochkin [Wed, 9 Nov 2016 19:03:03 +0000 (22:03 +0300)]
fix build on FreeBSD: readline headers imply stdio.h is included prior
including readline.h
Arran Cudbard-Bell [Wed, 9 Nov 2016 15:09:21 +0000 (10:09 -0500)]
Really should be invalid
Arran Cudbard-Bell [Mon, 7 Nov 2016 22:48:36 +0000 (17:48 -0500)]
Missing argument
Arran Cudbard-Bell [Wed, 9 Nov 2016 12:04:16 +0000 (07:04 -0500)]
Merge pull request #1834 from qnet-herwin/inline
Typo fix in comments of fr_pair_value_from_str
Herwin Weststrate [Wed, 9 Nov 2016 08:48:30 +0000 (09:48 +0100)]
Typo fix in comments of fr_pair_value_from_str
inline => inlen
Arran Cudbard-Bell [Tue, 8 Nov 2016 21:16:54 +0000 (16:16 -0500)]
Check for NULL pointer not return code
Arran Cudbard-Bell [Tue, 8 Nov 2016 20:59:21 +0000 (15:59 -0500)]
Switch to using a tree to store FD handles
Add infrastructure for processing read/write/error callbacks
Associate destructor with fr_event_fd_t
Arran Cudbard-Bell [Tue, 8 Nov 2016 20:57:33 +0000 (15:57 -0500)]
Thing we're searching for probably isn't talloced
Arran Cudbard-Bell [Tue, 8 Nov 2016 20:57:12 +0000 (15:57 -0500)]
Formatting
Arran Cudbard-Bell [Tue, 8 Nov 2016 19:59:17 +0000 (14:59 -0500)]
Typo
Arran Cudbard-Bell [Tue, 8 Nov 2016 19:58:38 +0000 (14:58 -0500)]
Better function grouping
Arran Cudbard-Bell [Tue, 8 Nov 2016 19:55:06 +0000 (14:55 -0500)]
Make error messages consistent
Arran Cudbard-Bell [Tue, 8 Nov 2016 19:53:55 +0000 (14:53 -0500)]
Rename some functions/structures in event.c
Arran Cudbard-Bell [Tue, 8 Nov 2016 17:32:29 +0000 (12:32 -0500)]
Documentation and additional sanity checks for fr_event_cmp_time_t
Arran Cudbard-Bell [Tue, 8 Nov 2016 17:23:57 +0000 (12:23 -0500)]
Documentation and minor cleanups
Arran Cudbard-Bell [Tue, 8 Nov 2016 17:11:50 +0000 (12:11 -0500)]
s/fr_event_list_create/fr_event_list_init/
Arran Cudbard-Bell [Tue, 8 Nov 2016 17:03:59 +0000 (12:03 -0500)]
Automated refactoring for additional callback types in fr_event_fd_insert
Arran Cudbard-Bell [Tue, 8 Nov 2016 17:00:55 +0000 (12:00 -0500)]
Remove type argumet from fr_event_fd_insert/delete
Alan T. DeKok [Mon, 7 Nov 2016 18:37:19 +0000 (13:37 -0500)]
Added functions to track time for start / end / yield / resume
Alan T. DeKok [Mon, 7 Nov 2016 18:36:12 +0000 (13:36 -0500)]
Rename channel to conduit
In preparation for adding v4 channels, which will be different
Alan T. DeKok [Mon, 7 Nov 2016 17:45:50 +0000 (12:45 -0500)]
add fr_heap_pop()
Arran Cudbard-Bell [Mon, 7 Nov 2016 18:32:29 +0000 (13:32 -0500)]
Sometimes we're spawning to reach min not spare
Alan T. DeKok [Mon, 7 Nov 2016 15:36:36 +0000 (10:36 -0500)]
use SSL_SESSION_get_master_key()