From 55df5e979718a80015e858ca32bc2c92d08b39cf Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 26 Jan 2021 11:17:20 +0100 Subject: [PATCH] openssl: Avoid conflicts with wincrypt.h on Windows There are several conflicts with newer versions of OpenSSL (> 1.0). --- src/libstrongswan/plugins/openssl/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libstrongswan/plugins/openssl/Makefile.am b/src/libstrongswan/plugins/openssl/Makefile.am index f488bc19c..b1073ed5e 100644 --- a/src/libstrongswan/plugins/openssl/Makefile.am +++ b/src/libstrongswan/plugins/openssl/Makefile.am @@ -2,6 +2,10 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/src/libstrongswan \ -DFIPS_MODE=${fips_mode} +if USE_WINDOWS +AM_CPPFLAGS += -DNOCRYPT +endif + AM_CFLAGS = \ $(PLUGIN_CFLAGS)