Skip to content

Commit

Permalink
configure: Check enabled OpenSSL API in wolfSSL
Browse files Browse the repository at this point in the history
Signed-off-by: Ismael Luceno <[email protected]>
  • Loading branch information
ismaell committed Feb 25, 2022
1 parent f1b8be9 commit d32161b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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 <wolfssl/options.h>
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/openssl/ssl.h>
])
AC_DEFINE([HAVE_WOLFSSL], [1], [wolfSSL])
])
PKG_CONFIG_PATH="$save_PKG_CONFIG_PATH"
Expand Down

0 comments on commit d32161b

Please sign in to comment.