]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Arran Cudbard-Bell [Sat, 17 Mar 2018 19:14:01 +0000 (19:14 +0000)]
Formatting
Arran Cudbard-Bell [Sat, 17 Mar 2018 15:51:19 +0000 (15:51 +0000)]
Sprinkle VERIFY_DA statements
Arran Cudbard-Bell [Sat, 17 Mar 2018 15:41:31 +0000 (15:41 +0000)]
Formatting
Arran Cudbard-Bell [Sat, 17 Mar 2018 15:41:17 +0000 (15:41 +0000)]
Doxument dict_from_file_ctx_t
Arran Cudbard-Bell [Sat, 17 Mar 2018 14:12:50 +0000 (14:12 +0000)]
Add protocol lookup function
Arran Cudbard-Bell [Fri, 16 Mar 2018 20:46:01 +0000 (20:46 +0000)]
Minor cleanups
Arran Cudbard-Bell [Fri, 16 Mar 2018 20:30:01 +0000 (20:30 +0000)]
Same treatment for vendors...
Arran Cudbard-Bell [Fri, 16 Mar 2018 20:16:25 +0000 (20:16 +0000)]
Doxygen
Arran Cudbard-Bell [Fri, 16 Mar 2018 19:43:13 +0000 (19:43 +0000)]
Allocate a pool for the fr_dict_attr_t and allocate the name buffer in that
Means we can use talloc_array_length(da->name) - 1, and have specialisations of fr_dict_attr_t.
Code is also smaller/simpler.
Arran Cudbard-Bell [Fri, 16 Mar 2018 17:46:43 +0000 (17:46 +0000)]
Remove .is_pointer from dictionary flags
Alan T. DeKok [Thu, 8 Mar 2018 14:51:09 +0000 (09:51 -0500)]
add API to get size of the tracking table
Alan T. DeKok [Thu, 8 Mar 2018 14:50:17 +0000 (09:50 -0500)]
increment the number of entries, too
Arran Cudbard-Bell [Fri, 16 Mar 2018 14:01:40 +0000 (14:01 +0000)]
DH too
Arran Cudbard-Bell [Fri, 16 Mar 2018 12:42:55 +0000 (12:42 +0000)]
Add tls-key-agility feature
Arran Cudbard-Bell [Fri, 16 Mar 2018 08:27:00 +0000 (08:27 +0000)]
Limit warning about multiple chains of same type
Arran Cudbard-Bell [Thu, 15 Mar 2018 19:12:03 +0000 (19:12 +0000)]
Clarify what should included in certificate_file
Arran Cudbard-Bell [Thu, 15 Mar 2018 18:29:35 +0000 (18:29 +0000)]
Add targets to generate EC CA and Server certs
Arran Cudbard-Bell [Thu, 15 Mar 2018 17:14:13 +0000 (17:14 +0000)]
Enable address-sanitizer support in dev packages
Arran Cudbard-Bell [Thu, 15 Mar 2018 16:35:09 +0000 (16:35 +0000)]
Add support for controlling certificate chain precompilation
Arran Cudbard-Bell [Thu, 15 Mar 2018 16:34:25 +0000 (16:34 +0000)]
Fix fp leak on cert load in rlm_cipher
Arran Cudbard-Bell [Thu, 15 Mar 2018 12:06:17 +0000 (12:06 +0000)]
Rename key_pairs -> chains and certificate section to chain section
This is more inline with OpenSSL’s terminiology, and makes more sense when you start looking at it in terms of managing different, independent, certificate chains for different key types.
Arran Cudbard-Bell [Thu, 15 Mar 2018 12:01:26 +0000 (12:01 +0000)]
Fixup tls_strerror_printf to use the new fr_strerror_printf stack
Arran Cudbard-Bell [Thu, 15 Mar 2018 10:31:47 +0000 (10:31 +0000)]
Improve chain debug output
Arran Cudbard-Bell [Thu, 15 Mar 2018 10:21:29 +0000 (10:21 +0000)]
Set mode before loading any certficates
Arran Cudbard-Bell [Thu, 15 Mar 2018 10:18:23 +0000 (10:18 +0000)]
Add function for getting the name of an X509 cert pkey
Arran Cudbard-Bell [Wed, 14 Mar 2018 23:02:22 +0000 (23:02 +0000)]
_tls_ctx_print_cert_line not needed unless we’re building with OpenSSL >= 1.0.2
Arran Cudbard-Bell [Wed, 14 Mar 2018 23:00:53 +0000 (23:00 +0000)]
Cert fmt table should be static too
Arran Cudbard-Bell [Wed, 14 Mar 2018 21:29:40 +0000 (21:29 +0000)]
Pre-validate the certificate chains
This also re-orders certs if they were listed out of order
Arran Cudbard-Bell [Wed, 14 Mar 2018 21:28:17 +0000 (21:28 +0000)]
Tables should be static, and we should gracefully fallback to real names
Arran Cudbard-Bell [Wed, 14 Mar 2018 19:44:52 +0000 (19:44 +0000)]
Fix OCSP staple memory leak
Arran Cudbard-Bell [Wed, 14 Mar 2018 15:30:52 +0000 (15:30 +0000)]
Only call SSL_CTX_set_mode if there are modes to set
Just in case this messes up the default mode
Arran Cudbard-Bell [Wed, 14 Mar 2018 15:29:46 +0000 (15:29 +0000)]
Don’t set ctx options in the tls client session init function
Arran Cudbard-Bell [Wed, 14 Mar 2018 08:26:21 +0000 (08:26 +0000)]
Shouldn’t be BOOL
Arran Cudbard-Bell [Wed, 14 Mar 2018 08:04:47 +0000 (08:04 +0000)]
Add DER as an alias for ASN1
Arran Cudbard-Bell [Wed, 14 Mar 2018 07:34:09 +0000 (07:34 +0000)]
Document certificate format config item
Arran Cudbard-Bell [Wed, 14 Mar 2018 07:33:26 +0000 (07:33 +0000)]
Doxygen
Arran Cudbard-Bell [Tue, 13 Mar 2018 07:09:04 +0000 (13:09 +0600)]
Allow multiple keypairs to be specified for crypto agility
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