]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agoRename unlang_action to unlang_signal in some places
Arran Cudbard-Bell [Wed, 24 May 2017 21:23:36 +0000 (17:23 -0400)] 
Rename unlang_action to unlang_signal in some places

9 years agocomment out unused code
Alan T. DeKok [Wed, 24 May 2017 21:08:54 +0000 (17:08 -0400)] 
comment out unused code

9 years agoshhh clang scan
Arran Cudbard-Bell [Wed, 24 May 2017 20:59:06 +0000 (16:59 -0400)] 
shhh clang scan

9 years agoSet data in all cases
Arran Cudbard-Bell [Wed, 24 May 2017 20:31:27 +0000 (16:31 -0400)] 
Set data in all cases

9 years agoUse common protocol encoder for RADIUS
Arran Cudbard-Bell [Wed, 24 May 2017 20:23:53 +0000 (16:23 -0400)] 
Use common protocol encoder for RADIUS

9 years agoremove unused macro
Alan T. DeKok [Wed, 24 May 2017 20:13:07 +0000 (16:13 -0400)] 
remove unused macro

9 years agoas posted to the list
Alan T. DeKok [Wed, 24 May 2017 19:55:05 +0000 (15:55 -0400)] 
as posted to the list

9 years agodon't build rlm_mruby
Alan T. DeKok [Wed, 24 May 2017 19:40:26 +0000 (15:40 -0400)] 
don't build rlm_mruby

it needs to be fixed before we can auto-build it in travis

9 years agoadd low-level fr_radius_encode()
Alan T. DeKok [Wed, 24 May 2017 19:39:42 +0000 (15:39 -0400)] 
add low-level fr_radius_encode()

Lots of funcion parameters, but at least it's low-level

9 years agoadd test for IPv4 encode / decode
Alan T. DeKok [Wed, 24 May 2017 19:30:39 +0000 (15:30 -0400)] 
add test for IPv4 encode / decode

9 years agolink to the scheduler, but don't use it until we have one
Alan T. DeKok [Wed, 24 May 2017 19:14:36 +0000 (15:14 -0400)] 
link to the scheduler, but don't use it until we have one

9 years agostart of mod_decode
Alan T. DeKok [Wed, 24 May 2017 18:20:35 +0000 (14:20 -0400)] 
start of mod_decode

9 years agotransport_ctx shouldn't be const for encode/decode
Alan T. DeKok [Wed, 24 May 2017 18:15:35 +0000 (14:15 -0400)] 
transport_ctx shouldn't be const for encode/decode

we might want stats, etc.

9 years agobetter notes on stream transport issues
Alan T. DeKok [Wed, 24 May 2017 15:57:29 +0000 (11:57 -0400)] 
better notes on stream transport issues

9 years agostupid git
Alan T. DeKok [Wed, 24 May 2017 15:46:21 +0000 (11:46 -0400)] 
stupid git

9 years agoadded destructor on fr_network_socket_t
Alan T. DeKok [Wed, 24 May 2017 15:44:35 +0000 (11:44 -0400)] 
added destructor on fr_network_socket_t

and do better cleanups on error

9 years agocan handle errors on write
Alan T. DeKok [Wed, 24 May 2017 14:33:22 +0000 (10:33 -0400)] 
can handle errors on write

9 years agoexpose fr_ptr_to_type
Alan T. DeKok [Wed, 24 May 2017 14:33:08 +0000 (10:33 -0400)] 
expose fr_ptr_to_type

9 years agoremove packet, not list
Alan T. DeKok [Wed, 24 May 2017 14:30:43 +0000 (10:30 -0400)] 
remove packet, not list

9 years agodoxygen for functions
Alan T. DeKok [Wed, 24 May 2017 14:25:57 +0000 (10:25 -0400)] 
doxygen for functions

Including what they do and how they work

9 years agoname the talloc context for each network / worker
Alan T. DeKok [Tue, 23 May 2017 20:54:24 +0000 (16:54 -0400)] 
name the talloc context for each network / worker

9 years agofree sw, as it's now allocated in the context of sc
Alan T. DeKok [Tue, 23 May 2017 20:51:37 +0000 (16:51 -0400)] 
free sw, as it's now allocated in the context of sc

9 years agolots of cleanups...
Alan T. DeKok [Tue, 23 May 2017 20:36:16 +0000 (16:36 -0400)] 
lots of cleanups...

should be broken up into multiple commits, but oh well...
the changes are fairly inter-twined

* remove "id" from fr_transport_t
* remove num_transports and **transports from worker, network,
  and scheduler
* move related fields into a common fr_packet_io_t
* add sockfd to fr_packet_io_t, so that when the
  network gets a message and needs to write it,
  it can just use the sockfd.  We probably want to
  hide sockfd in transport_ctx later.
* use fr_packet_io_t in channel data and REQUEST
* reference fr_packet_io_t in network and worker
* manually create cd->io in src/tests, where needed
* remove radius_server_udp, it's no longer needed
* add proto_radius.h, so that proto_radius_udp can use it

9 years agoPrefix yield functions/macros etc with module_
Arran Cudbard-Bell [Tue, 23 May 2017 19:53:57 +0000 (15:53 -0400)] 
Prefix yield functions/macros etc with  module_

9 years agoFix lies
Arran Cudbard-Bell [Tue, 23 May 2017 19:53:12 +0000 (15:53 -0400)] 
Fix lies

9 years agorename things to be simpler
Alan T. DeKok [Tue, 23 May 2017 19:45:29 +0000 (15:45 -0400)] 
rename things to be simpler

9 years agominor updates
Alan T. DeKok [Tue, 23 May 2017 19:35:06 +0000 (15:35 -0400)] 
minor updates

9 years agoremove decode / encode
Alan T. DeKok [Tue, 23 May 2017 17:14:57 +0000 (13:14 -0400)] 
remove decode / encode

the worker needs to do this, not the state machine handler.

9 years agoremove "process" from fr_transport_t
Alan T. DeKok [Tue, 23 May 2017 16:55:39 +0000 (12:55 -0400)] 
remove "process" from fr_transport_t

9 years agomore re-work, and adding proto_radius_udp
Alan T. DeKok [Tue, 23 May 2017 15:52:52 +0000 (11:52 -0400)] 
more re-work, and adding proto_radius_udp

Lots of work still to do, but it's coming along.

9 years agoremove recv_request and send_reply from fr_transport_t
Alan T. DeKok [Tue, 23 May 2017 14:27:32 +0000 (10:27 -0400)] 
remove recv_request and send_reply from fr_transport_t

They're not used, and likely shouldn't be used

9 years agoRun talloc_get_type_abort on more things
Arran Cudbard-Bell [Tue, 23 May 2017 14:45:00 +0000 (10:45 -0400)] 
Run talloc_get_type_abort on more things

9 years agoGet tls_session_t from SSL* not the session, probably Fixes #1898
Arran Cudbard-Bell [Tue, 23 May 2017 14:44:13 +0000 (10:44 -0400)] 
Get tls_session_t from SSL* not the session, probably Fixes #1898

9 years agoMerge pull request #1993 from herwinw/rlm_mruby
Arran Cudbard-Bell [Sun, 21 May 2017 15:36:07 +0000 (11:36 -0400)] 
Merge pull request #1993 from herwinw/rlm_mruby

Remove incorrect UNUSED marker in rlm_mruby

9 years agoRemove incorrect UNUSED marker in rlm_mruby 1993/head
Herwin Weststrate [Sun, 21 May 2017 14:08:20 +0000 (16:08 +0200)] 
Remove incorrect UNUSED marker in rlm_mruby

9 years agoregenerate headers if we re-run autoconf
Alan T. DeKok [Sun, 21 May 2017 13:26:42 +0000 (09:26 -0400)] 
regenerate headers if we re-run autoconf

which doesn't cost anything 99% of the time, and allows the
server to build if changes are made to the macros and/or
dictionary.rfcX -> rfcX.h conversion

9 years agouse mod_ for name prefixes
Alan T. DeKok [Fri, 19 May 2017 13:19:16 +0000 (09:19 -0400)] 
use mod_ for name prefixes

9 years agocompile sections after opening all listeners
Alan T. DeKok [Thu, 18 May 2017 14:37:25 +0000 (10:37 -0400)] 
compile sections after opening all listeners

9 years agominor change to debug output
Alan T. DeKok [Thu, 18 May 2017 14:22:53 +0000 (10:22 -0400)] 
minor change to debug output

9 years agostart of using CONF_PARSER for proto_radius
Alan T. DeKok [Thu, 18 May 2017 14:11:54 +0000 (10:11 -0400)] 
start of using CONF_PARSER for proto_radius

9 years agodebug output for compiling new virtual servers
Alan T. DeKok [Thu, 18 May 2017 14:11:19 +0000 (10:11 -0400)] 
debug output for compiling new virtual servers

9 years agoFixup rlm_mruby to work with current v4 API
Arran Cudbard-Bell [Sun, 21 May 2017 02:19:44 +0000 (22:19 -0400)] 
Fixup rlm_mruby to work with current v4 API

Do proper martialling from FreeRADIUS types to mruby types

9 years agoRemove old rlm_ruby module
Arran Cudbard-Bell [Sat, 20 May 2017 23:24:25 +0000 (19:24 -0400)] 
Remove old rlm_ruby module

9 years agoMerge pull request #1992 from herwinw/rlm_mruby
Arran Cudbard-Bell [Sat, 20 May 2017 23:20:02 +0000 (19:20 -0400)] 
Merge pull request #1992 from herwinw/rlm_mruby

Add rlm_mruby

9 years agoAdd rlm_mruby 1992/head
Herwin Weststrate [Sat, 20 May 2017 08:27:48 +0000 (10:27 +0200)] 
Add rlm_mruby

9 years agoProvide macros for all types
Arran Cudbard-Bell [Fri, 19 May 2017 18:08:59 +0000 (14:08 -0400)] 
Provide macros for all types

9 years agoConsistently use field accessor macros for value boxes
Arran Cudbard-Bell [Fri, 19 May 2017 17:05:55 +0000 (13:05 -0400)] 
Consistently use field accessor macros for value boxes

and remove the automatic type checking macros because using function style field accessors is bad m'kay.

9 years agoFix tautology
Arran Cudbard-Bell [Fri, 19 May 2017 13:03:50 +0000 (09:03 -0400)] 
Fix tautology

9 years agoAdd type checking functions for value box access
Arran Cudbard-Bell [Fri, 19 May 2017 04:22:35 +0000 (00:22 -0400)] 
Add type checking functions for value box access

9 years agoFormatting
Arran Cudbard-Bell [Mon, 1 May 2017 00:38:50 +0000 (20:38 -0400)] 
Formatting

9 years agoDie PW_ die...
Arran Cudbard-Bell [Thu, 18 May 2017 18:07:47 +0000 (14:07 -0400)] 
Die PW_ die...

9 years agoFix for false positive in clang
Arran Cudbard-Bell [Thu, 18 May 2017 02:13:58 +0000 (22:13 -0400)] 
Fix for false positive in clang

9 years agoUse generic network decoder in RADIUS decoder
Arran Cudbard-Bell [Wed, 17 May 2017 23:12:02 +0000 (19:12 -0400)] 
Use generic network decoder in RADIUS decoder

9 years agoUse box macro
Arran Cudbard-Bell [Wed, 17 May 2017 21:59:11 +0000 (17:59 -0400)] 
Use box macro

9 years agodecoder_ctx is used in recursive call.
Arran Cudbard-Bell [Wed, 17 May 2017 21:54:17 +0000 (17:54 -0400)] 
decoder_ctx is used in recursive call.

9 years agoDoxygen
Arran Cudbard-Bell [Wed, 17 May 2017 21:54:02 +0000 (17:54 -0400)] 
Doxygen

9 years agoEncode scope in IPv6 addresses if it's > 0
Arran Cudbard-Bell [Wed, 17 May 2017 21:51:33 +0000 (17:51 -0400)] 
Encode scope in IPv6 addresses if it's > 0

Don't add padding byte for V4 prefix

Only encode scope in IPv6 prefixes if it's > 0

9 years agoallow for partially parsed sections
Alan T. DeKok [Wed, 17 May 2017 20:47:18 +0000 (16:47 -0400)] 
allow for partially parsed sections

where it doesn't print out the final }, until the caller
parses more sub-sections, and then calls cf_parse_section()
again, with variables=NULL

9 years agoplumb Status-Server into new method.
Alan T. DeKok [Wed, 17 May 2017 19:35:24 +0000 (15:35 -0400)] 
plumb Status-Server into new method.

It compiles the unlang, but doesn't do anything else yet

9 years agobe more gentle with USEC
Alan T. DeKok [Wed, 17 May 2017 19:19:35 +0000 (15:19 -0400)] 
be more gentle with USEC

9 years agostart of new protocol code.
Alan T. DeKok [Wed, 17 May 2017 19:01:17 +0000 (15:01 -0400)] 
start of new protocol code.

9 years agoskip "namespace" in virtual servers
Alan T. DeKok [Wed, 17 May 2017 18:23:34 +0000 (14:23 -0400)] 
skip "namespace" in virtual servers

9 years agoremove "namespace" from old-style listeners
Alan T. DeKok [Wed, 17 May 2017 18:23:23 +0000 (14:23 -0400)] 
remove "namespace" from old-style listeners

9 years agoFix issues with unknown attributes in TTLS decoder
Arran Cudbard-Bell [Wed, 17 May 2017 20:54:48 +0000 (16:54 -0400)] 
Fix issues with unknown attributes in TTLS decoder

9 years agoReturn error message from fast decoder
Arran Cudbard-Bell [Wed, 17 May 2017 20:52:09 +0000 (16:52 -0400)] 
Return error message from fast decoder

9 years agoPrint the error
Arran Cudbard-Bell [Wed, 17 May 2017 20:50:09 +0000 (16:50 -0400)] 
Print the error

9 years agoMake ttls decoder use generic network decoder
Arran Cudbard-Bell [Wed, 17 May 2017 20:43:22 +0000 (16:43 -0400)] 
Make ttls decoder use generic network decoder

9 years agoUse macros for byte inversion that should work on byte strings without alignment...
Arran Cudbard-Bell [Wed, 17 May 2017 20:42:36 +0000 (16:42 -0400)] 
Use macros for byte inversion that should work on byte strings without alignment issues

9 years agoFixup eap_fast_fast2vp
Arran Cudbard-Bell [Wed, 17 May 2017 17:32:15 +0000 (13:32 -0400)] 
Fixup eap_fast_fast2vp

- Deal with unknown attributes instead of ignoring them.
- Use the same parser style as everywhere else in the code
- Avoid unecessary memcpys
- Use generic network parsing function
- Use cursors properly
- Avoid confusing code paths

9 years agoFormatting
Arran Cudbard-Bell [Wed, 17 May 2017 17:25:32 +0000 (13:25 -0400)] 
Formatting

9 years agoExpose fr_pair_alloc
Arran Cudbard-Bell [Wed, 17 May 2017 17:24:43 +0000 (13:24 -0400)] 
Expose fr_pair_alloc

9 years agoBuild EAP sub modules that need configure scripts (too)
Arran Cudbard-Bell [Wed, 17 May 2017 17:24:17 +0000 (13:24 -0400)] 
Build EAP sub modules that need configure scripts (too)

9 years agoFixup doxygen headers in EAP fast
Arran Cudbard-Bell [Wed, 17 May 2017 17:24:02 +0000 (13:24 -0400)] 
Fixup doxygen headers in EAP fast

9 years agoUse generic network decoder for DHCP
Arran Cudbard-Bell [Wed, 17 May 2017 15:30:41 +0000 (11:30 -0400)] 
Use generic network decoder for DHCP

9 years agoPass stupid enumv pointer to stupid value functions, grrr...
Arran Cudbard-Bell [Wed, 17 May 2017 15:30:12 +0000 (11:30 -0400)] 
Pass stupid enumv pointer to stupid value functions, grrr...

9 years agoAlways use end
Arran Cudbard-Bell [Wed, 17 May 2017 15:29:36 +0000 (11:29 -0400)] 
Always use end

9 years agoUse fr_pair_to_unknown in more places
Arran Cudbard-Bell [Wed, 17 May 2017 15:29:18 +0000 (11:29 -0400)] 
Use fr_pair_to_unknown in more places

9 years agofail if no listener
Alan T. DeKok [Wed, 17 May 2017 15:16:59 +0000 (11:16 -0400)] 
fail if no listener

9 years agoallow listener to be NULL
Alan T. DeKok [Tue, 16 May 2017 20:33:22 +0000 (16:33 -0400)] 
allow listener to be NULL

in preparation for new transport code

9 years agoFix some incorrect calls to fr_dict_unknown_afrom_fields
Arran Cudbard-Bell [Wed, 17 May 2017 14:37:15 +0000 (10:37 -0400)] 
Fix some incorrect calls to fr_dict_unknown_afrom_fields

9 years agoSwitch proto ARP to generic decoder
Arran Cudbard-Bell [Wed, 17 May 2017 14:35:07 +0000 (10:35 -0400)] 
Switch proto ARP to generic decoder

9 years agoFormatting
Arran Cudbard-Bell [Wed, 17 May 2017 13:44:10 +0000 (09:44 -0400)] 
Formatting

9 years agoUse FR_TYPE_NON_VALUES in fr_value_box_hton
Arran Cudbard-Bell [Wed, 17 May 2017 13:43:00 +0000 (09:43 -0400)] 
Use FR_TYPE_NON_VALUES in fr_value_box_hton

9 years agoAdd taint to fr_value_box_from_str
Arran Cudbard-Bell [Wed, 17 May 2017 13:42:37 +0000 (09:42 -0400)] 
Add taint to fr_value_box_from_str

9 years agoFix build
Arran Cudbard-Bell [Wed, 17 May 2017 11:22:59 +0000 (07:22 -0400)] 
Fix build

9 years agoCan't be inlined
Arran Cudbard-Bell [Tue, 16 May 2017 22:00:18 +0000 (18:00 -0400)] 
Can't be inlined

9 years agoFormatting
Arran Cudbard-Bell [Tue, 16 May 2017 21:46:02 +0000 (17:46 -0400)] 
Formatting

9 years agoAdd function to validate entire utf8_string
Arran Cudbard-Bell [Tue, 16 May 2017 21:45:54 +0000 (17:45 -0400)] 
Add function to validate entire utf8_string

9 years agoAdd to_network and from_network functions
Arran Cudbard-Bell [Tue, 16 May 2017 21:45:32 +0000 (17:45 -0400)] 
Add to_network and from_network functions

These implement generic attribute parsing

9 years agoMiscellaneous fixes in value.c
Arran Cudbard-Bell [Tue, 16 May 2017 15:02:35 +0000 (11:02 -0400)] 
Miscellaneous fixes in value.c

9 years agoremove Simultaneous-Use from the new listeners
Alan T. DeKok [Tue, 16 May 2017 20:12:29 +0000 (16:12 -0400)] 
remove Simultaneous-Use from the new listeners

They're still in the old listeners for now.

The functionality can be replicated in v4 via maps, exec'd
programs, and child virtual servers

9 years agominor fix to state machine
Alan T. DeKok [Tue, 16 May 2017 19:58:07 +0000 (15:58 -0400)] 
minor fix to state machine

9 years agomove old listener code to a separate function
Alan T. DeKok [Tue, 16 May 2017 18:07:47 +0000 (14:07 -0400)] 
move old listener code to a separate function

9 years agoadd FR_TRANSPORT_FAIL
Alan T. DeKok [Tue, 16 May 2017 17:43:56 +0000 (13:43 -0400)] 
add FR_TRANSPORT_FAIL

which means that processing the packet failed.  It's done, but
we don't send a reply, because it failed.

9 years agoinstall generated files in travis
Alan T. DeKok [Tue, 16 May 2017 12:19:52 +0000 (08:19 -0400)] 
install generated files in travis

9 years agouse correct packet for channel binding. Closes #1990
Alan T. DeKok [Tue, 16 May 2017 12:07:12 +0000 (08:07 -0400)] 
use correct packet for channel binding.  Closes #1990

9 years agofix typo
Alan T. DeKok [Tue, 16 May 2017 12:02:57 +0000 (08:02 -0400)] 
fix typo

9 years agoremove duplicate send
Alan T. DeKok [Fri, 12 May 2017 18:28:46 +0000 (14:28 -0400)] 
remove duplicate send

9 years agoUse NON_VALUES macro in RADIUS encoder
Arran Cudbard-Bell [Tue, 16 May 2017 02:14:55 +0000 (22:14 -0400)] 
Use NON_VALUES macro in RADIUS encoder

9 years agoAdd more static asserts, and byte order inverions for floats
Arran Cudbard-Bell [Tue, 16 May 2017 01:59:16 +0000 (21:59 -0400)] 
Add more static asserts, and byte order inverions for floats