]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
8 years agoFix -Weverything detection
Arran Cudbard-Bell [Thu, 5 Apr 2018 12:32:12 +0000 (13:32 +0100)] 
Fix -Weverything detection

8 years agoremove unnecessary check. CID #1433563
Alan T. DeKok [Thu, 5 Apr 2018 12:37:36 +0000 (08:37 -0400)] 
remove unnecessary check.  CID #1433563

8 years agocheck for error. CID #1433562
Alan T. DeKok [Thu, 5 Apr 2018 12:36:00 +0000 (08:36 -0400)] 
check for error.  CID #1433562

8 years agodon't close FD twice. CID #1433561
Alan T. DeKok [Thu, 5 Apr 2018 12:34:41 +0000 (08:34 -0400)] 
don't close FD twice.  CID #1433561

8 years agocheck return code. CID #1433560
Alan T. DeKok [Thu, 5 Apr 2018 12:32:11 +0000 (08:32 -0400)] 
check return code.  CID #1433560

8 years agodoxygen
Alan T. DeKok [Thu, 5 Apr 2018 12:31:52 +0000 (08:31 -0400)] 
doxygen

8 years agosizeof(struct) not sizeof(struct *). CID #1433559
Alan T. DeKok [Thu, 5 Apr 2018 12:29:57 +0000 (08:29 -0400)] 
sizeof(struct) not sizeof(struct *).  CID #1433559

8 years agosizeof(struct) not sizeof(struct *). CID #1433557
Alan T. DeKok [Thu, 5 Apr 2018 12:29:02 +0000 (08:29 -0400)] 
sizeof(struct) not sizeof(struct *).  CID #1433557

8 years agovnode_fd can't be negative. CID #1433556
Alan T. DeKok [Thu, 5 Apr 2018 12:26:59 +0000 (08:26 -0400)] 
vnode_fd can't be negative.  CID #1433556

8 years agoSet type of request_inst in rlm_radius
Arran Cudbard-Bell [Thu, 5 Apr 2018 11:56:33 +0000 (12:56 +0100)] 
Set type of request_inst in rlm_radius

8 years agoadd Mimosa dictionary
Alan T. DeKok [Wed, 4 Apr 2018 19:53:06 +0000 (15:53 -0400)] 
add Mimosa dictionary

8 years agodon't allow leading spaces
Alan T. DeKok [Wed, 4 Apr 2018 19:52:34 +0000 (15:52 -0400)] 
don't allow leading spaces

8 years agoadd unlang_signal_frames()
Alan T. DeKok [Wed, 4 Apr 2018 20:28:57 +0000 (16:28 -0400)] 
add unlang_signal_frames()

which signals a subset of frames, so that "limit" and "timeout"
can stop child subsections, but still allow the request to continue

8 years agoremove duplicate message.
Alan T. DeKok [Wed, 4 Apr 2018 17:57:36 +0000 (13:57 -0400)] 
remove duplicate message.

Only the system which generated the error should print the error

8 years agoToo verbose
Arran Cudbard-Bell [Wed, 4 Apr 2018 17:47:51 +0000 (18:47 +0100)] 
Too verbose

8 years agotrack is_dup locally
Alan T. DeKok [Wed, 4 Apr 2018 17:29:39 +0000 (13:29 -0400)] 
track is_dup locally

8 years agoFix rlm_rest autoload arrays
Arran Cudbard-Bell [Wed, 4 Apr 2018 17:04:37 +0000 (18:04 +0100)] 
Fix rlm_rest autoload arrays

8 years agoEnvironmental variables for ASAN and LSAN
Arran Cudbard-Bell [Wed, 4 Apr 2018 16:15:30 +0000 (17:15 +0100)] 
Environmental variables for ASAN and LSAN

8 years agoFix comment
Arran Cudbard-Bell [Wed, 4 Apr 2018 16:15:06 +0000 (17:15 +0100)] 
Fix comment

8 years agoDon't leak partially initialised SSL_CTXs
Arran Cudbard-Bell [Wed, 4 Apr 2018 15:37:27 +0000 (16:37 +0100)] 
Don't leak partially initialised SSL_CTXs

8 years agoActually error out if we're hard verifying the cert chain
Arran Cudbard-Bell [Wed, 4 Apr 2018 15:37:06 +0000 (16:37 +0100)] 
Actually error out if we're hard verifying the cert chain

8 years agoDo a better job of managing thread memory lifetime in unit_test_module.c
Arran Cudbard-Bell [Wed, 4 Apr 2018 15:02:02 +0000 (16:02 +0100)] 
Do a better job of managing thread memory lifetime in unit_test_module.c

8 years agoIf we're explicitly freeing the strerror buffer, don't allow it to be used later
Arran Cudbard-Bell [Wed, 4 Apr 2018 15:01:42 +0000 (16:01 +0100)] 
If we're explicitly freeing the strerror buffer, don't allow it to be used later

8 years agoParent thread instance tree from worker so it gets cleaned up at the right point
Arran Cudbard-Bell [Wed, 4 Apr 2018 14:32:46 +0000 (15:32 +0100)] 
Parent thread instance tree from worker so it gets cleaned up at the right point

8 years agoUse talloc to free thread specific data instead of pthrea destructors
Arran Cudbard-Bell [Wed, 4 Apr 2018 14:28:13 +0000 (15:28 +0100)] 
Use talloc to free thread specific data instead of pthrea destructors

8 years agoWe probably don't need to package this separately
Arran Cudbard-Bell [Wed, 4 Apr 2018 13:14:11 +0000 (14:14 +0100)] 
We probably don't need to package this separately

8 years agosupress spurious LSAN leaks in macOS
Arran Cudbard-Bell [Wed, 4 Apr 2018 12:13:18 +0000 (13:13 +0100)] 
supress spurious LSAN leaks in macOS

8 years agoMake thread local destructor init function less picky
Arran Cudbard-Bell [Wed, 4 Apr 2018 11:50:18 +0000 (12:50 +0100)] 
Make thread local destructor init function less picky

8 years agoRemove unused code
Arran Cudbard-Bell [Wed, 4 Apr 2018 11:29:36 +0000 (12:29 +0100)] 
Remove unused code

8 years ago...and another one
Arran Cudbard-Bell [Wed, 4 Apr 2018 11:09:40 +0000 (12:09 +0100)] 
...and another one

8 years agoFix linking issues
Arran Cudbard-Bell [Wed, 4 Apr 2018 10:46:20 +0000 (11:46 +0100)] 
Fix linking issues

By not calling I/O functions from the server library *sigh*

8 years agoAlways use talloc_get_type_abort when assigning from void
Arran Cudbard-Bell [Wed, 4 Apr 2018 09:54:35 +0000 (10:54 +0100)] 
Always use talloc_get_type_abort when assigning from void

It saves against fat fingers, and has no performance impact in non-debug builds

8 years agoAdd more debug messages to track thread/xlat allocations
Arran Cudbard-Bell [Wed, 4 Apr 2018 09:53:56 +0000 (10:53 +0100)] 
Add more debug messages to track thread/xlat allocations

8 years agoParent thread instance data from the thread instance tree
Arran Cudbard-Bell [Wed, 4 Apr 2018 00:02:01 +0000 (01:02 +0100)] 
Parent thread instance data from the thread instance tree

8 years agoStop address sanitizer complaining about the thread local logging buffer
Arran Cudbard-Bell [Tue, 3 Apr 2018 23:42:25 +0000 (00:42 +0100)] 
Stop address sanitizer complaining about the thread local logging buffer

8 years agoDon't leak worker heaps
Arran Cudbard-Bell [Tue, 3 Apr 2018 23:42:10 +0000 (00:42 +0100)] 
Don't leak worker heaps

8 years agotypo
Alan T. DeKok [Tue, 3 Apr 2018 21:27:15 +0000 (17:27 -0400)] 
typo

8 years agoPackage unlang library
Arran Cudbard-Bell [Tue, 3 Apr 2018 21:21:03 +0000 (22:21 +0100)] 
Package unlang library

8 years agouse P_PKTINFO or IP_SENDSRCADDR, but not both
Alan T. DeKok [Tue, 3 Apr 2018 20:51:13 +0000 (16:51 -0400)] 
use P_PKTINFO or IP_SENDSRCADDR, but not both

Manual port of commit e1a8cdf5723

8 years agoChange to doxygen @copyright
Alan T. DeKok [Tue, 3 Apr 2018 15:45:05 +0000 (11:45 -0400)] 
Change to doxygen @copyright

8 years agoupdate comments as per latest code changes
Alan T. DeKok [Tue, 3 Apr 2018 15:40:35 +0000 (11:40 -0400)] 
update comments as per latest code changes

8 years agodoxygen
Alan T. DeKok [Tue, 3 Apr 2018 15:38:49 +0000 (11:38 -0400)] 
doxygen

8 years agoJoin threads for a more orderly exit
Arran Cudbard-Bell [Tue, 3 Apr 2018 14:49:24 +0000 (15:49 +0100)] 
Join threads for a more orderly exit

8 years agoinstall unlang library too
Alan T. DeKok [Tue, 3 Apr 2018 14:28:48 +0000 (10:28 -0400)] 
install unlang library too

8 years agos/map_unlang/unlang_map/
Alan T. DeKok [Tue, 3 Apr 2018 14:19:33 +0000 (10:19 -0400)] 
s/map_unlang/unlang_map/

8 years agorename module_call and modcall to just module
Alan T. DeKok [Tue, 3 Apr 2018 14:15:10 +0000 (10:15 -0400)] 
rename module_call and modcall to just module

There's no "module" keyword, but it's clear what the intent is.
Any reference to a module is when we *call* a module.

8 years agos/module_unlang/unlang_module/
Alan T. DeKok [Tue, 3 Apr 2018 14:09:41 +0000 (10:09 -0400)] 
s/module_unlang/unlang_module/

like the last commit

8 years agorename xlat_unlang func/struct to unlang_xlat
Alan T. DeKok [Tue, 3 Apr 2018 13:54:12 +0000 (09:54 -0400)] 
rename xlat_unlang func/struct to unlang_xlat

While they're all xlat functions.. their main purpose is to
glue unlang to xlat.  So FWIW, they should be called unlang_xlat.

8 years agotoo many "unlang_foo" things. Move to src/unlang/foo
Alan T. DeKok [Tue, 3 Apr 2018 13:45:55 +0000 (09:45 -0400)] 
too many "unlang_foo" things.  Move to src/unlang/foo

the eventual goal is to have each keyword defined in src/unlang/foo
for now, we've just moved / renamed files.  Nothing else has
been changed.

8 years agoCache rad_module_t in thread instance data to fix use after free issues
Arran Cudbard-Bell [Tue, 3 Apr 2018 10:18:10 +0000 (11:18 +0100)] 
Cache rad_module_t in thread instance data to fix use after free issues

8 years agoFix use after free in fr_syserror and fr_strerror
Arran Cudbard-Bell [Mon, 2 Apr 2018 17:54:47 +0000 (18:54 +0100)] 
Fix use after free in fr_syserror and fr_strerror

This ocurred when something called fr_strerror_printf in another thread local destructor, after the memory had been freed.

8 years agoTry and fix use after free in logging buffer
Arran Cudbard-Bell [Mon, 2 Apr 2018 17:02:46 +0000 (18:02 +0100)] 
Try and fix use after free in logging buffer

8 years agoReturn ret
Arran Cudbard-Bell [Mon, 2 Apr 2018 13:51:34 +0000 (14:51 +0100)] 
Return ret

8 years agoLink to util library not server
Arran Cudbard-Bell [Mon, 2 Apr 2018 10:18:06 +0000 (11:18 +0100)] 
Link to util library not server

8 years agoAutoload rlm_digest attributes
Arran Cudbard-Bell [Sun, 1 Apr 2018 22:28:19 +0000 (23:28 +0100)] 
Autoload rlm_digest attributes

8 years agoAdd dictionary lookup utility
Arran Cudbard-Bell [Sun, 1 Apr 2018 19:15:48 +0000 (20:15 +0100)] 
Add dictionary lookup utility

Only works with new directory structure

8 years agoAutoload rlm_detail attributes
Arran Cudbard-Bell [Sun, 1 Apr 2018 19:11:13 +0000 (20:11 +0100)] 
Autoload rlm_detail attributes

8 years agoRemove rlm_cram dictionary
Arran Cudbard-Bell [Sun, 1 Apr 2018 18:47:11 +0000 (19:47 +0100)] 
Remove rlm_cram dictionary

8 years agoAutoload rlm_cram attributes
Arran Cudbard-Bell [Sun, 1 Apr 2018 18:43:56 +0000 (19:43 +0100)] 
Autoload rlm_cram attributes

8 years agoAutoload rlm_couchbase attributes
Arran Cudbard-Bell [Sun, 1 Apr 2018 18:22:21 +0000 (19:22 +0100)] 
Autoload rlm_couchbase attributes

8 years agoTypo
Arran Cudbard-Bell [Sun, 1 Apr 2018 18:21:55 +0000 (19:21 +0100)] 
Typo

8 years agoRename dhcp to dhcpv4
Arran Cudbard-Bell [Sun, 1 Apr 2018 18:05:35 +0000 (19:05 +0100)] 
Rename dhcp to dhcpv4

8 years agoAutoload rlm_chap attributes
Arran Cudbard-Bell [Sun, 1 Apr 2018 15:33:43 +0000 (16:33 +0100)] 
Autoload rlm_chap attributes

8 years agoAdd alias auto-enumerator
Arran Cudbard-Bell [Sun, 1 Apr 2018 15:33:23 +0000 (16:33 +0100)] 
Add alias auto-enumerator

8 years agoAdd explicit ordering to the symbol autoloader
Arran Cudbard-Bell [Sun, 1 Apr 2018 15:33:02 +0000 (16:33 +0100)] 
Add explicit ordering to the symbol autoloader

8 years agoDon't SEGV if there's no dictionary defined
Arran Cudbard-Bell [Sun, 1 Apr 2018 15:32:13 +0000 (16:32 +0100)] 
Don't SEGV if there's no dictionary defined

8 years agoFix issues in rlm_attr_filter
Arran Cudbard-Bell [Sun, 1 Apr 2018 15:31:46 +0000 (16:31 +0100)] 
Fix issues in rlm_attr_filter

8 years agoAdd function to safely imcrement boxes values
Arran Cudbard-Bell [Sun, 1 Apr 2018 14:16:18 +0000 (15:16 +0100)] 
Add function to safely imcrement boxes values

8 years agotake names from dictionaries, not hard-coded into header
Alan T. DeKok [Sun, 1 Apr 2018 13:07:16 +0000 (09:07 -0400)] 
take names from dictionaries, not hard-coded into header

8 years agoinclude new header file, and use names instead of numbers
Alan T. DeKok [Sun, 1 Apr 2018 13:01:42 +0000 (09:01 -0400)] 
include new header file, and use names instead of numbers

8 years agoinclude dhcpv4 definitions
Alan T. DeKok [Sun, 1 Apr 2018 12:56:47 +0000 (08:56 -0400)] 
include dhcpv4 definitions

As these are now legion, we should probably have a separate
include directory for them.  e.g. src/include/dictionary/

8 years agoremove unused enum
Alan T. DeKok [Fri, 30 Mar 2018 19:20:57 +0000 (15:20 -0400)] 
remove unused enum

8 years agoMerge pull request #2204 from nchaigne/4.0.x-201804-dhcp-decode-overload
Alan DeKok [Sun, 1 Apr 2018 12:54:03 +0000 (08:54 -0400)] 
Merge pull request #2204 from nchaigne/4.0.x-201804-dhcp-decode-overload

Decode additional DHCP options according to option Overload

8 years agoDecode additional DHCP options according to option Overload. 2204/head
nchaigne [Sun, 1 Apr 2018 11:05:28 +0000 (13:05 +0200)] 
Decode additional DHCP options according to option Overload.

If option Overload is present in the 'options' field, then fields 'file' and/or 'sname' are used to hold more options. They are partitioned and must be interpreted in sequence (cf. RFC 2131 and 2132).

8 years agoRemove dict argument from enum lookup functions
Arran Cudbard-Bell [Sun, 1 Apr 2018 10:32:11 +0000 (11:32 +0100)] 
Remove dict argument from enum lookup functions

8 years agoRemove duplicate
Arran Cudbard-Bell [Sun, 1 Apr 2018 08:27:58 +0000 (09:27 +0100)] 
Remove duplicate

8 years agoAutoload rlm_attr_filter
Arran Cudbard-Bell [Sat, 31 Mar 2018 19:33:41 +0000 (20:33 +0100)] 
Autoload rlm_attr_filter

8 years agoAutoload for rlm_cache
Arran Cudbard-Bell [Sat, 31 Mar 2018 18:51:15 +0000 (19:51 +0100)] 
Autoload for rlm_cache

8 years agoFix stupid errors in the autoload code
Arran Cudbard-Bell [Sat, 31 Mar 2018 17:17:52 +0000 (18:17 +0100)] 
Fix stupid errors in the autoload code

8 years agoAuto load dict_vmps and dict_vmps
Arran Cudbard-Bell [Fri, 30 Mar 2018 20:27:26 +0000 (21:27 +0100)] 
Auto load dict_vmps and dict_vmps

8 years agoAuto load dict_arp and dict_bfd
Arran Cudbard-Bell [Fri, 30 Mar 2018 20:23:55 +0000 (21:23 +0100)] 
Auto load dict_arp and dict_bfd

8 years agoFixup rlm_rest to use dynamic dictionary loader
Arran Cudbard-Bell [Fri, 30 Mar 2018 20:15:40 +0000 (21:15 +0100)] 
Fixup rlm_rest to use dynamic dictionary loader

8 years agoFixup rlm_wimax to use dynamic dictionary loader
Arran Cudbard-Bell [Fri, 30 Mar 2018 20:10:45 +0000 (21:10 +0100)] 
Fixup rlm_wimax to use dynamic dictionary loader

 Behold the horror *sigh*

8 years agoAdd additional pair functions
Arran Cudbard-Bell [Fri, 30 Mar 2018 20:05:46 +0000 (21:05 +0100)] 
Add additional pair functions

8 years agoDisable dict autoloading so we can work with the single dictionary until everything...
Arran Cudbard-Bell [Fri, 30 Mar 2018 19:37:38 +0000 (20:37 +0100)] 
Disable dict autoloading so we can work with the single dictionary until everything has been converted

8 years agoUpdate ChangeLog
Arran Cudbard-Bell [Sat, 31 Mar 2018 07:30:09 +0000 (08:30 +0100)] 
Update ChangeLog

8 years agoFixup heap return codes
Arran Cudbard-Bell [Fri, 30 Mar 2018 19:28:02 +0000 (20:28 +0100)] 
Fixup heap return codes

8 years agoUnderscores ftw
Arran Cudbard-Bell [Fri, 30 Mar 2018 18:47:47 +0000 (19:47 +0100)] 
Underscores ftw

8 years agoSimplify fr_heap_pop so it doesn't confuse clang scan
Arran Cudbard-Bell [Fri, 30 Mar 2018 18:47:35 +0000 (19:47 +0100)] 
Simplify fr_heap_pop  so it doesn't confuse clang scan

8 years agoAdd dictionary autoloader callbacks
Arran Cudbard-Bell [Fri, 30 Mar 2018 18:29:05 +0000 (19:29 +0100)] 
Add dictionary autoloader callbacks

8 years agoMake clang scan happy
Arran Cudbard-Bell [Fri, 30 Mar 2018 18:28:38 +0000 (19:28 +0100)] 
Make clang scan happy

8 years agodocumentation updates
Matthew Newton [Mon, 19 Mar 2018 11:54:38 +0000 (11:54 +0000)] 
documentation updates

8 years agoMinor fixes to OCSP code
Arran Cudbard-Bell [Fri, 30 Mar 2018 08:26:55 +0000 (09:26 +0100)] 
Minor fixes to OCSP code

8 years agoMerge pull request #2202 from frenche/ocsp_fixes_v4
Arran Cudbard-Bell [Fri, 30 Mar 2018 08:02:38 +0000 (09:02 +0100)] 
Merge pull request #2202 from frenche/ocsp_fixes_v4

OCSP fixes v4

8 years agoStupid fat libpcap, we hates it precious
Arran Cudbard-Bell [Thu, 29 Mar 2018 19:01:09 +0000 (20:01 +0100)] 
Stupid fat libpcap, we hates it precious

8 years agoAllow .1q tagged RADIUS packets in the default radsniff filter
Arran Cudbard-Bell [Thu, 29 Mar 2018 18:44:17 +0000 (19:44 +0100)] 
Allow .1q tagged RADIUS packets in the default radsniff filter

8 years agoOCSP: Fix intermediate CA flow 2202/head
Isaac Boukris [Tue, 27 Mar 2018 20:34:16 +0000 (23:34 +0300)] 
OCSP: Fix intermediate CA flow

It appears X509_STORE_CTX_get1_issuer() will only return
a trusted certificate, so in case of intermediate CA (not
trusted by it self) it may return null.
Use current_issuer instead, as the chain is already
validated (so we should have issuer certificate).

Also, if for some reason we still cannot get issuer, then
only allow skip if conf allows softfail.

8 years agoWe always store the heap id in the struct
Arran Cudbard-Bell [Wed, 28 Mar 2018 19:50:12 +0000 (20:50 +0100)] 
We always store the heap id in the struct

8 years agoDoxygen
Arran Cudbard-Bell [Wed, 28 Mar 2018 19:39:34 +0000 (20:39 +0100)] 
Doxygen

8 years agoAdd talloc type verification to fifos
Arran Cudbard-Bell [Wed, 28 Mar 2018 19:14:56 +0000 (20:14 +0100)] 
Add talloc type verification to fifos