Skip to content

strongswan: fix build with wolfSSL 5.9.2 - #30380

Open
dhrm1k wants to merge 1 commit into
openwrt:openwrt-25.12from
dhrm1k:strongswan-wolfssl-mlkem-25.12
Open

strongswan: fix build with wolfSSL 5.9.2#30380
dhrm1k wants to merge 1 commit into
openwrt:openwrt-25.12from
dhrm1k:strongswan-wolfssl-mlkem-25.12

Conversation

@dhrm1k

@dhrm1k dhrm1k commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

📦 Package Details

Maintainer: @pprindeville

Description:

wolfSSL 5.9.2 removed the mlkem.h header, causing strongSwan 6.0.3 to fail to build on the openwrt-25.12 branch.

Backport the upstream strongSwan change to include wc_mlkem.h directly. This is the same fix already merged into the packages master branch.

Fixes #30291


🧪 Run Testing Details

  • OpenWrt Version: OpenWrt 25.12
  • OpenWrt Target/Subtarget: x86/64
  • OpenWrt Device: Build test only

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am

  • It has been refreshed to avoid offsets or fuzz using:

    make package/strongswan/refresh V=s
  • It is structured in a way that is potentially upstreamable

The patch is backported from strongSwan upstream commit 98b133c54c5e3f66f46a5bb11c9b09d06fdc8469.

wolfSSL 5.9.2 removed mlkem.h. Backport the upstream change to use
wc_mlkem.h directly.

Fixes: openwrt#30291
Signed-off-by: Dharmik Parmar <[email protected]>
(cherry picked from commit 2edf6a0)
@openwrt openwrt Bot added the release/25.12 Issues/PR on branch 25.12 label Aug 25, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit (a8a424d). Backport fidelity checks out:

  • The (cherry picked from commit 2edf6a0af0cc722436643e4bc4a1f72d670f8fc4) trailer points at a real commit on master with the same subject, author and body.
  • Diffing the two commits, the only difference is the surrounding PKG_VERSION/PKG_RELEASE context (6.0.7 / 6→7 on master vs 6.0.3 / 1→2 here). The new patch file is byte-identical, and the PKG_RELEASE bump for adding a patch without a version change is correct.
  • Patch number 0905 does not collide with the 0903/0904 patches already on openwrt-25.12.

Nothing here blocks a merge. One optional refresh question inline.

On CI: five of the ten build targets are red, but the one I looked at (Test x86_64) fails in the apk index step with ERROR: wget: exited with error 8 / UNTRUSTED signature while fetching downloads.openwrt.org/.../packages.adb, which looks like feed infrastructure rather than anything this change did — and strongSwan itself built fine on the five green targets, which also confirms the patch applies. Worth a re-run, but I'd leave that call to the maintainer.


Generated by Claude Code


--- a/src/libstrongswan/plugins/wolfssl/wolfssl_kem.c
+++ b/src/libstrongswan/plugins/wolfssl/wolfssl_kem.c
@@ -25,10 +25,7 @@

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit (optional, not a blocker): this hunk header is carried over verbatim from the master version of the patch, but the two branches build different strongSwan releases — master is at PKG_VERSION:=6.0.7 (Makefile on 2edf6a0) while openwrt-25.12 is at 6.0.3. The @@ -25,10 +25,7 @@ line numbers were never recomputed against the 6.0.3 tarball, and the "refreshed to avoid offsets or fuzz" box in the PR description is left unchecked.

It does apply — several CI targets built the package successfully — so this is only about whether it applies at an offset. Could you run make package/strongswan/refresh V=s against 6.0.3 and re-commit if the hunk header shifts? If you already checked and it applies clean, feel free to ignore.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/25.12 Issues/PR on branch 25.12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants