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 <[email protected]>
This commit is contained in:
Arthur Chan
2026-03-16 16:37:57 +01:00
committed by Tobias Brunner
parent e535e13079
commit 005a3fb168
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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 \
+1 -1
View File
@@ -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