Skip to content

Commit 8d6afc8

Browse files
committed
ci(linuxkm): test minimal DTLS 1.3 build + exports
1 parent 0870e86 commit 8d6afc8

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/linuxkm.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
matrix:
1919
config: [
2020
'EXTRA_CPPFLAGS=-Werror --enable-option-checking=fatal --enable-linuxkm --enable-linuxkm-lkcapi-register=all --enable-all --enable-kyber=yes,original --enable-lms --enable-xmss --enable-dilithium --enable-experimental --enable-dual-alg-certs --disable-qt --disable-quic --with-sys-crypto-policy=no --disable-testcert --enable-all-asm --enable-crypttests --enable-linuxkm-benchmarks CFLAGS="-Wframe-larger-than=2048 -Wstack-usage=4096 -DBENCH_EMBEDDED -DBENCH_MIN_RUNTIME_SEC=0.01 -DBENCH_NTIMES=1 -DBENCH_AGREETIMES=1" --with-max-rsa-bits=16384',
21-
'EXTRA_CPPFLAGS=-Werror --enable-option-checking=fatal --enable-linuxkm --enable-linuxkm-pie --enable-reproducible-build --enable-linuxkm-lkcapi-register=all --enable-all-crypto --enable-cryptonly --enable-kyber=yes,original --enable-lms --enable-xmss --enable-dilithium --enable-experimental --disable-qt --disable-quic --with-sys-crypto-policy=no --disable-opensslextra --disable-testcert --enable-intelasm --disable-sp-asm --enable-crypttests --enable-linuxkm-benchmarks CFLAGS="-DWOLFSSL_LINUXKM_VERBOSE_DEBUG -DDEBUG_LINUXKM_PIE_SUPPORT -Wframe-larger-than=2048 -Wstack-usage=4096 -DBENCH_EMBEDDED -DBENCH_MIN_RUNTIME_SEC=0.01 -DBENCH_NTIMES=1 -DBENCH_AGREETIMES=1" --with-max-rsa-bits=16384'
21+
'EXTRA_CPPFLAGS=-Werror --enable-option-checking=fatal --enable-linuxkm --enable-linuxkm-pie --enable-reproducible-build --enable-linuxkm-lkcapi-register=all --enable-all-crypto --enable-cryptonly --enable-kyber=yes,original --enable-lms --enable-xmss --enable-dilithium --enable-experimental --disable-qt --disable-quic --with-sys-crypto-policy=no --disable-opensslextra --disable-testcert --enable-intelasm --disable-sp-asm --enable-crypttests --enable-linuxkm-benchmarks CFLAGS="-DWOLFSSL_LINUXKM_VERBOSE_DEBUG -DDEBUG_LINUXKM_PIE_SUPPORT -Wframe-larger-than=2048 -Wstack-usage=4096 -DBENCH_EMBEDDED -DBENCH_MIN_RUNTIME_SEC=0.01 -DBENCH_NTIMES=1 -DBENCH_AGREETIMES=1" --with-max-rsa-bits=16384',
22+
'EXTRA_CPPFLAGS=-Werror --enable-option-checking=fatal --enable-linuxkm --enable-tls13 --enable-dtls --enable-dtls13'
2223
]
2324
name: build module
2425
if: github.repository_owner == 'wolfssl'
@@ -60,3 +61,15 @@ jobs:
6061
make -j 4 KERNEL_EXTRA_CFLAGS_REMOVE=-pg FORCE_NO_MODULE_SIG=1 || $(exit 11)
6162
ls -l linuxkm/libwolfssl.ko || $(exit 12)
6263
echo "Successful linuxkm build."
64+
65+
- name: Verify DTLS 1.3 symbols are exported (when WOLFSSL_DTLS13 is configured)
66+
run: |
67+
if grep -q '^#define WOLFSSL_DTLS13' wolfssl/options.h; then
68+
echo "WOLFSSL_DTLS13 defined; checking GPL exports in libwolfssl.ko..."
69+
objdump -t linuxkm/libwolfssl.ko \
70+
| grep -qE '__ksymtab_wolfDTLSv1_3_(client|server)_method$' \
71+
|| { echo "::error::DTLS 1.3 entry points not exported from libwolfssl.ko"; exit 13; }
72+
echo "DTLS 1.3 export check: PASS"
73+
else
74+
echo "WOLFSSL_DTLS13 not defined for this matrix entry; skipping symbol check."
75+
fi

0 commit comments

Comments
 (0)