mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-02-01 16:39:15 +01:00
1. Rename _DtlsUpdateWindow() as wolfSSL_Dtls_UpdateWindow() and make it public so it may be tested. 2. Rename the internal functions DtlsWindowUpdate(), DtlsWindowCheck(), and DtlsUpdateWindowGTSeq() as _DtlsWindowUpdate() and _DtlsWindowCheck(), and _DtlsUpdateWindowGTSeq(). 3. When updating the DTLS sequence window, and the next sequence number (lo) wraps to zero, increment the next sequence number (hi) by 1. 4. Fix an off-by-one error that wrapped around when saving the packet sequence number in the bit-field window. 5. Adding a test for wolfSSL_DtlsUpdateWindow() function. With many test cases. It is set up in a table format with running check values. 6. Change location of incrementing the difference when calculating the location for setting the bit. 7. Updated the check of the sequence difference in the GT scenario. 8. In the DTLS window update functions remove newDiff and just use diff. 9. Handle the cases where the DTLS window crosses the high order word sequence number change. 10. Add a debug option to print out the state of the DTLS sequence number window.