# the crypto plugins are build-tested with clang via "all" above
- env: TEST=botan
- env: TEST=botan LEAK_DETECTIVE=yes
+ - env: TEST=wolfssl
+ - env: TEST=wolfssl LEAK_DETECTIVE=yes
- env: TEST=openssl
- env: TEST=openssl LEAK_DETECTIVE=yes
- env: TEST=openssl-1.0
AC_CHECK_LIB([$wolfssl_lib],[wolfSSL_Init],[LIBS="$LIBS"],
[AC_MSG_ERROR([wolfSSL lib$wolfssl_lib not found])],[$DLLIB])
AC_SUBST(WOLFSSL_LIB, [-l$wolfssl_lib])
- AC_CHECK_HEADER([wolfssl/ssl.h],,[AC_MSG_ERROR([wolfSSL header wolfssl/ssl.h not found!])])
+ AC_CHECK_HEADER([wolfssl/options.h],,[AC_MSG_ERROR([wolfSSL header wolfssl/options.h not found!])])
fi
if test x$gcrypt = xtrue; then
cd -
}
+build_wolfssl()
+{
+ WOLFSSL_REV=v4.0.0-stable
+ WOLFSSL_DIR=$TRAVIS_BUILD_DIR/../wolfssl
+
+ if test -d "$WOLFSSL_DIR"; then
+ return
+ fi
+
+ echo "$ build_wolfssl()"
+
+ WOLFSSL_CFLAGS="-DWOLFSSL_PUBLIC_MP -DWOLFSSL_DES_ECB"
+ WOLFSSL_CONFIG="--enable-keygen --enable-rsapss --enable-aesccm
+ --enable-aesctr --enable-des3 --enable-camellia
+ --enable-curve25519 --enable-ed25519"
+
+ git clone https://github.com/wolfSSL/wolfssl.git $WOLFSSL_DIR &&
+ cd $WOLFSSL_DIR &&
+ git checkout -qf $WOLFSSL_REV &&
+ ./autogen.sh &&
+ ./configure C_EXTRA_FLAGS="$WOLFSSL_CFLAGS" $WOLFSSL_CONFIG &&
+ make -j4 >/dev/null &&
+ sudo make install >/dev/null &&
+ sudo ldconfig || exit $?
+ cd -
+}
+
build_tss2()
{
TSS2_REV=2.1.0
build_botan
fi
;;
+wolfssl)
+ CONFIG="--disable-defaults --enable-pki --enable-wolfssl --enable-pem"
+ # build with custom options to enable all the features the plugin supports
+ DEPS=""
+ if test "$1" = "deps"; then
+ build_wolfssl
+ fi
+ ;;
printf-builtin)
CONFIG="--with-printf-hooks=builtin"
;;
PYDEPS="pytest"
if test "$1" = "deps"; then
build_botan
+ build_wolfssl
build_tss2
fi
use_custom_openssl $1