]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agore-arrange to make bools next to each other
Alan T. DeKok [Tue, 9 Jan 2018 15:38:47 +0000 (10:38 -0500)] 
re-arrange to make bools next to each other

8 years agoadd :* as an explicit wildcard tag match
Alan T. DeKok [Mon, 8 Jan 2018 20:57:57 +0000 (15:57 -0500)] 
add :* as an explicit wildcard tag match

8 years agoclean up code to parse tags
Alan T. DeKok [Mon, 8 Jan 2018 20:54:31 +0000 (15:54 -0500)] 
clean up code to parse tags

8 years agoremove support for Merit format tags
Alan T. DeKok [Mon, 8 Jan 2018 20:35:52 +0000 (15:35 -0500)] 
remove support for Merit format tags

which we haven't used for many years

8 years agountagged tmpls have TAG_NONE
Alan T. DeKok [Mon, 8 Jan 2018 20:33:58 +0000 (15:33 -0500)] 
untagged tmpls have TAG_NONE

8 years agoadd ATTR_TAG_MATCH
Alan T. DeKok [Mon, 8 Jan 2018 20:03:27 +0000 (15:03 -0500)] 
add ATTR_TAG_MATCH

which sees if attribute A matches tag T

8 years agoconvert complex code to one macro
Alan T. DeKok [Mon, 8 Jan 2018 19:24:31 +0000 (14:24 -0500)] 
convert complex code to one macro

8 years agoprint ":%d", so it's the same as the rest of the code
Alan T. DeKok [Mon, 8 Jan 2018 16:23:03 +0000 (11:23 -0500)] 
print ":%d", so it's the same as the rest of the code

8 years ago0 is OK for untagged attributes
Alan T. DeKok [Mon, 8 Jan 2018 16:21:44 +0000 (11:21 -0500)] 
0 is OK for untagged attributes

8 years agocheck for TAG_VALID instead of !=TAG_ANY
Alan T. DeKok [Mon, 8 Jan 2018 16:05:14 +0000 (11:05 -0500)] 
check for TAG_VALID instead of !=TAG_ANY

looking for valid ranges is smarter than checking for different
from a magic value, because there may be LOTS of magic values,
and LOTS of invalid values

8 years agocheck valid rang
Alan T. DeKok [Mon, 8 Jan 2018 16:03:41 +0000 (11:03 -0500)] 
check valid rang

we can't just check tag < 32, because TAG_ANY is -128,
instead, we have to check for 0..32

8 years ago0 is not a valid tag
Alan T. DeKok [Mon, 8 Jan 2018 13:21:50 +0000 (08:21 -0500)] 
0 is not a valid tag

8 years agoonly print valid tags
Alan T. DeKok [Mon, 8 Jan 2018 13:19:33 +0000 (08:19 -0500)] 
only print valid tags

8 years agono need to double-check the IP and prefix
Alan T. DeKok [Fri, 5 Jan 2018 17:10:17 +0000 (12:10 -0500)] 
no need to double-check the IP and prefix

8 years agouse fr_trie_match() instead of doing it manually
Alan T. DeKok [Fri, 5 Jan 2018 17:05:54 +0000 (12:05 -0500)] 
use fr_trie_match() instead of doing it manually

8 years agoadd fr_trie_match()
Alan T. DeKok [Fri, 5 Jan 2018 17:05:34 +0000 (12:05 -0500)] 
add fr_trie_match()

which does a match on the exact length of the key

8 years agoseparate v4/v6 clients
Alan T. DeKok [Fri, 5 Jan 2018 15:36:58 +0000 (10:36 -0500)] 
separate v4/v6 clients

8 years agoignore old clients if their prefix is too small
Alan T. DeKok [Fri, 5 Jan 2018 15:26:37 +0000 (10:26 -0500)] 
ignore old clients if their prefix is too small

fr_trie_lookup() returns the longest prefix match.
Which still might be smaller than the prefix of the client
we're trying to add.

8 years agoone more try to quiet stupid compiler
Alan T. DeKok [Fri, 5 Jan 2018 15:21:52 +0000 (10:21 -0500)] 
one more try to quiet stupid compiler

it claims a variable / function is unused if it's used
inside of an assertion...

8 years agostupid scanner
Alan T. DeKok [Fri, 5 Jan 2018 13:58:08 +0000 (08:58 -0500)] 
stupid scanner

8 years agotry to quiet clang scan
Alan T. DeKok [Fri, 5 Jan 2018 13:29:05 +0000 (08:29 -0500)] 
try to quiet clang scan

8 years agoset base=0 if bits_used==0
Alan T. DeKok [Thu, 4 Jan 2018 21:31:07 +0000 (16:31 -0500)] 
set base=0 if bits_used==0

8 years agoip addresses are in network byte order
Alan T. DeKok [Thu, 4 Jan 2018 21:11:07 +0000 (16:11 -0500)] 
ip addresses are in network byte order

8 years agocomment out verification until the rest of the tests pass
Alan T. DeKok [Thu, 4 Jan 2018 20:55:55 +0000 (15:55 -0500)] 
comment out verification until the rest of the tests pass

8 years agoset output buffer
Alan T. DeKok [Thu, 4 Jan 2018 20:53:49 +0000 (15:53 -0500)] 
set output buffer

and add macros for max key bits / bytes

8 years agoadd distinction between UDP and TCP clients
Alan T. DeKok [Thu, 4 Jan 2018 20:46:55 +0000 (15:46 -0500)] 
add distinction between UDP and TCP clients

8 years agomake clients use new trie code.
Alan T. DeKok [Thu, 4 Jan 2018 20:42:21 +0000 (15:42 -0500)] 
make clients use new trie code.

8 years agochar const* for printing
Alan T. DeKok [Thu, 4 Jan 2018 20:04:57 +0000 (15:04 -0500)] 
char const* for printing

8 years agotypo
Alan T. DeKok [Thu, 4 Jan 2018 20:03:44 +0000 (15:03 -0500)] 
typo

8 years agocompiler issues
Alan T. DeKok [Thu, 4 Jan 2018 19:40:51 +0000 (14:40 -0500)] 
compiler issues

8 years agoc compiler warnings
Alan T. DeKok [Thu, 4 Jan 2018 18:59:46 +0000 (13:59 -0500)] 
c compiler warnings

8 years agoconst issues
Alan T. DeKok [Thu, 4 Jan 2018 18:59:37 +0000 (13:59 -0500)] 
const issues

8 years agocheck that templates without tags don't have tags
Alan T. DeKok [Thu, 4 Jan 2018 18:33:58 +0000 (13:33 -0500)] 
check that templates without tags don't have tags

and vice versa

8 years agoset DEFAULT_SIZE=1 when no path compression
Alan T. DeKok [Thu, 4 Jan 2018 18:26:22 +0000 (13:26 -0500)] 
set DEFAULT_SIZE=1 when no path compression

which makes it work... will track things down later.

8 years agostart of testings without path compression
Alan T. DeKok [Thu, 4 Jan 2018 18:24:36 +0000 (13:24 -0500)] 
start of testings without path compression

it currently fails when merging nodes of different size,
so it's commented out

8 years agodoxygen
Alan T. DeKok [Thu, 4 Jan 2018 18:24:01 +0000 (13:24 -0500)] 
doxygen

8 years agoformat %zd -> %d for int
Alan T. DeKok [Thu, 4 Jan 2018 18:23:07 +0000 (13:23 -0500)] 
format %zd -> %d for int

8 years agodoxygen
Alan T. DeKok [Thu, 4 Jan 2018 17:26:04 +0000 (12:26 -0500)] 
doxygen

8 years agowhoops... need this, too
Alan T. DeKok [Thu, 4 Jan 2018 17:24:43 +0000 (12:24 -0500)] 
whoops... need this, too

8 years agoadded patricia trie implementation, with tests
Alan T. DeKok [Thu, 4 Jan 2018 16:52:44 +0000 (11:52 -0500)] 
added patricia trie implementation, with tests

8 years agoFormat coding-methods.rst correctly 2150/head
Jakob Kramer [Thu, 4 Jan 2018 04:09:29 +0000 (05:09 +0100)] 
Format coding-methods.rst correctly

8 years agovirtual servers cannot be empty
Alan T. DeKok [Mon, 1 Jan 2018 20:02:40 +0000 (15:02 -0500)] 
virtual servers cannot be empty

8 years agofix erroneous commit
Alan T. DeKok [Mon, 1 Jan 2018 20:00:52 +0000 (15:00 -0500)] 
fix erroneous commit

8 years agouse the same organizational name
Alan T. DeKok [Mon, 1 Jan 2018 19:30:58 +0000 (14:30 -0500)] 
use the same organizational name

8 years agotypo
Alan T. DeKok [Mon, 1 Jan 2018 19:30:06 +0000 (14:30 -0500)] 
typo

8 years agoadded sample intermediate CA configuration
Alan T. DeKok [Mon, 1 Jan 2018 15:14:27 +0000 (10:14 -0500)] 
added sample intermediate CA configuration

8 years agostart of provisions for external CA
Alan T. DeKok [Mon, 1 Jan 2018 15:03:53 +0000 (10:03 -0500)] 
start of provisions for external CA

where the 'ca' we create is an intermediate CA.

8 years agoadd brackets
Alan T. DeKok [Sun, 31 Dec 2017 16:48:16 +0000 (11:48 -0500)] 
add brackets

8 years agomagic pointers are better than magic (non-const) strings
Alan T. DeKok [Sun, 31 Dec 2017 16:44:27 +0000 (11:44 -0500)] 
magic pointers are better than magic (non-const) strings

8 years agoremove redundant code
Alan T. DeKok [Sun, 31 Dec 2017 16:38:25 +0000 (11:38 -0500)] 
remove redundant code

8 years agohoist checks higher
Alan T. DeKok [Sun, 31 Dec 2017 16:38:19 +0000 (11:38 -0500)] 
hoist checks higher

8 years agoprint all attributes in request / response
Alan T. DeKok [Sat, 30 Dec 2017 14:11:56 +0000 (09:11 -0500)] 
print all attributes in request / response

not just protocol ones

8 years agoremove "compile" from processing modules
Alan T. DeKok [Fri, 29 Dec 2017 16:11:19 +0000 (11:11 -0500)] 
remove "compile" from processing modules

it's now handled by the main proto_radius

8 years agocoa also means disconnect
Alan T. DeKok [Fri, 29 Dec 2017 16:10:25 +0000 (11:10 -0500)] 
coa also means disconnect

8 years agohoist 'compile foo' into proto_radius
Alan T. DeKok [Fri, 29 Dec 2017 15:15:32 +0000 (10:15 -0500)] 
hoist 'compile foo' into proto_radius

which does more sanity checking, and removes a bunch of duplicate
code from the sub-modules

8 years agoFR_CODE_MAX is 255, so we need 256 entries in arrays...
Alan T. DeKok [Fri, 29 Dec 2017 15:03:54 +0000 (10:03 -0500)] 
FR_CODE_MAX is 255, so we need 256 entries in arrays...

8 years agomore sanity checks
Alan T. DeKok [Fri, 29 Dec 2017 14:52:50 +0000 (09:52 -0500)] 
more sanity checks

- that we're listening for request packets.
- that there is a 'recv foo' section if we're listening for 'foo'

8 years agoadd struct showing request packets
Alan T. DeKok [Fri, 29 Dec 2017 14:47:38 +0000 (09:47 -0500)] 
add struct showing request packets

8 years agodon't print out debug message twice
Alan T. DeKok [Thu, 28 Dec 2017 23:34:07 +0000 (18:34 -0500)] 
don't print out debug message twice

8 years agoclarify error message
Alan T. DeKok [Thu, 28 Dec 2017 23:34:00 +0000 (18:34 -0500)] 
clarify error message

8 years agoclarify message
Alan T. DeKok [Thu, 28 Dec 2017 23:32:44 +0000 (18:32 -0500)] 
clarify message

8 years agouse fr_rand_buffer()
Alan T. DeKok [Thu, 28 Dec 2017 14:33:29 +0000 (09:33 -0500)] 
use fr_rand_buffer()

8 years agoadded fr_rand_buffer() to fill a buffer with random bytes
Alan T. DeKok [Thu, 28 Dec 2017 14:28:04 +0000 (09:28 -0500)] 
added fr_rand_buffer() to fill a buffer with random bytes

8 years agocreate State for Access-Challenge
Alan T. DeKok [Wed, 27 Dec 2017 16:09:02 +0000 (11:09 -0500)] 
create State for Access-Challenge

before running "send Access-Challenge" section

8 years agoDon't need these anymore...
Arran Cudbard-Bell [Thu, 21 Dec 2017 11:49:57 +0000 (11:49 +0000)] 
Don't need these anymore...

8 years agoConvert fips186 test utility to cutest
Arran Cudbard-Bell [Thu, 21 Dec 2017 11:47:48 +0000 (11:47 +0000)] 
Convert fips186 test utility to cutest

8 years agoUse size macros for milenage buffers
Arran Cudbard-Bell [Thu, 21 Dec 2017 11:26:29 +0000 (11:26 +0000)] 
Use size macros for milenage buffers

8 years agoUse TGT_LDFLAGS for libraries that depend on OpenSSL
Arran Cudbard-Bell [Thu, 21 Dec 2017 11:25:47 +0000 (11:25 +0000)] 
Use TGT_LDFLAGS for libraries that depend on OpenSSL

8 years agoDuplicitous
Arran Cudbard-Bell [Thu, 21 Dec 2017 11:25:06 +0000 (11:25 +0000)] 
Duplicitous

8 years agoprint dependencies in the correct order
Alan T. DeKok [Wed, 20 Dec 2017 13:57:16 +0000 (08:57 -0500)] 
print dependencies in the correct order

8 years agoSimplify eap_tls_gen_eap_aka
Arran Cudbard-Bell [Wed, 20 Dec 2017 10:57:04 +0000 (10:57 +0000)] 
Simplify eap_tls_gen_eap_aka

8 years agoFix fr_sim_crypto_kdf_1_reauth to remove restriction on ID length
Arran Cudbard-Bell [Wed, 20 Dec 2017 10:55:18 +0000 (10:55 +0000)] 
Fix fr_sim_crypto_kdf_1_reauth to remove restriction on ID length

8 years agoRemove old EAP-SIM test vectors
Arran Cudbard-Bell [Wed, 20 Dec 2017 00:00:39 +0000 (00:00 +0000)] 
Remove old EAP-SIM test vectors

There are unit tests to check the KDFs taken from RFC4186.  There are unit tests to check the encoder.  There's an integration test which has eapol_test and FreeRADIUS simulate a SIM card and actually attempt authentication, we don't need these test vectors anymore.

8 years agoMinor formatting
Arran Cudbard-Bell [Tue, 19 Dec 2017 23:58:56 +0000 (23:58 +0000)] 
Minor formatting

8 years agoTypo
Arran Cudbard-Bell [Tue, 19 Dec 2017 21:03:42 +0000 (21:03 +0000)] 
Typo

8 years agosid does not have a backports repo
Matt Rose [Tue, 19 Dec 2017 15:09:05 +0000 (10:09 -0500)] 
sid does not have a backports repo

8 years agoAllocate stack buffers large enough for the maximum AT_IDENTITY length (1016 bytes)
Arran Cudbard-Bell [Tue, 19 Dec 2017 02:52:25 +0000 (02:52 +0000)] 
Allocate stack buffers large enough for the maximum AT_IDENTITY length (1016 bytes)

8 years agodockerfiles: ARG before FROM doesn't always work
Matthew Newton [Mon, 18 Dec 2017 17:14:18 +0000 (17:14 +0000)] 
dockerfiles: ARG before FROM doesn't always work

8 years agodockerfiles - add debian sid, use more args
Matthew Newton [Mon, 18 Dec 2017 13:36:48 +0000 (13:36 +0000)] 
dockerfiles - add debian sid, use more args

8 years agoMore documentation
Arran Cudbard-Bell [Sun, 17 Dec 2017 00:26:55 +0000 (00:26 +0000)] 
More documentation

8 years agoAdd reauth function for EAP-AKA'
Arran Cudbard-Bell [Sat, 16 Dec 2017 23:40:09 +0000 (23:40 +0000)] 
Add reauth function for EAP-AKA'

8 years agoUse correct reauth id in test
Arran Cudbard-Bell [Sat, 16 Dec 2017 22:39:40 +0000 (22:39 +0000)] 
Use correct reauth id in test

8 years agoNull terminate zero length octets strings in fr_value_box_snprint
Arran Cudbard-Bell [Sat, 16 Dec 2017 21:54:49 +0000 (21:54 +0000)] 
Null terminate zero length octets strings in fr_value_box_snprint

8 years agoAccount for IV in return value of encode_tlv_hdr
Arran Cudbard-Bell [Sat, 16 Dec 2017 00:46:05 +0000 (00:46 +0000)] 
Account for IV in return value of encode_tlv_hdr

8 years agoDoxygen
Arran Cudbard-Bell [Sat, 16 Dec 2017 00:17:47 +0000 (00:17 +0000)] 
Doxygen

8 years agoBetter final return code in EAP-AKA/EAP-SIM
Arran Cudbard-Bell [Sat, 16 Dec 2017 00:10:40 +0000 (00:10 +0000)] 
Better final return code in EAP-AKA/EAP-SIM

8 years agoStart plumbing in rlm_sim fast reauthentication
Arran Cudbard-Bell [Fri, 15 Dec 2017 23:51:21 +0000 (23:51 +0000)] 
Start plumbing in rlm_sim fast reauthentication

8 years agoDon't need to set identity in fr_sim_crypto_keys_init_kdf_0_reauth
Arran Cudbard-Bell [Fri, 15 Dec 2017 23:50:45 +0000 (23:50 +0000)] 
Don't need to set identity in fr_sim_crypto_keys_init_kdf_0_reauth

8 years agoRemove unused state name function
Arran Cudbard-Bell [Fri, 15 Dec 2017 23:49:59 +0000 (23:49 +0000)] 
Remove unused state name function

8 years agoMAC attribute doesn't need a value
Arran Cudbard-Bell [Fri, 15 Dec 2017 23:49:38 +0000 (23:49 +0000)] 
MAC attribute doesn't need a value

8 years agoIV needs reserved bytes
Arran Cudbard-Bell [Fri, 15 Dec 2017 23:38:30 +0000 (23:38 +0000)] 
IV needs reserved bytes

8 years ago...and terminate the buffer
Arran Cudbard-Bell [Fri, 15 Dec 2017 21:56:30 +0000 (21:56 +0000)] 
...and terminate the buffer

8 years agoreorganise/regularise dockerfiles, smaller image, args for compiler ver
Matthew Newton [Thu, 14 Dec 2017 23:49:02 +0000 (23:49 +0000)] 
reorganise/regularise dockerfiles, smaller image, args for compiler ver

8 years agoupdate dockerbuild script
Matthew Newton [Thu, 14 Dec 2017 21:43:46 +0000 (21:43 +0000)] 
update dockerbuild script

8 years agoadd "cc" ARG to dockerfiles to set compiler
Matthew Newton [Thu, 14 Dec 2017 22:33:32 +0000 (22:33 +0000)] 
add "cc" ARG to dockerfiles to set compiler

8 years agoZero length octets attributes are a thing
Arran Cudbard-Bell [Fri, 15 Dec 2017 21:54:34 +0000 (21:54 +0000)] 
Zero length octets attributes are a thing

8 years agoWarn when we discard encrypted attributes
Arran Cudbard-Bell [Fri, 15 Dec 2017 21:22:10 +0000 (21:22 +0000)] 
Warn when we discard encrypted attributes

8 years agoFix pseudonym case
Arran Cudbard-Bell [Fri, 15 Dec 2017 20:29:42 +0000 (20:29 +0000)] 
Fix pseudonym case

8 years agoAdd test vectors for EAP-SIM KDF, and start of SIM/AKA reauth KDF
Arran Cudbard-Bell [Fri, 15 Dec 2017 20:19:54 +0000 (20:19 +0000)] 
Add test vectors for EAP-SIM KDF, and start of SIM/AKA reauth KDF

MSK and EMSK differ from test vector

8 years agoRemove unused internal SIM attributes
Arran Cudbard-Bell [Fri, 15 Dec 2017 13:13:12 +0000 (13:13 +0000)] 
Remove unused internal SIM attributes