Merge pull request #5032 from kaleb-himes/ZD13946

Add logic equivalent to configure.ac in settings.h for poly1305
This commit is contained in:
JacobBarthelmeh
2022-04-08 15:13:16 -06:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -3919,7 +3919,7 @@ fi
if test "$ENABLED_POLY1305" = "yes" if test "$ENABLED_POLY1305" = "yes"
then then
AM_CFLAGS="$AM_CFLAGS -DHAVE_POLY1305 -DHAVE_ONE_TIME_AUTH" AM_CFLAGS="$AM_CFLAGS -DHAVE_POLY1305"
fi fi

View File

@@ -2552,6 +2552,12 @@ extern void uITRON4_free(void *p) ;
#define NO_SHA2_CRYPTO_CB #define NO_SHA2_CRYPTO_CB
#endif #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: /* Check for insecure build combination:
* secure renegotiation [enabled] * secure renegotiation [enabled]