]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoClear out strerror buffer to avoid spurious error messages
Arran Cudbard-Bell [Thu, 31 May 2018 18:43:50 +0000 (00:43 +0600)] 
Clear out strerror buffer to avoid spurious error messages

8 years agoDon't cast to int‽
Arran Cudbard-Bell [Thu, 31 May 2018 18:34:16 +0000 (00:34 +0600)] 
Don't cast to int‽

No idea what this was there

8 years agoFixup test
Arran Cudbard-Bell [Thu, 31 May 2018 18:22:47 +0000 (00:22 +0600)] 
Fixup test

8 years agoPrint the full attribute name on error
Arran Cudbard-Bell [Thu, 31 May 2018 18:21:44 +0000 (00:21 +0600)] 
Print the full attribute name on error

8 years agovp has to be left pointing to the head of the list returned by fr_pair_list_afrom_str...
Arran Cudbard-Bell [Thu, 31 May 2018 17:09:45 +0000 (23:09 +0600)] 
vp has to be left pointing to the head of the list returned by fr_pair_list_afrom_str, else the block termination check doesn't work

8 years agofilter files can't be empty.
Alan T. DeKok [Thu, 31 May 2018 15:34:34 +0000 (11:34 -0400)] 
filter files can't be empty.

8 years agoAdd log directory archival script
Arran Cudbard-Bell [Thu, 31 May 2018 12:46:53 +0000 (18:46 +0600)] 
Add log directory archival script

8 years agodon't use track after freeing it
Alan T. DeKok [Thu, 31 May 2018 11:06:39 +0000 (07:06 -0400)] 
don't use track after freeing it

8 years agoCopy errbuf contents to fr error buffer
Arran Cudbard-Bell [Thu, 31 May 2018 09:29:59 +0000 (15:29 +0600)] 
Copy errbuf contents to fr error buffer

8 years agoConvert rand xlat to new API 2239/head
Philippe Wooding [Tue, 29 May 2018 21:17:33 +0000 (21:17 +0000)] 
Convert rand xlat to new API

8 years agoExample .clang-format config which gets us somewhere close to the formatting style...
Arran Cudbard-Bell [Thu, 31 May 2018 07:29:19 +0000 (13:29 +0600)] 
Example .clang-format config which gets us somewhere close to the formatting style we use today

8 years agoUse autoloaded attr_request_lifetime
Arran Cudbard-Bell [Thu, 31 May 2018 06:33:38 +0000 (12:33 +0600)] 
Use autoloaded attr_request_lifetime

8 years agoRemove delete_by_num
Arran Cudbard-Bell [Thu, 31 May 2018 06:32:09 +0000 (12:32 +0600)] 
Remove delete_by_num

8 years agoMissed autoload definition
Arran Cudbard-Bell [Thu, 31 May 2018 05:34:47 +0000 (11:34 +0600)] 
Missed autoload definition

8 years agoRemove extra format specifier
Arran Cudbard-Bell [Thu, 31 May 2018 05:00:00 +0000 (11:00 +0600)] 
Remove extra format specifier

8 years agoDon't need to dereference name
Arran Cudbard-Bell [Thu, 31 May 2018 04:58:34 +0000 (10:58 +0600)] 
Don't need to dereference name

8 years agoremove unused assignments
Alan T. DeKok [Thu, 31 May 2018 00:58:54 +0000 (20:58 -0400)] 
remove unused assignments

8 years agouse error string
Alan T. DeKok [Thu, 31 May 2018 00:04:42 +0000 (20:04 -0400)] 
use error string

8 years agofree pending packets before freeing the table that references them
Alan T. DeKok [Wed, 30 May 2018 19:59:31 +0000 (15:59 -0400)] 
free pending packets before freeing the table that references them

8 years agoDoxygen
Arran Cudbard-Bell [Wed, 30 May 2018 16:56:07 +0000 (22:56 +0600)] 
Doxygen

8 years agoReturn 0 not NULL in substr functions
Arran Cudbard-Bell [Wed, 30 May 2018 16:53:59 +0000 (22:53 +0600)] 
Return 0 not NULL in substr functions

8 years agomissed label
Arran Cudbard-Bell [Wed, 30 May 2018 16:31:56 +0000 (22:31 +0600)] 
missed label

8 years agoAdd an extremely bare bones pair deserializer for things like the detail reader and...
Arran Cudbard-Bell [Wed, 30 May 2018 16:31:36 +0000 (22:31 +0600)] 
Add an extremely bare bones pair deserializer for things like the detail reader and other string based protocols

8 years agoFix more instances of manual escaping
Arran Cudbard-Bell [Wed, 30 May 2018 15:17:24 +0000 (21:17 +0600)] 
Fix more instances of manual escaping

8 years agoThe correct macro is isspace
Arran Cudbard-Bell [Wed, 30 May 2018 15:13:36 +0000 (21:13 +0600)] 
The correct macro is isspace

8 years agoAdd protocol attribute in internal dictionary, we'll automatically populate it with...
Arran Cudbard-Bell [Wed, 30 May 2018 15:12:19 +0000 (21:12 +0600)] 
Add protocol attribute in internal dictionary, we'll automatically populate it with all the protocols later

8 years agoFree anything we alloc in mod_decode if decoding the detail entry fails
Arran Cudbard-Bell [Wed, 30 May 2018 15:11:37 +0000 (21:11 +0600)] 
Free anything we alloc in mod_decode if decoding the detail entry fails

Not strictly necessary but usually a good thing to do

8 years agoAdditional autoload boilerplate in proto_detail
Arran Cudbard-Bell [Wed, 30 May 2018 15:10:41 +0000 (21:10 +0600)] 
Additional autoload boilerplate in proto_detail

8 years agoPass quote and taint through to fr_pair_value_from_str
Arran Cudbard-Bell [Wed, 30 May 2018 11:41:33 +0000 (17:41 +0600)] 
Pass quote and taint through to fr_pair_value_from_str

8 years agoConvert dict substr functions so they return number of bytes parsed
Arran Cudbard-Bell [Wed, 30 May 2018 06:13:54 +0000 (12:13 +0600)] 
Convert dict substr functions so they return number of bytes parsed

8 years agoFixup tmpl_define_undefined_attr to take a default dictionary
Arran Cudbard-Bell [Wed, 30 May 2018 06:10:31 +0000 (12:10 +0600)] 
Fixup tmpl_define_undefined_attr to take a default dictionary

8 years agoAdd dictionary pointer to request, and use it to qualify name based dictionary lookups
Arran Cudbard-Bell [Wed, 30 May 2018 05:46:43 +0000 (11:46 +0600)] 
Add dictionary pointer to request, and use it to qualify name based dictionary lookups

8 years agojust use attr_name instead of attr_dhcp_name
Alan T. DeKok [Tue, 29 May 2018 15:33:05 +0000 (11:33 -0400)] 
just use attr_name instead of attr_dhcp_name

we already know that this is DHCPv4

8 years agouse correct name for magic stuff.
Alan T. DeKok [Tue, 29 May 2018 15:31:51 +0000 (11:31 -0400)] 
use correct name for magic stuff.

This should really be in a macro, and then used for both
the dictionary loader, and the structure name

8 years agoset src/dst IP for packets appropriately
Alan T. DeKok [Tue, 29 May 2018 15:10:38 +0000 (11:10 -0400)] 
set src/dst IP for packets appropriately

8 years agowarn / error on no YIADDR
Alan T. DeKok [Tue, 29 May 2018 14:54:04 +0000 (10:54 -0400)] 
warn / error on no YIADDR

8 years agodrop replies if we fail on discover
Alan T. DeKok [Tue, 29 May 2018 01:26:38 +0000 (21:26 -0400)] 
drop replies if we fail on discover

8 years agoPass in dict when searching for duplicate names in dict_unknown_afrom_fields
Arran Cudbard-Bell [Tue, 29 May 2018 09:53:45 +0000 (15:53 +0600)] 
Pass in dict when searching for duplicate names in dict_unknown_afrom_fields

8 years agoFix IV search
Arran Cudbard-Bell [Tue, 29 May 2018 09:40:59 +0000 (15:40 +0600)] 
Fix IV search

Missed bounds check, wrong offset fed to sim_iv_extract function

Turns out this wasn't actually being tested due to issues in the test ctx initialisation code

8 years agoFixup EAP-SIM/AKA encode/decode ctxs
Arran Cudbard-Bell [Tue, 29 May 2018 08:37:52 +0000 (14:37 +0600)] 
Fixup EAP-SIM/AKA encode/decode ctxs

8 years agoUse sim algo attribute
Arran Cudbard-Bell [Tue, 29 May 2018 08:37:13 +0000 (14:37 +0600)] 
Use sim algo attribute

8 years agoMissed conversion
Arran Cudbard-Bell [Tue, 29 May 2018 08:34:17 +0000 (14:34 +0600)] 
Missed conversion

8 years agoFixup priority parsing
Arran Cudbard-Bell [Tue, 29 May 2018 08:09:00 +0000 (14:09 +0600)] 
Fixup priority parsing

If we *really* want to hide this we should add a parser flag

8 years agoMore autoload fixups
Arran Cudbard-Bell [Tue, 29 May 2018 05:10:21 +0000 (11:10 +0600)] 
More autoload fixups

8 years agoset opcode properly, and also hops
Alan T. DeKok [Mon, 28 May 2018 20:59:56 +0000 (16:59 -0400)] 
set opcode properly, and also hops

8 years agoinitialize reply from request
Alan T. DeKok [Mon, 28 May 2018 20:56:59 +0000 (16:56 -0400)] 
initialize reply from request

8 years agouse correct name
Alan T. DeKok [Mon, 28 May 2018 20:51:11 +0000 (16:51 -0400)] 
use correct name

8 years agovalues for message type are uint8, not uint32
Alan T. DeKok [Mon, 28 May 2018 20:48:31 +0000 (16:48 -0400)] 
values for message type are uint8, not uint32

8 years agoensure VP is set to NULL when it's freed
Alan T. DeKok [Mon, 28 May 2018 20:46:55 +0000 (16:46 -0400)] 
ensure VP is set to NULL when it's freed

8 years agoset packet_len
Alan T. DeKok [Mon, 28 May 2018 20:44:57 +0000 (16:44 -0400)] 
set packet_len

8 years agowe use "transport" and not "protocol"
Alan T. DeKok [Mon, 28 May 2018 20:43:00 +0000 (16:43 -0400)] 
we use "transport" and not "protocol"

8 years agofix type to lib name check
Alan T. DeKok [Mon, 28 May 2018 20:38:21 +0000 (16:38 -0400)] 
fix type to lib name check

8 years agodo RFC 2131 checks on destination IPs for DHCP packets
Alan T. DeKok [Mon, 28 May 2018 18:42:48 +0000 (14:42 -0400)] 
do RFC 2131 checks on destination IPs for DHCP packets

8 years agowe don't respond to DECLINEs, either
Alan T. DeKok [Mon, 28 May 2018 17:52:37 +0000 (13:52 -0400)] 
we don't respond to DECLINEs, either

8 years agoremove old RADIUS stuff
Alan T. DeKok [Mon, 28 May 2018 17:36:45 +0000 (13:36 -0400)] 
remove old RADIUS stuff

8 years agoMove auth_name() into proto_radius_auth
Arran Cudbard-Bell [Mon, 28 May 2018 12:14:08 +0000 (18:14 +0600)] 
Move auth_name() into proto_radius_auth

8 years agoMove state tree init and configuration to proto_radius_auth
Arran Cudbard-Bell [Mon, 28 May 2018 11:50:36 +0000 (17:50 +0600)] 
Move state tree init and configuration to proto_radius_auth

We should add a mechanism for sharing the state trees between listeners in future.

8 years agoMerge pull request #2237 from pwdng/xlat_md5
Arran Cudbard-Bell [Mon, 28 May 2018 10:27:29 +0000 (16:27 +0600)] 
Merge pull request #2237 from pwdng/xlat_md5

Convert MD5 xlat to new API

8 years agoConvert md5 xlat to new API 2237/head
Philippe Wooding [Fri, 25 May 2018 12:12:38 +0000 (12:12 +0000)] 
Convert md5 xlat to new API

8 years agoA few more cursor conversions...
Arran Cudbard-Bell [Mon, 28 May 2018 09:10:23 +0000 (15:10 +0600)] 
A few more cursor conversions...

8 years agoDoxygen
Arran Cudbard-Bell [Mon, 28 May 2018 08:58:22 +0000 (14:58 +0600)] 
Doxygen

8 years agoSimplify state API
Arran Cudbard-Bell [Mon, 28 May 2018 08:42:47 +0000 (14:42 +0600)] 
Simplify state API

8 years agoMissed rename
Arran Cudbard-Bell [Mon, 28 May 2018 08:34:34 +0000 (14:34 +0600)] 
Missed rename

8 years agoFixup DHCP attributes in rlm_soh
Arran Cudbard-Bell [Mon, 28 May 2018 08:24:42 +0000 (14:24 +0600)] 
Fixup DHCP attributes in rlm_soh

8 years agoRemove fr_dict_attr_by_num
Arran Cudbard-Bell [Mon, 28 May 2018 08:18:30 +0000 (14:18 +0600)] 
Remove fr_dict_attr_by_num

There's still fr_dict_child_attr_by_num which should be used instead

8 years agoMore cursor conversions
Arran Cudbard-Bell [Mon, 28 May 2018 08:14:31 +0000 (14:14 +0600)] 
More cursor conversions

8 years agoRemove state calls from the old state machine
Arran Cudbard-Bell [Mon, 28 May 2018 06:12:53 +0000 (12:12 +0600)] 
Remove state calls from the old state machine

8 years agoRemove more calls to fr_dict_attr_num
Arran Cudbard-Bell [Mon, 28 May 2018 05:49:03 +0000 (11:49 +0600)] 
Remove more calls to fr_dict_attr_num

8 years agoSplit out VQP into a library
Arran Cudbard-Bell [Mon, 28 May 2018 05:48:41 +0000 (11:48 +0600)] 
Split out VQP into a library

8 years agoAutoload proto_radius_coa attribute
Arran Cudbard-Bell [Mon, 28 May 2018 05:12:48 +0000 (11:12 +0600)] 
Autoload proto_radius_coa attribute

8 years agoAutoload proto_vmps_all attributes
Arran Cudbard-Bell [Mon, 28 May 2018 05:09:25 +0000 (11:09 +0600)] 
Autoload proto_vmps_all attributes

8 years agoAutoload proto_vmps_dynamic_client attributes
Arran Cudbard-Bell [Mon, 28 May 2018 04:59:42 +0000 (10:59 +0600)] 
Autoload proto_vmps_dynamic_client attributes

8 years agoAutoload unpack attributes
Arran Cudbard-Bell [Mon, 28 May 2018 04:55:26 +0000 (10:55 +0600)] 
Autoload unpack attributes

8 years agoFix usages of the old sim/aka root attributes
Arran Cudbard-Bell [Mon, 28 May 2018 04:53:15 +0000 (10:53 +0600)] 
Fix usages of the old sim/aka root attributes

8 years agoMove dhcp_parameter_request_list into dhcpv4 library
Arran Cudbard-Bell [Mon, 28 May 2018 04:24:48 +0000 (10:24 +0600)] 
Move dhcp_parameter_request_list into dhcpv4 library

8 years agoUse autoloaded attributes in more places in EAP-SIM
Arran Cudbard-Bell [Mon, 28 May 2018 04:24:29 +0000 (10:24 +0600)] 
Use autoloaded attributes in more places in EAP-SIM

8 years agoUse new style cursors and autoloaded attributes in SIM library
Arran Cudbard-Bell [Mon, 28 May 2018 04:03:09 +0000 (10:03 +0600)] 
Use new style cursors and autoloaded attributes in SIM library

8 years agoAllow token.h to be used standalone
Arran Cudbard-Bell [Mon, 28 May 2018 03:55:19 +0000 (09:55 +0600)] 
Allow token.h to be used standalone

8 years agoupdate docs and examples
Alan T. DeKok [Mon, 28 May 2018 01:07:11 +0000 (21:07 -0400)] 
update docs and examples

8 years agouse packet name, not library name for configuration section.
Alan T. DeKok [Mon, 28 May 2018 00:57:38 +0000 (20:57 -0400)] 
use packet name, not library name for configuration section.

remove unnecessary code.
document changes to the "log" section

8 years agoremove wrong comment
Alan T. DeKok [Mon, 28 May 2018 00:44:24 +0000 (20:44 -0400)] 
remove wrong comment

8 years agos/fr_app_process_t/fr_app_worker_t/
Alan T. DeKok [Mon, 28 May 2018 00:41:15 +0000 (20:41 -0400)] 
s/fr_app_process_t/fr_app_worker_t/

This structure is called by the worker to process a particular
application

8 years agowe don't respond to RELEASE
Alan T. DeKok [Mon, 28 May 2018 00:36:19 +0000 (20:36 -0400)] 
we don't respond to RELEASE

8 years agowe don't reply to RELEASE
Alan T. DeKok [Thu, 24 May 2018 15:02:45 +0000 (11:02 -0400)] 
we don't reply to RELEASE

so we don't run "send reply" either

8 years agore-add src_ipaddr configuration
Alan T. DeKok [Thu, 24 May 2018 12:53:52 +0000 (08:53 -0400)] 
re-add src_ipaddr configuration

8 years agoRename pair_cursor functions to make conversion easier
Arran Cudbard-Bell [Sun, 27 May 2018 17:11:25 +0000 (23:11 +0600)] 
Rename pair_cursor functions to make conversion easier

8 years agoTypo
Arran Cudbard-Bell [Sun, 27 May 2018 17:10:48 +0000 (23:10 +0600)] 
Typo

8 years agoUse inline functions so we get type validation
Arran Cudbard-Bell [Sun, 27 May 2018 17:07:55 +0000 (23:07 +0600)] 
Use inline functions so we get type validation

8 years agoUse fr_cursor_t in exfile.c
Arran Cudbard-Bell [Sun, 27 May 2018 17:02:50 +0000 (23:02 +0600)] 
Use fr_cursor_t in exfile.c

8 years agoConvert more things to fr_cursor_t
Arran Cudbard-Bell [Sun, 27 May 2018 16:57:30 +0000 (22:57 +0600)] 
Convert more things to fr_cursor_t

8 years agoFix bug in foreach which used an out of scope variable for the temporary list head
Arran Cudbard-Bell [Sun, 27 May 2018 16:57:10 +0000 (22:57 +0600)] 
Fix bug in foreach which used an out of scope variable for the temporary list head

Thanks ASAN!

8 years agouse macro to initialise by_da and by_ancestor cursors
Arran Cudbard-Bell [Sun, 27 May 2018 16:44:40 +0000 (22:44 +0600)] 
use macro to initialise by_da and by_ancestor cursors

8 years agoRemove unused var
Arran Cudbard-Bell [Sun, 27 May 2018 02:49:16 +0000 (08:49 +0600)] 
Remove unused var

8 years agoI don't know how we can be any clearer...
Arran Cudbard-Bell [Sat, 26 May 2018 14:37:34 +0000 (20:37 +0600)] 
I don't know how we can be any clearer...

8 years agoMove all the extremely RADIUS specific logging options out of the server core into...
Arran Cudbard-Bell [Fri, 25 May 2018 11:22:16 +0000 (17:22 +0600)] 
Move all the extremely RADIUS specific logging options out of the server core into proto_radius_auth.c

8 years agoUnused instance
Arran Cudbard-Bell [Fri, 25 May 2018 10:48:11 +0000 (16:48 +0600)] 
Unused instance

8 years agoDoxygen
Arran Cudbard-Bell [Fri, 25 May 2018 10:35:12 +0000 (16:35 +0600)] 
Doxygen

8 years agoMore fixups
Arran Cudbard-Bell [Fri, 25 May 2018 10:25:51 +0000 (16:25 +0600)] 
More fixups

8 years agoMissed cf_pair_in_table function
Arran Cudbard-Bell [Fri, 25 May 2018 09:49:58 +0000 (15:49 +0600)] 
Missed cf_pair_in_table function

8 years agoYes, unfortunately the state machines need instance data too
Arran Cudbard-Bell [Fri, 25 May 2018 09:49:17 +0000 (15:49 +0600)] 
Yes, unfortunately the state machines need instance data too