]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
14 months agoclean up casting a bit
Alan T. DeKok [Fri, 16 Aug 2024 13:58:46 +0000 (09:58 -0400)] 
clean up casting a bit

14 months agoComplete (and simplify) the pacification of Coverity (CD #1604613)
James Jones [Fri, 16 Aug 2024 17:27:42 +0000 (12:27 -0500)] 
Complete (and simplify) the pacification of Coverity (CD #1604613)

Handling the two-byte length case seems to have made Coverity gripe
about the one-byte case. We therefore change it so that one
Coverity-only check is done for both cases, reducing clutter.

14 months agoAdd Coverity-only check for two-byte length case (CID #1604613)
James Jones [Wed, 14 Aug 2024 21:33:52 +0000 (16:33 -0500)] 
Add Coverity-only check for two-byte length case (CID #1604613)

In fr_struct_to_network(), for structs prefixed by a length, the
length can be either one or two bytes. Space is set aside for it,
and when it comes time to encode it, you skip the appropriate number
of bytes and decrement length correspondingly. Coverity lets the one
byte length version pass without complaint, but in the two-byte
length case thinks length is 0 and hence underflows when 2 is subtracted
from it.

We add a Coverity-only check that returns an error if len < 2; it
never will be, but the check should persuade Coverity that at the
decrement, len will be at least 2.

14 months agouse the src enum for time resolution, not the dst enum
Alan T. DeKok [Wed, 14 Aug 2024 13:42:24 +0000 (09:42 -0400)] 
use the src enum for time resolution, not the dst enum

and add tests for it.

14 months agoFix crossbuild for Debian sid
Nick Porter [Wed, 14 Aug 2024 09:14:30 +0000 (10:14 +0100)] 
Fix crossbuild for Debian sid

14 months agoMore appropriate list of common cross builds
Nick Porter [Wed, 14 Aug 2024 09:08:12 +0000 (10:08 +0100)] 
More appropriate list of common cross builds

14 months agoDebian sid has OpenSSL legacy providers in an optional package
Nick Porter [Wed, 14 Aug 2024 08:21:10 +0000 (09:21 +0100)] 
Debian sid has OpenSSL legacy providers in an optional package

14 months agoAdd rlm_sql_mysql driver option to set connection character set
Nick Porter [Wed, 14 Aug 2024 07:38:53 +0000 (08:38 +0100)] 
Add rlm_sql_mysql driver option to set connection character set

14 months agoUNUSED
Nick Porter [Wed, 14 Aug 2024 07:16:18 +0000 (08:16 +0100)] 
UNUSED

14 months agoallow casting from something to specific time_delta resolutions
Alan T. DeKok [Tue, 13 Aug 2024 20:57:19 +0000 (16:57 -0400)] 
allow casting from something to specific time_delta resolutions

which creates an output value-box of type time_delta, and the
named time resolution.

Add a test.

update the calc code to include the time resolution / enumv when
doing box operations, so that we know how to properly compare things.

14 months agoadd API to get enumv for time precision
Alan T. DeKok [Tue, 13 Aug 2024 20:52:48 +0000 (16:52 -0400)] 
add API to get enumv for time precision

14 months agoupdate Acct-Delay-Time calculations
Alan T. DeKok [Tue, 13 Aug 2024 15:34:42 +0000 (11:34 -0400)] 
update Acct-Delay-Time calculations

14 months agoadd test for (date - date --> uint32)
Alan T. DeKok [Tue, 13 Aug 2024 15:33:05 +0000 (11:33 -0400)] 
add test for (date - date --> uint32)

which should come out as seconds

14 months agoremove discussion of old attribute
Alan T. DeKok [Mon, 12 Aug 2024 20:29:45 +0000 (16:29 -0400)] 
remove discussion of old attribute

14 months agoifdef around registration, too
Alan T. DeKok [Mon, 12 Aug 2024 20:16:24 +0000 (16:16 -0400)] 
ifdef around registration, too

14 months agoprint out actual attribute
Alan T. DeKok [Mon, 12 Aug 2024 20:15:09 +0000 (16:15 -0400)] 
print out actual attribute

14 months agoleave Acct-Delay-Time
Alan T. DeKok [Mon, 12 Aug 2024 17:09:06 +0000 (13:09 -0400)] 
leave Acct-Delay-Time

but don't use it for anything

14 months agoCheck for EVP_blake2s256 and EVP_blake2b512 Closes #5399
Arran Cudbard-Bell [Mon, 12 Aug 2024 13:13:29 +0000 (09:13 -0400)] 
Check for EVP_blake2s256 and EVP_blake2b512 Closes #5399

14 months agoUpdate autoconf.h.in with whatever the latest autoconf boilerplate is
Arran Cudbard-Bell [Mon, 12 Aug 2024 13:06:28 +0000 (09:06 -0400)] 
Update autoconf.h.in with whatever the latest autoconf boilerplate is

14 months agoQuiet warning
Arran Cudbard-Bell [Mon, 12 Aug 2024 12:53:56 +0000 (08:53 -0400)] 
Quiet warning

14 months agoif (!event-timestamp) event-timestamp = now - Acct-Delay-Time
Alan T. DeKok [Mon, 12 Aug 2024 12:19:19 +0000 (08:19 -0400)] 
if (!event-timestamp) event-timestamp = now - Acct-Delay-Time

14 months agowe can always retransmit Status-Server checks
Alan T. DeKok [Mon, 12 Aug 2024 02:19:13 +0000 (22:19 -0400)] 
we can always retransmit Status-Server checks

there's no benefit to re-encoding them every time.

14 months agodon't add Proxy-State to "ping" packets
Alan T. DeKok [Mon, 12 Aug 2024 02:14:29 +0000 (22:14 -0400)] 
don't add Proxy-State to "ping" packets

14 months agoremove Acct-Delay-Time
Alan T. DeKok [Mon, 12 Aug 2024 02:09:24 +0000 (22:09 -0400)] 
remove Acct-Delay-Time

If we receive an accounting packet, add Event-Timestamp if it's
not already in the packet.

If the packet contains Acct-Delay-Time, then subtract that from
Event-Timestamp, and delete Acct-Delay-Time.

Acct-Delay-Time causes too many issues with proxying and retransmissions.

14 months agoremove AcctStartDelay.
Alan T. DeKok [Mon, 12 Aug 2024 01:32:24 +0000 (21:32 -0400)] 
remove AcctStartDelay.

it hasn't ever been used, either.

14 months agoremove AcctStopDelay from Oracle and MS-SQL.
Alan T. DeKok [Mon, 12 Aug 2024 01:29:38 +0000 (21:29 -0400)] 
remove AcctStopDelay from Oracle and MS-SQL.

It hasn't been used.  Ever.

14 months agoremove unneeded code
Alan T. DeKok [Mon, 12 Aug 2024 01:13:18 +0000 (21:13 -0400)] 
remove unneeded code

14 months agoquiet compiler
Alan T. DeKok [Sun, 11 Aug 2024 22:27:07 +0000 (18:27 -0400)] 
quiet compiler

14 months agodon't set "require_message_authenticator" from AUTO for EAP
Alan T. DeKok [Sun, 11 Aug 2024 22:09:29 +0000 (18:09 -0400)] 
don't set "require_message_authenticator" from AUTO for EAP

if the request contains EAP, then the reply has to contain EAP,
and both packets have to contain Message-Authenticator

14 months agohoist Proxy-State checks to main encoder
Alan T. DeKok [Sun, 11 Aug 2024 22:06:19 +0000 (18:06 -0400)] 
hoist Proxy-State checks to main encoder

in preparation for moving rlm_radius to the new BIO code

14 months agomove "secure_transport" to common data structure
Alan T. DeKok [Sun, 11 Aug 2024 21:46:37 +0000 (17:46 -0400)] 
move "secure_transport" to common data structure

14 months agotypo
Alan T. DeKok [Sun, 11 Aug 2024 21:29:41 +0000 (17:29 -0400)] 
typo

14 months agoignore Message-Authenticator in replies
Alan T. DeKok [Sun, 11 Aug 2024 21:08:46 +0000 (17:08 -0400)] 
ignore Message-Authenticator in replies

14 months agodon't automatically add Message-Authenticator for tests
Alan T. DeKok [Sun, 11 Aug 2024 20:37:34 +0000 (16:37 -0400)] 
don't automatically add Message-Authenticator for tests

14 months agoRevert "don't use packet->vector for CHAP-Challenge"
Alan T. DeKok [Sun, 11 Aug 2024 20:32:16 +0000 (16:32 -0400)] 
Revert "don't use packet->vector for CHAP-Challenge"

This reverts commit 1df03034d952d9fa473fd9da6fae22308945d194.

14 months agomove "add Message-Authenticator" functionality to core encoder
Alan T. DeKok [Sun, 11 Aug 2024 20:30:33 +0000 (16:30 -0400)] 
move "add Message-Authenticator" functionality to core encoder

14 months agotypo
Alan T. DeKok [Sun, 11 Aug 2024 20:19:30 +0000 (16:19 -0400)] 
typo

14 months agogo to next VP on skip
Alan T. DeKok [Sun, 11 Aug 2024 20:19:18 +0000 (16:19 -0400)] 
go to next VP on skip

14 months agodon't use packet->vector for CHAP-Challenge
Alan T. DeKok [Sun, 11 Aug 2024 19:48:02 +0000 (15:48 -0400)] 
don't use packet->vector for CHAP-Challenge

use packet->data + 4

arguably the RADIUS protocol decoder should synthesize the
CHAP-Challenge if it's not in the packet, as that would make
the rest of the code simpler.

14 months agouse correct type
Alan T. DeKok [Sun, 11 Aug 2024 19:47:37 +0000 (15:47 -0400)] 
use correct type

14 months agodon't set packet->vector for non-RADIUS protocols
Alan T. DeKok [Sun, 11 Aug 2024 19:36:33 +0000 (15:36 -0400)] 
don't set packet->vector for non-RADIUS protocols

and most of those were wrong, too :(

14 months agowe no longer use packet->vector for anything DHCPv4
Alan T. DeKok [Sun, 11 Aug 2024 19:34:47 +0000 (15:34 -0400)] 
we no longer use packet->vector for anything DHCPv4

14 months agodon't smash the authentication vector
Alan T. DeKok [Sun, 11 Aug 2024 19:33:13 +0000 (15:33 -0400)] 
don't smash the authentication vector

14 months agopass dbuff && packet_ctx to encode function
Alan T. DeKok [Sun, 11 Aug 2024 18:18:25 +0000 (14:18 -0400)] 
pass dbuff && packet_ctx to encode function

which makes it easier to add more functionality

14 months agopoint to common context, instead of local struct
Alan T. DeKok [Sun, 11 Aug 2024 16:30:14 +0000 (12:30 -0400)] 
point to common context, instead of local struct

14 months agomake common context "const"
Alan T. DeKok [Sun, 11 Aug 2024 16:17:15 +0000 (12:17 -0400)] 
make common context "const"

14 months agoremove vector[] from common encode/decode context
Alan T. DeKok [Sun, 11 Aug 2024 16:11:38 +0000 (12:11 -0400)] 
remove vector[] from common encode/decode context

14 months agoremove duplicate API as part of cleanup
Alan T. DeKok [Sun, 11 Aug 2024 13:59:35 +0000 (09:59 -0400)] 
remove duplicate API as part of cleanup

there isn't much point in switching to a new API if we don't
switch to a new API

14 months agoclean up API and simplify
Alan T. DeKok [Sun, 11 Aug 2024 13:44:40 +0000 (09:44 -0400)] 
clean up API and simplify

no need to pass buffer / size twice to the receive function,
it's already in the dedup_ctx

14 months agofor simplicity, put rb node into dedup context
Alan T. DeKok [Sun, 11 Aug 2024 13:44:22 +0000 (09:44 -0400)] 
for simplicity, put rb node into dedup context

14 months agodon't encode Message-Authenticator multiple times
Alan T. DeKok [Sun, 11 Aug 2024 13:29:58 +0000 (09:29 -0400)] 
don't encode Message-Authenticator multiple times

14 months agouse pctx for packet ctx
Alan T. DeKok [Fri, 9 Aug 2024 23:22:38 +0000 (19:22 -0400)] 
use pctx for packet ctx

14 months agoallow setting CoA filter attribute name
Alan T. DeKok [Fri, 9 Aug 2024 19:48:05 +0000 (15:48 -0400)] 
allow setting CoA filter attribute name

14 months agoRevert "Add Coverity-only check to pacify it (CID #1604609)"
Alan T. DeKok [Fri, 9 Aug 2024 15:09:41 +0000 (11:09 -0400)] 
Revert "Add Coverity-only check to pacify it (CID #1604609)"

This reverts commit aa37659f220f4d0a338ab98ad4fd3110a6082fdf.

14 months agolink in radiusd -X
Alan T. DeKok [Fri, 9 Aug 2024 12:19:12 +0000 (08:19 -0400)] 
link in radiusd -X

14 months agopoint to new files
Alan T. DeKok [Fri, 9 Aug 2024 12:07:13 +0000 (08:07 -0400)] 
point to new files

14 months agoprint out only at end, to avoid dups
Alan T. DeKok [Fri, 9 Aug 2024 12:06:13 +0000 (08:06 -0400)] 
print out only at end, to avoid dups

14 months agopoint to correct link
Alan T. DeKok [Fri, 9 Aug 2024 12:03:10 +0000 (08:03 -0400)] 
point to correct link

14 months agoscript to cross-check antora files
Alan T. DeKok [Thu, 8 Aug 2024 21:33:18 +0000 (17:33 -0400)] 
script to cross-check antora files

14 months agothis is a new module
Alan T. DeKok [Thu, 8 Aug 2024 21:32:34 +0000 (17:32 -0400)] 
this is a new module

14 months agomoved to better location
Alan T. DeKok [Thu, 8 Aug 2024 21:15:10 +0000 (17:15 -0400)] 
moved to better location

14 months agoUpdate index.adoc
aBainbridge11 [Tue, 30 Jul 2024 19:54:34 +0000 (15:54 -0400)] 
Update index.adoc

14 months agoCreate Alcatel-Lucent
aBainbridge11 [Tue, 30 Jul 2024 19:45:30 +0000 (15:45 -0400)] 
Create Alcatel-Lucent

14 months agoCreate Huawei
aBainbridge11 [Tue, 30 Jul 2024 19:24:13 +0000 (15:24 -0400)] 
Create Huawei

14 months agoCreate HP
aBainbridge11 [Tue, 30 Jul 2024 19:23:27 +0000 (15:23 -0400)] 
Create HP

14 months agoUpdate cisco.adoc
aBainbridge11 [Tue, 30 Jul 2024 18:52:30 +0000 (14:52 -0400)] 
Update cisco.adoc

14 months agoCreate Alvarion
aBainbridge11 [Tue, 30 Jul 2024 18:40:02 +0000 (14:40 -0400)] 
Create Alvarion

14 months agoUpdate index.adoc
aBainbridge11 [Tue, 30 Jul 2024 18:29:53 +0000 (14:29 -0400)] 
Update index.adoc

14 months agoCreate EAP PEAP
aBainbridge11 [Tue, 30 Jul 2024 18:17:52 +0000 (14:17 -0400)] 
Create EAP PEAP

14 months agoCreate Disconnect Messages
aBainbridge11 [Tue, 30 Jul 2024 16:57:20 +0000 (12:57 -0400)] 
Create Disconnect Messages

14 months agoCreate Twitter
aBainbridge11 [Mon, 29 Jul 2024 19:28:46 +0000 (15:28 -0400)] 
Create Twitter

14 months agoCreate Stats with radsniff
aBainbridge11 [Mon, 29 Jul 2024 19:18:27 +0000 (15:18 -0400)] 
Create Stats with radsniff

14 months agoCreate Raduat
aBainbridge11 [Mon, 29 Jul 2024 19:12:49 +0000 (15:12 -0400)] 
Create Raduat

14 months agoCreate radiusd -X
aBainbridge11 [Mon, 29 Jul 2024 19:08:08 +0000 (15:08 -0400)] 
Create radiusd -X

14 months agoCreate Eduroam Configuration
aBainbridge11 [Mon, 29 Jul 2024 18:42:22 +0000 (14:42 -0400)] 
Create Eduroam Configuration

14 months agoCreate Logging in an eduroam environment
aBainbridge11 [Mon, 29 Jul 2024 18:33:57 +0000 (14:33 -0400)] 
Create Logging in an eduroam environment

14 months agoCreate EAP-SIM and EAP-AKA:
aBainbridge11 [Mon, 29 Jul 2024 18:31:14 +0000 (14:31 -0400)] 
Create EAP-SIM and EAP-AKA:

14 months agoCreate Troubleshooting
aBainbridge11 [Mon, 29 Jul 2024 16:27:22 +0000 (12:27 -0400)] 
Create Troubleshooting

14 months agoCreate Red Hat FAQ
aBainbridge11 [Mon, 29 Jul 2024 16:05:39 +0000 (12:05 -0400)] 
Create Red Hat FAQ

14 months agoCreate Git config management
aBainbridge11 [Mon, 29 Jul 2024 15:09:42 +0000 (11:09 -0400)] 
Create Git config management

14 months agoCreate FAQ
aBainbridge11 [Fri, 26 Jul 2024 19:58:30 +0000 (15:58 -0400)] 
Create FAQ

14 months agoCreate RADIUS Concepts
aBainbridge11 [Fri, 26 Jul 2024 18:59:19 +0000 (14:59 -0400)] 
Create RADIUS Concepts

14 months agoCreate Wired Equivalent Privacy
aBainbridge11 [Fri, 26 Jul 2024 16:59:27 +0000 (12:59 -0400)] 
Create Wired Equivalent Privacy

14 months agoCreate WPA
aBainbridge11 [Fri, 26 Jul 2024 16:49:12 +0000 (12:49 -0400)] 
Create WPA

14 months agoCreate RFC Compliance
aBainbridge11 [Fri, 26 Jul 2024 16:26:22 +0000 (12:26 -0400)] 
Create RFC Compliance

14 months agoCreate RADIUS
aBainbridge11 [Fri, 26 Jul 2024 16:11:03 +0000 (12:11 -0400)] 
Create RADIUS

14 months agoCreate NAC
aBainbridge11 [Fri, 26 Jul 2024 15:47:38 +0000 (11:47 -0400)] 
Create NAC

14 months agoCreate NAS
aBainbridge11 [Fri, 26 Jul 2024 15:42:40 +0000 (11:42 -0400)] 
Create NAS

14 months agoCreate Virtual Servers
aBainbridge11 [Tue, 23 Jul 2024 18:38:22 +0000 (14:38 -0400)] 
Create Virtual Servers

14 months agoCreate Performance
aBainbridge11 [Tue, 23 Jul 2024 18:16:04 +0000 (14:16 -0400)] 
Create Performance

14 months agoCreate UDP
aBainbridge11 [Tue, 23 Jul 2024 17:51:33 +0000 (13:51 -0400)] 
Create UDP

14 months agoCreate Scheduler
aBainbridge11 [Tue, 23 Jul 2024 15:57:35 +0000 (11:57 -0400)] 
Create Scheduler

14 months agoCreate Message API
aBainbridge11 [Tue, 23 Jul 2024 15:04:29 +0000 (11:04 -0400)] 
Create Message API

14 months agoCreate Coding standards
aBainbridge11 [Mon, 22 Jul 2024 20:36:59 +0000 (16:36 -0400)] 
Create Coding standards

14 months agoCreate Submitting patches via GitHub
aBainbridge11 [Mon, 22 Jul 2024 19:59:10 +0000 (15:59 -0400)] 
Create Submitting patches via GitHub

14 months agoupdate developer instructions
aBainbridge11 [Mon, 22 Jul 2024 19:45:29 +0000 (15:45 -0400)] 
update developer instructions

14 months agoCreate Configurable Module Fail Over
aBainbridge11 [Fri, 19 Jul 2024 18:29:51 +0000 (14:29 -0400)] 
Create Configurable Module Fail Over

14 months agoCreate Building on macOS
aBainbridge11 [Fri, 19 Jul 2024 17:31:49 +0000 (13:31 -0400)] 
Create Building on macOS

14 months agoCreate Suse and OpenSuse
aBainbridge11 [Fri, 19 Jul 2024 17:29:02 +0000 (13:29 -0400)] 
Create Suse and OpenSuse

14 months agoCreate Solaris
aBainbridge11 [Tue, 16 Jul 2024 19:26:11 +0000 (15:26 -0400)] 
Create Solaris