]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
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
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
Arran Cudbard-Bell [Fri, 16 Feb 2018 22:28:31 +0000 (22:28 +0000)]
Explicitly include packet.h in dhcpv4.h
Arran Cudbard-Bell [Fri, 16 Feb 2018 22:20:39 +0000 (22:20 +0000)]
Fix warnings in map.c
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...
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
Arran Cudbard-Bell [Fri, 16 Feb 2018 22:12:12 +0000 (22:12 +0000)]
Need to build base.c in dhcpv6 code
Arran Cudbard-Bell [Fri, 16 Feb 2018 17:18:18 +0000 (17:18 +0000)]
Ignore false bools too
Arran Cudbard-Bell [Fri, 16 Feb 2018 17:18:07 +0000 (17:18 +0000)]
Rename DHCPv4 test
Alan T. DeKok [Fri, 16 Feb 2018 20:50:18 +0000 (15:50 -0500)]
add FALL-THROUGH for newer compilers
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
Philippe Wooding [Fri, 16 Feb 2018 18:14:07 +0000 (19:14 +0100)]
Fix when skipping record
Alan T. DeKok [Fri, 16 Feb 2018 16:45:16 +0000 (11:45 -0500)]
one more attempt
Alan T. DeKok [Fri, 16 Feb 2018 16:14:23 +0000 (11:14 -0500)]
add rules to create / link directories
Alan T. DeKok [Fri, 16 Feb 2018 16:14:05 +0000 (11:14 -0500)]
remove "util". It's not needed
Arran Cudbard-Bell [Fri, 16 Feb 2018 14:19:45 +0000 (14:19 +0000)]
Skip false boolean attributes in SIM/AKA/AKA' encoder
Arran Cudbard-Bell [Fri, 16 Feb 2018 13:59:42 +0000 (13:59 +0000)]
Fix stupid GCC warnings
Arran Cudbard-Bell [Fri, 16 Feb 2018 13:56:49 +0000 (13:56 +0000)]
Remove doxygen until we use the function
Arran Cudbard-Bell [Fri, 16 Feb 2018 13:36:29 +0000 (13:36 +0000)]
Add preliminary DHCPv6 dictionary
Alan T. DeKok [Thu, 15 Feb 2018 21:37:17 +0000 (16:37 -0500)]
cache leftover data when retransmitting
Arran Cudbard-Bell [Thu, 15 Feb 2018 20:46:24 +0000 (20:46 +0000)]
Options not attributes
Arran Cudbard-Bell [Thu, 15 Feb 2018 20:42:26 +0000 (20:42 +0000)]
Add v6 encoder test point
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
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.
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
Arran Cudbard-Bell [Thu, 15 Feb 2018 17:31:44 +0000 (17:31 +0000)]
Define SSIZE_MIN if missing
Alan T. DeKok [Thu, 15 Feb 2018 18:19:45 +0000 (13:19 -0500)]
notes for dynamic clients and connected sockets
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.
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()
Alan T. DeKok [Thu, 15 Feb 2018 17:59:08 +0000 (12:59 -0500)]
clarify check
Alan T. DeKok [Thu, 15 Feb 2018 17:45:30 +0000 (12:45 -0500)]
send a 1 byte NAK back
Alan T. DeKok [Thu, 15 Feb 2018 17:37:43 +0000 (12:37 -0500)]
update the right fields, and if_index, too
Alan T. DeKok [Thu, 15 Feb 2018 17:34:55 +0000 (12:34 -0500)]
add debug3 message
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.
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.
Alan T. DeKok [Thu, 15 Feb 2018 16:16:50 +0000 (11:16 -0500)]
notes on removing the mutex lock
Alan T. DeKok [Thu, 15 Feb 2018 16:05:40 +0000 (11:05 -0500)]
comments
Alan T. DeKok [Wed, 14 Feb 2018 19:19:13 +0000 (14:19 -0500)]
document "work" subsection
Alan T. DeKok [Wed, 14 Feb 2018 19:15:15 +0000 (14:15 -0500)]
remove worker configuration from the directory watcher
Alan T. DeKok [Wed, 14 Feb 2018 16:41:28 +0000 (11:41 -0500)]
in files are annoying
Alan T. DeKok [Wed, 14 Feb 2018 16:21:29 +0000 (11:21 -0500)]
rename for Windows.
Alan T. DeKok [Tue, 13 Feb 2018 15:52:36 +0000 (10:52 -0500)]
src and dst may be the same
Arran Cudbard-Bell [Tue, 13 Feb 2018 17:22:08 +0000 (17:22 +0000)]
Remove unused arg
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.
Arran Cudbard-Bell [Tue, 13 Feb 2018 15:10:08 +0000 (15:10 +0000)]
Fix double free in acct_redundant
Alan T. DeKok [Tue, 13 Feb 2018 14:37:30 +0000 (09:37 -0500)]
copy the leftover data if necessary
Alan T. DeKok [Tue, 13 Feb 2018 14:33:14 +0000 (09:33 -0500)]
pass "leftover" explicitly
Alan T. DeKok [Tue, 13 Feb 2018 14:33:04 +0000 (09:33 -0500)]
casts
Arran Cudbard-Bell [Tue, 13 Feb 2018 10:49:21 +0000 (10:49 +0000)]
Remove debugging fprintf in fr_inet_pton
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
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
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
Alan T. DeKok [Fri, 9 Feb 2018 14:15:07 +0000 (09:15 -0500)]
convert assert to run-time check
Arran Cudbard-Bell [Fri, 9 Feb 2018 13:48:01 +0000 (13:48 +0000)]
Wait to remove the candle from the mandle
Arran Cudbard-Bell [Thu, 8 Feb 2018 21:38:03 +0000 (21:38 +0000)]
TAG_ANY is ok too
Arran Cudbard-Bell [Thu, 8 Feb 2018 21:28:17 +0000 (21:28 +0000)]
If action is NULL return NOOP
Arran Cudbard-Bell [Thu, 8 Feb 2018 20:37:11 +0000 (20:37 +0000)]
Better errors in fr_event_list_alloc decides to fail
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
Arran Cudbard-Bell [Thu, 8 Feb 2018 20:16:50 +0000 (20:16 +0000)]
Fix more files to have doxygen style headers
Arran Cudbard-Bell [Thu, 8 Feb 2018 20:15:24 +0000 (20:15 +0000)]
Rename files.c to users_file.c
Alan T. DeKok [Thu, 8 Feb 2018 17:39:57 +0000 (12:39 -0500)]
create CHAP-Challenge if it doesn't already exist
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.