openwrt-packages/net/strongswan/patches
Jo-Philipp Wich 7b6f573fed strongswan: fix compilation against updated WolfSSL 5.6.3
After OpenWrt base updated WolfSSL to version 5.6.3, the strongswan wolfssl
plugin fails to compile due to a header conflict.

The error reported by the builders is:

    In file included from .../usr/include/wolfssl/openssl/asn1.h:27,
                     from .../usr/include/wolfssl/ssl.h:4123,
                     from wolfssl_common.h:64,
                     from wolfssl_ec_private_key.c:23:
    ../../../../src/libstrongswan/asn1/asn1.h:43:9: error: 'WOLFSSL_ASN1_STRING' redeclared as different kind of symbol
       43 |         ASN1_UTF8STRING =               0x0C,
          |         ^~~~~~~~~~~~~~~
    In file included from wolfssl_common.h:64,
                     from wolfssl_ec_private_key.c:23:
    .../usr/include/wolfssl/ssl.h:212:41: note: previous declaration of 'WOLFSSL_ASN1_STRING' with type 'WOLFSSL_ASN1_STRING'
      212 | typedef struct WOLFSSL_ASN1_STRING      WOLFSSL_ASN1_STRING;
          |                                         ^~~~~~~~~~~~~~~~~~~
    make[9]: *** [Makefile:621: wolfssl_ec_private_key.lo] Error 1

Solve this issue by adding a local path that remaps `ASN1_UTF8STRING`
during wolfssl header inclusion, like it is done already for other
conflicting defines.

Ref: https://forum.openwrt.org/t/x/169580
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-08-25 10:46:44 +02:00
..
730-strongswan-5.1.0-5.9.7_cert_online_validate.patch
0900-src-Patch-for-building-with-musl-on-openwrt-taken-ve.patch
0901-uci-verbatim-patch-from-openwrt-package-sources.patch
0902-ipsec-Patch-ipsec-script-to-work-with-musl-sleep-.-P.patch
0903-updown-Call-sbin-hotplug-call-ipsec-1-in-updown-scri.patch
0904-gmpdh-Plugin-that-implements-gmp-DH-functions-in-an-.patch
1000-wolfssl-prevent-header-conflicts.patch strongswan: fix compilation against updated WolfSSL 5.6.3 2023-08-25 10:46:44 +02:00