Files
libcoap/tests
Alejandro Pacheco a8f89ced78 coap_mbedtls.c: Zero terminate the EC JPAKE cipher suite list
set_ciphersuites() builds the PSK, PKI and EC JPAKE cipher suite lists
in two passes, one counting and one filling, each with its own copy of
the selection rules, and then zero terminated the PSK and PKI lists
only. The EC JPAKE list is handed to mbedtls_ssl_conf_ciphersuites(),
which reads it up to the 0 entry, so an EC JPAKE client took whatever
was in the last slot as the next cipher suite and could read past the
end of the allocation when writing its ClientHello.

Decide which lists a cipher suite goes in with one function used by
both passes, and zero terminate every list, so the counts, contents and
terminators of the lists can no longer disagree.

Add a unit test.
2026-10-17 12:30:39 +01:00
..
2026-01-05 10:37:26 +00:00
2026-01-05 10:37:26 +00:00
2026-08-08 12:05:03 +01:00
2026-01-05 10:37:26 +00:00
2026-06-05 15:22:38 +01:00
2026-04-18 09:11:19 +01:00