From: David Sommerseth <dav...@openvpn.net> With commit 544330fefedc87, the openssl_compat.h got included in crypto.c. This caused issues when building against mbed TLS, which this compat layer is not targeting.
This issue is resolved by only including this header when the OpenSSL library is in use. The OPENSSL_FIPS macro should never be set when compiling against the mbed TLS library. But we check against the main ENABLE_CRYPTO_OPENSSL macro here, in case future updates adds more OpenSSL specific fragments. Signed-off-by: David Sommerseth <dav...@openvpn.net> --- src/openvpn/crypto.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/openvpn/crypto.c b/src/openvpn/crypto.c index 5f6ad675..d55ca099 100644 --- a/src/openvpn/crypto.c +++ b/src/openvpn/crypto.c @@ -34,7 +34,9 @@ #include "error.h" #include "integer.h" #include "platform.h" +#ifdef ENABLE_CRYPTO_OPENSSL #include "openssl_compat.h" +#endif #include "memdbg.h" -- 2.27.0 _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel