]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agoRename more functions
Arran Cudbard-Bell [Mon, 5 Jun 2017 00:55:56 +0000 (20:55 -0400)] 
Rename more functions

9 years agos/fr_conn_reconnect/fr_connection_reconnect/
Arran Cudbard-Bell [Sun, 4 Jun 2017 23:53:03 +0000 (19:53 -0400)] 
s/fr_conn_reconnect/fr_connection_reconnect/

9 years agoIgnore ca.der
Arran Cudbard-Bell [Sun, 4 Jun 2017 23:52:13 +0000 (19:52 -0400)] 
Ignore ca.der

9 years agoRename connection pool functions
Arran Cudbard-Bell [Sun, 4 Jun 2017 23:43:15 +0000 (19:43 -0400)] 
Rename connection pool functions

9 years agos/conn/connection/
Arran Cudbard-Bell [Sun, 4 Jun 2017 22:17:56 +0000 (18:17 -0400)] 
s/conn/connection/

9 years agoFix fr_ipaddr boxing macro
Arran Cudbard-Bell [Sun, 4 Jun 2017 21:49:30 +0000 (17:49 -0400)] 
Fix fr_ipaddr boxing macro

9 years agoUse our own stdatomic.h if the system/compiler doesn’t have one
Arran Cudbard-Bell [Sun, 4 Jun 2017 21:43:32 +0000 (17:43 -0400)] 
Use our own stdatomic.h if the system/compiler doesn’t have one

9 years agoFix build issues
Arran Cudbard-Bell [Sun, 4 Jun 2017 21:31:17 +0000 (17:31 -0400)] 
Fix build issues

9 years agoAdd completely untested rlm_logtee module to 'tee' request logs to different destinations
Arran Cudbard-Bell [Sun, 4 Jun 2017 20:31:07 +0000 (16:31 -0400)] 
Add completely untested rlm_logtee module to 'tee' request logs to different destinations

Untested because *someone* broke all the async listeners

9 years agoAdd generic IP boxing macro for all AFs
Arran Cudbard-Bell [Sun, 4 Jun 2017 20:30:24 +0000 (16:30 -0400)] 
Add generic IP boxing macro for all AFs

9 years agoAdd simple connection state machine
Arran Cudbard-Bell [Sun, 4 Jun 2017 20:29:13 +0000 (16:29 -0400)] 
Add simple connection state machine

This is for establishing outgoing connections using an async evet loop

9 years agoRemove constants from the magic number when we're doing version checks
Arran Cudbard-Bell [Sun, 4 Jun 2017 19:53:59 +0000 (15:53 -0400)] 
Remove constants from the magic number when we're doing version checks

Number was too big

9 years agoFix attribute number overloading in internal dictionary
Arran Cudbard-Bell [Sun, 4 Jun 2017 19:46:25 +0000 (15:46 -0400)] 
Fix attribute number overloading in internal dictionary

9 years agos/ctx/uctx/ in event callbacks
Arran Cudbard-Bell [Sun, 4 Jun 2017 19:45:55 +0000 (15:45 -0400)] 
s/ctx/uctx/ in event callbacks

Means it doesn't get confused with talloc_ctx

9 years agoFind next nearest power of 2 in fr_ring_buffer_create
Arran Cudbard-Bell [Sun, 4 Jun 2017 19:45:30 +0000 (15:45 -0400)] 
Find next nearest power of 2 in fr_ring_buffer_create

9 years agos/cbuff/fring/
Arran Cudbard-Bell [Sun, 4 Jun 2017 19:45:09 +0000 (15:45 -0400)] 
s/cbuff/fring/

9 years agoFormatting
Arran Cudbard-Bell [Sun, 4 Jun 2017 19:44:09 +0000 (15:44 -0400)] 
Formatting

9 years agoRename connection.c/pool.c
Arran Cudbard-Bell [Sun, 4 Jun 2017 18:39:37 +0000 (14:39 -0400)] 
Rename connection.c/pool.c

9 years agoFix spelling
Arran Cudbard-Bell [Sun, 4 Jun 2017 18:37:09 +0000 (14:37 -0400)] 
Fix spelling

9 years agoAdd slack notifications
Arran Cudbard-Bell [Fri, 2 Jun 2017 22:01:05 +0000 (18:01 -0400)] 
Add slack notifications

9 years agoReformat .travis.yml
Arran Cudbard-Bell [Fri, 2 Jun 2017 22:00:22 +0000 (18:00 -0400)] 
Reformat .travis.yml

9 years agoFix circular buffer to not do weird stuff
Arran Cudbard-Bell [Fri, 2 Jun 2017 21:54:59 +0000 (17:54 -0400)] 
Fix circular buffer to not do weird stuff

Like steal the memory into its context????? Ummm who thought that was a good idea.

9 years agoAllow for chains of log destinations
Arran Cudbard-Bell [Fri, 2 Jun 2017 20:28:52 +0000 (16:28 -0400)] 
Allow for chains of log destinations

9 years agoStore a log uctx in the request and pass it to the callback function
Arran Cudbard-Bell [Fri, 2 Jun 2017 19:10:14 +0000 (15:10 -0400)] 
Store a log uctx in the request and pass it to the callback function

This allows custom log functions to store different uctx data

9 years agos/radlog_func_t/log_func_t/
Arran Cudbard-Bell [Fri, 2 Jun 2017 13:34:49 +0000 (09:34 -0400)] 
s/radlog_func_t/log_func_t/

To match the nameing scheme

9 years agoit's OK to not have a client cert. Closes #2001
Alan T. DeKok [Fri, 2 Jun 2017 19:00:51 +0000 (15:00 -0400)] 
it's OK to not have a client cert.  Closes #2001

9 years agoAllow session resumption ctx to be set on a per-request basis
Arran Cudbard-Bell [Fri, 2 Jun 2017 12:41:35 +0000 (08:41 -0400)] 
Allow session resumption ctx to be set on a per-request basis

Convert to using vp_tmpl_t so the value can come from a dynamic expansion

9 years agoFixup formatting in eap config
Arran Cudbard-Bell [Fri, 2 Jun 2017 12:38:55 +0000 (08:38 -0400)] 
Fixup formatting in eap config

9 years agoupdate logstash config for latest version
Matthew Newton [Thu, 1 Jun 2017 22:40:58 +0000 (18:40 -0400)] 
update logstash config for latest version

9 years agoset request->rcode in resumption, too
Alan T. DeKok [Thu, 1 Jun 2017 19:40:36 +0000 (15:40 -0400)] 
set request->rcode in resumption, too

9 years agoExpose tls_server_config and tls_client_config
Arran Cudbard-Bell [Thu, 1 Jun 2017 19:32:34 +0000 (15:32 -0400)] 
Expose tls_server_config and tls_client_config

We should use these directly as PW_TYPE_SUBSECTION pointers instead of calling cf_section_parse

9 years agoRename FR_CONF_SUBSECTION_MULTI to FR_CONF_SUBSECTION_ALLOC
Arran Cudbard-Bell [Thu, 1 Jun 2017 19:30:43 +0000 (15:30 -0400)] 
Rename FR_CONF_SUBSECTION_MULTI to FR_CONF_SUBSECTION_ALLOC

FR_CONF_SUBSECTION_ALLOC is the macro for specifying subsections which should be alloced, and are not directly nested in the instance data.

9 years agoFormatting
Arran Cudbard-Bell [Thu, 1 Jun 2017 19:16:08 +0000 (15:16 -0400)] 
Formatting

9 years agofixup debian package building - quilt refresh
Matthew Newton [Thu, 1 Jun 2017 18:29:52 +0000 (14:29 -0400)] 
fixup debian package building - quilt refresh

9 years agoset *presult, too. It's sort of useful...
Alan T. DeKok [Thu, 1 Jun 2017 18:13:22 +0000 (14:13 -0400)] 
set *presult, too.  It's sort of useful...

9 years agouse correct type. Closes #1998
Alan T. DeKok [Thu, 1 Jun 2017 11:27:41 +0000 (07:27 -0400)] 
use correct type.  Closes #1998

It's better to pass the right type to a function, and cast it
on return.

9 years agodoxygen
Alan T. DeKok [Wed, 31 May 2017 22:19:36 +0000 (18:19 -0400)] 
doxygen

9 years agomove "do_pop" outside of the main loop
Alan T. DeKok [Wed, 31 May 2017 22:15:17 +0000 (18:15 -0400)] 
move "do_pop" outside of the main loop

and call calculate_result after doing a subsection.

9 years agorename labels for clarity
Alan T. DeKok [Wed, 31 May 2017 22:05:35 +0000 (18:05 -0400)] 
rename labels for clarity

9 years agodo last priority check before returning.
Alan T. DeKok [Wed, 31 May 2017 21:21:03 +0000 (17:21 -0400)] 
do last priority check before returning.

likely wrong, but I don't want to lose this code

9 years agomore debug, and set priorities
Alan T. DeKok [Wed, 31 May 2017 20:27:00 +0000 (16:27 -0400)] 
more debug, and set priorities

9 years agostupid coverity again
Alan T. DeKok [Wed, 31 May 2017 17:05:16 +0000 (13:05 -0400)] 
stupid coverity again

CID #1233595

9 years agostupid coverity again
Alan T. DeKok [Wed, 31 May 2017 17:03:50 +0000 (13:03 -0400)] 
stupid coverity again

CID #1206499

9 years agostupid coverity
Alan T. DeKok [Wed, 31 May 2017 17:02:43 +0000 (13:02 -0400)] 
stupid coverity

doesn't realize that returning in a failure case with the mutex
unlocked, means that the mutex is unlocked

CID #1206498

9 years agosimpler coverity things
Alan T. DeKok [Wed, 31 May 2017 16:58:45 +0000 (12:58 -0400)] 
simpler coverity things

CID #1411786

9 years agotypo
Alan T. DeKok [Tue, 30 May 2017 15:12:52 +0000 (11:12 -0400)] 
typo

9 years agocheck lower bound, too. Maybe this will quiet Coverity
Alan T. DeKok [Tue, 30 May 2017 13:30:15 +0000 (09:30 -0400)] 
check lower bound, too.  Maybe this will quiet Coverity

9 years agotry to quiet coverity
Alan T. DeKok [Tue, 30 May 2017 13:26:28 +0000 (09:26 -0400)] 
try to quiet coverity

If this doesn't work, we'll just have to add a comment telling
it to shut up

CID #1400031

9 years agotry to quiet coverity
Alan T. DeKok [Tue, 30 May 2017 13:15:39 +0000 (09:15 -0400)] 
try to quiet coverity

CID #1358888

9 years agodon't do double unlock
Alan T. DeKok [Tue, 30 May 2017 13:14:30 +0000 (09:14 -0400)] 
don't do double unlock

CID #1020958

9 years agotry to quiet coverity
Alan T. DeKok [Tue, 30 May 2017 13:13:17 +0000 (09:13 -0400)] 
try to quiet coverity

9 years agodon't allow zero-length buffers
Alan T. DeKok [Tue, 30 May 2017 13:12:20 +0000 (09:12 -0400)] 
don't allow zero-length buffers

9 years agotry to shut up coverity
Alan T. DeKok [Tue, 30 May 2017 13:03:27 +0000 (09:03 -0400)] 
try to shut up coverity

9 years ago45 zeros, woo
Arran Cudbard-Bell [Tue, 30 May 2017 02:19:17 +0000 (22:19 -0400)] 
45 zeros, woo

9 years agoCID 1317340: Use array initialiser instead
Arran Cudbard-Bell [Tue, 30 May 2017 01:30:43 +0000 (21:30 -0400)] 
CID 1317340: Use array initialiser instead

9 years agoCID 1400042: Emit an error message if we can’t setup fault handlers
Arran Cudbard-Bell [Sat, 27 May 2017 18:53:34 +0000 (14:53 -0400)] 
CID 1400042: Emit an error message if we can’t setup fault handlers

9 years agoCID 1400053: Quiet TOCTOU
Arran Cudbard-Bell [Tue, 30 May 2017 00:41:16 +0000 (20:41 -0400)] 
CID 1400053: Quiet TOCTOU

9 years agoCID 1400058: Dumb false positive
Arran Cudbard-Bell [Tue, 30 May 2017 00:39:32 +0000 (20:39 -0400)] 
CID 1400058: Dumb false positive

9 years agoCID 1411534: Replace at the end of the cusor becomes append
Arran Cudbard-Bell [Tue, 30 May 2017 00:33:04 +0000 (20:33 -0400)] 
CID 1411534: Replace at the end of the cusor becomes append

9 years agore-order messages
Alan T. DeKok [Mon, 29 May 2017 18:56:22 +0000 (14:56 -0400)] 
re-order messages

9 years agomore sanity checking and cleaner errors
Alan T. DeKok [Mon, 29 May 2017 18:31:08 +0000 (14:31 -0400)] 
more sanity checking and cleaner errors

9 years agorun format.pl. Closes #1997
Alan T. DeKok [Mon, 29 May 2017 17:31:57 +0000 (13:31 -0400)] 
run format.pl.  Closes #1997

9 years agomake FD scope smaller to shut up static analysis
Alan T. DeKok [Mon, 29 May 2017 16:56:02 +0000 (12:56 -0400)] 
make FD scope smaller to shut up static analysis

CID #1233595

9 years agoclose duplicated log_fd
Alan T. DeKok [Mon, 29 May 2017 16:54:09 +0000 (12:54 -0400)] 
close duplicated log_fd

CID #1206738

9 years agoremove double unlock
Alan T. DeKok [Mon, 29 May 2017 16:44:32 +0000 (12:44 -0400)] 
remove double unlock

CID #1020958

9 years agowe want the length of the uint8_t data, not eap_packet_raw_t
Alan T. DeKok [Mon, 29 May 2017 15:26:00 +0000 (11:26 -0400)] 
we want the length of the uint8_t data, not eap_packet_raw_t

9 years agoremove unused label
Alan T. DeKok [Mon, 29 May 2017 14:37:58 +0000 (10:37 -0400)] 
remove unused label

9 years agodo length checks before looking at data
Alan T. DeKok [Mon, 29 May 2017 14:13:43 +0000 (10:13 -0400)] 
do length checks before looking at data

9 years agoCID 1293623: Perform upper bounds check on EAP length field
Arran Cudbard-Bell [Sun, 28 May 2017 02:13:11 +0000 (22:13 -0400)] 
CID 1293623: Perform upper bounds check on EAP length field

9 years agoComma happy
Arran Cudbard-Bell [Sun, 28 May 2017 01:55:35 +0000 (21:55 -0400)] 
Comma happy

9 years agoCID 1316266: Copy data[2] (hlen) to a local variable, bounds check that, and use...
Arran Cudbard-Bell [Sun, 28 May 2017 01:24:27 +0000 (21:24 -0400)] 
CID 1316266: Copy data[2] (hlen) to a local variable, bounds check that, and use that in operations that access the mac address

9 years agoCID 1317340: Try and convince coverity we know what we’re doing
Arran Cudbard-Bell [Sun, 28 May 2017 01:06:50 +0000 (21:06 -0400)] 
CID 1317340: Try and convince coverity we know what we’re doing

9 years agoCID 1358881: Reorganise code so it doesn’t look like a copy/paste error
Arran Cudbard-Bell [Sun, 28 May 2017 01:00:05 +0000 (21:00 -0400)] 
CID 1358881: Reorganise code so it doesn’t look like a copy/paste error

9 years agoCID 1358882: False positive, but easier to explicitly update cert_vps
Arran Cudbard-Bell [Sun, 28 May 2017 00:43:38 +0000 (20:43 -0400)] 
CID 1358882: False positive, but easier to explicitly update cert_vps

9 years agoCID 1358885: Not dead code, just static analysis tools are dumb
Arran Cudbard-Bell [Sun, 28 May 2017 00:41:21 +0000 (20:41 -0400)] 
CID 1358885:  Not dead code, just static analysis tools are dumb

9 years agoCID 1400040: Zero out fdset
Arran Cudbard-Bell [Sun, 28 May 2017 00:36:13 +0000 (20:36 -0400)] 
CID 1400040: Zero out fdset

9 years agoCID 1400041: Restrict maximum conduit data length to UINT32_MAX (which it was anyway)
Arran Cudbard-Bell [Sun, 28 May 2017 00:29:34 +0000 (20:29 -0400)] 
CID 1400041: Restrict maximum conduit data length to UINT32_MAX (which it was anyway)

Also s/inbuf/out/

9 years agocast to size_t
Arran Cudbard-Bell [Sat, 27 May 2017 13:31:10 +0000 (09:31 -0400)] 
cast to size_t

9 years agoMerge branch 'v4.0.x' of github.com:FreeRADIUS/freeradius-server into v4.0.x
Arran Cudbard-Bell [Sat, 27 May 2017 13:25:16 +0000 (09:25 -0400)] 
Merge branch 'v4.0.x' of github.com:FreeRADIUS/freeradius-server into v4.0.x

9 years agoTainted scalar fix
Arran Cudbard-Bell [Sat, 27 May 2017 13:17:29 +0000 (09:17 -0400)] 
Tainted scalar fix

9 years agoCUD 1400036: Don't SEGV if fr_cursor_replace is called on a cursor with an empty...
Arran Cudbard-Bell [Fri, 26 May 2017 20:31:50 +0000 (16:31 -0400)] 
CUD 1400036: Don't SEGV if fr_cursor_replace is called on a cursor with an empty VP list

9 years agoMore thorough tainted scalar checks
Arran Cudbard-Bell [Fri, 26 May 2017 20:26:38 +0000 (16:26 -0400)] 
More thorough tainted scalar checks

9 years agoCID 1020958: Firebird code is awful and needs to be rewritten
Arran Cudbard-Bell [Fri, 26 May 2017 20:07:46 +0000 (16:07 -0400)] 
CID 1020958: Firebird code is awful and needs to be rewritten

9 years agoJust in case coverity is really stupid
Arran Cudbard-Bell [Fri, 26 May 2017 20:00:44 +0000 (16:00 -0400)] 
Just in case coverity is really stupid

9 years agoCID 1400066: Check for NULL parent first
Arran Cudbard-Bell [Fri, 26 May 2017 19:49:11 +0000 (15:49 -0400)] 
CID 1400066: Check for NULL parent first

9 years agoCID 1409861: Check return code
Arran Cudbard-Bell [Fri, 26 May 2017 19:43:51 +0000 (15:43 -0400)] 
CID 1409861: Check return code

9 years agono need to check variable
Alan T. DeKok [Fri, 26 May 2017 19:57:53 +0000 (15:57 -0400)] 
no need to check variable

CID #1400066

9 years agoreturn dict, 'out' must not be NULL
Alan T. DeKok [Fri, 26 May 2017 19:52:03 +0000 (15:52 -0400)] 
return dict, 'out' must not be NULL

CID #1400033

9 years agoremove dead code
Alan T. DeKok [Fri, 26 May 2017 19:50:01 +0000 (15:50 -0400)] 
remove dead code

CID #1400032

9 years agocheck for and ignore stats if !request->packet
Alan T. DeKok [Fri, 26 May 2017 19:16:08 +0000 (15:16 -0400)] 
check for and ignore stats if !request->packet

CID #1400038

9 years agoignore errors on initial fault setup
Alan T. DeKok [Fri, 26 May 2017 19:14:56 +0000 (15:14 -0400)] 
ignore errors on initial fault setup

9 years agocast to quiet static analysis
Alan T. DeKok [Fri, 26 May 2017 19:10:57 +0000 (15:10 -0400)] 
cast to quiet static analysis

CID #1409876

9 years agocheck errno, not num_events
Alan T. DeKok [Fri, 26 May 2017 19:03:46 +0000 (15:03 -0400)] 
check errno, not num_events

CID #1400045

9 years agodon't lock if there's no interpreter.
Alan T. DeKok [Fri, 26 May 2017 19:01:30 +0000 (15:01 -0400)] 
don't lock if there's no interpreter.

Mainly to shut up coverity.  CID #1400046

9 years agoCID 1400023: Check return code of fr_pair_value_from_str
Arran Cudbard-Bell [Fri, 26 May 2017 14:06:19 +0000 (10:06 -0400)] 
CID 1400023: Check return code of fr_pair_value_from_str

9 years agoCID 1358898: Set umask if we're running under coverity
Arran Cudbard-Bell [Fri, 26 May 2017 14:00:06 +0000 (10:00 -0400)] 
CID 1358898: Set umask if we're running under coverity

9 years agotypo
Alan T. DeKok [Fri, 26 May 2017 15:24:30 +0000 (11:24 -0400)] 
typo

9 years agoCID 1206505: Check octet/string attribute lengths. This is already done in VQP verify
Arran Cudbard-Bell [Fri, 26 May 2017 13:39:02 +0000 (09:39 -0400)] 
CID 1206505: Check octet/string attribute lengths.  This is already done in VQP verify

9 years agoCID 1104354: The high byte of c is always 0, so don't bother shifting.
Arran Cudbard-Bell [Fri, 26 May 2017 13:33:28 +0000 (09:33 -0400)] 
CID 1104354: The high byte of c is always 0, so don't bother shifting.

9 years agoCID 1020958: Fix double unlock
Arran Cudbard-Bell [Fri, 26 May 2017 13:28:39 +0000 (09:28 -0400)] 
CID 1020958: Fix double unlock