]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agoUse const consistently in rlm_winbind 1848/head
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.

9 years agos/tmpl_data_value/tmpl_data_box/g
Alan T. DeKok [Wed, 16 Nov 2016 14:59:13 +0000 (09:59 -0500)] 
s/tmpl_data_value/tmpl_data_box/g

9 years agodoxygen
Alan T. DeKok [Tue, 15 Nov 2016 22:52:06 +0000 (17:52 -0500)] 
doxygen

9 years agoadd context pointer to event list status function
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.

9 years agoRename value_data_t to value_box_t
Arran Cudbard-Bell [Tue, 15 Nov 2016 21:27:43 +0000 (16:27 -0500)] 
Rename value_data_t to value_box_t

9 years agovalue_data_hton() should take value_data_t for src
Alan T. DeKok [Tue, 15 Nov 2016 20:44:19 +0000 (15:44 -0500)] 
value_data_hton() should take value_data_t for src

9 years agoadd priority to request messages
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

9 years agomove the union back to the start of value_data_t
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.

9 years agouse union.datum as a generic pointer
Alan T. DeKok [Tue, 15 Nov 2016 20:16:10 +0000 (15:16 -0500)] 
use union.datum as a generic pointer

9 years agotrack pointer instead of complex struct
Alan T. DeKok [Tue, 15 Nov 2016 20:15:50 +0000 (15:15 -0500)] 
track pointer instead of complex struct

9 years agopass the contents, not the value_data_t
Alan T. DeKok [Tue, 15 Nov 2016 19:28:43 +0000 (14:28 -0500)] 
pass the contents, not the value_data_t

9 years agomark value_data as tainted on copy / steal
Alan T. DeKok [Tue, 15 Nov 2016 19:25:28 +0000 (14:25 -0500)] 
mark value_data as tainted on copy / steal

9 years agodon't assume that the struct is packed in any particular order
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.

9 years agoinclude linked list and worker stats into time tracking.
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.

9 years agodon't assume that the struct is packed in any particular order
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".

9 years agofilters might as well be uint8_t.
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.

9 years agopass the correct length to hex2bin
Alan T. DeKok [Tue, 15 Nov 2016 17:31:20 +0000 (12:31 -0500)] 
pass the correct length to hex2bin

9 years agoset all of the message to zero on allocation
Alan T. DeKok [Tue, 15 Nov 2016 16:24:54 +0000 (11:24 -0500)] 
set all of the message to zero on allocation

9 years agoDon't create the symlink every time we run make
Alan T. DeKok [Tue, 15 Nov 2016 16:11:55 +0000 (11:11 -0500)] 
Don't create the symlink every time we run make

9 years agomark User-Name from EAP packets as tainted
Alan T. DeKok [Tue, 15 Nov 2016 16:11:40 +0000 (11:11 -0500)] 
mark User-Name from EAP packets as tainted

9 years agoVPs coming from packets are tainted
Alan T. DeKok [Tue, 15 Nov 2016 15:56:52 +0000 (10:56 -0500)] 
VPs coming from packets are tainted

9 years agoVPs 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

9 years agoVPs coming from external programs are tainted.
Alan T. DeKok [Tue, 15 Nov 2016 15:49:52 +0000 (10:49 -0500)] 
VPs coming from external programs are tainted.

9 years agoVPs coming from packets are tainted
Alan T. DeKok [Tue, 15 Nov 2016 15:49:36 +0000 (10:49 -0500)] 
VPs coming from packets are tainted

9 years agofunction to mark VPs as tainted
Alan T. DeKok [Tue, 15 Nov 2016 15:49:22 +0000 (10:49 -0500)] 
function to mark VPs as tainted

9 years agoMove fields around, and add "type" and "tainted" flags.
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

9 years agoMerge pull request #1844 from herwinw/rlm_rest_json_prefix_buf
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

9 years agoUse stack based char array to generate JSON keys 1844/head
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.

9 years agoallow us to put the channel into the message
Alan T. DeKok [Mon, 14 Nov 2016 21:46:28 +0000 (16:46 -0500)] 
allow us to put the channel into the message

9 years agoclean up link and order dependencies
Alan T. DeKok [Mon, 14 Nov 2016 21:41:34 +0000 (16:41 -0500)] 
clean up link and order dependencies

9 years agoCase
Arran Cudbard-Bell [Mon, 14 Nov 2016 21:19:36 +0000 (16:19 -0500)] 
Case

9 years agoNO is 0. YES is 1.
Alan T. DeKok [Mon, 14 Nov 2016 19:30:10 +0000 (14:30 -0500)] 
NO is 0. YES is 1.

9 years agoreturn good value
Alan T. DeKok [Mon, 14 Nov 2016 19:29:50 +0000 (14:29 -0500)] 
return good value

9 years agopreliminary code for new / close channel
Alan T. DeKok [Mon, 14 Nov 2016 19:08:44 +0000 (14:08 -0500)] 
preliminary code for new / close channel

9 years agoreturn which channel needs servicing
Alan T. DeKok [Mon, 14 Nov 2016 18:05:10 +0000 (13:05 -0500)] 
return which channel needs servicing

9 years agonames are better than magic numbers
Alan T. DeKok [Mon, 14 Nov 2016 17:57:31 +0000 (12:57 -0500)] 
names are better than magic numbers

9 years agoerrno is already defined, and CANNOT be re-defined
Alan T. DeKok [Mon, 14 Nov 2016 17:54:34 +0000 (12:54 -0500)] 
errno is already defined, and CANNOT be re-defined

9 years agodon't put business logic into an assertion
Alan T. DeKok [Mon, 14 Nov 2016 17:54:02 +0000 (12:54 -0500)] 
don't put business logic into an assertion

9 years agotweak signal logic
Alan T. DeKok [Mon, 14 Nov 2016 17:37:59 +0000 (12:37 -0500)] 
tweak signal logic

9 years agotravis fix
Alan T. DeKok [Mon, 14 Nov 2016 17:36:34 +0000 (12:36 -0500)] 
travis fix

9 years agotry to build rlm_lua, too
Alan T. DeKok [Mon, 14 Nov 2016 15:59:48 +0000 (10:59 -0500)] 
try to build rlm_lua, too

9 years agoMerge pull request #1842 from herwinw/gendh_dhparam
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

9 years agoconst-ify it
Alan T. DeKok [Mon, 14 Nov 2016 15:32:04 +0000 (10:32 -0500)] 
const-ify it

9 years agodon't need this
Alan T. DeKok [Mon, 14 Nov 2016 13:49:38 +0000 (08:49 -0500)] 
don't need this

9 years agoUse 'openssl dhparam' to create DH-params 1842/head
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

9 years agoLink libfreeradius-util to dependencies
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

9 years agoFix doxygen and argument order for module_find_with_method
Arran Cudbard-Bell [Sat, 12 Nov 2016 20:34:11 +0000 (15:34 -0500)] 
Fix doxygen and argument order for module_find_with_method

9 years agoSplit out virtual_server functions from modules.c
Arran Cudbard-Bell [Sat, 12 Nov 2016 20:27:50 +0000 (15:27 -0500)] 
Split out virtual_server functions from modules.c

9 years agoConstify more inst and ctx pointers
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

9 years agodoxygen for kev
Alan T. DeKok [Sat, 12 Nov 2016 15:14:30 +0000 (10:14 -0500)] 
doxygen for kev

9 years agocomments
Alan T. DeKok [Sat, 12 Nov 2016 14:53:13 +0000 (09:53 -0500)] 
comments

9 years agoMerge pull request #1841 from herwinw/cppcheck
Alan DeKok [Sat, 12 Nov 2016 14:48:55 +0000 (09:48 -0500)] 
Merge pull request #1841 from herwinw/cppcheck

Fixed some cppcheck warnings

9 years agofr_redis_cluster_node_addr_by_role returns an ssize_t 1841/head
Herwin Weststrate [Sat, 12 Nov 2016 13:12:02 +0000 (14:12 +0100)] 
fr_redis_cluster_node_addr_by_role returns an ssize_t

9 years agoRemoved impossible to reach else statements
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

9 years agoUse %u in printf-like construct for unsigned ints
Herwin Weststrate [Sat, 12 Nov 2016 13:09:46 +0000 (14:09 +0100)] 
Use %u in printf-like construct for unsigned ints

9 years agocomments
Alan T. DeKok [Fri, 11 Nov 2016 19:04:20 +0000 (14:04 -0500)] 
comments

9 years agoremove unused macro
Alan T. DeKok [Fri, 11 Nov 2016 18:47:57 +0000 (13:47 -0500)] 
remove unused macro

9 years agoadd worker sleeping / service kevent functions
Alan T. DeKok [Fri, 11 Nov 2016 18:47:03 +0000 (13:47 -0500)] 
add worker sleeping / service kevent functions

9 years agoAPI cleanups.
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.

9 years agoupdate copyright
Alan T. DeKok [Fri, 11 Nov 2016 17:57:36 +0000 (12:57 -0500)] 
update copyright

9 years agoAdded channel API
Alan T. DeKok [Fri, 11 Nov 2016 17:41:23 +0000 (12:41 -0500)] 
Added channel API

9 years agorename xlat to xlat_inline
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

9 years agoformatting
Alan T. DeKok [Fri, 11 Nov 2016 16:32:25 +0000 (11:32 -0500)] 
formatting

9 years agodon't gratuitously rename functions
Alan T. DeKok [Fri, 11 Nov 2016 16:29:51 +0000 (11:29 -0500)] 
don't gratuitously rename functions

9 years agofrom Microsemi
Alan T. DeKok [Fri, 11 Nov 2016 11:56:23 +0000 (06:56 -0500)] 
from Microsemi

9 years agoso the file doesn't re-appear with bad commits
Alan T. DeKok [Fri, 11 Nov 2016 00:26:45 +0000 (19:26 -0500)] 
so the file doesn't re-appear with bad commits

9 years agono, we don't need this.
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

9 years agomove time things around
Alan T. DeKok [Fri, 11 Nov 2016 00:19:19 +0000 (19:19 -0500)] 
move time things around

9 years agomake correct soft links
Alan T. DeKok [Fri, 11 Nov 2016 00:19:05 +0000 (19:19 -0500)] 
make correct soft links

9 years agoMerge pull request #1826 from stapelberg/patch-4
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

9 years agoUse -h and -e to check for symlink existance 1826/head
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.

9 years agoNow fr_json_afrom_pair_list
Arran Cudbard-Bell [Wed, 9 Nov 2016 23:02:29 +0000 (18:02 -0500)] 
Now fr_json_afrom_pair_list

9 years agoSimplify and cleanup 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

9 years agoMerge pull request #1837 from lytboris/freebsd-realine-buildfix-v4.0.x
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

9 years agoMerge pull request #1827 from herwinw/ssl11
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

9 years agoMove OPENSSL_config call to block for version < 1.1 1827/head
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.

9 years agoMake the code compile with OpenSSL 1.1
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).

9 years agofix build on FreeBSD: readline headers imply stdio.h is included prior 1837/head
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

9 years agoReally should be invalid
Arran Cudbard-Bell [Wed, 9 Nov 2016 15:09:21 +0000 (10:09 -0500)] 
Really should be invalid

9 years agoMissing argument
Arran Cudbard-Bell [Mon, 7 Nov 2016 22:48:36 +0000 (17:48 -0500)] 
Missing argument

9 years agoMerge pull request #1834 from qnet-herwin/inline
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

9 years agoTypo fix in comments of fr_pair_value_from_str 1834/head
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

9 years agoCheck for NULL pointer not return code
Arran Cudbard-Bell [Tue, 8 Nov 2016 21:16:54 +0000 (16:16 -0500)] 
Check for NULL pointer not return code

9 years agoSwitch to using a tree to store FD handles
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

9 years agoThing we're searching for probably isn't talloced
Arran Cudbard-Bell [Tue, 8 Nov 2016 20:57:33 +0000 (15:57 -0500)] 
Thing we're searching for probably isn't talloced

9 years agoFormatting
Arran Cudbard-Bell [Tue, 8 Nov 2016 20:57:12 +0000 (15:57 -0500)] 
Formatting

9 years agoTypo
Arran Cudbard-Bell [Tue, 8 Nov 2016 19:59:17 +0000 (14:59 -0500)] 
Typo

9 years agoBetter function grouping
Arran Cudbard-Bell [Tue, 8 Nov 2016 19:58:38 +0000 (14:58 -0500)] 
Better function grouping

9 years agoMake error messages consistent
Arran Cudbard-Bell [Tue, 8 Nov 2016 19:55:06 +0000 (14:55 -0500)] 
Make error messages consistent

9 years agoRename some functions/structures in event.c
Arran Cudbard-Bell [Tue, 8 Nov 2016 19:53:55 +0000 (14:53 -0500)] 
Rename some functions/structures in event.c

9 years agoDocumentation and additional sanity checks for fr_event_cmp_time_t
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

9 years agoDocumentation and minor cleanups
Arran Cudbard-Bell [Tue, 8 Nov 2016 17:23:57 +0000 (12:23 -0500)] 
Documentation and minor cleanups

9 years agos/fr_event_list_create/fr_event_list_init/
Arran Cudbard-Bell [Tue, 8 Nov 2016 17:11:50 +0000 (12:11 -0500)] 
s/fr_event_list_create/fr_event_list_init/

9 years agoAutomated refactoring for additional callback types in fr_event_fd_insert
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

9 years agoRemove type argumet from fr_event_fd_insert/delete
Arran Cudbard-Bell [Tue, 8 Nov 2016 17:00:55 +0000 (12:00 -0500)] 
Remove type argumet from fr_event_fd_insert/delete

9 years agoAdded functions to track time for start / end / yield / resume
Alan T. DeKok [Mon, 7 Nov 2016 18:37:19 +0000 (13:37 -0500)] 
Added functions to track time for start / end / yield / resume

9 years agoRename channel to conduit
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

9 years agoadd fr_heap_pop()
Alan T. DeKok [Mon, 7 Nov 2016 17:45:50 +0000 (12:45 -0500)] 
add fr_heap_pop()

9 years agoSometimes we're spawning to reach min not spare
Arran Cudbard-Bell [Mon, 7 Nov 2016 18:32:29 +0000 (13:32 -0500)] 
Sometimes we're spawning to reach min not spare

9 years agouse SSL_SESSION_get_master_key()
Alan T. DeKok [Mon, 7 Nov 2016 15:36:36 +0000 (10:36 -0500)] 
use SSL_SESSION_get_master_key()