]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
7 years agoAdd dict-dump keyword to unit_test_attribute
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:55:04 +0000 (14:55 -0500)] 
Add dict-dump keyword to unit_test_attribute

7 years agoPass through the dictionary to fr_pair_make_unknown
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:54:45 +0000 (14:54 -0500)] 
Pass through the dictionary to fr_pair_make_unknown

7 years agoPass dictionary into pair encoder explicitly
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:54:21 +0000 (14:54 -0500)] 
Pass dictionary into pair encoder explicitly

This is because the test harness allows the user to specify different dictionaries for the tests, so we need an interface for specifying the dictionary.

7 years agoRemove radius_tlv tests. They were just to ensure weird SNMP hacks didn't break
Arran Cudbard-Bell [Sat, 8 Dec 2018 19:52:36 +0000 (14:52 -0500)] 
Remove radius_tlv tests.  They were just to ensure weird SNMP hacks didn't break

...and now SNMP is in its own dictionary, we don't need them anymore.

7 years agoPrint more messages about why we're creating a raw attribute
Arran Cudbard-Bell [Sat, 8 Dec 2018 13:27:28 +0000 (08:27 -0500)] 
Print more messages about why we're creating a raw attribute

7 years agoRemove duplicate cases
Arran Cudbard-Bell [Sat, 8 Dec 2018 00:51:10 +0000 (19:51 -0500)] 
Remove duplicate cases

7 years agoFix memory leak on invalid file
Arran Cudbard-Bell [Fri, 7 Dec 2018 01:09:28 +0000 (20:09 -0500)] 
Fix memory leak on invalid file

7 years agoMake debug output from the map functions a bit clearer
Arran Cudbard-Bell [Fri, 30 Nov 2018 12:42:35 +0000 (07:42 -0500)] 
Make debug output from the map functions a bit clearer

7 years agoAssign the RADIUS dictionary to requests in unit_test_module
Arran Cudbard-Bell [Fri, 30 Nov 2018 12:42:16 +0000 (07:42 -0500)] 
Assign the RADIUS dictionary to requests in unit_test_module

This is needed for runtime attribute resolution to work correctly.

7 years agoProper fix for xlat_tokenize_expansion tmpl rules
Arran Cudbard-Bell [Fri, 30 Nov 2018 01:52:00 +0000 (20:52 -0500)] 
Proper fix for xlat_tokenize_expansion tmpl rules

We need to ammend the rules we're given, because we need to check for undefined attributes (they might be virtual xlat attributes)

7 years agoDon't use RADIUS attrs unless we have to
Arran Cudbard-Bell [Fri, 30 Nov 2018 01:14:32 +0000 (20:14 -0500)] 
Don't use RADIUS attrs unless we have to

7 years agoCorrect attributes in test dictionary
Arran Cudbard-Bell [Thu, 29 Nov 2018 20:46:28 +0000 (15:46 -0500)] 
Correct attributes in test dictionary

More test dict fixes

7 years agoFix logic error when encode-pair fails
Arran Cudbard-Bell [Sat, 3 Nov 2018 00:47:13 +0000 (20:47 -0400)] 
Fix logic error when encode-pair fails

7 years agoProcess multiple test files
Arran Cudbard-Bell [Sat, 3 Nov 2018 00:46:56 +0000 (20:46 -0400)] 
Process multiple test files

7 years agoPass dictionary into fr_dict_vendor_by_num in radius decode
Arran Cudbard-Bell [Sat, 3 Nov 2018 00:45:40 +0000 (20:45 -0400)] 
Pass dictionary into fr_dict_vendor_by_num in radius decode

7 years agoCleanup correctly directionary init fails
Arran Cudbard-Bell [Fri, 2 Nov 2018 23:42:38 +0000 (19:42 -0400)] 
Cleanup correctly directionary init fails

7 years agoPass vp_tmpl_rules_t to the xlat tokenizer
Arran Cudbard-Bell [Wed, 31 Oct 2018 03:31:31 +0000 (23:31 -0400)] 
Pass vp_tmpl_rules_t to the xlat tokenizer

7 years agoUse fr_dict_attr_by_qualified name in pairmake
Arran Cudbard-Bell [Wed, 31 Oct 2018 02:31:36 +0000 (22:31 -0400)] 
Use fr_dict_attr_by_qualified name in pairmake

This supports fallback, as well as allowing protocols to be explicitly specified

7 years agoPass vp tmpl to condition pass2 fixup functions
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:57:32 +0000 (21:57 -0400)] 
Pass vp tmpl to condition pass2 fixup functions

7 years agoUse refs not expansions
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:19:06 +0000 (21:19 -0400)] 
Use refs not expansions

They seem to work more reliably, and it's nicer to have tests fail for the things they're actually supposed to be testing instead of randomly.

7 years agoPass through parse rules to more places
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:18:53 +0000 (21:18 -0400)] 
Pass through parse rules to more places

7 years agoFormatting
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:08:20 +0000 (21:08 -0400)] 
Formatting

7 years agoDon't use RADIUS specific attributes in the test module
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:06:16 +0000 (21:06 -0400)] 
Don't use RADIUS specific attributes in the test module

7 years agoCan just pass cp here...
Arran Cudbard-Bell [Wed, 31 Oct 2018 01:05:54 +0000 (21:05 -0400)] 
Can just pass cp here...

7 years agoFix free order in cf_section_parse_pass2
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:59:08 +0000 (19:59 -0400)] 
Fix free order in cf_section_parse_pass2

7 years agoUse config name for error in unit_test_module
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:51:57 +0000 (19:51 -0400)] 
Use config name for error in unit_test_module

7 years agoFix unit_test_module call
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:51:16 +0000 (19:51 -0400)] 
Fix unit_test_module call

7 years agoCorrect EAP-SIM TLV stack offsets now we don't have a container attribute
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:32:23 +0000 (19:32 -0400)] 
Correct EAP-SIM TLV stack offsets now we don't have a container attribute

7 years agoDump the protocol dictionary in super debug mode
Arran Cudbard-Bell [Tue, 30 Oct 2018 23:09:54 +0000 (19:09 -0400)] 
Dump the protocol dictionary in super debug mode

7 years agoClear test points properly
Arran Cudbard-Bell [Tue, 30 Oct 2018 22:50:18 +0000 (18:50 -0400)] 
Clear test points properly

7 years agoLoad dictionaries for DHCPv4 and DHCPv6 in unit test files
Arran Cudbard-Bell [Tue, 30 Oct 2018 22:03:42 +0000 (18:03 -0400)] 
Load dictionaries for DHCPv4 and DHCPv6 in unit test files

7 years agoWe no longer have a wrapper OIDs because the SIM dictionary is now top level
Arran Cudbard-Bell [Tue, 30 Oct 2018 21:59:19 +0000 (17:59 -0400)] 
We no longer have a wrapper OIDs because the SIM dictionary is now top level

7 years agoRemove stat checks in dict.c
Arran Cudbard-Bell [Tue, 30 Oct 2018 21:58:16 +0000 (17:58 -0400)] 
Remove stat checks in dict.c

There are major issues with this when we're loading and freeing dictionaries, so it's better to just ignore duplicates

7 years agoLoad the RADIUS dictionary for the RADIUS tests
Arran Cudbard-Bell [Tue, 30 Oct 2018 20:05:54 +0000 (16:05 -0400)] 
Load the RADIUS dictionary for the RADIUS tests

7 years agoExit gracefully if commands fail
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:38:53 +0000 (15:38 -0400)] 
Exit gracefully if commands fail

So we don't get pages and pages of memory leaks

7 years agoFree dictionaries if we can't resolve the attributes
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:38:34 +0000 (15:38 -0400)] 
Free dictionaries if we can't resolve the attributes

7 years agoDon't need to print this every time...
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:37:51 +0000 (15:37 -0400)] 
Don't need to print this every time...

7 years agoIgnore constructed dictionary
Arran Cudbard-Bell [Tue, 30 Oct 2018 19:05:36 +0000 (15:05 -0400)] 
Ignore constructed dictionary

7 years agoDisallow nested BEGIN-PROTOCOL statements
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:57:30 +0000 (09:57 -0400)] 
Disallow nested BEGIN-PROTOCOL statements

7 years agoPreserve error stack if we hit an invalid PROTOCOL entry
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:56:05 +0000 (09:56 -0400)] 
Preserve error stack if we hit an invalid PROTOCOL entry

Some of this code is from before we had error stacks...

7 years agoTrack dict/hash insertion, mostly for debugging, but also probably a good idea
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:55:16 +0000 (09:55 -0400)] 
Track dict/hash insertion, mostly for debugging, but also probably a good idea

7 years agoUse double quotes in dict.c error message
Arran Cudbard-Bell [Mon, 29 Oct 2018 13:54:12 +0000 (09:54 -0400)] 
Use double quotes in dict.c error message

7 years agoCheck ctx initialisation in radius encoder
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:32:51 +0000 (19:32 -0400)] 
Check ctx initialisation in radius encoder

7 years agoFix DHCPv6 encoder/decoder to use the DHCPv6 dictionary
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:32:24 +0000 (19:32 -0400)] 
Fix DHCPv6 encoder/decoder to use the DHCPv6 dictionary

7 years agoFix dhcpv4 protocol library to use the DHCPv4 dictionary
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:31:31 +0000 (19:31 -0400)] 
Fix dhcpv4 protocol library to use the DHCPv4 dictionary

7 years agoRename dhcpv4 init functions to be consistent with dhcpv6
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:17:26 +0000 (19:17 -0400)] 
Rename dhcpv4 init functions to be consistent with dhcpv6

7 years agoFix test utility calls
Arran Cudbard-Bell [Thu, 25 Oct 2018 23:08:11 +0000 (19:08 -0400)] 
Fix test utility calls

7 years agoRemove dictionaries from the protocol lookup table when they're freed
Arran Cudbard-Bell [Wed, 24 Oct 2018 17:23:14 +0000 (13:23 -0400)] 
Remove dictionaries from the protocol lookup table when they're freed

7 years agoLoad RADIUS dictionary for radius_rfc
Arran Cudbard-Bell [Wed, 24 Oct 2018 17:20:39 +0000 (13:20 -0400)] 
Load RADIUS dictionary for radius_rfc

7 years agoLoad the EAP-AKA/EAP-SIM dictionaries and use the correct dictionary roots
Arran Cudbard-Bell [Wed, 24 Oct 2018 17:19:22 +0000 (13:19 -0400)] 
Load the EAP-AKA/EAP-SIM dictionaries and use the correct dictionary roots

7 years agoAdd support for loading protocol dictionaries in unit_test_attribute
Arran Cudbard-Bell [Fri, 19 Oct 2018 15:01:26 +0000 (11:01 -0400)] 
Add support for loading protocol dictionaries in unit_test_attribute

7 years agoVarious fixes to protocol dictionary functions
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:56:36 +0000 (10:56 -0400)] 
Various fixes to protocol dictionary functions

- Re-allocate dict->fixup if a protocol dictionary needs to have more attributes allocated to it (if the definitions are split between multiple BEGIN-PROTOCOL blocks)
- Re-finalise the dictionaries if they're re-opened in this way.
- Remove stat checks in most places.
- Start parsing each dictionary file in the context of the internal dictionary.

7 years agoFormatting
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:52:05 +0000 (10:52 -0400)] 
Formatting

7 years agoRemove old dict_from_file function
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:50:42 +0000 (10:50 -0400)] 
Remove old dict_from_file function

7 years agoFixup unit_test_module to use protocol dictionaries
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:48:32 +0000 (10:48 -0400)] 
Fixup unit_test_module to use protocol dictionaries

7 years agoFixup unit_test_map to use protocol dictionaries
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:47:01 +0000 (10:47 -0400)] 
Fixup unit_test_map to use protocol dictionaries

7 years agoAdd support for fallback to inernal dictionaries in tmpl function
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:45:25 +0000 (10:45 -0400)] 
Add support for fallback to inernal dictionaries in tmpl function

7 years agoAdd fr_dict_free function (which decrements references)
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:42:45 +0000 (10:42 -0400)] 
Add fr_dict_free function (which decrements references)

7 years agoAutofree all the dictionaries instead of just the first one
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:41:38 +0000 (10:41 -0400)] 
Autofree all the dictionaries instead of just the first one

7 years agoEnsure the dictionaries are loaded before we try and autoresolve attributes in them
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:41:13 +0000 (10:41 -0400)] 
Ensure the dictionaries are loaded before we try and autoresolve attributes in them

7 years agoSwitch out the current parent to be the new dictionary root when we hit BEGIN-PROTOCOL
Arran Cudbard-Bell [Fri, 19 Oct 2018 14:40:22 +0000 (10:40 -0400)] 
Switch out the current parent to be the new dictionary root when we hit BEGIN-PROTOCOL

Else we can all the dictionaries rooted in the internal dictionary which is not what we want

7 years agoEnable dict autoloading
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:44:38 +0000 (21:44 -0400)] 
Enable dict autoloading

7 years agoExit correctly from main_config_init on error
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:43:26 +0000 (21:43 -0400)] 
Exit correctly from main_config_init on error

7 years agoFormatting
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:41:55 +0000 (21:41 -0400)] 
Formatting

7 years agoStill need to call dict autofree with new openssl versions
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:40:51 +0000 (21:40 -0400)] 
Still need to call dict autofree with new openssl versions

7 years agoQualify old pair parse functions with a dict pointer
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:37:08 +0000 (21:37 -0400)] 
Qualify old pair parse functions with a dict pointer

7 years agoFix EAP SIM/AKA autoloader arrays to load attributes from correct dictionaries
Arran Cudbard-Bell [Fri, 19 Oct 2018 01:31:55 +0000 (21:31 -0400)] 
Fix EAP SIM/AKA autoloader arrays to load attributes from correct dictionaries

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