]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agoExit cleanly from unit_test_module
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:30:57 +0000 (21:30 -0400)] 
Exit cleanly from unit_test_module

7 years agoFix dictionary error reporting in unit_test_attribute
Arran Cudbard-Bell [Wed, 17 Oct 2018 20:10:56 +0000 (16:10 -0400)] 
Fix dictionary error reporting in unit_test_attribute

7 years agoError out if testpoint context init fails
Arran Cudbard-Bell [Wed, 17 Oct 2018 20:06:21 +0000 (16:06 -0400)] 
Error out if testpoint context init fails

7 years agoRemove foreign protocol roots from the internal dictionary
Arran Cudbard-Bell [Wed, 17 Oct 2018 19:12:42 +0000 (15:12 -0400)] 
Remove foreign protocol roots from the internal dictionary

7 years agoFixup build system to create hierarchical header files from the protocols
Arran Cudbard-Bell [Tue, 16 Oct 2018 19:47:26 +0000 (15:47 -0400)] 
Fixup build system to create hierarchical header files from the protocols

Fixup dictionary directory arguments to test utilities
Fix includes to use new paths

7 years agoDon't call decode if encode failed
Arran Cudbard-Bell [Tue, 30 Oct 2018 20:08:19 +0000 (16:08 -0400)] 
Don't call decode if encode failed

7 years agoUse standard strerror_concat function
Arran Cudbard-Bell [Tue, 30 Oct 2018 20:06:47 +0000 (16:06 -0400)] 
Use standard strerror_concat function

7 years agoSplit dictionaries into protocol dictionary folders
Arran Cudbard-Bell [Mon, 15 Oct 2018 20:30:09 +0000 (16:30 -0400)] 
Split dictionaries into protocol dictionary folders

7 years agoMore & fixes
Arran Cudbard-Bell [Fri, 7 Dec 2018 00:39:47 +0000 (19:39 -0500)] 
More & fixes

7 years agoAdd '&' prefix to map/update sections
Arran Cudbard-Bell [Thu, 6 Dec 2018 23:38:14 +0000 (18:38 -0500)] 
Add '&' prefix to map/update sections

7 years agoBe strict about where '&' is required, not allowed, and optional, when parsing attrib...
Arran Cudbard-Bell [Thu, 6 Dec 2018 18:26:17 +0000 (13:26 -0500)] 
Be strict about where '&' is required, not allowed, and optional, when parsing attribute references

7 years agoUse '&' everywhere for attribute references
Arran Cudbard-Bell [Thu, 6 Dec 2018 18:20:11 +0000 (13:20 -0500)] 
Use '&' everywhere for attribute references

7 years agoFix more tests
Arran Cudbard-Bell [Wed, 5 Dec 2018 15:00:21 +0000 (10:00 -0500)] 
Fix more tests

7 years agonote %}
Alan T. DeKok [Thu, 6 Dec 2018 14:18:28 +0000 (09:18 -0500)] 
note %}

7 years agofix compiler warning
Alan T. DeKok [Thu, 6 Dec 2018 12:37:23 +0000 (07:37 -0500)] 
fix compiler warning

7 years agorearrangements to prepare for separating connection and radius code
Alan T. DeKok [Wed, 5 Dec 2018 21:00:11 +0000 (16:00 -0500)] 
rearrangements to prepare for separating connection and radius code

7 years agomore renaming and changes
Alan T. DeKok [Wed, 5 Dec 2018 20:10:37 +0000 (15:10 -0500)] 
more renaming and changes

in preparation for splitting connection things from RADIUS things

7 years agorename state, and track slots_free
Alan T. DeKok [Wed, 5 Dec 2018 19:34:21 +0000 (14:34 -0500)] 
rename state, and track slots_free

7 years agomove RADIUS specific stuff out of fr_io_connection_t
Alan T. DeKok [Wed, 5 Dec 2018 18:10:01 +0000 (13:10 -0500)] 
move RADIUS specific stuff out of fr_io_connection_t

7 years agolen should be uint32_t, not size_t
Alan T. DeKok [Wed, 5 Dec 2018 15:20:28 +0000 (10:20 -0500)] 
len should be uint32_t, not size_t

7 years agoAdd missing '&'
Arran Cudbard-Bell [Wed, 5 Dec 2018 03:56:54 +0000 (22:56 -0500)] 
Add missing '&'

7 years agoPull duplicate attribute printing code out of xlat_snprint
Arran Cudbard-Bell [Wed, 5 Dec 2018 03:14:19 +0000 (22:14 -0500)] 
Pull duplicate attribute printing code out of xlat_snprint

7 years agoMerge pull request #2365 from pwdng/xlats
Arran Cudbard-Bell [Tue, 4 Dec 2018 21:16:02 +0000 (16:16 -0500)] 
Merge pull request #2365 from pwdng/xlats

Convert hex, sha & hmac xlats

7 years agomake debug output look more like v2, which is a bit clearer
Alan T. DeKok [Tue, 4 Dec 2018 18:15:30 +0000 (13:15 -0500)] 
make debug output look more like v2, which is a bit clearer

7 years agoRemove attribute reference notation from xlat tests. 2365/head
Philippe Wooding [Tue, 4 Dec 2018 18:02:47 +0000 (19:02 +0100)] 
Remove attribute reference notation from xlat tests.

7 years agoadd interface name to app_io print name function
Alan T. DeKok [Tue, 4 Dec 2018 17:57:55 +0000 (12:57 -0500)] 
add interface name to app_io print name function

7 years agoremove unused macro
Alan T. DeKok [Tue, 4 Dec 2018 17:55:59 +0000 (12:55 -0500)] 
remove unused macro

7 years agoregularized the code
Alan T. DeKok [Tue, 4 Dec 2018 17:39:19 +0000 (12:39 -0500)] 
regularized the code

so that it prints out the true header

7 years agodon't reply to internally generated requests
Alan T. DeKok [Tue, 4 Dec 2018 17:24:15 +0000 (12:24 -0500)] 
don't reply to internally generated requests

7 years agoclean up and regularize the debug output
Alan T. DeKok [Tue, 4 Dec 2018 17:22:58 +0000 (12:22 -0500)] 
clean up and regularize the debug output

7 years agobuffer[0] isn't generally the packet code, so don't print it
Alan T. DeKok [Tue, 4 Dec 2018 17:22:26 +0000 (12:22 -0500)] 
buffer[0] isn't generally the packet code, so don't print it

7 years agoConvert hmacsha1 xlat to new async API
Philippe Wooding [Tue, 4 Dec 2018 17:18:06 +0000 (18:18 +0100)] 
Convert hmacsha1 xlat to new async API

7 years agoConvert hmacmd5 xlat to new async API
Philippe Wooding [Tue, 4 Dec 2018 17:10:46 +0000 (18:10 +0100)] 
Convert hmacmd5 xlat to new async API

7 years agoReorder xlat definitions
Philippe Wooding [Tue, 4 Dec 2018 17:00:33 +0000 (18:00 +0100)] 
Reorder xlat definitions

7 years agoConvert sha2 & sha3 xlats to new async API
Philippe Wooding [Tue, 4 Dec 2018 16:57:09 +0000 (17:57 +0100)] 
Convert sha2 & sha3 xlats to new async API

7 years agoConvert hex xlat to new async API
Philippe Wooding [Tue, 4 Dec 2018 16:48:43 +0000 (17:48 +0100)] 
Convert hex xlat to new async API

7 years agoConvert sha1 xlat to new async API
Philippe Wooding [Tue, 4 Dec 2018 12:50:46 +0000 (13:50 +0100)] 
Convert sha1 xlat to new async API

7 years agoshould be debug3
Alan T. DeKok [Tue, 4 Dec 2018 15:59:28 +0000 (10:59 -0500)] 
should be debug3

7 years agoset listener name everywhere
Alan T. DeKok [Tue, 4 Dec 2018 15:51:08 +0000 (10:51 -0500)] 
set listener name everywhere

7 years agosmall sql schema fixes
Matthew Newton [Tue, 4 Dec 2018 13:29:46 +0000 (13:29 +0000)] 
small sql schema fixes

7 years agoRename xlat_toupper to toupper_xlat
Philippe Wooding [Tue, 4 Dec 2018 13:36:00 +0000 (14:36 +0100)] 
Rename xlat_toupper to toupper_xlat

7 years agoMerge pull request #2362 from pwdng/xlats
Arran Cudbard-Bell [Mon, 3 Dec 2018 18:40:38 +0000 (18:40 +0000)] 
Merge pull request #2362 from pwdng/xlats

Convert tolower & toupper xlats to new async API

7 years agoConvert toupper xlat to new async API 2362/head
Philippe Wooding [Mon, 4 Jun 2018 13:04:18 +0000 (13:04 +0000)] 
Convert toupper xlat to new async API

7 years agoConvert tolower xlat to new async API
Philippe Wooding [Mon, 4 Jun 2018 13:01:56 +0000 (13:01 +0000)] 
Convert tolower xlat to new async API

7 years agoUse %pV in rlm_linelog messages
Arran Cudbard-Bell [Fri, 30 Nov 2018 18:13:58 +0000 (13:13 -0500)] 
Use %pV in rlm_linelog messages

7 years agoRemove many calls to fr_value_box_snprint
Arran Cudbard-Bell [Fri, 30 Nov 2018 17:41:47 +0000 (12:41 -0500)] 
Remove many calls to fr_value_box_snprint

Not necessary fro debug messages, as all the logging macros/functions call fr_asprintf which supports %pV.

7 years agoremove old email address
Alan T. DeKok [Thu, 29 Nov 2018 17:59:13 +0000 (12:59 -0500)] 
remove old email address

7 years agoColourise more messages in rlm_pap
Arran Cudbard-Bell [Thu, 29 Nov 2018 22:14:43 +0000 (17:14 -0500)] 
Colourise more messages in rlm_pap

7 years agoOnly write *after* checking available buffer space
Arran Cudbard-Bell [Thu, 29 Nov 2018 21:36:50 +0000 (16:36 -0500)] 
Only write *after* checking available buffer space

7 years agoUse generic function for parsing conf pairs using tables
Arran Cudbard-Bell [Mon, 26 Nov 2018 18:57:34 +0000 (18:57 +0000)] 
Use generic function for parsing conf pairs using tables

7 years agoTypo
Arran Cudbard-Bell [Sat, 24 Nov 2018 17:48:00 +0000 (17:48 +0000)] 
Typo

7 years agoAdd parameters for controlling HTTP2 negotiation and multiplexing
Arran Cudbard-Bell [Sat, 24 Nov 2018 17:41:12 +0000 (17:41 +0000)] 
Add parameters for controlling HTTP2 negotiation and multiplexing

7 years agoConstructor for table based parsing function
Arran Cudbard-Bell [Sat, 24 Nov 2018 17:40:33 +0000 (17:40 +0000)] 
Constructor for table based parsing function

7 years agoFormatting
Arran Cudbard-Bell [Sat, 24 Nov 2018 17:38:55 +0000 (17:38 +0000)] 
Formatting

7 years agoExplain what the connection pool is used for in v4.0.x
Arran Cudbard-Bell [Sat, 24 Nov 2018 17:24:13 +0000 (17:24 +0000)] 
Explain what the connection pool is used for in v4.0.x

7 years agoFix const order
Arran Cudbard-Bell [Sat, 24 Nov 2018 17:21:17 +0000 (17:21 +0000)] 
Fix const order

7 years agoremove unused variable
Alan T. DeKok [Thu, 22 Nov 2018 17:14:30 +0000 (12:14 -0500)] 
remove unused variable

7 years agomove "set packet->code" to dhcpv4_packet_decode()
Alan T. DeKok [Thu, 22 Nov 2018 16:30:11 +0000 (11:30 -0500)] 
move "set packet->code" to dhcpv4_packet_decode()

7 years agoadd ntohl
Alan T. DeKok [Thu, 22 Nov 2018 16:25:54 +0000 (11:25 -0500)] 
add ntohl

7 years agoAs per TS129061 version 150400P
Arran Cudbard-Bell [Thu, 22 Nov 2018 15:16:49 +0000 (15:16 +0000)] 
As per TS129061 version 150400P

https://www.etsi.org/deliver/etsi_ts/129000_129099/129061/15.04.00_60/ts_129061v150400p.pdf

There were complaints that our names didn't match the standard...

7 years agoredis: increase default max number of args
Matthew Newton [Thu, 22 Nov 2018 12:16:58 +0000 (12:16 +0000)] 
redis: increase default max number of args

7 years agorlm_redis: use defs from src/lib/redis/bash.h
Matthew Newton [Thu, 22 Nov 2018 12:16:19 +0000 (12:16 +0000)] 
rlm_redis: use defs from src/lib/redis/bash.h

7 years agorlm_redis: error if too many args given
Matthew Newton [Thu, 22 Nov 2018 11:43:47 +0000 (11:43 +0000)] 
rlm_redis: error if too many args given

7 years agoset packet->code from DHCP-Message-Type
Alan T. DeKok [Thu, 22 Nov 2018 12:21:06 +0000 (07:21 -0500)] 
set packet->code from DHCP-Message-Type

7 years agoNasty temporary hack to fix duplicate node evaluation of async functions in conditions
Arran Cudbard-Bell [Wed, 21 Nov 2018 22:18:21 +0000 (22:18 +0000)] 
Nasty temporary hack to fix duplicate node evaluation of async functions in conditions

7 years agodon't print out len if we don't have it
Alan T. DeKok [Wed, 21 Nov 2018 12:57:46 +0000 (07:57 -0500)] 
don't print out len if we don't have it

7 years agoprint out full DHCPv4 packet information
Alan T. DeKok [Wed, 21 Nov 2018 12:50:02 +0000 (07:50 -0500)] 
print out full DHCPv4 packet information

7 years agoXID is 8 hexits
Alan T. DeKok [Wed, 21 Nov 2018 12:29:52 +0000 (07:29 -0500)] 
XID is 8 hexits

7 years agouse XID as ID
Alan T. DeKok [Wed, 21 Nov 2018 12:18:59 +0000 (07:18 -0500)] 
use XID as ID

We should really use a name instead of an ID everywhere

7 years agouse XID instead of ID
Alan T. DeKok [Wed, 21 Nov 2018 12:16:50 +0000 (07:16 -0500)] 
use XID instead of ID

7 years agoadd and use fr_dhcpv4_print_hex
Alan T. DeKok [Wed, 21 Nov 2018 12:13:32 +0000 (07:13 -0500)] 
add and use fr_dhcpv4_print_hex

7 years agodon't allow Acct-Delay-Time in status check packets, either
Alan T. DeKok [Tue, 13 Nov 2018 21:37:32 +0000 (16:37 -0500)] 
don't allow Acct-Delay-Time in status check packets, either

we rely instead on Event-Timestamp

7 years agosplit status check retransmits into another function
Alan T. DeKok [Tue, 13 Nov 2018 21:36:08 +0000 (16:36 -0500)] 
split status check retransmits into another function

7 years agodo some sanity checking on attributes in status check packets
Alan T. DeKok [Tue, 13 Nov 2018 21:17:47 +0000 (16:17 -0500)] 
do some sanity checking on attributes in status check packets

7 years agoseparate status check retransmissions from other packet types
Alan T. DeKok [Tue, 13 Nov 2018 20:21:00 +0000 (15:21 -0500)] 
separate status check retransmissions from other packet types

7 years agochecks for sync proxying to work, and more cleanups
Alan T. DeKok [Tue, 13 Nov 2018 19:48:47 +0000 (14:48 -0500)] 
checks for sync proxying to work, and more cleanups

7 years agoremove reference to 3.0.2
Alan T. DeKok [Tue, 13 Nov 2018 17:54:57 +0000 (12:54 -0500)] 
remove reference to 3.0.2

7 years agohandle case where writing status check packets blocks
Alan T. DeKok [Tue, 13 Nov 2018 17:53:34 +0000 (12:53 -0500)] 
handle case where writing status check packets blocks

we remember that, and try to write it again as soon as the
socket becomes writable

7 years agomove "alloc ID" to state_transition
Alan T. DeKok [Tue, 13 Nov 2018 17:40:07 +0000 (12:40 -0500)] 
move "alloc ID" to state_transition

so that it's not scattered through the code.

7 years agore-allocate ID on retransmit
Alan T. DeKok [Mon, 12 Nov 2018 21:36:54 +0000 (16:36 -0500)] 
re-allocate ID on retransmit

not for Access-Request, tho.  That would require re-encrypting
User-Password, and any other attribute that depends on the
authentication vector.

7 years agoset correct name and use it
Alan T. DeKok [Mon, 12 Nov 2018 19:53:35 +0000 (14:53 -0500)] 
set correct name and use it

7 years agouse talloc_array_length for length of secret
Alan T. DeKok [Mon, 12 Nov 2018 19:51:50 +0000 (14:51 -0500)] 
use talloc_array_length for length of secret

7 years agosimplify some more
Alan T. DeKok [Mon, 12 Nov 2018 19:51:02 +0000 (14:51 -0500)] 
simplify some more

7 years agorearrange structs so that we have a clean connection interface
Alan T. DeKok [Mon, 12 Nov 2018 19:47:11 +0000 (14:47 -0500)] 
rearrange structs so that we have a clean connection interface

7 years agoset name here, so IO modules don't need to do this
Alan T. DeKok [Mon, 12 Nov 2018 19:46:51 +0000 (14:46 -0500)] 
set name here, so IO modules don't need to do this

7 years agoattr_filter: don't permit internal attrs in reject
Matthew Newton [Mon, 12 Nov 2018 18:15:06 +0000 (18:15 +0000)] 
attr_filter: don't permit internal attrs in reject

7 years agoset dl_loader to NULL only when things are OK
Alan T. DeKok [Mon, 12 Nov 2018 16:32:43 +0000 (11:32 -0500)] 
set dl_loader to NULL only when things are OK

7 years agoremove MINGW stuff that was never used
Alan T. DeKok [Mon, 12 Nov 2018 15:37:29 +0000 (10:37 -0500)] 
remove MINGW stuff that was never used

7 years agoprint out module name, too.
Alan T. DeKok [Mon, 12 Nov 2018 15:33:22 +0000 (10:33 -0500)] 
print out module name, too.

otherwise we have no idea what instance is associated with what module

7 years agoUnused
Arran Cudbard-Bell [Mon, 12 Nov 2018 16:21:38 +0000 (11:21 -0500)] 
Unused

7 years agoLet the caller know we consumed the input boxes
Arran Cudbard-Bell [Mon, 12 Nov 2018 15:12:55 +0000 (10:12 -0500)] 
Let the caller know we consumed the input boxes

7 years agoBe better about catching freed cursor items
Arran Cudbard-Bell [Fri, 9 Nov 2018 22:13:27 +0000 (17:13 -0500)] 
Be better about catching freed cursor items

7 years agoset dl_loader = NULL only if the trees are empty
Alan T. DeKok [Sun, 11 Nov 2018 20:40:45 +0000 (15:40 -0500)] 
set dl_loader = NULL only if the trees are empty

and add assertions that dl_loader!=NULL elsewhere

It appears that in 'tests.eap', something is freeing the dl_loader
after the server starts, but before the server has exited.  The result
is that it would crash instead of doing proper cleanups.

This change at least makes it keep running.  But the underlying
issue needs to be tracked down.

7 years agoHack in support for async xlats in conditions
Arran Cudbard-Bell [Fri, 9 Nov 2018 18:41:39 +0000 (13:41 -0500)] 
Hack in support for async xlats in conditions

7 years agoFormatting
Arran Cudbard-Bell [Fri, 9 Nov 2018 18:41:20 +0000 (13:41 -0500)] 
Formatting

7 years agoFixup dependencies
Arran Cudbard-Bell [Fri, 9 Nov 2018 15:11:07 +0000 (10:11 -0500)] 
Fixup dependencies

7 years agoRefactor fr_strtoull and fr_strtoll to error out overflow
Arran Cudbard-Bell [Fri, 9 Nov 2018 15:07:18 +0000 (10:07 -0500)] 
Refactor fr_strtoull and fr_strtoll to error out overflow

There's probably no case where we ever want to allow overflows to pass unaddressed.

7 years agoexplicitly clear errno, as strtoull on Linux appears not to do this
Arran Cudbard-Bell [Fri, 9 Nov 2018 14:50:28 +0000 (09:50 -0500)] 
explicitly clear errno, as strtoull on Linux appears not to do this

7 years agouse correct contexts for $INCLUDE, too
Alan T. DeKok [Fri, 9 Nov 2018 11:43:08 +0000 (06:43 -0500)] 
use correct contexts for $INCLUDE, too

7 years agoBetter xlat string tests
Arran Cudbard-Bell [Thu, 8 Nov 2018 22:02:52 +0000 (17:02 -0500)] 
Better xlat string tests