From d32161bc4b272ba61d9f696b19ae98dfa87b1271 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Fri, 25 Feb 2022 14:39:17 +0100 Subject: [PATCH] configure: Check enabled OpenSSL API in wolfSSL Signed-off-by: Ismael Luceno --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 4962adb6..ae6954c8 100644 --- a/configure.ac +++ b/configure.ac @@ -202,6 +202,17 @@ AS_IF([test "x$with_ssl" != xno], [ AC_DEFINE([HAVE_SSL], [1], [SSL]) AS_CASE(["$with_ssl"], [wolfssl], [ + AC_CHECK_DECLS([ + X509_NAME_get_entry, + X509_get_ext_d2i, + X509_V_OK + ],, [ + AC_MSG_ERROR([wolfSSL with extra OpenSSL API compatibility required]) + ], [ + #include + #include + #include + ]) AC_DEFINE([HAVE_WOLFSSL], [1], [wolfSSL]) ]) PKG_CONFIG_PATH="$save_PKG_CONFIG_PATH"