From 62d6fc112c71ba15963b78b733835f70ec1c70fc Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Wed, 31 Aug 2016 14:24:57 +0100 Subject: [PATCH] Explicitly detect, and reject building with, LibreSSL Signed-off-by: David Woodhouse --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 5614619e..ece177b8 100644 --- a/configure.ac +++ b/configure.ac @@ -541,6 +541,15 @@ LIBS="${LIBS} ${OPENSSL_LIBS}" CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}" if test "$dtls_lib" = "openssl" -a "$with_openssl_version_check" != "no"; then AC_MSG_CHECKING([for known-broken versions of OpenSSL]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ], + [#if defined(LIBRESSL_VERSION_NUMBER) + #error Bad OpenSSL + #endif + ])], + [], + [AC_MSG_RESULT(yes) + AC_ERROR([LibreSSL does not support Cisco DTLS. +Build with OpenSSL or GnuTLS instead.])]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include ],[#if \ (OPENSSL_VERSION_NUMBER == 0x10002000L || \ (OPENSSL_VERSION_NUMBER >= 0x100000b0L && OPENSSL_VERSION_NUMBER <= 0x100000c0L) || \ -- 2.50.1