Commit 005a3fb168 for strongswan.org

commit 005a3fb1686e87b5f4bc6901d5c10753302189ef
Author: Arthur Chan <arthur.chan@adalogics.com>
Date:   Wed Mar 11 22:57:49 2026 +0000

    fuzz: Add dependency to fuzz RADIUS message parsing

    Due to the static build, libcharon will depend on libradius as soon as
    eap-radius is enabled even if not actually used.  So in order to avoid
    breaking the build of fuzz_ike when enabling this in CIFuzz, enable
    it now before adding the actual fuzzer.

    Closes strongswan/strongswan#3028

    Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>

diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am
index f42e887a87..c357340157 100644
--- a/fuzz/Makefile.am
+++ b/fuzz/Makefile.am
@@ -7,6 +7,7 @@ AM_CPPFLAGS = @CPPFLAGS@ \
 	-I$(top_srcdir)/src/libtpmtss \
 	-I$(top_srcdir)/src/libtnccs \
 	-I$(top_srcdir)/src/libtnccs/plugins/tnccs_20 \
+	-I$(top_srcdir)/src/libradius \
 	-DPLUGINDIR=\""$(abs_top_builddir)/src/libstrongswan/plugins\"" \
 	-DPLUGINS="\"${fuzz_plugins}\""

@@ -28,6 +29,7 @@ pb_tnc_ldflags = \

 ike_ldflags = \
 	$(top_builddir)/src/libcharon/.libs/libcharon.a \
+	$(top_builddir)/src/libradius/.libs/libradius.a \
 	$(fuzz_ldflags)

 FUZZ_TARGETS=fuzz_certs fuzz_crls fuzz_ocsp_req fuzz_ocsp_rsp \
diff --git a/scripts/test.sh b/scripts/test.sh
index a76384818a..fec05c8229 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -432,7 +432,7 @@ freebsd)
 fuzzing)
 	CFLAGS="$CFLAGS -DNO_CHECK_MEMWIPE"
 	CONFIG="--enable-fuzzing --enable-static --disable-shared --disable-scripts
-			--enable-imc-test --enable-tnccs-20"
+			--enable-imc-test --enable-tnccs-20 --enable-eap-radius"
 	# don't run any of the unit tests
 	export TESTS_RUNNERS=
 	# prepare corpora