]> git.99rst.org Git - openwrt-packages.git/commitdiff
radsecproxy: add config options for UCI, fix escaping
authorJan-Frederik Rieckers <redacted>
Sun, 19 Jul 2026 08:41:03 +0000 (10:41 +0200)
committerAlexandru Ardelean <redacted>
Mon, 27 Jul 2026 10:10:41 +0000 (13:10 +0300)
This adds more config options for use in UCI, esp. new configuration
options that were introduced in newer radsecproxy versions and it fixes
an escaping issue in the init script where a string containing single
quotes would still be escaped using single quotes, causing radsecproxy
to reject the config.

This also bumps the PKG_RELEASE in the Makefile

Signed-off-by: Jan-Frederik Rieckers <redacted>
net/radsecproxy/Makefile
net/radsecproxy/files/radsecproxy.init

index 14fa7ca97bb71a9c5784a544236047f86f243cba..61d92ecc7abd4a9475c99e10e363a066ff5c0590 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=radsecproxy
 PKG_VERSION:=1.11.2
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/radsecproxy/radsecproxy/releases/download/$(PKG_VERSION)/
index f070f2aadd5e4a85cb008d355e3c205ed52553e5..18176e01141b59aed3b2254029770a8ef8894b34 100644 (file)
@@ -21,7 +21,12 @@ append_params() {
                }
                IFS="$LIST_SEP"
                for value in $value; do
-                       [ -n "$value" ] && echo "    $param '$value'" >> "$CONFFILE"
+                       [ -n "$value" ] && {
+                               case "$value" in
+                                       *"'"*) echo "    $param \"$value\"" >> "$CONFFILE" ;;
+                                       *) echo "    $param '$value'" >> "$CONFFILE" ;;
+                               esac
+                       }
                done
                unset IFS
        done
@@ -50,9 +55,10 @@ radsecproxy_options() {
        append_params "$cfg" \
                Include PidFile LogLevel LogDestination FTicksReporting FTicksMAC FTicksKey \
                FTicksSyslogFacility ListenUDP ListenTCP ListenTLS ListenDTLS SourceUDP \
-               SourceTCP SourceTLS SourceDTLS TTLAttribute AddTTL
+               SourceTCP SourceTLS SourceDTLS TTLAttribute AddTTL FTicksPrefix LogMAC \
+               LogKey
        append_bools "$cfg" \
-               LoopPrevention IPv4Only IPv6Only
+               LoopPrevention IPv4Only IPv6Only SNI VerifyEAP LogThreadId LogFullUsername
 }
 
 tls_block() {
@@ -62,7 +68,8 @@ tls_block() {
        echo "tls '$name' {" >> "$CONFFILE"
        append_params "$cfg" \
                Include CACertificateFile CACertificatePath certificateFile certificateKeyFile \
-               certificateKeyPassword cacheExpiry policyOID
+               certificateKeyPassword cacheExpiry policyOID CipherList CipherSuites \
+               TLSVersion DTLSVersion
        append_bools "$cfg" \
                CRLCheck
        echo "}" >> "$CONFFILE"
@@ -75,7 +82,10 @@ rewrite_block() {
        echo "rewrite '$name' {" >> "$CONFFILE"
        append_params "$cfg" \
                Include addAttribute addVendorAttribute removeAttribute removeVendorAttribute \
-               modifyAttribute
+               modifyAttribute modifyVendorAttribute supplementAttribute supplementVendorAttribute \
+               whitelistAttribute whitelistVendorAttribute
+       append_bools "$cfg" \
+               whitelistMode
        echo "}" >> "$CONFFILE"
 }
 
@@ -87,9 +97,10 @@ client_block() {
        append_params "$cfg" \
                Include host type secret tls matchCertificateAttribute duplicateInterval \
                AddTTL fticksVISCOUNTRY fticksVISINST rewrite rewriteIn rewriteOut \
-               rewriteAttribute
+               rewriteAttribute serverName PSKkey PSKidentity
        append_bools "$cfg" \
-               IPv4Only IPv6Only certificateNameCheck
+               IPv4Only IPv6Only certificateNameCheck requireMessageAuthenticator \
+               requireMessageAuthenticatorProxy
        echo "}" >> "$CONFFILE"
 }
 
@@ -101,9 +112,11 @@ server_block() {
        append_params "$cfg" \
                Include host port type secret tls matchCertificateAttribute \
                AddTTL rewrite rewriteIn rewriteOut retryCount dynamicLookupCommand \
-               retryInterval
+               retryInterval serverName SNIservername PSKkey PSKidentity DTLSForceMTU \
+               source
        append_bools "$cfg" \
-               IPv4Only IPv6Only certificateNameCheck statusServer LoopPrevention
+               IPv4Only IPv6Only certificateNameCheck statusServer LoopPrevention SNI \
+               requireMessageAuthenticator blockingStartup
        echo "}" >> "$CONFFILE"
 }
 
git clone https://git.99rst.org/PROJECT