From cd2bd0b7a3520043441547410357b849699488df Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 1 Oct 2021 09:56:58 -0700 Subject: [PATCH] Enable All Disable DTLS fixes 1. Remove mcast and jni from enable-all. 2. Add comment to DTLS section. Testing `./configure --enable-all --disable-dtls` would leave DTLS still enabled. enable-all was also enabling mcast, which it doesn't need to do, that would force DTLS back on. JNI also forces DTLS on. The other language wrappers are not included in enable-all, so leave JNI out. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index b417a3b43..81d8f28c6 100644 --- a/configure.ac +++ b/configure.ac @@ -463,7 +463,6 @@ then test "$enable_cryptocb" = "" && enable_cryptocb=yes test "$enable_fallback_scsv" = "" && enable_fallback_scsv=yes test "$enable_anon" = "" && enable_anon=yes - test "$enable_mcast" = "" && enable_mcast=yes if test "$ENABLED_32BIT" != "yes" then @@ -498,7 +497,6 @@ then test "$enable_opensslextra" = "" && enable_opensslextra=yes test "$enable_opensslall" = "" && enable_opensslall=yes test "$enable_certservice" = "" && enable_certservice=yes - test "$enable_jni" = "" && enable_jni=yes test "$enable_lighty" = "" && enable_lighty=yes test "$enable_haproxy" = "" && enable_haproxy=yes test "$enable_stunnel" = "" && enable_stunnel=yes @@ -691,6 +689,8 @@ AS_IF([ test "x$ENABLED_SINGLETHREADED" = "xyes" ],[ AM_CFLAGS="-DSINGLE_THREADE # DTLS +# DTLS is a prereq for the options mcast, sctp, and jni. Enabling any of those +# without DTLS will also enable DTLS. AC_ARG_ENABLE([dtls], [AS_HELP_STRING([--enable-dtls],[Enable wolfSSL DTLS (default: disabled)])], [ ENABLED_DTLS=$enableval ],