We unconditionally include openssl/opensslv.h which fails if OpenSSL header
are not available.
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <
20220216125653.
4080943-1-arne@rfc2549.org>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23804.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
#ifndef XKEY_COMMON_H_
#define XKEY_COMMON_H_
+/* Guard to only enable if OpenSSL is used and not trigger an error if mbed
+ * TLS is compiled without OpenSSL being installed */
+#if defined(ENABLE_CRYPTO_OPENSSL)
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER >= 0x30000010L && !defined(DISABLE_XKEY_PROVIDER)
#define HAVE_XKEY_PROVIDER 1
}
#endif /* HAVE_XKEY_PROVIDER */
+#endif /* ENABLE_CRYPTO_OPENSSL */
+
#endif /* XKEY_COMMON_H_ */