From 89fbb1b40df63553f6520c0a4a61de9a1721514a Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 23 May 2018 12:07:35 -0600 Subject: [PATCH] only compile SEQ increment function in case of DTLS or HAVE_AEAD --- src/internal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal.c b/src/internal.c index 8df6575bb..621975aba 100644 --- a/src/internal.c +++ b/src/internal.c @@ -5227,8 +5227,9 @@ void FreeSSL(WOLFSSL* ssl, void* heap) (void)heap; } -#if !defined(NO_OLD_TLS) || defined(HAVE_CHACHA) || defined(HAVE_AESCCM) \ - || defined(HAVE_AESGCM) || defined(WOLFSSL_DTLS) +#if !defined(NO_OLD_TLS) || defined(WOLFSSL_DTLS) || \ + ((defined(HAVE_CHACHA) || defined(HAVE_AESCCM) || defined(HAVE_AESGCM)) \ + && defined(HAVE_AEAD)) static INLINE void GetSEQIncrement(WOLFSSL* ssl, int verify, word32 seq[2]) { if (verify) { @@ -5342,7 +5343,6 @@ static INLINE void WriteSEQ(WOLFSSL* ssl, int verifyOrder, byte* out) } #endif - #ifdef WOLFSSL_DTLS /* functions for managing DTLS datagram reordering */