forked from wolfSSL/wolfssl
only compile SEQ increment function in case of DTLS or HAVE_AEAD
This commit is contained in:
@@ -5227,8 +5227,9 @@ void FreeSSL(WOLFSSL* ssl, void* heap)
|
|||||||
(void)heap;
|
(void)heap;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(NO_OLD_TLS) || defined(HAVE_CHACHA) || defined(HAVE_AESCCM) \
|
#if !defined(NO_OLD_TLS) || defined(WOLFSSL_DTLS) || \
|
||||||
|| defined(HAVE_AESGCM) || 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])
|
static INLINE void GetSEQIncrement(WOLFSSL* ssl, int verify, word32 seq[2])
|
||||||
{
|
{
|
||||||
if (verify) {
|
if (verify) {
|
||||||
@@ -5342,7 +5343,6 @@ static INLINE void WriteSEQ(WOLFSSL* ssl, int verifyOrder, byte* out)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef WOLFSSL_DTLS
|
#ifdef WOLFSSL_DTLS
|
||||||
|
|
||||||
/* functions for managing DTLS datagram reordering */
|
/* functions for managing DTLS datagram reordering */
|
||||||
|
Reference in New Issue
Block a user