strongswan: fix build issues around PARSE_ERROR

This symbol is an enum defined both in wolfssl and strongswan.  This
creates a clash in C's flat namespace.  A workaround is to redefine it
when we include wolfssl headers, but really one of the other should
pick a better name.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
Philip Prindeville
2025-07-16 22:33:22 -06:00
parent 8457a9fecc
commit 89fa8033b8
2 changed files with 12 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=strongswan
PKG_VERSION:=6.0.2
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://download.strongswan.org/ https://download2.strongswan.org/

View File

@@ -0,0 +1,11 @@
--- a/src/libstrongswan/plugins/wolfssl/wolfssl_plugin.c
+++ b/src/libstrongswan/plugins/wolfssl/wolfssl_plugin.c
@@ -27,6 +27,8 @@
#include <library.h>
#include <utils/debug.h>
+#define PARSE_ERROR WOLFSSL_PARSE_ERROR
+
#include "wolfssl_plugin.h"
#include "wolfssl_aead.h"
#include "wolfssl_crypter.h"