configure.ac: enable ticket_nonce_malloc when using enable-curl

To support new session ticket nonce longer than MAX_TICKET_NONCE_STATIC_SZ. If
`--disable-ticket-nonce-malloc` is explicitly specified, the feature is not
enabled even if `--enable-curl` is specified.
This commit is contained in:
Marco Oliverio
2024-03-22 11:46:22 +01:00
parent 8970ff4c34
commit 91ab6cafe0

View File

@ -5749,7 +5749,7 @@ fi
AC_ARG_ENABLE([ticket-nonce-malloc], AC_ARG_ENABLE([ticket-nonce-malloc],
[AS_HELP_STRING([--enable-ticket-nonce-malloc], [Enable dynamic allocation of ticket nonces (default: disabled)])], [AS_HELP_STRING([--enable-ticket-nonce-malloc], [Enable dynamic allocation of ticket nonces (default: disabled)])],
[ ENABLED_TICKET_NONCE_MALLOC=$enableval ], [ ENABLED_TICKET_NONCE_MALLOC=$enableval ],
[ ENABLED_TICKET_NONCE_MALLOC=no ] [ ENABLED_TICKET_NONCE_MALLOC=no_implicit ]
) )
if test "$ENABLED_TICKET_NONCE_MALLOC" = "yes" if test "$ENABLED_TICKET_NONCE_MALLOC" = "yes"
@ -6760,6 +6760,13 @@ then
AM_CFLAGS="$AM_CFLAGS -DNO_SESSION_CACHE_REF" AM_CFLAGS="$AM_CFLAGS -DNO_SESSION_CACHE_REF"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB" AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB"
# support longer session ticket nonce
if test "$ENABLED_TICKET_NONCE_MALLOC" = "no_implicit"
then
ENABLED_TICKET_NONCE_MALLOC="yes"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_TICKET_NONCE_MALLOC"
fi
fi fi
if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \ if test "$ENABLED_PSK" = "no" && test "$ENABLED_LEANPSK" = "no" \