Topic: WolfSSL strongswan

Hello Everyone,
I am trying to compile strongswan with  wolfssl and process failing on PARSE_ERROR.

Environment windows , wolfssl FIPS  is compiled with Visual Studio
Strongswan I tried multiply versions 5.9.14 , 5.9.12 , 6.0.0beta6 they all produce same error


In file included from C:/msys64/home/volga629/strongswan-6.0.0beta6/wolfssl-5.7.4-gplv3-fips-ready/wolfssl/ssl.h:35,
                 from wolfssl_plugin.c:48:
C:/msys64/home/volga629/strongswan-6.0.0beta6/wolfssl-5.7.4-gplv3-fips-ready/wolfssl/error-ssl.h:56:5: error: redeclaration of enumerator 'PARSE_ERROR'
   56 |     PARSE_ERROR                  = -306,   /* parse error on header    */
      |     ^~~~~~~~~~~
In file included from ../../../../src/libstrongswan/utils/utils.h:59,
                 from ../../../../src/libstrongswan/library.h:102,
                 from wolfssl_common.h:28,
                 from wolfssl_plugin.c:24:
../../../../src/libstrongswan/utils/utils/status.h:47:9: note: previous definition of 'PARSE_ERROR' with type 'enum status_t'

Share

Re: WolfSSL strongswan

Hello Volga,

I am seeing a recent commit for PARSE_ERROR in strongswan which should fix this, please try rebuilding with it applied and let me know if it helps: https://github.com/strongswan/strongswa … 2e31a046e1

Thanks,
Kareem

Share

Re: WolfSSL strongswan

Thank you, that resolves the issue

Share