diff --git a/configure.ac b/configure.ac index 96d25fccd..9f5198f25 100644 --- a/configure.ac +++ b/configure.ac @@ -3919,7 +3919,7 @@ fi if test "$ENABLED_POLY1305" = "yes" then - AM_CFLAGS="$AM_CFLAGS -DHAVE_POLY1305 -DHAVE_ONE_TIME_AUTH" + AM_CFLAGS="$AM_CFLAGS -DHAVE_POLY1305" fi diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index cef354b81..8d4ca1e71 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -2552,6 +2552,12 @@ extern void uITRON4_free(void *p) ; #define NO_SHA2_CRYPTO_CB #endif +/* Enable HAVE_ONE_TIME_AUTH by default for use with TLS cipher suites + * when poly1305 is enabled + */ +#if defined(HAVE_POLY1305) && !defined(HAVE_ONE_TIME_AUTH) + #define HAVE_ONE_TIME_AUTH +#endif /* Check for insecure build combination: * secure renegotiation [enabled]