wolfssl
wolfssl copied to clipboard
DTLS bugfixes
Description
- 4b7e8cc: Previously, when DTLS CID was enabled and an app used
wolfSSL_dtls_set_pending_peer(),dtlsProcessPendingPeer()promoted the pending peer without checking that the record is newer than the newest already received. RFC 9146 § 6 requires to check this (second condition in the list). Without the check, a reordered or replayed CID record could cause an erroneous migration of the active peer. Fixes #10609 - d71c3b7: Allow
WOLFSSL_DTLS_CIDwithWOLFSSL_DTLS(not justWOLFSSL_DTLS13). Fixes #10610 - f495200: implement receive-side handling of DTLS 1.3 new_connection_id and request_connection_id messages.
- Fixes #10612;
- Fixes #10613;
- Fixes #10621.
Testing
./configure --enable-all && make && make check
Checklist
- [x] added tests
MemBrowse Memory Report
linuxkm-standard
- Data: __patchable_function_entries +40 B (+0.1%, 47,896 B) No memory changes detected for:
- gcc-arm-cortex-m0plus
- gcc-arm-cortex-m3
- gcc-arm-cortex-m4
- gcc-arm-cortex-m4-baremetal
- gcc-arm-cortex-m4-crypto-only
- gcc-arm-cortex-m4-dtls13
- gcc-arm-cortex-m4-min-ecc
- gcc-arm-cortex-m4-openssl-compat
- gcc-arm-cortex-m4-pkcs7
- gcc-arm-cortex-m4-pq
- gcc-arm-cortex-m4-rsa-only
- gcc-arm-cortex-m4-sp-math
- gcc-arm-cortex-m4-tls12
- gcc-arm-cortex-m4-tls13
- gcc-arm-cortex-m7
- gcc-arm-cortex-m7-pq
- gcc-arm-cortex-m7-tls13
- linuxkm-pie
- stm32-sim-stm32h753
Jenkins retest this please
the tiny-tls13 failures are unrelated and will be fixed by #10835
Jenkins retest this please