Merge pull request #3962 from julek-wolfssl/dtls-allow-future

Change default DTLS future packet behaviour
This commit is contained in:
John Safranek
2021-04-20 17:32:42 -07:00
committed by GitHub

View File

@ -13723,7 +13723,7 @@ static WC_INLINE int DtlsCheckWindow(WOLFSSL* ssl)
WOLFSSL_MSG("Current record sequence number from the past."); WOLFSSL_MSG("Current record sequence number from the past.");
return 0; return 0;
} }
#ifndef WOLFSSL_DTLS_ALLOW_FUTURE #ifdef WOLFSSL_DTLS_DISALLOW_FUTURE
else if (!curLT && (diff > DTLS_SEQ_BITS)) { else if (!curLT && (diff > DTLS_SEQ_BITS)) {
WOLFSSL_MSG("Rejecting message too far into the future."); WOLFSSL_MSG("Rejecting message too far into the future.");
return 0; return 0;