From 12e9056cc0db29fdc1cfd79c6e08bc53ab4ab0af Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 20 Nov 2021 19:23:57 +0100 Subject: wolfSSL: support WOLFSSL_TRUST_FILE as default trust store ...because wolfSSL 5.0.0 does not support a default trust store, unlike OpenSSL. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 14d8c8ab..533bb05c 100644 --- a/configure.ac +++ b/configure.ac @@ -760,6 +760,11 @@ if test "$with_wolfssl" != "no" ; then AC_DEFINE(SSL_ENABLE, 1) AS_MESSAGE(Enabling SSL support through wolfSSL.) with_ssl=yes + if test -z "$WOLFSSL_TRUST_FILE" ; then + AC_MSG_ERROR([You must define WOLFSSL_TRUST_FILE and point it to the default CA certificate file (PEM format)]) + fi + AC_DEFINE_UNQUOTED(WOLFSSL_TRUST_FILE, "$WOLFSSL_TRUST_FILE", + [Set to the default file of trusted certificates.]) else ### use option --with-ssl to compile in the SSL support -- cgit v1.2.3