only compile SEQ increment function in case of DTLS or HAVE_AEAD

This commit is contained in:
Jacob Barthelmeh
2018-05-23 12:07:35 -06:00
parent 29d9759aa0
commit 89fbb1b40d

View File

@@ -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 */