]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Tue, 13 Mar 2018 18:13:18 +0000 (18:13 +0000)]
Fix multi section pass2 parsing
Matthew Newton [Mon, 12 Mar 2018 10:37:42 +0000 (10:37 +0000)]
radclient "-i" didn't work, so just remove it to save confusion
Arran Cudbard-Bell [Sat, 10 Mar 2018 15:44:20 +0000 (21:44 +0600)]
Typo
Arran Cudbard-Bell [Fri, 9 Mar 2018 03:50:31 +0000 (09:50 +0600)]
Additional check for request sanity
Alan T. DeKok [Thu, 8 Mar 2018 13:35:51 +0000 (08:35 -0500)]
doxygen
Alan T. DeKok [Wed, 7 Mar 2018 18:48:21 +0000 (13:48 -0500)]
more cleanups
change fprintf to MPRINT for debugging, so it doesn't affect
running systems.
Alan T. DeKok [Wed, 7 Mar 2018 18:16:01 +0000 (13:16 -0500)]
add fr_trie_t to internal functions
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:48:31 +0000 (23:48 +0600)]
Remove cached config
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:48:13 +0000 (23:48 +0600)]
Return error code from virtual_server_namespace_register
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:47:50 +0000 (23:47 +0600)]
Fix bad free of cf_data
Arran Cudbard-Bell [Wed, 7 Mar 2018 15:37:37 +0000 (21:37 +0600)]
Make extra sure not to insert the same fr_event_fd_t into the free list multiple times
Arran Cudbard-Bell [Wed, 7 Mar 2018 07:13:09 +0000 (13:13 +0600)]
Cherry-pick later commit across
Arran Cudbard-Bell [Wed, 7 Mar 2018 06:53:39 +0000 (12:53 +0600)]
Typo
Arran Cudbard-Bell [Wed, 7 Mar 2018 06:43:42 +0000 (12:43 +0600)]
Unclear whether talloc counts 1 as success
Paul Seward [Mon, 19 Feb 2018 11:08:39 +0000 (11:08 +0000)]
Add a tmpfiles.d entry on systemd based redhat systems, to stop systemd agressively cleaning up /var/run/radiusd at boot time
# Conflicts:
# redhat/freeradius.spec
Alan T. DeKok [Tue, 6 Mar 2018 17:30:35 +0000 (12:30 -0500)]
add negative cache for clients
so a rejected client is blocked for 30s. Up to 1024 clients
are blocked.
These values are not currently configurable
Alan T. DeKok [Tue, 6 Mar 2018 17:21:53 +0000 (12:21 -0500)]
add "pending" RADCLIENT_LIST
so we track state here, and not in the client
Alan T. DeKok [Tue, 6 Mar 2018 17:09:49 +0000 (12:09 -0500)]
remove "pending". It wasn't properly managed
Alan T. DeKok [Tue, 6 Mar 2018 15:23:57 +0000 (10:23 -0500)]
remove "expired" client list.
Once a client expires, it's gone. Any subsequent packets will
cause a new client to be created. Doing this allows for shared
secrets to change for clients, and simplifies the logic.
The downside is that counters will get lost. But the counters
have been largely moved to rlm_stats.
Alan T. DeKok [Tue, 6 Mar 2018 15:19:12 +0000 (10:19 -0500)]
use track->ft instead of inst->ft
in preparation for having multiple tracking tables
Arran Cudbard-Bell [Tue, 6 Mar 2018 13:59:08 +0000 (19:59 +0600)]
Doxygen
Alan T. DeKok [Tue, 6 Mar 2018 13:34:15 +0000 (08:34 -0500)]
set state correctly
Alan T. DeKok [Mon, 5 Mar 2018 20:52:35 +0000 (15:52 -0500)]
this has now all been implemented
Arran Cudbard-Bell [Tue, 6 Mar 2018 10:29:48 +0000 (16:29 +0600)]
Convert rlm_sigtran to async calling... maybe?
Arran Cudbard-Bell [Tue, 6 Mar 2018 10:16:46 +0000 (16:16 +0600)]
Pass event list through to detach callback
Arran Cudbard-Bell [Tue, 6 Mar 2018 08:39:58 +0000 (14:39 +0600)]
Fix warning message
Arran Cudbard-Bell [Tue, 6 Mar 2018 08:32:35 +0000 (14:32 +0600)]
Simplify deferred event freeing
Makes super double extra sure that we don't hit SEGVs after an event has been freed, but there are still handlers to run.
This is to address a crash in rlm_rest where the request times out.
Arran Cudbard-Bell [Tue, 6 Mar 2018 07:48:33 +0000 (13:48 +0600)]
Add slightly more information to the REST failure message
Alan T. DeKok [Mon, 5 Mar 2018 16:59:18 +0000 (11:59 -0500)]
add 'is_dup' to channel messages
so that the network side can signal the worker side that the
packet is a dup of a pre-existing one
Arran Cudbard-Bell [Mon, 5 Mar 2018 10:24:31 +0000 (16:24 +0600)]
Various casting fixes
Matthew Newton [Mon, 5 Mar 2018 10:24:18 +0000 (10:24 +0000)]
file was renamed
Matthew Newton [Mon, 5 Mar 2018 10:21:48 +0000 (10:21 +0000)]
centos builds need devtoolset
Arran Cudbard-Bell [Mon, 5 Mar 2018 08:59:25 +0000 (14:59 +0600)]
Convert assert to runtime check
Arran Cudbard-Bell [Mon, 5 Mar 2018 07:44:41 +0000 (13:44 +0600)]
Fix double free of virtual namespace tree
Arran Cudbard-Bell [Fri, 2 Mar 2018 11:56:06 +0000 (17:56 +0600)]
Add namespace to unit test virtual server
Arran Cudbard-Bell [Fri, 2 Mar 2018 10:05:38 +0000 (16:05 +0600)]
Move util function inside the C++ header
Arran Cudbard-Bell [Fri, 2 Mar 2018 10:00:52 +0000 (16:00 +0600)]
Add namespace registration
Allows modules to register compilation callbacks
Arran Cudbard-Bell [Fri, 2 Mar 2018 08:22:43 +0000 (14:22 +0600)]
Cleanup virtual_server parsing slightly
Arran Cudbard-Bell [Fri, 2 Mar 2018 08:15:31 +0000 (14:15 +0600)]
Compile AKA sections
Arran Cudbard-Bell [Fri, 2 Mar 2018 07:43:30 +0000 (13:43 +0600)]
Warn about any virtual_sever sections which aren't listen sections that haven't been compiled
Arran Cudbard-Bell [Fri, 2 Mar 2018 07:20:09 +0000 (13:20 +0600)]
Allow no listen sections in a virtual server
The plan is to add a namespace registry with compilation callbacks, then we can error out if the namespace is invalid, and bitch about unhandled sections
Arran Cudbard-Bell [Fri, 2 Mar 2018 07:18:51 +0000 (13:18 +0600)]
Don't require FR_TYPE_IS_SET, most of the time we can just check for a NULL pointer
Arran Cudbard-Bell [Fri, 2 Mar 2018 07:18:17 +0000 (13:18 +0600)]
If we're doing a debug build, set the default filename and lineno of the section to be that of the caller to cf_section_alloc
Helps track down where exactly default sections were added
Arran Cudbard-Bell [Fri, 2 Mar 2018 04:09:22 +0000 (10:09 +0600)]
There's no publically available re-auth vectors, so we'll need to test against wpa_supplicant when the re-auth functionality is plumbed in
Arran Cudbard-Bell [Fri, 2 Mar 2018 03:04:28 +0000 (09:04 +0600)]
Add UMTS AKA test vector
Arran Cudbard-Bell [Thu, 1 Mar 2018 09:45:42 +0000 (15:45 +0600)]
Update copyright notices on EAP-SIM/EAP-AKA crypto functions
Arran Cudbard-Bell [Thu, 1 Mar 2018 09:29:35 +0000 (15:29 +0600)]
Rename eap-sim/aka/aka['] tests to make it clear the same reauth function is used for both EAP-SIM and EAP-AKA
Arran Cudbard-Bell [Thu, 1 Mar 2018 09:29:06 +0000 (15:29 +0600)]
Enumerate the different sections we need for EAP-AKA[']
Arran Cudbard-Bell [Thu, 1 Mar 2018 04:25:47 +0000 (10:25 +0600)]
Don't explicitly include mysql_version
Alan T. DeKok [Wed, 28 Feb 2018 17:53:05 +0000 (12:53 -0500)]
add thread-specific ring buffers.
Which avoids a mutex lock, and all kinds of other issues
associated with that.
Alan T. DeKok [Wed, 28 Feb 2018 15:11:49 +0000 (10:11 -0500)]
set vnode_fd = -1 on close
Arran Cudbard-Bell [Wed, 28 Feb 2018 12:06:09 +0000 (18:06 +0600)]
More debian packaging fixes
Arran Cudbard-Bell [Wed, 28 Feb 2018 11:45:56 +0000 (17:45 +0600)]
Merge pull request #2150 from gandaro/doc0
Format coding-methods.rst correctly
Arran Cudbard-Bell [Wed, 28 Feb 2018 10:05:42 +0000 (16:05 +0600)]
Use the newer digest interface
Arran Cudbard-Bell [Wed, 28 Feb 2018 09:17:31 +0000 (15:17 +0600)]
ALWAYS allocate OpenSSL memory with talloc
Arran Cudbard-Bell [Wed, 28 Feb 2018 09:04:46 +0000 (15:04 +0600)]
Include libfreeradius-tls in the libfreeradius4 package
Arran Cudbard-Bell [Wed, 28 Feb 2018 08:52:49 +0000 (14:52 +0600)]
Set structure types on OpenSSL allocated memory in rlm_cipher
Makes debugging easier
Arran Cudbard-Bell [Wed, 28 Feb 2018 07:59:17 +0000 (13:59 +0600)]
Add tests for signature verification
Arran Cudbard-Bell [Wed, 28 Feb 2018 07:51:51 +0000 (13:51 +0600)]
More tests
Arran Cudbard-Bell [Wed, 28 Feb 2018 07:41:26 +0000 (13:41 +0600)]
Use one EVP_PKEY_CTX per operation, and set the configuration only during instantiation (not on every request)
Arran Cudbard-Bell [Wed, 28 Feb 2018 06:19:15 +0000 (12:19 +0600)]
Fix issues with thread specific instances in rlm_cipher
Arran Cudbard-Bell [Wed, 28 Feb 2018 06:11:09 +0000 (12:11 +0600)]
Fix issues in cf_subsection_parse and cf_section_parse2 relating to heap allocated subsection structions
Arran Cudbard-Bell [Wed, 28 Feb 2018 04:01:48 +0000 (10:01 +0600)]
Check private key type
Arran Cudbard-Bell [Wed, 28 Feb 2018 03:57:51 +0000 (09:57 +0600)]
Extract public key from X509 certficiate
Arran Cudbard-Bell [Wed, 28 Feb 2018 02:06:55 +0000 (08:06 +0600)]
Minor build fixes
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:18:33 +0000 (22:18 +0600)]
Doxygen issues
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:15:51 +0000 (22:15 +0600)]
Fix const issues with rlm_cipher
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:12:29 +0000 (22:12 +0600)]
Ifdef out OAEP padding options unless using OpenSSL 1.0.2
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:03:21 +0000 (22:03 +0600)]
Doxygen and temporary fix…
We’ll need to see when these functions were added
Arran Cudbard-Bell [Tue, 27 Feb 2018 15:31:19 +0000 (21:31 +0600)]
Add rlm_ciper for encrypting/decrypting arbitrary data
Not yet functional because OpenSSL is stupid...
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:58:07 +0000 (13:58 +0600)]
Make it slightly clearer what's going on here...
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:57:53 +0000 (13:57 +0600)]
Use documented argument names in tls_session_password_cb
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:57:28 +0000 (13:57 +0600)]
fr_value_box_memsteal can never fail
Alan T. DeKok [Tue, 27 Feb 2018 14:17:16 +0000 (09:17 -0500)]
port fix from v3.0.x branch
Alan T. DeKok [Mon, 26 Feb 2018 19:57:25 +0000 (14:57 -0500)]
don't lock the file if it has been renamed
Manual port of commit
abbbf09df831
Matthew Newton [Mon, 26 Feb 2018 15:42:52 +0000 (15:42 +0000)]
also seems to require gnupg2
Philippe Wooding [Mon, 19 Feb 2018 17:22:43 +0000 (18:22 +0100)]
Don't bootstrap redis cluster config when pool->start is 0
Philippe Wooding [Mon, 19 Feb 2018 17:22:18 +0000 (18:22 +0100)]
Add getter for pool's start attribute
Nicolas C [Sat, 24 Feb 2018 19:54:18 +0000 (20:54 +0100)]
dhcpclient documentation
Some updates to dhcpclient man page
Arran Cudbard-Bell [Fri, 23 Feb 2018 09:20:55 +0000 (15:20 +0600)]
Typo
Arran Cudbard-Bell [Fri, 23 Feb 2018 07:12:21 +0000 (13:12 +0600)]
Misc fixes
Arran Cudbard-Bell [Fri, 23 Feb 2018 03:11:21 +0000 (09:11 +0600)]
Get vendor number by looking it up in the attribute hierarchy
This is cleanup work that should have been done a while back.
Vendors are now represented in the dictionary hierarchy, so having a vendor field in attributes is superfluous.
Arran Cudbard-Bell [Wed, 21 Feb 2018 14:24:43 +0000 (14:24 +0000)]
Formatting
Alan T. DeKok [Thu, 22 Feb 2018 15:12:41 +0000 (10:12 -0500)]
include rfc2865 header for vendor-specific
Alan T. DeKok [Thu, 22 Feb 2018 14:54:58 +0000 (09:54 -0500)]
one more "use absolute path"
Alan T. DeKok [Thu, 22 Feb 2018 14:25:25 +0000 (15:25 +0100)]
use absolute paths
Alan T. DeKok [Thu, 22 Feb 2018 13:51:55 +0000 (14:51 +0100)]
decode CHADDR manually
Alan T. DeKok [Thu, 22 Feb 2018 13:48:55 +0000 (14:48 +0100)]
don't include links in the source
Arran Cudbard-Bell [Mon, 19 Feb 2018 21:31:57 +0000 (21:31 +0000)]
Fix mostly spurious warnings
Arran Cudbard-Bell [Mon, 19 Feb 2018 21:23:04 +0000 (21:23 +0000)]
Use standard boxed value from network function when decoding the DHCPv4 packet header
Caught by Nicolas Chaigneau
Alan T. DeKok [Mon, 19 Feb 2018 13:40:54 +0000 (14:40 +0100)]
reset leftover after we've eaten it
Arran Cudbard-Bell [Sat, 17 Feb 2018 17:16:30 +0000 (17:16 +0000)]
Add struct encoder to dhcpv6
Arran Cudbard-Bell [Sat, 17 Feb 2018 11:19:23 +0000 (11:19 +0000)]
Check for v4 in v6 encoding
Arran Cudbard-Bell [Sat, 17 Feb 2018 11:16:39 +0000 (11:16 +0000)]
Use new return code style in EAP-SIM encoder
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:46:43 +0000 (00:46 +0000)]
Move cases to that ipv4addr, ifid, and ethernet all use the standard encoder
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:41:42 +0000 (00:41 +0000)]
Be clearer why we use numbered scopes
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:40:24 +0000 (00:40 +0000)]
en0 doesn't exist in Travis
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:32:00 +0000 (00:32 +0000)]
Encode dates in DHCPv6 using 1st January 2000 as the starting point
I have no idea why they did this, it seems really really stupid and annoying.
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:16:18 +0000 (00:16 +0000)]
Moar DHCPv6 tests
Arran Cudbard-Bell [Fri, 16 Feb 2018 23:34:22 +0000 (23:34 +0000)]
Invert args to CHECK_FREESPACE in array encoder