]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoFormatting
Arran Cudbard-Bell [Sat, 17 Mar 2018 19:14:01 +0000 (19:14 +0000)] 
Formatting

8 years agoSprinkle VERIFY_DA statements
Arran Cudbard-Bell [Sat, 17 Mar 2018 15:51:19 +0000 (15:51 +0000)] 
Sprinkle VERIFY_DA statements

8 years agoFormatting
Arran Cudbard-Bell [Sat, 17 Mar 2018 15:41:31 +0000 (15:41 +0000)] 
Formatting

8 years agoDoxument dict_from_file_ctx_t
Arran Cudbard-Bell [Sat, 17 Mar 2018 15:41:17 +0000 (15:41 +0000)] 
Doxument dict_from_file_ctx_t

8 years agoAdd protocol lookup function
Arran Cudbard-Bell [Sat, 17 Mar 2018 14:12:50 +0000 (14:12 +0000)] 
Add protocol lookup function

8 years agoMinor cleanups
Arran Cudbard-Bell [Fri, 16 Mar 2018 20:46:01 +0000 (20:46 +0000)] 
Minor cleanups

8 years agoSame treatment for vendors...
Arran Cudbard-Bell [Fri, 16 Mar 2018 20:30:01 +0000 (20:30 +0000)] 
Same treatment for vendors...

8 years agoDoxygen
Arran Cudbard-Bell [Fri, 16 Mar 2018 20:16:25 +0000 (20:16 +0000)] 
Doxygen

8 years agoAllocate a pool for the fr_dict_attr_t and allocate the name buffer in that
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.

8 years agoRemove .is_pointer from dictionary flags
Arran Cudbard-Bell [Fri, 16 Mar 2018 17:46:43 +0000 (17:46 +0000)] 
Remove .is_pointer from dictionary flags

8 years agoadd API to get size of the tracking table
Alan T. DeKok [Thu, 8 Mar 2018 14:51:09 +0000 (09:51 -0500)] 
add API to get size of the tracking table

8 years agoincrement the number of entries, too
Alan T. DeKok [Thu, 8 Mar 2018 14:50:17 +0000 (09:50 -0500)] 
increment the number of entries, too

8 years agoDH too
Arran Cudbard-Bell [Fri, 16 Mar 2018 14:01:40 +0000 (14:01 +0000)] 
DH too

8 years agoAdd tls-key-agility feature
Arran Cudbard-Bell [Fri, 16 Mar 2018 12:42:55 +0000 (12:42 +0000)] 
Add tls-key-agility feature

8 years agoLimit warning about multiple chains of same type
Arran Cudbard-Bell [Fri, 16 Mar 2018 08:27:00 +0000 (08:27 +0000)] 
Limit warning about multiple chains of same type

8 years agoClarify what should included in certificate_file
Arran Cudbard-Bell [Thu, 15 Mar 2018 19:12:03 +0000 (19:12 +0000)] 
Clarify what should included in certificate_file

8 years agoAdd targets to generate EC CA and Server certs
Arran Cudbard-Bell [Thu, 15 Mar 2018 18:29:35 +0000 (18:29 +0000)] 
Add targets to generate EC CA and Server certs

8 years agoEnable address-sanitizer support in dev packages
Arran Cudbard-Bell [Thu, 15 Mar 2018 17:14:13 +0000 (17:14 +0000)] 
Enable address-sanitizer support in dev packages

8 years agoAdd support for controlling certificate chain precompilation
Arran Cudbard-Bell [Thu, 15 Mar 2018 16:35:09 +0000 (16:35 +0000)] 
Add support for controlling certificate chain precompilation

8 years agoFix fp leak on cert load in rlm_cipher
Arran Cudbard-Bell [Thu, 15 Mar 2018 16:34:25 +0000 (16:34 +0000)] 
Fix fp leak on cert load in rlm_cipher

8 years agoRename key_pairs -> chains and certificate section to chain section
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.

8 years agoFixup tls_strerror_printf to use the new fr_strerror_printf stack
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

8 years agoImprove chain debug output
Arran Cudbard-Bell [Thu, 15 Mar 2018 10:31:47 +0000 (10:31 +0000)] 
Improve chain debug output

8 years agoSet mode before loading any certficates
Arran Cudbard-Bell [Thu, 15 Mar 2018 10:21:29 +0000 (10:21 +0000)] 
Set mode before loading any certficates

8 years agoAdd function for getting the name of an X509 cert pkey
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

8 years ago_tls_ctx_print_cert_line not needed unless we’re building with OpenSSL >= 1.0.2
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

8 years agoCert fmt table should be static too
Arran Cudbard-Bell [Wed, 14 Mar 2018 23:00:53 +0000 (23:00 +0000)] 
Cert fmt table should be static too

8 years agoPre-validate the certificate chains
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

8 years agoTables should be static, and we should gracefully fallback to real names
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

8 years agoFix OCSP staple memory leak
Arran Cudbard-Bell [Wed, 14 Mar 2018 19:44:52 +0000 (19:44 +0000)] 
Fix OCSP staple memory leak

8 years agoOnly call SSL_CTX_set_mode if there are modes to set
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

8 years agoDon’t set ctx options in the tls client session init function
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

8 years agoShouldn’t be BOOL
Arran Cudbard-Bell [Wed, 14 Mar 2018 08:26:21 +0000 (08:26 +0000)] 
Shouldn’t be BOOL

8 years agoAdd DER as an alias for ASN1
Arran Cudbard-Bell [Wed, 14 Mar 2018 08:04:47 +0000 (08:04 +0000)] 
Add DER as an alias for ASN1

8 years agoDocument certificate format config item
Arran Cudbard-Bell [Wed, 14 Mar 2018 07:34:09 +0000 (07:34 +0000)] 
Document certificate format config item

8 years agoDoxygen
Arran Cudbard-Bell [Wed, 14 Mar 2018 07:33:26 +0000 (07:33 +0000)] 
Doxygen

8 years agoAllow multiple keypairs to be specified for crypto agility
Arran Cudbard-Bell [Tue, 13 Mar 2018 07:09:04 +0000 (13:09 +0600)] 
Allow multiple keypairs to be specified for crypto agility

8 years agoFix multi section pass2 parsing
Arran Cudbard-Bell [Tue, 13 Mar 2018 18:13:18 +0000 (18:13 +0000)] 
Fix multi section pass2 parsing

8 years agoradclient "-i" didn't work, so just remove it to save confusion
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

8 years agoTypo
Arran Cudbard-Bell [Sat, 10 Mar 2018 15:44:20 +0000 (21:44 +0600)] 
Typo

8 years agoAdditional check for request sanity
Arran Cudbard-Bell [Fri, 9 Mar 2018 03:50:31 +0000 (09:50 +0600)] 
Additional check for request sanity

8 years agodoxygen
Alan T. DeKok [Thu, 8 Mar 2018 13:35:51 +0000 (08:35 -0500)] 
doxygen

8 years agomore cleanups
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.

8 years agoadd fr_trie_t to internal functions
Alan T. DeKok [Wed, 7 Mar 2018 18:16:01 +0000 (13:16 -0500)] 
add fr_trie_t to internal functions

8 years agoRemove cached config
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:48:31 +0000 (23:48 +0600)] 
Remove cached config

8 years agoReturn error code from virtual_server_namespace_register
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:48:13 +0000 (23:48 +0600)] 
Return error code from virtual_server_namespace_register

8 years agoFix bad free of cf_data
Arran Cudbard-Bell [Wed, 7 Mar 2018 17:47:50 +0000 (23:47 +0600)] 
Fix bad free of cf_data

8 years agoMake extra sure not to insert the same fr_event_fd_t into the free list multiple...
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

8 years agoCherry-pick later commit across
Arran Cudbard-Bell [Wed, 7 Mar 2018 07:13:09 +0000 (13:13 +0600)] 
Cherry-pick later commit across

8 years agoTypo
Arran Cudbard-Bell [Wed, 7 Mar 2018 06:53:39 +0000 (12:53 +0600)] 
Typo

8 years agoUnclear whether talloc counts 1 as success
Arran Cudbard-Bell [Wed, 7 Mar 2018 06:43:42 +0000 (12:43 +0600)] 
Unclear whether talloc counts 1 as success

8 years agoAdd a tmpfiles.d entry on systemd based redhat systems, to stop systemd agressively...
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

8 years agoadd negative cache for clients
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

8 years agoadd "pending" RADCLIENT_LIST
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

8 years agoremove "pending". It wasn't properly managed
Alan T. DeKok [Tue, 6 Mar 2018 17:09:49 +0000 (12:09 -0500)] 
remove "pending".  It wasn't properly managed

8 years agoremove "expired" client list.
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.

8 years agouse track->ft instead of inst->ft
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

8 years agoDoxygen
Arran Cudbard-Bell [Tue, 6 Mar 2018 13:59:08 +0000 (19:59 +0600)] 
Doxygen

8 years agoset state correctly
Alan T. DeKok [Tue, 6 Mar 2018 13:34:15 +0000 (08:34 -0500)] 
set state correctly

8 years agothis has now all been implemented
Alan T. DeKok [Mon, 5 Mar 2018 20:52:35 +0000 (15:52 -0500)] 
this has now all been implemented

8 years agoConvert rlm_sigtran to async calling... maybe?
Arran Cudbard-Bell [Tue, 6 Mar 2018 10:29:48 +0000 (16:29 +0600)] 
Convert rlm_sigtran to async calling... maybe?

8 years agoPass event list through to detach callback
Arran Cudbard-Bell [Tue, 6 Mar 2018 10:16:46 +0000 (16:16 +0600)] 
Pass event list through to detach callback

8 years agoFix warning message
Arran Cudbard-Bell [Tue, 6 Mar 2018 08:39:58 +0000 (14:39 +0600)] 
Fix warning message

8 years agoSimplify deferred event freeing
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.

8 years agoAdd slightly more information to the REST failure message
Arran Cudbard-Bell [Tue, 6 Mar 2018 07:48:33 +0000 (13:48 +0600)] 
Add slightly more information to the REST failure message

8 years agoadd 'is_dup' to channel messages
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

8 years agoVarious casting fixes
Arran Cudbard-Bell [Mon, 5 Mar 2018 10:24:31 +0000 (16:24 +0600)] 
Various casting fixes

8 years agofile was renamed
Matthew Newton [Mon, 5 Mar 2018 10:24:18 +0000 (10:24 +0000)] 
file was renamed

8 years agocentos builds need devtoolset
Matthew Newton [Mon, 5 Mar 2018 10:21:48 +0000 (10:21 +0000)] 
centos builds need devtoolset

8 years agoConvert assert to runtime check
Arran Cudbard-Bell [Mon, 5 Mar 2018 08:59:25 +0000 (14:59 +0600)] 
Convert assert to runtime check

8 years agoFix double free of virtual namespace tree
Arran Cudbard-Bell [Mon, 5 Mar 2018 07:44:41 +0000 (13:44 +0600)] 
Fix double free of virtual namespace tree

8 years agoAdd namespace to unit test virtual server
Arran Cudbard-Bell [Fri, 2 Mar 2018 11:56:06 +0000 (17:56 +0600)] 
Add namespace to unit test virtual server

8 years agoMove util function inside the C++ header
Arran Cudbard-Bell [Fri, 2 Mar 2018 10:05:38 +0000 (16:05 +0600)] 
Move util function inside the C++ header

8 years agoAdd namespace registration
Arran Cudbard-Bell [Fri, 2 Mar 2018 10:00:52 +0000 (16:00 +0600)] 
Add namespace registration

Allows modules to register compilation callbacks

8 years agoCleanup virtual_server parsing slightly
Arran Cudbard-Bell [Fri, 2 Mar 2018 08:22:43 +0000 (14:22 +0600)] 
Cleanup virtual_server parsing slightly

8 years agoCompile AKA sections
Arran Cudbard-Bell [Fri, 2 Mar 2018 08:15:31 +0000 (14:15 +0600)] 
Compile AKA sections

8 years agoWarn about any virtual_sever sections which aren't listen sections that haven't been...
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

8 years agoAllow no listen sections in a virtual server
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

8 years agoDon'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:51 +0000 (13:18 +0600)] 
Don't require FR_TYPE_IS_SET, most of the time we can just check for a NULL pointer

8 years agoIf we're doing a debug build, set the default filename and lineno of the section...
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

8 years agoThere's no publically available re-auth vectors, so we'll need to test against wpa_su...
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

8 years agoAdd UMTS AKA test vector
Arran Cudbard-Bell [Fri, 2 Mar 2018 03:04:28 +0000 (09:04 +0600)] 
Add UMTS AKA test vector

8 years agoUpdate copyright notices on EAP-SIM/EAP-AKA crypto functions
Arran Cudbard-Bell [Thu, 1 Mar 2018 09:45:42 +0000 (15:45 +0600)] 
Update copyright notices on EAP-SIM/EAP-AKA crypto functions

8 years agoRename eap-sim/aka/aka['] tests to make it clear the same reauth function is used...
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

8 years agoEnumerate the different sections we need for 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[']

8 years agoDon't explicitly include mysql_version
Arran Cudbard-Bell [Thu, 1 Mar 2018 04:25:47 +0000 (10:25 +0600)] 
Don't explicitly include mysql_version

8 years agoadd thread-specific ring buffers.
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.

8 years agoset vnode_fd = -1 on close
Alan T. DeKok [Wed, 28 Feb 2018 15:11:49 +0000 (10:11 -0500)] 
set vnode_fd = -1 on close

8 years agoMore debian packaging fixes
Arran Cudbard-Bell [Wed, 28 Feb 2018 12:06:09 +0000 (18:06 +0600)] 
More debian packaging fixes

8 years agoMerge pull request #2150 from gandaro/doc0
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

8 years agoUse the newer digest interface
Arran Cudbard-Bell [Wed, 28 Feb 2018 10:05:42 +0000 (16:05 +0600)] 
Use the newer digest interface

8 years agoALWAYS allocate OpenSSL memory with talloc
Arran Cudbard-Bell [Wed, 28 Feb 2018 09:17:31 +0000 (15:17 +0600)] 
ALWAYS allocate OpenSSL memory with talloc

8 years agoInclude libfreeradius-tls in the libfreeradius4 package
Arran Cudbard-Bell [Wed, 28 Feb 2018 09:04:46 +0000 (15:04 +0600)] 
Include libfreeradius-tls in the libfreeradius4 package

8 years agoSet structure types on OpenSSL allocated memory in rlm_cipher
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

8 years agoAdd tests for signature verification
Arran Cudbard-Bell [Wed, 28 Feb 2018 07:59:17 +0000 (13:59 +0600)] 
Add tests for signature verification

8 years agoMore tests
Arran Cudbard-Bell [Wed, 28 Feb 2018 07:51:51 +0000 (13:51 +0600)] 
More tests

8 years agoUse one EVP_PKEY_CTX per operation, and set the configuration only during instantiati...
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)

8 years agoFix issues with thread specific instances in rlm_cipher
Arran Cudbard-Bell [Wed, 28 Feb 2018 06:19:15 +0000 (12:19 +0600)] 
Fix issues with thread specific instances in rlm_cipher

8 years agoFix issues in cf_subsection_parse and cf_section_parse2 relating to heap allocated...
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

8 years agoCheck private key type
Arran Cudbard-Bell [Wed, 28 Feb 2018 04:01:48 +0000 (10:01 +0600)] 
Check private key type