]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
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

8 years agoExtract public key from X509 certficiate
Arran Cudbard-Bell [Wed, 28 Feb 2018 03:57:51 +0000 (09:57 +0600)] 
Extract public key from X509 certficiate

8 years agoMinor build fixes
Arran Cudbard-Bell [Wed, 28 Feb 2018 02:06:55 +0000 (08:06 +0600)] 
Minor build fixes

8 years agoDoxygen issues
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:18:33 +0000 (22:18 +0600)] 
Doxygen issues

8 years agoFix const issues with rlm_cipher
Arran Cudbard-Bell [Tue, 27 Feb 2018 16:15:51 +0000 (22:15 +0600)] 
Fix const issues with rlm_cipher

8 years agoIfdef out OAEP padding options unless using OpenSSL 1.0.2
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

8 years agoDoxygen and temporary fix…
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

8 years agoAdd rlm_ciper for encrypting/decrypting arbitrary data
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...

8 years agoMake it slightly clearer what's going on here...
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:58:07 +0000 (13:58 +0600)] 
Make it slightly clearer what's going on here...

8 years agoUse documented argument names in tls_session_password_cb
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:57:53 +0000 (13:57 +0600)] 
Use documented argument names in tls_session_password_cb

8 years agofr_value_box_memsteal can never fail
Arran Cudbard-Bell [Tue, 27 Feb 2018 07:57:28 +0000 (13:57 +0600)] 
fr_value_box_memsteal can never fail

8 years agoport fix from v3.0.x branch
Alan T. DeKok [Tue, 27 Feb 2018 14:17:16 +0000 (09:17 -0500)] 
port fix from v3.0.x branch

8 years agodon't lock the file if it has been renamed
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

8 years agoalso seems to require gnupg2
Matthew Newton [Mon, 26 Feb 2018 15:42:52 +0000 (15:42 +0000)] 
also seems to require gnupg2

8 years agoDon't bootstrap redis cluster config when pool->start is 0
Philippe Wooding [Mon, 19 Feb 2018 17:22:43 +0000 (18:22 +0100)] 
Don't bootstrap redis cluster config when pool->start is 0

8 years agoAdd getter for pool's start attribute
Philippe Wooding [Mon, 19 Feb 2018 17:22:18 +0000 (18:22 +0100)] 
Add getter for pool's start attribute

8 years agodhcpclient documentation 2183/head
Nicolas C [Sat, 24 Feb 2018 19:54:18 +0000 (20:54 +0100)] 
dhcpclient documentation

Some updates to dhcpclient man page

8 years agoTypo
Arran Cudbard-Bell [Fri, 23 Feb 2018 09:20:55 +0000 (15:20 +0600)] 
Typo

8 years agoMisc fixes
Arran Cudbard-Bell [Fri, 23 Feb 2018 07:12:21 +0000 (13:12 +0600)] 
Misc fixes

8 years agoGet vendor number by looking it up in the attribute hierarchy
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.

8 years agoFormatting
Arran Cudbard-Bell [Wed, 21 Feb 2018 14:24:43 +0000 (14:24 +0000)] 
Formatting

8 years agoinclude rfc2865 header for vendor-specific
Alan T. DeKok [Thu, 22 Feb 2018 15:12:41 +0000 (10:12 -0500)] 
include rfc2865 header for vendor-specific

8 years agoone more "use absolute path"
Alan T. DeKok [Thu, 22 Feb 2018 14:54:58 +0000 (09:54 -0500)] 
one more "use absolute path"

8 years agouse absolute paths
Alan T. DeKok [Thu, 22 Feb 2018 14:25:25 +0000 (15:25 +0100)] 
use absolute paths

8 years agodecode CHADDR manually
Alan T. DeKok [Thu, 22 Feb 2018 13:51:55 +0000 (14:51 +0100)] 
decode CHADDR manually

8 years agodon't include links in the source
Alan T. DeKok [Thu, 22 Feb 2018 13:48:55 +0000 (14:48 +0100)] 
don't include links in the source

8 years agoFix mostly spurious warnings
Arran Cudbard-Bell [Mon, 19 Feb 2018 21:31:57 +0000 (21:31 +0000)] 
Fix mostly spurious warnings

8 years agoUse standard boxed value from network function when decoding the DHCPv4 packet header
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

8 years agoreset leftover after we've eaten it
Alan T. DeKok [Mon, 19 Feb 2018 13:40:54 +0000 (14:40 +0100)] 
reset leftover after we've eaten it

8 years agoAdd struct encoder to dhcpv6
Arran Cudbard-Bell [Sat, 17 Feb 2018 17:16:30 +0000 (17:16 +0000)] 
Add struct encoder to dhcpv6

8 years agoCheck for v4 in v6 encoding
Arran Cudbard-Bell [Sat, 17 Feb 2018 11:19:23 +0000 (11:19 +0000)] 
Check for v4 in v6 encoding

8 years agoUse new return code style in EAP-SIM encoder
Arran Cudbard-Bell [Sat, 17 Feb 2018 11:16:39 +0000 (11:16 +0000)] 
Use new return code style in EAP-SIM encoder

8 years agoMove cases to that ipv4addr, ifid, and ethernet all use the standard 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

8 years agoBe clearer why we use numbered scopes
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:41:42 +0000 (00:41 +0000)] 
Be clearer why we use numbered scopes

8 years agoen0 doesn't exist in Travis
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:40:24 +0000 (00:40 +0000)] 
en0 doesn't exist in Travis

8 years agoEncode dates in DHCPv6 using 1st January 2000 as the starting point
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.

8 years agoMoar DHCPv6 tests
Arran Cudbard-Bell [Sat, 17 Feb 2018 00:16:18 +0000 (00:16 +0000)] 
Moar DHCPv6 tests

8 years agoInvert args to CHECK_FREESPACE in array encoder
Arran Cudbard-Bell [Fri, 16 Feb 2018 23:34:22 +0000 (23:34 +0000)] 
Invert args to CHECK_FREESPACE in array encoder

8 years agoClear the error buffer on successful tests, else it gets really confusing
Arran Cudbard-Bell [Fri, 16 Feb 2018 23:24:36 +0000 (23:24 +0000)] 
Clear the error buffer on successful tests, else it gets really confusing

8 years agoExplicitly include packet.h in dhcpv4.h
Arran Cudbard-Bell [Fri, 16 Feb 2018 22:28:31 +0000 (22:28 +0000)] 
Explicitly include packet.h in dhcpv4.h

8 years agoFix warnings in map.c
Arran Cudbard-Bell [Fri, 16 Feb 2018 22:20:39 +0000 (22:20 +0000)] 
Fix warnings in map.c

8 years agoTests! (for DHCPv6 encoder)
Arran Cudbard-Bell [Fri, 16 Feb 2018 22:14:30 +0000 (22:14 +0000)] 
Tests! (for DHCPv6 encoder)

Just a few of the simple types, more needed...

8 years agoFix a few issues in DHCPv6 encoder
Arran Cudbard-Bell [Fri, 16 Feb 2018 22:13:14 +0000 (22:13 +0000)] 
Fix a few issues in DHCPv6 encoder

Now skips false bools properly and doesn't crash

8 years agoNeed to build base.c in dhcpv6 code
Arran Cudbard-Bell [Fri, 16 Feb 2018 22:12:12 +0000 (22:12 +0000)] 
Need to build base.c in dhcpv6 code

8 years agoIgnore false bools too
Arran Cudbard-Bell [Fri, 16 Feb 2018 17:18:18 +0000 (17:18 +0000)] 
Ignore false bools too

8 years agoRename DHCPv4 test
Arran Cudbard-Bell [Fri, 16 Feb 2018 17:18:07 +0000 (17:18 +0000)] 
Rename DHCPv4 test

8 years agoadd FALL-THROUGH for newer compilers
Alan T. DeKok [Fri, 16 Feb 2018 20:50:18 +0000 (15:50 -0500)] 
add FALL-THROUGH for newer compilers

8 years agoMerge pull request #2181 from pwdng/v4.0.x
Alan DeKok [Fri, 16 Feb 2018 20:42:30 +0000 (15:42 -0500)] 
Merge pull request #2181 from pwdng/v4.0.x

Fix when skipping record

8 years agoFix when skipping record 2181/head
Philippe Wooding [Fri, 16 Feb 2018 18:14:07 +0000 (19:14 +0100)] 
Fix when skipping record

8 years agoone more attempt
Alan T. DeKok [Fri, 16 Feb 2018 16:45:16 +0000 (11:45 -0500)] 
one more attempt

8 years agoadd rules to create / link directories
Alan T. DeKok [Fri, 16 Feb 2018 16:14:23 +0000 (11:14 -0500)] 
add rules to create / link directories

8 years agoremove "util". It's not needed
Alan T. DeKok [Fri, 16 Feb 2018 16:14:05 +0000 (11:14 -0500)] 
remove "util". It's not needed

8 years agoSkip false boolean attributes in SIM/AKA/AKA' encoder
Arran Cudbard-Bell [Fri, 16 Feb 2018 14:19:45 +0000 (14:19 +0000)] 
Skip false boolean attributes in SIM/AKA/AKA' encoder

8 years agoFix stupid GCC warnings
Arran Cudbard-Bell [Fri, 16 Feb 2018 13:59:42 +0000 (13:59 +0000)] 
Fix stupid GCC warnings

8 years agoRemove doxygen until we use the function
Arran Cudbard-Bell [Fri, 16 Feb 2018 13:56:49 +0000 (13:56 +0000)] 
Remove doxygen until we use the function

8 years agoAdd preliminary DHCPv6 dictionary
Arran Cudbard-Bell [Fri, 16 Feb 2018 13:36:29 +0000 (13:36 +0000)] 
Add preliminary DHCPv6 dictionary

8 years agocache leftover data when retransmitting
Alan T. DeKok [Thu, 15 Feb 2018 21:37:17 +0000 (16:37 -0500)] 
cache leftover data when retransmitting

8 years agoOptions not attributes
Arran Cudbard-Bell [Thu, 15 Feb 2018 20:46:24 +0000 (20:46 +0000)] 
Options not attributes

8 years agoAdd v6 encoder test point
Arran Cudbard-Bell [Thu, 15 Feb 2018 20:42:26 +0000 (20:42 +0000)] 
Add v6 encoder test point

8 years agoConvert all encoders from vp_cursor_t to fr_cursor_t
Arran Cudbard-Bell [Thu, 15 Feb 2018 20:33:22 +0000 (20:33 +0000)] 
Convert all encoders from vp_cursor_t to fr_cursor_t

Add (untested) code for DHCPv6 encoder

8 years agoDescribe how pair_encode/pair_decode functions *should* work and define some standard...
Arran Cudbard-Bell [Thu, 15 Feb 2018 17:33:31 +0000 (17:33 +0000)] 
Describe how pair_encode/pair_decode functions *should* work and define some standard return values.

8 years agoAdd CHECK_FREESPACE macro
Arran Cudbard-Bell [Thu, 15 Feb 2018 17:32:56 +0000 (17:32 +0000)] 
Add CHECK_FREESPACE macro

In general the internal encoder functions *should* return how much extra buffer they needed, so that their callers can make decisions about TLV nesting

8 years agoDefine SSIZE_MIN if missing
Arran Cudbard-Bell [Thu, 15 Feb 2018 17:31:44 +0000 (17:31 +0000)] 
Define SSIZE_MIN if missing

8 years agonotes for dynamic clients and connected sockets
Alan T. DeKok [Thu, 15 Feb 2018 18:19:45 +0000 (13:19 -0500)] 
notes for dynamic clients and connected sockets

8 years agoremove NAT configuration for clients.
Alan T. DeKok [Thu, 15 Feb 2018 18:05:29 +0000 (13:05 -0500)] 
remove NAT configuration for clients.

Instead, if we have dynamic clients *and* we're using
connected sockets, THEN the clients should be connection-specific.

The remaining "todo" is to check for multiple packets from the
same source IP, but with different source ports... and to
track those separately.

8 years agoremove erroneous NAT code
Alan T. DeKok [Thu, 15 Feb 2018 18:01:03 +0000 (13:01 -0500)] 
remove erroneous NAT code

this should now be handled automatically by mod_read()

8 years agoclarify check
Alan T. DeKok [Thu, 15 Feb 2018 17:59:08 +0000 (12:59 -0500)] 
clarify check

8 years agosend a 1 byte NAK back
Alan T. DeKok [Thu, 15 Feb 2018 17:45:30 +0000 (12:45 -0500)] 
send a 1 byte NAK back

8 years agoupdate the right fields, and if_index, too
Alan T. DeKok [Thu, 15 Feb 2018 17:37:43 +0000 (12:37 -0500)] 
update the right fields, and if_index, too

8 years agoadd debug3 message
Alan T. DeKok [Thu, 15 Feb 2018 17:34:55 +0000 (12:34 -0500)] 
add debug3 message

8 years agoclean up mod_read()
Alan T. DeKok [Thu, 15 Feb 2018 17:11:57 +0000 (12:11 -0500)] 
clean up mod_read()

instead of having horrible if / goto stuff, split up the code.
There's now a mod_read_packet(), which gets a packet from one
of N possible sources.  This function also updates address,
address.client, and track.

The mod_read() routine then does checks on address.client and
track as necessary.

Test with UDP packets.  Untested with dynamic clients or connections.

8 years agohoist checks for connected socket to before client lookup
Alan T. DeKok [Thu, 15 Feb 2018 16:30:38 +0000 (11:30 -0500)] 
hoist checks for connected socket to before client lookup

because if we have a connected socket, then we don't need to
look up the client.  Instead, we just send the packet to the
connected socket.

8 years agonotes on removing the mutex lock
Alan T. DeKok [Thu, 15 Feb 2018 16:16:50 +0000 (11:16 -0500)] 
notes on removing the mutex lock

8 years agocomments
Alan T. DeKok [Thu, 15 Feb 2018 16:05:40 +0000 (11:05 -0500)] 
comments

8 years agodocument "work" subsection
Alan T. DeKok [Wed, 14 Feb 2018 19:19:13 +0000 (14:19 -0500)] 
document "work" subsection

8 years agoremove worker configuration from the directory watcher
Alan T. DeKok [Wed, 14 Feb 2018 19:15:15 +0000 (14:15 -0500)] 
remove worker configuration from the directory watcher

8 years agoin files are annoying
Alan T. DeKok [Wed, 14 Feb 2018 16:41:28 +0000 (11:41 -0500)] 
in files are annoying

8 years agorename for Windows.
Alan T. DeKok [Wed, 14 Feb 2018 16:21:29 +0000 (11:21 -0500)] 
rename for Windows.

8 years agosrc and dst may be the same
Alan T. DeKok [Tue, 13 Feb 2018 15:52:36 +0000 (10:52 -0500)] 
src and dst may be the same

8 years agoRemove unused arg
Arran Cudbard-Bell [Tue, 13 Feb 2018 17:22:08 +0000 (17:22 +0000)] 
Remove unused arg

8 years agoConvert JSON integers to the smallest signed or unsigned integer type
Arran Cudbard-Bell [Tue, 13 Feb 2018 16:55:00 +0000 (16:55 +0000)] 
Convert JSON integers to the smallest signed or unsigned integer type

When the code was first writen we didn't have the full range of signed types.

8 years agoFix double free in acct_redundant
Arran Cudbard-Bell [Tue, 13 Feb 2018 15:10:08 +0000 (15:10 +0000)] 
Fix double free in acct_redundant

8 years agocopy the leftover data if necessary
Alan T. DeKok [Tue, 13 Feb 2018 14:37:30 +0000 (09:37 -0500)] 
copy the leftover data if necessary

8 years agopass "leftover" explicitly
Alan T. DeKok [Tue, 13 Feb 2018 14:33:14 +0000 (09:33 -0500)] 
pass "leftover" explicitly

8 years agocasts
Alan T. DeKok [Tue, 13 Feb 2018 14:33:04 +0000 (09:33 -0500)] 
casts

8 years agoRemove debugging fprintf in fr_inet_pton
Arran Cudbard-Bell [Tue, 13 Feb 2018 10:49:21 +0000 (10:49 +0000)] 
Remove debugging fprintf in fr_inet_pton

8 years agoBreak out cast to unsigned integer into functions
Arran Cudbard-Bell [Sat, 10 Feb 2018 22:09:21 +0000 (22:09 +0000)] 
Break out cast to unsigned integer into functions

Fixes issues like not being able to cast a bool to a uint32

8 years agoclean up fr_inet_pton()
Alan T. DeKok [Tue, 13 Feb 2018 00:37:13 +0000 (19:37 -0500)] 
clean up fr_inet_pton()

Walk over the *whole* string, checking
*all* of the characters.  The issue with the earlier code was
that it bailed too early, and forced IPv4 even when the address
was IPv6.

manual port of 5452b13cef

8 years agoif the entry is too large for the buffer, discard the file
Alan T. DeKok [Mon, 12 Feb 2018 20:50:28 +0000 (15:50 -0500)] 
if the entry is too large for the buffer, discard the file

8 years agoconvert assert to run-time check
Alan T. DeKok [Fri, 9 Feb 2018 14:15:07 +0000 (09:15 -0500)] 
convert assert to run-time check

8 years agoWait to remove the candle from the mandle
Arran Cudbard-Bell [Fri, 9 Feb 2018 13:48:01 +0000 (13:48 +0000)] 
Wait to remove the candle from the mandle

8 years agoTAG_ANY is ok too
Arran Cudbard-Bell [Thu, 8 Feb 2018 21:38:03 +0000 (21:38 +0000)] 
TAG_ANY is ok too

8 years agoIf action is NULL return NOOP
Arran Cudbard-Bell [Thu, 8 Feb 2018 21:28:17 +0000 (21:28 +0000)] 
If action is NULL return NOOP

8 years agoBetter errors in fr_event_list_alloc decides to fail
Arran Cudbard-Bell [Thu, 8 Feb 2018 20:37:11 +0000 (20:37 +0000)] 
Better errors in fr_event_list_alloc decides to fail

8 years agoPrint an error message for everything that could fail in fr_event_list_alloc
Arran Cudbard-Bell [Thu, 8 Feb 2018 20:17:17 +0000 (20:17 +0000)] 
Print an error message for everything that could fail in fr_event_list_alloc

Because it's currently failing randomly and we have no idea why

8 years agoFix more files to have doxygen style headers
Arran Cudbard-Bell [Thu, 8 Feb 2018 20:16:50 +0000 (20:16 +0000)] 
Fix more files to have doxygen style headers

8 years agoRename files.c to users_file.c
Arran Cudbard-Bell [Thu, 8 Feb 2018 20:15:24 +0000 (20:15 +0000)] 
Rename files.c to users_file.c

8 years agocreate CHAP-Challenge if it doesn't already exist
Alan T. DeKok [Thu, 8 Feb 2018 17:39:57 +0000 (12:39 -0500)] 
create CHAP-Challenge if it doesn't already exist

8 years agos/FR_SIGNAL_DONE/FR_SIGNAL_CANCEL/
Alan T. DeKok [Thu, 8 Feb 2018 17:31:58 +0000 (12:31 -0500)] 
s/FR_SIGNAL_DONE/FR_SIGNAL_CANCEL/

the request has been cancelled, but it might not be done.