]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Tue, 19 Nov 2019 19:45:48 +0000 (14:45 -0500)]
stop if we get to a sibling structure
i.e. if we want to encode 2 of the same structs in a row
Jorge Pereira [Tue, 19 Nov 2019 01:37:02 +0000 (22:37 -0300)]
Add tests for DHCPv6 / rfc6225
Jorge Pereira [Tue, 19 Nov 2019 13:41:17 +0000 (10:41 -0300)]
Fix formatting in dictionary files (#3138)
e.g: make dictionary.format
Jorge Pereira [Tue, 19 Nov 2019 04:33:37 +0000 (01:33 -0300)]
Fix typo in rfc6225 dictionary (#3137)
Jorge Pereira [Tue, 19 Nov 2019 01:05:13 +0000 (22:05 -0300)]
Update 'Client-FQDN-Flag' to use bit fields
Alan T. DeKok [Mon, 18 Nov 2019 23:44:12 +0000 (18:44 -0500)]
add DNS label decoding to structs, and update the tests
Alan T. DeKok [Mon, 18 Nov 2019 23:30:39 +0000 (18:30 -0500)]
set next on exit only if we didn't already set it
Alan T. DeKok [Mon, 18 Nov 2019 22:25:22 +0000 (17:25 -0500)]
don't overflow the input buffer :(
Alan T. DeKok [Mon, 18 Nov 2019 22:07:45 +0000 (17:07 -0500)]
set "next" appropriately, i.e. to the start of the buffer
Alan T. DeKok [Mon, 18 Nov 2019 22:05:40 +0000 (17:05 -0500)]
set next on end of buffer, too
Alan T. DeKok [Mon, 18 Nov 2019 16:52:11 +0000 (11:52 -0500)]
don't use $(DIR) in rules
Jorge Pereira [Mon, 18 Nov 2019 18:10:38 +0000 (15:10 -0300)]
Don't leak if legendre() failure (#3135)
* Fix formatting in EAP-PWD
* Don't leak if legendre() failure
Jorge Pereira [Sun, 17 Nov 2019 02:09:57 +0000 (23:09 -0300)]
Better don't use hardcoded values for the test dir and output
We should use the exported vars $(OUTPUT) where the output
of the test goes and the $(DIR) to reference the dir where
the test files can be found.
Jorge Pereira [Sun, 17 Nov 2019 02:09:16 +0000 (23:09 -0300)]
Export the vars TESTDIR and OUTPUT for radiusd tests
Arran Cudbard-Bell [Mon, 18 Nov 2019 16:24:34 +0000 (11:24 -0500)]
Wrap radmin expansions in MEM macro
Arran Cudbard-Bell [Mon, 18 Nov 2019 16:24:19 +0000 (11:24 -0500)]
Fix formatting in EAP-PWD
Arran Cudbard-Bell [Mon, 18 Nov 2019 16:23:47 +0000 (11:23 -0500)]
Add mem wrappers for firebird
Arran Cudbard-Bell [Mon, 18 Nov 2019 16:22:35 +0000 (11:22 -0500)]
Fix typo
Natanael Copa [Mon, 18 Nov 2019 14:26:41 +0000 (15:26 +0100)]
Fix permissions of certs in bootstrap fallback
fix case where `make` is not available and boostrap fallback is used.
This is a follow up to commit
29add135c8d1 (Relax OpenSSL permissions
for default key files).
Reported downstream: https://gitlab.alpinelinux.org/alpine/aports/issues/10958
Arran Cudbard-Bell [Mon, 18 Nov 2019 14:42:59 +0000 (09:42 -0500)]
Initialise the element count
Arran Cudbard-Bell [Mon, 18 Nov 2019 14:00:38 +0000 (09:00 -0500)]
Check after each pre/post callback to see if we should free the connection
Arran Cudbard-Bell [Mon, 18 Nov 2019 14:00:02 +0000 (09:00 -0500)]
Add element counts to dlists
Jorge Pereira [Fri, 15 Nov 2019 21:18:23 +0000 (18:18 -0300)]
Add extra tests for radmin
Arran Cudbard-Bell [Sun, 17 Nov 2019 05:42:18 +0000 (00:42 -0500)]
Minor fixes
Arran Cudbard-Bell [Sun, 17 Nov 2019 05:40:52 +0000 (00:40 -0500)]
Add untested Redis async I/O integration code
Should be enough to glue a redis connection into our event loop and connection API.
Arran Cudbard-Bell [Sun, 17 Nov 2019 05:39:49 +0000 (00:39 -0500)]
Fix boilerplate in redis headers
Arran Cudbard-Bell [Sun, 17 Nov 2019 05:06:58 +0000 (00:06 -0500)]
More typos
Arran Cudbard-Bell [Sun, 17 Nov 2019 04:43:43 +0000 (23:43 -0500)]
Fix typos
Arran Cudbard-Bell [Sun, 17 Nov 2019 04:15:08 +0000 (23:15 -0500)]
Rework connection API to be 100% handle type agnostic
- Add watch points
- Invert relationship between conn and handle. handle is now a child of conn. conn is the main struct that's interacted with.
- make conn available in the init callback.
Seems to work, at least with rlm_radius
Alan T. DeKok [Sat, 16 Nov 2019 20:54:58 +0000 (15:54 -0500)]
round up when checking bounds
Alan T. DeKok [Sat, 16 Nov 2019 19:03:19 +0000 (14:03 -0500)]
we don't need a 'length=uint16' for uint32 types
Alan T. DeKok [Sat, 16 Nov 2019 18:49:55 +0000 (13:49 -0500)]
use - instead of _
Jorge Pereira [Sat, 16 Nov 2019 17:12:15 +0000 (14:12 -0300)]
Update copyright header for DHCPv6 unit tests
Jorge Pereira [Thu, 14 Nov 2019 20:47:00 +0000 (17:47 -0300)]
Better error message
Jorge Pereira [Thu, 14 Nov 2019 20:46:31 +0000 (17:46 -0300)]
Fix eap test
Jorge Pereira [Thu, 14 Nov 2019 20:45:59 +0000 (17:45 -0300)]
Fix radmin test
Alan T. DeKok [Sat, 16 Nov 2019 15:29:51 +0000 (10:29 -0500)]
qualify names appropriately
Alan T. DeKok [Sat, 16 Nov 2019 15:08:10 +0000 (10:08 -0500)]
add VALUEs
Alan T. DeKok [Sat, 16 Nov 2019 15:05:29 +0000 (10:05 -0500)]
decode horrific structure
Alan T. DeKok [Sat, 16 Nov 2019 14:57:47 +0000 (09:57 -0500)]
fix for new TEST_BOOTSTRAP
Alan T. DeKok [Sat, 16 Nov 2019 14:55:37 +0000 (09:55 -0500)]
add bit field decoding
Alan T. DeKok [Fri, 15 Nov 2019 20:19:42 +0000 (15:19 -0500)]
we still need this
Alan T. DeKok [Fri, 15 Nov 2019 19:48:20 +0000 (14:48 -0500)]
use correct path for binaries
Alan T. DeKok [Fri, 15 Nov 2019 19:45:48 +0000 (14:45 -0500)]
no longer need this
Alan T. DeKok [Fri, 15 Nov 2019 19:05:53 +0000 (14:05 -0500)]
cleanups. Helps with #3125
Alan T. DeKok [Fri, 15 Nov 2019 18:17:12 +0000 (13:17 -0500)]
add bit field encoding.
Bit field decoding is not yet done.
Alan T. DeKok [Fri, 15 Nov 2019 12:33:05 +0000 (07:33 -0500)]
parse bit[n] as a MEMBER of a STRUCT
with validation checks that the bits end on a bit boundary.
bit[1] becomes a BOOL. Everythijng else is rounded up to the
next sized uint.
No struct encode / decode for bit fields yet.
Arran Cudbard-Bell [Thu, 14 Nov 2019 21:28:08 +0000 (16:28 -0500)]
Dictionary dump will work on both types of dictionary
Matthew Newton [Thu, 14 Nov 2019 01:43:01 +0000 (01:43 +0000)]
correctly set makefile var
Matthew Newton [Thu, 14 Nov 2019 00:33:18 +0000 (00:33 +0000)]
Parameterise jenkinsfile
Matthew Newton [Mon, 11 Nov 2019 23:24:52 +0000 (23:24 +0000)]
whitespace
Matthew Newton [Thu, 14 Nov 2019 00:17:44 +0000 (00:17 +0000)]
Split jenkinsfile so we can use the functions elsewhere
Alan T. DeKok [Thu, 14 Nov 2019 00:21:22 +0000 (19:21 -0500)]
add stupid hacks for one attribute
which can be a partial domain name, with no trailing zero.
Alan T. DeKok [Wed, 13 Nov 2019 21:27:59 +0000 (16:27 -0500)]
pass TLV stack to struct encoder
along with a protocol-specific encode_value() callback.
Which for now is only used in limited cases, because of poor
interation between the requirements of the struct encoder,
and the tlv_stack magic.
Alan T. DeKok [Wed, 13 Nov 2019 21:26:19 +0000 (16:26 -0500)]
allow subtypes in structs
we now assume that the protocol encoder can take care of this
Alan T. DeKok [Wed, 13 Nov 2019 21:19:06 +0000 (16:19 -0500)]
fields inside of a struct are ordered
and DNS labels end with a zero byte
Alan T. DeKok [Wed, 13 Nov 2019 18:59:34 +0000 (13:59 -0500)]
set name1/name2 as appropriate
Jorge Pereira [Wed, 13 Nov 2019 18:28:58 +0000 (15:28 -0300)]
Add missing 'decode-pair' for rfc6355 tests (#3121)
Alan T. DeKok [Wed, 13 Nov 2019 16:41:44 +0000 (11:41 -0500)]
typo
Alan T. DeKok [Wed, 13 Nov 2019 15:40:22 +0000 (10:40 -0500)]
move dhcp validation to dhcp code.
and extend validation
Alan T. DeKok [Wed, 13 Nov 2019 15:36:51 +0000 (10:36 -0500)]
clarify messages
Alan T. DeKok [Wed, 13 Nov 2019 15:30:48 +0000 (10:30 -0500)]
it's a UDP message, not necessarily a DHCP one
Jorge Pereira [Wed, 13 Nov 2019 00:56:13 +0000 (21:56 -0300)]
Update unit tests for rfc6355
Add tests for the Server-ID-DUID attribute
Jorge Pereira [Tue, 12 Nov 2019 20:44:34 +0000 (17:44 -0300)]
Add tests for DHCPv6 / rfc4704
Alan T. DeKok [Wed, 13 Nov 2019 14:06:43 +0000 (09:06 -0500)]
add attr_valid callback to dictionaries
and move callbacks to RADIUS
Alan T. DeKok [Wed, 13 Nov 2019 14:06:24 +0000 (09:06 -0500)]
make the tests actually run
Alan T. DeKok [Wed, 13 Nov 2019 14:04:06 +0000 (09:04 -0500)]
use protocol agnostic checks
Alan T. DeKok [Wed, 13 Nov 2019 13:55:30 +0000 (08:55 -0500)]
transaction ID is now octets
Alan T. DeKok [Wed, 13 Nov 2019 12:55:48 +0000 (07:55 -0500)]
make transaction id octets
seeing as it's a 24-bit random value, it's easier to treat it as
octets then as a large decimal number
Alan T. DeKok [Tue, 12 Nov 2019 23:59:02 +0000 (18:59 -0500)]
encode_struct() already skips ahead
so we don't need to do it here in encode_value()
Alan T. DeKok [Tue, 12 Nov 2019 20:18:32 +0000 (15:18 -0500)]
notes on OIDs for EAP over LAN / WAN. From RFC 4334
Alan T. DeKok [Tue, 12 Nov 2019 20:10:16 +0000 (15:10 -0500)]
typo
Alan T. DeKok [Tue, 12 Nov 2019 19:43:12 +0000 (14:43 -0500)]
After too many years of effort, magic occurs.
Alan T. DeKok [Tue, 12 Nov 2019 19:31:15 +0000 (14:31 -0500)]
rearrange fill routine
in prepation for allowing it to be called from multiple places
Alan T. DeKok [Tue, 12 Nov 2019 19:19:05 +0000 (14:19 -0500)]
move if / elsif / map magic to callback functions
in preparation for dynamically setting them
Alan T. DeKok [Tue, 12 Nov 2019 19:17:05 +0000 (14:17 -0500)]
more docs
Alan T. DeKok [Tue, 12 Nov 2019 19:02:44 +0000 (14:02 -0500)]
rearrange to check for key words before "end of work"
and change "map" to not get excited over '{'
Alan T. DeKok [Mon, 11 Nov 2019 20:35:44 +0000 (15:35 -0500)]
remove one more goto
Alan T. DeKok [Mon, 11 Nov 2019 20:25:53 +0000 (15:25 -0500)]
more rearrangement to make the code simpler
Alan T. DeKok [Mon, 11 Nov 2019 20:16:05 +0000 (15:16 -0500)]
move stack cleanup to cf_stack_cleanup()
which removes a bunch of "goto error" in cf_file_include()
Alan T. DeKok [Mon, 11 Nov 2019 20:09:01 +0000 (15:09 -0500)]
more cleanups
move complex functionality to separate functions.
in preparation for even more cleanups
Alan T. DeKok [Mon, 11 Nov 2019 19:25:43 +0000 (14:25 -0500)]
use the correct OID
Alan T. DeKok [Mon, 11 Nov 2019 17:34:11 +0000 (12:34 -0500)]
remove unused variable
Jorge Pereira [Mon, 11 Nov 2019 17:33:03 +0000 (14:33 -0300)]
Allow verbosity only where is important (#3114)
Alan T. DeKok [Mon, 11 Nov 2019 17:06:51 +0000 (12:06 -0500)]
check before dereferencing
Alan T. DeKok [Mon, 11 Nov 2019 17:04:57 +0000 (12:04 -0500)]
use correct variable in loop
Alan T. DeKok [Mon, 11 Nov 2019 17:01:44 +0000 (12:01 -0500)]
move assert to before check
Alan T. DeKok [Mon, 11 Nov 2019 17:00:44 +0000 (12:00 -0500)]
initialize array
Alan T. DeKok [Mon, 11 Nov 2019 16:59:31 +0000 (11:59 -0500)]
we're doing parsing, and don't care about the values
Alan T. DeKok [Mon, 11 Nov 2019 16:57:51 +0000 (11:57 -0500)]
rearrange condition checks
Alan T. DeKok [Mon, 11 Nov 2019 16:52:54 +0000 (11:52 -0500)]
swap order of checks.
Alan T. DeKok [Mon, 11 Nov 2019 16:47:28 +0000 (11:47 -0500)]
cleanups and removing unused assignments
Alan T. DeKok [Mon, 11 Nov 2019 16:33:47 +0000 (11:33 -0500)]
make process_template() take stack
Alan T. DeKok [Mon, 11 Nov 2019 16:28:57 +0000 (11:28 -0500)]
make process_if() take stack pointer
Alan T. DeKok [Mon, 11 Nov 2019 16:23:46 +0000 (11:23 -0500)]
make process_map() use the stack instead of arbitrary arguments
Alan T. DeKok [Mon, 11 Nov 2019 16:18:10 +0000 (11:18 -0500)]
restructure code
so that the parser is now in it's own function. Next steps are to
split the parsing further into pieces
Alan T. DeKok [Mon, 11 Nov 2019 13:52:36 +0000 (08:52 -0500)]
rearrange code in preparation for parser updates
Alan T. DeKok [Mon, 11 Nov 2019 13:26:53 +0000 (08:26 -0500)]
add error messages to dhcpv6_verify()
Alan T. DeKok [Sun, 10 Nov 2019 22:50:17 +0000 (17:50 -0500)]
correct syntax of NAIRealm.
OpenSSL is "interesting"
Alan T. DeKok [Sun, 10 Nov 2019 22:19:49 +0000 (17:19 -0500)]
we don't have a real encoder / decoder for ethernet
the entire API has changed, as the old one didn't really work.
So until we redo the ethernet test points, we'll just comment them out