From eaa66dc117b00feea78616fa36e7a2825c525811 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 15 Nov 2023 01:47:46 -0600 Subject: [PATCH] configure.ac: in enable-all, enable QUIC only if !ENABLED_LINUXKM_DEFAULTS, and enable aesgcm_stream only if enable_aesgcm. --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index bf8d2e7e7..b50f3123a 100644 --- a/configure.ac +++ b/configure.ac @@ -720,7 +720,7 @@ then # this set is also enabled by enable-all-crypto: test "$enable_atomicuser" = "" && enable_atomicuser=yes test "$enable_aesgcm" = "" && enable_aesgcm=yes - test "$enable_aesgcm_stream" = "" && enable_aesgcm_stream=yes + test "$enable_aesgcm_stream" = "" && test "$enable_aesgcm" = "yes" && enable_aesgcm_stream=yes test "$enable_aesccm" = "" && enable_aesccm=yes test "$enable_aesctr" = "" && enable_aesctr=yes test "$enable_aeseax" = "" && enable_aeseax=yes @@ -788,7 +788,6 @@ then test "$enable_session_ticket" = "" && enable_session_ticket=yes test "$enable_earlydata" = "" && enable_earlydata=yes test "$enable_ech" = "" && enable_ech=yes - test "$enable_quic" = "" && enable_quic=yes if test "$ENABLED_32BIT" != "yes" then @@ -799,6 +798,7 @@ then if test "$ENABLED_LINUXKM_DEFAULTS" != "yes" then test "$enable_compkey" = "" && enable_compkey=yes + test "$enable_quic" = "" && enable_quic=yes AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_IO -DHAVE_IO_TIMEOUT" fi @@ -908,7 +908,7 @@ if test "$ENABLED_ALL_CRYPT" = "yes" then test "$enable_atomicuser" = "" && enable_atomicuser=yes test "$enable_aesgcm" = "" && enable_aesgcm=yes - test "$enable_aesgcm_stream" = "" && enable_aesgcm_stream=yes + test "$enable_aesgcm_stream" = "" && test "$enable_aesgcm" = "yes" && enable_aesgcm_stream=yes test "$enable_aesccm" = "" && enable_aesccm=yes test "$enable_aesctr" = "" && enable_aesctr=yes test "$enable_aeseax" = "" && enable_aeseax=yes @@ -1476,6 +1476,10 @@ then then AC_MSG_ERROR([TLS 1.3 is disabled - necessary for QUIC]) fi + if test "$enable_aesgcm" = "no" + then + AC_MSG_ERROR([AES-GCM is disabled - necessary for QUIC]) + fi AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_QUIC" # QUIC proto handlers need app_data at WOLFSSL* AM_CFLAGS="$AM_CFLAGS -DHAVE_EX_DATA"