]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
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

9 years agoInitialise data
Arran Cudbard-Bell [Mon, 15 May 2017 22:45:34 +0000 (18:45 -0400)] 
Initialise data

9 years agoInitialise uinteger and sinteger...
Arran Cudbard-Bell [Mon, 15 May 2017 22:43:22 +0000 (18:43 -0400)] 
Initialise uinteger and sinteger...

Weird clang complains, clang scan doesn't...

9 years agoAllocate space for \0 byte
Arran Cudbard-Bell [Mon, 15 May 2017 22:35:27 +0000 (18:35 -0400)] 
Allocate space for \0 byte

9 years agoAdd support for Diameter and IPFIX base types
Arran Cudbard-Bell [Mon, 15 May 2017 22:32:37 +0000 (18:32 -0400)] 
Add support for Diameter and IPFIX base types

9 years agoHave fr_value_box_from_str always look for enumerations if we're passed dst_enumv
Arran Cudbard-Bell [Mon, 15 May 2017 18:47:57 +0000 (14:47 -0400)] 
Have fr_value_box_from_str always look for enumerations if we're passed dst_enumv

So now it works for all types...

9 years agoMove test back to where it should be...
Arran Cudbard-Bell [Mon, 15 May 2017 18:47:24 +0000 (14:47 -0400)] 
Move test back to where it should be...

9 years agoHave fr_dict_valid_name take a length, so it can work with binunsafe strings
Arran Cudbard-Bell [Mon, 15 May 2017 18:47:13 +0000 (14:47 -0400)] 
Have fr_dict_valid_name take a length, so it can work with binunsafe strings

9 years agoFix confusingly named enum functions
Arran Cudbard-Bell [Mon, 15 May 2017 17:38:11 +0000 (13:38 -0400)] 
Fix confusingly named enum functions

9 years agoAllow value aliases (enumerations) to work with any attribute type, not just integers
Arran Cudbard-Bell [Mon, 15 May 2017 17:25:52 +0000 (13:25 -0400)] 
Allow value aliases (enumerations) to work with any attribute type, not just integers

9 years agoUse vendor instead of dv, to avoid issues with search/replace
Arran Cudbard-Bell [Mon, 15 May 2017 17:23:02 +0000 (13:23 -0400)] 
Use vendor instead of dv, to avoid issues with search/replace

9 years agoFormatting
Arran Cudbard-Bell [Mon, 15 May 2017 17:21:55 +0000 (13:21 -0400)] 
Formatting

9 years agoAdd new boxing/unboxing macros
Arran Cudbard-Bell [Mon, 15 May 2017 17:21:41 +0000 (13:21 -0400)] 
Add new boxing/unboxing macros

9 years agofeed fr_strerror_printf fmt through fr_vasprintf so we can use %pV and friends
Arran Cudbard-Bell [Mon, 15 May 2017 17:20:55 +0000 (13:20 -0400)] 
feed fr_strerror_printf fmt through fr_vasprintf so we can use %pV and friends

9 years agoAdd prefix to all lines in fr_perror
Arran Cudbard-Bell [Mon, 15 May 2017 17:20:25 +0000 (13:20 -0400)] 
Add prefix to all lines in fr_perror

...else it looks dumb

9 years agofixed variable to use the "&" prefix
Alan Buxey [Thu, 27 Apr 2017 19:53:21 +0000 (20:53 +0100)] 
fixed variable to use the "&" prefix

removal of yellow warning when running with this enabled

9 years agoMerge pull request #1986 from BriceSchaffner/patch-1
Arran Cudbard-Bell [Thu, 11 May 2017 10:50:35 +0000 (06:50 -0400)] 
Merge pull request #1986 from BriceSchaffner/patch-1

Added missing Patton Vendor Attributes

9 years agoAdded missing Patton Vendor Attributes 1986/head
Brice Schaffner [Thu, 11 May 2017 10:05:24 +0000 (10:05 +0000)] 
Added missing Patton Vendor Attributes

Added some new Patton Vendor Attributes to the list.
These attributes are now supported on the newest Patton device running on Trinity software version 3.11.2.

9 years agoinstall the automatically generated files
Alan T. DeKok [Wed, 10 May 2017 19:24:37 +0000 (15:24 -0400)] 
install the automatically generated files

Only if we're not creating a package

9 years agono ca.crt
Alan T. DeKok [Wed, 10 May 2017 18:36:28 +0000 (14:36 -0400)] 
no ca.crt

9 years agomake client certificates, too
Alan T. DeKok [Wed, 10 May 2017 18:01:51 +0000 (14:01 -0400)] 
make client certificates, too

9 years agoIf we log to files, remember the filename
Alan T. DeKok [Wed, 10 May 2017 17:56:44 +0000 (13:56 -0400)] 
If we log to files, remember the filename

9 years agoset req_debug_lvl = rad_debug_lvl
Alan T. DeKok [Wed, 10 May 2017 17:44:37 +0000 (13:44 -0400)] 
set req_debug_lvl = rad_debug_lvl

radmin et al can change either one later

9 years agodefault request log to req_debug_lvl
Alan T. DeKok [Wed, 10 May 2017 17:44:28 +0000 (13:44 -0400)] 
default request log to req_debug_lvl

9 years agomore fixes for generated certificate files
Alan T. DeKok [Wed, 10 May 2017 15:36:43 +0000 (11:36 -0400)] 
more fixes for generated certificate files

9 years agoadd DH
Alan T. DeKok [Wed, 10 May 2017 15:25:44 +0000 (11:25 -0400)] 
add DH

9 years agoadd explicit dependencies
Alan T. DeKok [Wed, 10 May 2017 15:16:26 +0000 (11:16 -0400)] 
add explicit dependencies

9 years agouse previously generated test certificates if TEST_CERTS=yes
Alan T. DeKok [Wed, 10 May 2017 14:51:15 +0000 (10:51 -0400)] 
use previously generated test certificates if TEST_CERTS=yes

9 years agoauto-generated test certificates
Alan T. DeKok [Wed, 10 May 2017 14:22:59 +0000 (10:22 -0400)] 
auto-generated test certificates

9 years agowe don't want to ignore cert files everywhere.
Alan T. DeKok [Wed, 10 May 2017 14:22:16 +0000 (10:22 -0400)] 
we don't want to ignore cert files everywhere.

The raddb/certs/.gitignore file already ignores the generated
certs.

9 years agotrustrouter needs a destructor for tls_conf.
Alan T. DeKok [Wed, 10 May 2017 14:03:45 +0000 (10:03 -0400)] 
trustrouter needs a destructor for tls_conf.

Manual merge of #1985

9 years agoAdd extra types to value_box_t for Diameter and IPFIX.
Arran Cudbard-Bell [Tue, 9 May 2017 20:19:10 +0000 (16:19 -0400)] 
Add extra types to value_box_t for Diameter and IPFIX.

9 years agoFix other erroneous replacements
Arran Cudbard-Bell [Tue, 9 May 2017 20:17:22 +0000 (16:17 -0400)] 
Fix other erroneous replacements

9 years agoAdd back support for old dictionary names
Arran Cudbard-Bell [Tue, 9 May 2017 20:10:48 +0000 (16:10 -0400)] 
Add back support for old dictionary names

9 years agoRename the hard fields
Arran Cudbard-Bell [Tue, 9 May 2017 17:26:31 +0000 (13:26 -0400)] 
Rename the hard fields

9 years agoRename easy fields in value_box_t to their C equivalents
Arran Cudbard-Bell [Tue, 9 May 2017 17:18:32 +0000 (13:18 -0400)] 
Rename easy fields in value_box_t to their C equivalents

9 years agoRename FR_TYPE macros to their C equivalents
Arran Cudbard-Bell [Tue, 9 May 2017 16:37:54 +0000 (12:37 -0400)] 
Rename FR_TYPE macros to their C equivalents

We'll do this to dictionary types too at some point

9 years agos/value_box_t/fr_value_box_t/
Arran Cudbard-Bell [Tue, 9 May 2017 16:31:38 +0000 (12:31 -0400)] 
s/value_box_t/fr_value_box_t/

9 years agoRename PW_TYPE to fr_type_t and the macros from PW_TYPE_ to FR_TYPE_
Arran Cudbard-Bell [Tue, 9 May 2017 16:27:12 +0000 (12:27 -0400)] 
Rename PW_TYPE to fr_type_t and the macros from PW_TYPE_ to FR_TYPE_

9 years agoremove redundant code.
Alan T. DeKok [Tue, 9 May 2017 16:17:46 +0000 (12:17 -0400)] 
remove redundant code.

The reply is already initialized in fr_radius_alloc_reply()

9 years agono longer copy request vector to reply vector
Alan T. DeKok [Tue, 9 May 2017 16:13:32 +0000 (12:13 -0400)] 
no longer copy request vector to reply vector

We've fixed the encoder / decoder to do the right thing there

9 years agomove to using only one vector for encode / decode
Alan T. DeKok [Tue, 9 May 2017 16:11:08 +0000 (12:11 -0400)] 
move to using only one vector for encode / decode

which simplifies the encoder / decoder

9 years agoARP doesn't have encrypted attributes
Alan T. DeKok [Tue, 9 May 2017 16:06:28 +0000 (12:06 -0400)] 
ARP doesn't have encrypted attributes

So passing a NULL decoder context is OK

9 years agoremove packet->offset
Alan T. DeKok [Tue, 9 May 2017 14:46:57 +0000 (10:46 -0400)] 
remove packet->offset

which was only used for caching the offset of Message-Authenticator,
and is no longer used

9 years agofix build
Alan T. DeKok [Tue, 9 May 2017 14:07:58 +0000 (10:07 -0400)] 
fix build